public class TeXParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
COMMAND_PREFIX |
static char |
SUB_SCRIPT_COMMAND |
static char |
SUPER_SCRIPT_COMMAND |
Constructor and Description |
---|
TeXParser() |
Modifier and Type | Method and Description |
---|---|
protected static PropertyMapIF |
parseAttribute(net.mumie.mathletfactory.util.text.tex.ParsePosition p,
TexArgument arg,
java.lang.String text) |
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition |
parseCommand(net.mumie.mathletfactory.util.text.tex.ParsePosition p) |
static ContentNodeIF |
parseContent(java.lang.String texContent) |
static ContentNodeIF |
parseContent(java.lang.String texContent,
PropertyMapIF attributes)
Returns an appropriate
ContentNodeIF instance for the given TeX
expression that can be used to render arbitrary TeX content with the
given attributes. |
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition |
parseScript(net.mumie.mathletfactory.util.text.tex.ParsePosition p) |
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition |
parseScript(net.mumie.mathletfactory.util.text.tex.ParsePosition p,
char scriptChar) |
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition |
parseText(net.mumie.mathletfactory.util.text.tex.ParsePosition p,
int end) |
protected static java.lang.String[] |
preParseContent(java.lang.String text) |
static void |
printTree(ContentNodeIF view) |
public static final char COMMAND_PREFIX
public static final char SUPER_SCRIPT_COMMAND
public static final char SUB_SCRIPT_COMMAND
public static ContentNodeIF parseContent(java.lang.String texContent)
public static ContentNodeIF parseContent(java.lang.String texContent, PropertyMapIF attributes)
ContentNodeIF
instance for the given TeX
expression that can be used to render arbitrary TeX content with the
given attributes.texContent
- a TeX expressionprotected static java.lang.String[] preParseContent(java.lang.String text)
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition parseCommand(net.mumie.mathletfactory.util.text.tex.ParsePosition p)
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition parseText(net.mumie.mathletfactory.util.text.tex.ParsePosition p, int end)
protected static PropertyMapIF parseAttribute(net.mumie.mathletfactory.util.text.tex.ParsePosition p, TexArgument arg, java.lang.String text)
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition parseScript(net.mumie.mathletfactory.util.text.tex.ParsePosition p)
protected static net.mumie.mathletfactory.util.text.tex.ParsePosition parseScript(net.mumie.mathletfactory.util.text.tex.ParsePosition p, char scriptChar)
public static void printTree(ContentNodeIF view)
Further documentation and examples can be found under www.mathletfactory.de.