Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.jeuclid

public final Class JEuclidUtilities

extends Object
Class Inheritance
Imports
uk.ac.ed.ph.snuggletex.DOMOutputOptions, .DOMPostProcessor, .DownConvertingPostProcessor, .WebPageOutputOptions, .WebPageOutputOptionsBuilder

Some utility methods for using the JEuclid-based "MathML to Image" conversion functionality.
Author
David McKain
Version
$Revision$
See Also
WebPageOutputOptionsBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static WebPageOutputOptions
createHTML4WebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion.

public static WebPageOutputOptions
createHTML5WebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion.

public static WebPageOutputOptions
createWebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for converting MathML to images, with optional down-conversion.

public static WebPageOutputOptions
createXHTMLWebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion.

public static void
setupJEuclidPostProcessors(DOMOutputOptions
existing DOMOutputOptions Object
options
,
boolean downConvertFirst, MathMLImageSavingCallback callback)

Takes an existing DOMOutputOptions and configures it to convert MathML to images using JEuclid, optionally down-converting simple expressions to HTML+CSS beforehand.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JEuclidUtilitiesback to summary
public JEuclidUtilities()

Method Detail

createHTML4WebPageOptionsback to summary
public static WebPageOutputOptions createHTML4WebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion. The resulting web page will be HTML 4.

createHTML5WebPageOptionsback to summary
public static WebPageOutputOptions createHTML5WebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion. The resulting web page will be HTML 5.

createWebPageOptionsback to summary
public static WebPageOutputOptions createWebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for converting MathML to images, with optional down-conversion. As of SnuggleTeX 1.3.0, this simply calls #createXHTMLWebPageOptions(). This method will be removed in SnuggleTeX 1.4.

Annotations
@Deprecated
createXHTMLWebPageOptionsback to summary
public static WebPageOutputOptions createXHTMLWebPageOptions(boolean downConvertFirst, MathMLImageSavingCallback callback)

Creates a new WebPageOutputOptions suitably configured for to convert MathML to images, with optional down-conversion. The resulting web page will be XHTML.

setupJEuclidPostProcessorsback to summary
public static void setupJEuclidPostProcessors(DOMOutputOptions options, boolean downConvertFirst, MathMLImageSavingCallback callback)

Takes an existing DOMOutputOptions and configures it to convert MathML to images using JEuclid, optionally down-converting simple expressions to HTML+CSS beforehand.

This works by replacing any existing DOMPostProcessors. If you want to use other DOMPostProcessors, then you will have to work out whether they fit in with this process and configure things manually.

Parameters
options:DOMOutputOptions

existing DOMOutputOptions Object