hmath-commits Mailing List for HMath - MathML Wiki/BLOG (Page 8)
Status: Pre-Alpha
Brought to you by:
jsurfer
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
(28) |
Mar
(121) |
Apr
(49) |
May
(11) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <js...@us...> - 2004-03-09 20:23:58
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/org/hartmath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/org/hartmath Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/org/hartmath added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:57
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/org Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/org added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:57
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/i18n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/i18n Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/i18n added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:57
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/defaults In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/defaults Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/defaults added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:57
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/META-INF/services In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/META-INF/services Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/META-INF/services added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:56
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:56
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src added to the repository |
|
From: <js...@us...> - 2004-03-09 20:23:56
|
Update of /cvsroot/hmath/org.hmath.server/WEB-INF/src/META-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18682/WEB-INF/src/META-INF Log Message: Directory /cvsroot/hmath/org.hmath.server/WEB-INF/src/META-INF added to the repository |
|
From: <js...@us...> - 2004-03-09 20:22:00
|
Update of /cvsroot/hmath/org.hmath.server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18207/org.hmath.server Log Message: Directory /cvsroot/hmath/org.hmath.server added to the repository |
|
From: <js...@us...> - 2004-02-25 21:45:46
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5690/src/org/hartmath/tex2mml/test Modified Files: ParserTestCase.java Log Message: misc changes Index: ParserTestCase.java =================================================================== RCS file: /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test/ParserTestCase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ParserTestCase.java 15 Feb 2004 14:32:03 -0000 1.2 --- ParserTestCase.java 25 Feb 2004 21:30:30 -0000 1.3 *************** *** 16,22 **** public void testParser() { tex2mml("\\hat x", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); ! tex2mml("\\hat{x}", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); ! tex2mml( "\\sum_{n=0}^\\infty", --- 16,24 ---- public void testParser() { + tex2mml("\\frac{1}{x_2}", "<m:mfrac><m:mn>1</m:mn><m:mrow><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub></m:mrow></m:mfrac>"); + tex2mml("\\hat x", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); ! tex2mml("\\hat{x}", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); ! tex2mml( "\\sum_{n=0}^\\infty", |
|
From: <js...@us...> - 2004-02-25 21:45:15
|
Update of /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5577/src/org/hartmath/tex2mml Modified Files: TeXParser.java Log Message: misc changes Index: TeXParser.java =================================================================== RCS file: /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml/TeXParser.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TeXParser.java 15 Feb 2004 12:58:33 -0000 1.1 --- TeXParser.java 25 Feb 2004 21:29:59 -0000 1.2 *************** *** 80,84 **** list = MML_FACTORY.getRow(c.getTeXSymbol()); } ! if (stack.size() > 0) { prev = stack.remove(stack.size() - 1); list.add(prev); --- 80,84 ---- list = MML_FACTORY.getRow(c.getTeXSymbol()); } ! if (stack!=null&&stack.size() > 0) { prev = stack.remove(stack.size() - 1); list.add(prev); *************** *** 101,105 **** // TODO allow other closing brackets braces like in ASCIIMath ? while (token != TT_LIST_CLOSE && token != TT_EOF) { ! node1 = createNextNode(null); if (node1 == null) { break; --- 101,105 ---- // TODO allow other closing brackets braces like in ASCIIMath ? while (token != TT_LIST_CLOSE && token != TT_EOF) { ! node1 = createNextNode(list); if (node1 == null) { break; *************** *** 116,120 **** // TODO allow other closing brackets braces like in ASCIIMath ? while (token != TT_LIST_CLOSE && token != TT_EOF) { ! node1 = createNextNode(null); if (node1 == null) { break; --- 116,120 ---- // TODO allow other closing brackets braces like in ASCIIMath ? while (token != TT_LIST_CLOSE && token != TT_EOF) { ! node1 = createNextNode(list); if (node1 == null) { break; |
|
From: <js...@us...> - 2004-02-15 14:39:19
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9511/src/org/hartmath/tex2mml/test Modified Files: ParserTestCase.java Log Message: Initial TeX to MathML module Index: ParserTestCase.java =================================================================== RCS file: /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test/ParserTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ParserTestCase.java 15 Feb 2004 13:00:15 -0000 1.1 --- ParserTestCase.java 15 Feb 2004 14:32:03 -0000 1.2 *************** *** 16,19 **** --- 16,22 ---- public void testParser() { + tex2mml("\\hat x", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); + tex2mml("\\hat{x}", "<m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover>"); + tex2mml( "\\sum_{n=0}^\\infty", |
|
From: <js...@us...> - 2004-02-15 14:38:16
|
Update of /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml/reflection/convert In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9158/src/org/hartmath/tex2mml/reflection/convert Added Files: Mathbf.java Hat.java Bar.java Mathcal.java Ul.java Mathsf.java Dot.java Vec.java Ddot.java Text.java Mbox.java Mathtt.java Mathfrak.java Log Message: Initial TeX to MathML module --- NEW FILE: Mathbf.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mathbf implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mstyle", "fontweight=\"bold\""); row.get(0).convert(f, buf); f.tagEnd(buf, "mstyle"); return true; } return false; } } --- NEW FILE: Hat.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Hat implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mover"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append(TeX2MathMLFactory.toEntity('\u005E')); // '^' f.tagEnd(buf, "mo"); f.tagEnd(buf, "mover"); return true; } return false; } } --- NEW FILE: Bar.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Bar implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mover"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append(TeX2MathMLFactory.toEntity('\u00AF')); // f.tagEnd(buf, "mo"); f.tagEnd(buf, "mover"); return true; } return false; } } --- NEW FILE: Mathcal.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Identifier; import org.hartmath.tex2mml.Node; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mathcal implements IRowConverter { public final static int[] MATHCAL_CODES = { 0xEF35, 0x212C, 0xEF36, 0xEF37, 0x2130, 0x2131, 0xEF38, 0x210B, 0x2110, 0xEF39, 0xEF3A, 0x2112, 0x2133, 0xEF3B, 0xEF3C, 0xEF3D, 0xEF3E, 0x211B, 0xEF3F, 0xEF40, 0xEF41, 0xEF42, 0xEF43, 0xEF44, 0xEF45, 0xEF46 }; /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { Node temp = row.get(0); if (temp instanceof Identifier) { String st = temp.getOutput(); StringBuffer newst = new StringBuffer(); for (int j = 0; j < st.length(); j++) if (st.charAt(j) > 64 && st.charAt(j) < 91) { newst.append(TeX2MathMLFactory.toEntity(MATHCAL_CODES[st.charAt(j) - 65])); } else { newst.append(st.charAt(j)); } f.tagStart(buf, temp.getTag()); buf.append(newst.toString()); f.tagEnd(buf, temp.getTag()); return true; } } return false; } } --- NEW FILE: Ul.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Ul implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "munder"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append(TeX2MathMLFactory.toEntity('\u0332')); // '^' f.tagEnd(buf, "mo"); f.tagEnd(buf, "munder"); return true; } return false; } } --- NEW FILE: Mathsf.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Identifier; import org.hartmath.tex2mml.Node; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mathsf implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mstyle", "fontfamily=\"sans-serif\""); row.get(0).convert(f, buf); f.tagEnd(buf, "mstyle"); return true; } return false; } } --- NEW FILE: Dot.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Dot implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mover"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append("."); // '^' f.tagEnd(buf, "mo"); f.tagEnd(buf, "mover"); return true; } return false; } } --- NEW FILE: Vec.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Vec implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mover"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append(TeX2MathMLFactory.toEntity('\u2192')); // '^' f.tagEnd(buf, "mo"); f.tagEnd(buf, "mover"); return true; } return false; } } --- NEW FILE: Ddot.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Ddot implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mover"); row.get(0).convert(f, buf); f.tagStart(buf, "mo"); buf.append(".."); // '^' f.tagEnd(buf, "mo"); f.tagEnd(buf, "mover"); return true; } return false; } } --- NEW FILE: Text.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Text implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mtext"); buf.append(row.get(0).getOutput()); f.tagEnd(buf, "mtext"); return true; } return false; } } --- NEW FILE: Mbox.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mbox implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mbox"); row.get(0).convert(f, buf); f.tagEnd(buf, "mbox"); return true; } return false; } } --- NEW FILE: Mathtt.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mathtt implements IRowConverter { /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { f.tagStart(buf, "mstyle", "fontfamily=\"monospace\""); row.get(0).convert(f, buf); f.tagEnd(buf, "mstyle"); return true; } return false; } } --- NEW FILE: Mathfrak.java --- package org.hartmath.tex2mml.reflection.convert; import org.hartmath.tex2mml.IRowConverter; import org.hartmath.tex2mml.Identifier; import org.hartmath.tex2mml.Node; import org.hartmath.tex2mml.Row; import org.hartmath.tex2mml.TeX2MathMLFactory; public class Mathfrak implements IRowConverter { public final static int[] MATHFRAK_CODES = { 0xEF5D, 0xEF5E, 0x212D, 0xEF5F, 0xEF60, 0xEF61, 0xEF62, 0x210C, 0x2111, 0xEF63, 0xEF64, 0xEF65, 0xEF66, 0xEF67, 0xEF68, 0xEF69, 0xEF6A, 0x211C, 0xEF6B, 0xEF6C, 0xEF6D, 0xEF6E, 0xEF6F, 0xEF70, 0xEF71, 0x2128 }; /* * (non-Javadoc) * * @see org.hartmath.tex2mml.IRowConverter#convert(java.lang.StringBuffer, org.hartmath.tex2mml.Row, * org.hartmath.tex2mml.TeX2MathMLFactory) */ public boolean convert(StringBuffer buf, Row row, TeX2MathMLFactory f) { if (row.size() == 1) { Node temp = row.get(0); if (temp instanceof Identifier) { String st = temp.getOutput(); StringBuffer newst = new StringBuffer(); for (int j = 0; j < st.length(); j++) if (st.charAt(j) > 64 && st.charAt(j) < 91) { newst.append(TeX2MathMLFactory.toEntity(MATHFRAK_CODES[st.charAt(j) - 65])); } else { newst.append(st.charAt(j)); } f.tagStart(buf, temp.getTag()); buf.append(newst.toString()); f.tagEnd(buf, temp.getTag()); return true; } } return false; } } |
|
From: <js...@us...> - 2004-02-15 14:38:16
|
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)); |
|
From: <js...@us...> - 2004-02-15 13:21:18
|
Update of /cvsroot/hmath/org.hartmath.tex2mml/src/org/hartmath/tex2mml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28047/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.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TeX2MathMLFactory.java 15 Feb 2004 12:58:33 -0000 1.1 --- TeX2MathMLFactory.java 15 Feb 2004 13:14:05 -0000 1.2 *************** *** 212,216 **** CONSTANT_SYMBOLS.put("rceiling", new Operator(toEntity('\u2309'), CONSTANT)); CONSTANT_SYMBOLS.put("int", new Operator(toEntity('\u222B'), CONSTANT)); ! // {input:"\\ ", tag:"mo", output:"\u00A0"}, // {input:"CC", tag:"mo", output:"\u2102"}, // \mathbf{C} --- 212,230 ---- CONSTANT_SYMBOLS.put("rceiling", new Operator(toEntity('\u2309'), CONSTANT)); CONSTANT_SYMBOLS.put("int", new Operator(toEntity('\u222B'), CONSTANT)); ! ! CONSTANT_SYMBOLS.put("circ", new Operator("∘", CONSTANT)); ! CONSTANT_SYMBOLS.put("bigcirc", new Operator("◯", CONSTANT)); ! CONSTANT_SYMBOLS.put("wr", new Operator("≀", CONSTANT)); ! CONSTANT_SYMBOLS.put("odot", new Operator("⊙", CONSTANT)); ! CONSTANT_SYMBOLS.put("uplus", new Operator("⊎", CONSTANT)); ! CONSTANT_SYMBOLS.put("circ", new Operator("∘", CONSTANT)); ! CONSTANT_SYMBOLS.put("circ", new Operator("∘", CONSTANT)); ! CONSTANT_SYMBOLS.put("sqcup", new Operator("⊔", CONSTANT)); ! CONSTANT_SYMBOLS.put("sqcap", new Operator("⊓", CONSTANT)); ! CONSTANT_SYMBOLS.put("rhd", new Operator("⊳", CONSTANT)); ! CONSTANT_SYMBOLS.put("lhd", new Operator("⊲", CONSTANT)); ! CONSTANT_SYMBOLS.put("unrhd", new Operator("⊵", CONSTANT)); ! CONSTANT_SYMBOLS.put("unlhd", new Operator("⊴", CONSTANT)); ! // {input:"\\ ", tag:"mo", output:"\u00A0"}, // {input:"CC", tag:"mo", output:"\u2102"}, // \mathbf{C} |
|
From: <js...@us...> - 2004-02-15 13:08:34
|
Update of /cvsroot/hmath/org.hartmath.tex2mml/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25637/bin Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml/bin added to the repository |
|
From: <js...@us...> - 2004-02-15 13:08:11
|
Update of /cvsroot/hmath/org.hartmath.tex2mml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25554 Removed Files: hmparser.jar Log Message: Initial TeX to MathML module --- hmparser.jar DELETED --- |
|
From: <js...@us...> - 2004-02-15 13:07:29
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25438 Added Files: .project .classpath Log Message: Initial TeX to MathML module --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>org.hartmath.tex2mml.test</name> <comment></comment> <projects> <project>org.hartmath.tex2mml</project> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.0.0/src/org.junit_3.8.1/junitsrc.zip" kind="var" path="ECLIPSE_HOME/plugins/org.junit_3.8.1/junit.jar"/> <classpathentry kind="src" path="/org.hartmath.tex2mml"/> <classpathentry kind="output" path="bin"/> </classpath> |
|
From: <js...@us...> - 2004-02-15 13:07:29
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25438/src/org/hartmath/tex2mml/test Added Files: ParserTestCase.java Log Message: Initial TeX to MathML module --- NEW FILE: ParserTestCase.java --- package org.hartmath.tex2mml.test; import junit.framework.TestCase; //import org.hartmath.core.expression.ExpressionFactory; import org.hartmath.tex2mml.TeXParser; /** * Tests parser funciond for SimpleParserFactory */ public class ParserTestCase extends TestCase { TeXParser parser; public ParserTestCase(String name) { super(name); } public void testParser() { tex2mml( "\\sum_{n=0}^\\infty", "<m:mrow><m:munderover><m:mo>∑</m:mo><m:mrow><m:mi>n</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:mrow><m:mo>∞</m:mo></m:munderover></m:mrow>"); tex2mml( "\\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}", "<m:mi>ℂℍℕℙℚℝℤ</m:mi>"); tex2mml( "x 2+\\frac{b}{a}x+\\frac{c}{a}=0", "<m:mrow><m:mi>x</m:mi><m:mn>2</m:mn><m:mo>+</m:mo><m:mfrac><m:mi>b</m:mi><m:mi>a</m:mi></m:mfrac><m:mi>x</m:mi><m:mo>+</m:mo><m:mfrac><m:mi>c</m:mi><m:mi>a</m:mi></m:mfrac><m:mo>=</m:mo><m:mn>0</m:mn></m:mrow>"); tex2mml( "x 2+\\frac{b}{a x}+\\frac{c}{a}=0", "<m:mrow><m:mi>x</m:mi><m:mn>2</m:mn><m:mo>+</m:mo><m:mfrac><m:mi>b</m:mi><m:mrow><m:mi>a</m:mi><m:mi>x</m:mi></m:mrow></m:mfrac><m:mo>+</m:mo><m:mfrac><m:mi>c</m:mi><m:mi>a</m:mi></m:mfrac><m:mo>=</m:mo><m:mn>0</m:mn></m:mrow>"); tex2mml( "x 2+y_1+z_1234", "<m:mrow><m:mi>x</m:mi><m:mn>2</m:mn><m:mo>+</m:mo><m:msub><m:mi>y</m:mi><m:mn>1</m:mn></m:msub><m:mo>+</m:mo><m:msub><m:mi>z</m:mi><m:mn>1234</m:mn></m:msub></m:mrow>"); tex2mml("\\frac{1}{2}", "<m:mfrac><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac>"); tex2mml("a_b", "<m:mrow><m:msub><m:mi>a</m:mi><m:mi>b</m:mi></m:msub></m:mrow>"); tex2mml("a", "<m:mi>a</m:mi>"); tex2mml("\\alpha", "<m:mi>α</m:mi>"); } public void tex2mml(String tex, String mml) { StringBuffer buf = new StringBuffer(); parser.initialize(tex); parser.start(buf); assertEquals(buf.toString(), mml); } /** * The JUnit setup method */ protected void setUp() { parser = new TeXParser(""); } } |
|
From: <js...@us...> - 2004-02-15 13:07:15
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/src/org/hartmath/tex2mml/test Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml/test added to the repository |
|
From: <js...@us...> - 2004-02-15 13:07:15
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/src/org/hartmath/tex2mml Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath/tex2mml added to the repository |
|
From: <js...@us...> - 2004-02-15 13:07:14
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/src/org/hartmath Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/src/org/hartmath added to the repository |
|
From: <js...@us...> - 2004-02-15 13:07:14
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/src/org Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/src/org added to the repository |
|
From: <js...@us...> - 2004-02-15 13:07:14
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/src Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/src added to the repository |
|
From: <js...@us...> - 2004-02-15 13:07:13
|
Update of /cvsroot/hmath/org.hartmath.tex2mml.test/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25324/bin Log Message: Directory /cvsroot/hmath/org.hartmath.tex2mml.test/bin added to the repository |