public final class SnuggleUtilities extends Object
| Constructor and Description |
|---|
SnuggleUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractSnuggleTeXAnnotation(Element mathmlElement)
Extracts a SnuggleTeX annotation from a MathML
math element, if found. |
static String |
quoteTextForInput(String text)
Quotes the given (ASCII) String so that it could be safely input in TEXT Mode in
LaTeX input.
|
public static String quoteTextForInput(String text)
text - text to quote, assumed to be ASCII.public static String extractSnuggleTeXAnnotation(Element mathmlElement)
math element, if found. This allows
you to extract the input LaTeX from a MathML element created by SnuggleTeX, provided that
DOMOutputOptions.isAddingMathSourceAnnotations() returned true when the element was
generated.mathmlElement - Copyright © 2008–2026 The University of Edinburgh. All rights reserved.