Update of /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9158/src/org/hartmath/tex2mml
Modified Files:
TeX2MathMLFactory.java
Log Message:
Initial TeX to MathML module
Index: TeX2MathMLFactory.java
===================================================================
RCS file: /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml/TeX2MathMLFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TeX2MathMLFactory.java 15 Feb 2004 13:14:05 -0000 1.2
--- TeX2MathMLFactory.java 15 Feb 2004 14:31:01 -0000 1.3
***************
*** 285,296 ****
// sub = {input:"_", tag:"msub", output:"_", infix:true},
// sup = {input:"^", tag:"msup", output:"^", infix:true},
! // hat = {input:"hat", tag:"mover", output:"\u005E", unary:true, acc:true},
! // bar = {input:"bar", tag:"mover", output:"\u00AF", unary:true, acc:true},
! // vec = {input:"vec", tag:"mover", output:"\u2192", unary:true, acc:true},
! // dot = {input:"dot", tag:"mover", output:".", unary:true, acc:true},
! // ddot = {input:"ddot", tag:"mover", output:"..", unary:true, acc:true},
! // ul = {input:"ul", tag:"munder", output:"\u0332", unary:true, acc:true},
! // text = {input:"text", tag:"mtext", output:"text", unary:true},
! // mbox = {input:"mbox", tag:"mtext", output:"mbox", unary:true},
Map underover = new HashMap();
--- 285,289 ----
// sub = {input:"_", tag:"msub", output:"_", infix:true},
// sup = {input:"^", tag:"msup", output:"^", infix:true},
!
Map underover = new HashMap();
***************
*** 317,321 ****
--- 310,325 ----
CONSTANT_SYMBOLS.put("mathbb", new Row("mathbb", "mathbb", UNARY));
+ CONSTANT_SYMBOLS.put("hat", new Row("hat", "hat", UNARY));
+ CONSTANT_SYMBOLS.put("bar", new Row("bar", "bar", UNARY));
+ CONSTANT_SYMBOLS.put("vec", new Row("vec", "vec", UNARY));
+ CONSTANT_SYMBOLS.put("dot", new Row("dot", "dot", UNARY));
+ CONSTANT_SYMBOLS.put("ddot", new Row("ddot", "ddot", UNARY));
+ CONSTANT_SYMBOLS.put("ul", new Row("ul", "ul", UNARY));
+ CONSTANT_SYMBOLS.put("text", new Row("text", "text", UNARY));
+ CONSTANT_SYMBOLS.put("mbox", new Row("mbox", "mbox", UNARY));
+ // text = {input:"text", tag:"mtext", output:"text", unary:true},
+ // mbox = {input:"mbox", tag:"mtext", output:"mbox", unary:true},
+
CONSTANT_SYMBOLS.put("^", new Row("sup", "msup", INFIX));
CONSTANT_SYMBOLS.put("_", new Row("sub", "msub", INFIX));
|