アットウィキロゴ

standard

package epub;
 
import tool.*;
import java.util.UUID;
 
public class pro {
 
     String[] data=new String[5000];
      String[] pic=new String[5000];
     int s,datanumber;
 
     String title,author,pub,uid;
 
 
 
    public static void main(String[] args) {
        pro test=new pro();
    }
    pro(){
 
        title="MathML入門";
        author="数学";
        pub="貧乏書房";
 
String uuid = UUID.randomUUID().toString();  
 
 
        readfile sub=new readfile();
        sub.makedata("standard.opf","UTF-8");
        data=sub.data;
        datanumber=sub.datanumber;
 
        for(s=1;s<datanumber+1;s++){
        data[s]=data[s].replace("題名",title);
        data[s]=data[s].replace("著者",author);
        data[s]=data[s].replace("出版社",pub);
        data[s]=data[s].replace("電子書籍番号",uuid); 
        }
 
 
        String k="p-001.xhtml";
 
 String str=rev(k);
 
 System.out.println(str);
 
        str=rev_id(k);
 
 System.out.println(str);  
 
 
    }
    String rev(String html){
 
        String id=html.replace(".xhtml","");
 
        String strx="<item media-type=\"application/xhtml+xml\" id=\""+id+"\" href=\"xhtml/"+html+"\"/>";
 
        return strx;
    }
 
      String rev_id(String html){
 
        String id=html.replace(".xhtml","");
 
       String strx="<itemref linear=\"yes\" idref=\""+id+"\"/>";
        return strx;
    }
 
 
}
 
最終更新:2015年11月18日 19:46