public class DOMFormulaConverter extends FormulaConverter
FormulaConverter
Modifier and Type | Field and Description |
---|---|
private static org.apache.log4j.Logger |
logger |
engine, FORMULA_ID_PREFIX, tempDirPath, xpath
Constructor and Description |
---|
DOMFormulaConverter() |
Modifier and Type | Method and Description |
---|---|
Formula |
parse(int id,
String latexFormula)
Parse latex formula code to entities, which afterward can be rendered to html
|
private FormulaElement |
renderElement(org.jdom2.Element cur)
Recursive function to render all FormulaElements
Converts MathML to HTML
|
extractFormulas, getTempDirPath, parseToMathML, renderInvalidFormulaSource, replaceFormulas, setGenerateDebugMarkup
public Formula parse(int id, String latexFormula)
FormulaConverter
parse
in class FormulaConverter
private FormulaElement renderElement(org.jdom2.Element cur)
cur
- the current processed MathML JDOM2 Element (a node or leaf inside MathML's DOM tree)Copyright © 2015 Vienna University of Technology. All rights reserved.