package de2;
import epub.epub;
public class pro {
public int number;
public String[] subtitle=new String[250];
public String[][] paper=new String[200][5000];
public String[] subx=new String[5000];
public String title,author;
public int[] subnumber=new int[200];
public static void main(String[] args) {
pro test=new pro();
}
pro(){
number=2;
subtitle[2]="a1";
subtitle[1]="";
subnumber[1]=1;
paper[1][1]=box()+text(50,50,50,"表紙")+text(50,150,30,"猫")+"</svg>";
subnumber[2]=1;
String x="<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>";
x=x+"<msup><mi>e</mi><mrow><mn>2</mn><mi>x</mi><mo>+</mo><mn>1</mn></mrow></msup></math>";
paper[2][1]=x;
title="ttt";
author="aa";
epub sub=new epub();
sub.number=number;
sub.subtitle=subtitle;
sub.paper=paper;
sub.subnumber=subnumber;
sub.title=title;
sub.author=author;
sub.makedata("math.kepub.epub");
}
String box(){
String strx;
strx="<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"100%\" height=\"100%\" viewBox=\"0 0 500 500\">";
return strx;
}
String chop_n(String strp){
String strx;
strx="\""+strp+"\"";
return strx;
}
String chop(int strp){
String strx;
strx="\""+strp+"\"";
return strx;
}
String text(int x1,int y1,int size,String strp){
String strx;
strx="<text x="+chop(x1)+" y= "+chop(y1)+" font-size="+chop(size)+">";
strx=strx+strp;
strx=strx+"</text>";
return strx;
}
String circle(int x1,int y1,int r,String col){
String strx;
strx="<circle cx="+chop(x1)+" cy="+chop(y1)+" r="+chop(r)+" fill="+chop_n(col)+"/>";
return strx;
}
String rect(int x1,int y1,int w1,int h1,String col){
String strx;
strx="<rect x="+chop(x1)+" y="+chop(y1)+" width="+chop(w1);
strx=strx+" height="+chop(h1)+" fill="+chop_n(col)+"/>";
return strx;
}
String line(int x1,int y1,int x2,int y2,int wide,String col){
String strx;
strx="<line x1="+chop(x1)+" y1="+chop(y1)+" x2="+chop(x2)+" y2=";
strx=strx+chop(y2)+" stroke="+chop_n(col)+" stroke-width="+chop(wide)+"/>";
return strx;
}
}
最終更新:2016年11月09日 02:30