DOMPostProcessors that might want to do interesting
things to MathML islands, leaving everything else unchanged.
| Modifier and Type | Class and Description |
|---|---|
| private class | MathMLPostProcessor.
This inner class traverses a |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | handleMathMLIsland(final Element
MathML math element discovered inputMathIsland, Document resulting outputDocument, Node outputParentNode, int Document being built upcounter for this MathML element, starting at 0 for the first
element in document order, 1 for the second, etc. mathmlCounter)This method is called for each MathML math element discovered, in document order. |
| public final Document | postProcessDOM(Document workDocument, final DOMOutputOptions options, StylesheetManager stylesheetManager)
Implements uk. Implement this to post-process the raw DOM produced by SnuggleTeX. |
| MathMLPostProcessor | back to summary |
|---|---|
| public MathMLPostProcessor() | |
| handleMathMLIsland | back to summary |
|---|---|
| protected abstract void handleMathMLIsland(final Element inputMathIsland, Document outputDocument, Node outputParentNode, int mathmlCounter) This method is called for each MathML math element discovered, in document order.
| |
| postProcessDOM | back to summary |
|---|---|
| public final Document postProcessDOM(Document workDocument, final DOMOutputOptions options, StylesheetManager stylesheetManager) Implements uk. Doc from uk. Implement this to post-process the raw DOM produced by SnuggleTeX.
You will be given an entire DOM Document to analyse, containing a root element
called root in the You should create a new Document and return it. The children of the root element will end up being the Nodes added to the final DOM. You MUST NOT modify the workDocument that is passed to you. | |
Document in document order, calling back on the
MathMLPostProcessor#handleMathMLIsland(Element, Document, Node, int) for
each MathML math element discovered.
| Modifier and Type | Field and Description |
|---|---|
| private final Document | |
| private Node | |
| private int | |
| private final Document | |
| private Node |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| inputDocument | back to summary |
|---|---|
| private final Document inputDocument | |
| inputNode | back to summary |
|---|---|
| private Node inputNode | |
| mathmlCounter | back to summary |
|---|---|
| private int mathmlCounter | |
| outputDocument | back to summary |
|---|---|
| private final Document outputDocument | |
| outputParentNode | back to summary |
|---|---|
| private Node outputParentNode | |
| DocumentWalker | back to summary |
|---|---|
| public DocumentWalker(final Document inputDocument, final Document outputDocument) | |
| run | back to summary |
|---|---|
| public void run() | |