Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.webapp

public final Class MathMLToImageLinkPostProcessor

extends MathMLPostProcessor
Class Inheritance
Imports
uk.ac.ed.ph.snuggletex.SnuggleConstants, .SnuggleRuntimeException, uk.ac.ed.ph.snuggletex.definitions.W3CConstants, uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor, .MathMLUtilities, java.io.UnsupportedEncodingException, java.net.URLEncoder, org.w3c.dom.Document, .Element, .Node

Simple MathMLPostProcessor that replaces any MathML islands with HTML links calling back on MathInputToImageServlet to render them as images.

Todo

This might be quite a useful utility so may want to be generalised and moved out of the demo webapp.

Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
handleMathMLIsland(Element inputMathIsland, Document outputDocument, Node outputParentNode, int mathmlCounter)

Implements abstract uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor.handleMathMLIsland.

This method is called for each MathML math element discovered, in document order.

Inherited from uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor:
postProcessDOM

Field Detail

contextPathback to summary
private final String contextPath

Constructor Detail

MathMLToImageLinkPostProcessorback to summary
public MathMLToImageLinkPostProcessor(final String contextPath)

Method Detail

handleMathMLIslandback to summary
protected void handleMathMLIsland(Element inputMathIsland, Document outputDocument, Node outputParentNode, int mathmlCounter)

Implements abstract uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor.handleMathMLIsland.

Doc from uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor.handleMathMLIsland.

This method is called for each MathML math element discovered, in document order.

Annotations
@Override