| Modifier and Type | Field and Description |
|---|---|
| private final AccentMap | accentMap
AccentMap to use to look up single characters (may be null) |
| private final char | combiningCharacter
Combining character to use when forming MathML accents (0 if this builder doesn't support MATH mode) |
| private final String | mathMLElementName
Name of resulting MathML element (must not be null) |
| Access | Constructor and Description |
|---|---|
| public | AccentHandler(final AccentMap accentMap, final char combiningCharacter, final String mathMLElementName)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)
Implements uk. Called when a |
| public void | handleCommandMathMode(DOMBuilder builder, Element parentElement, CommandToken token)
Handles accents in MATH mode. |
| public void | handleCommandTextMode(DOMBuilder builder, Element parentElement, CommandToken token)
LaTeX only adds an accent to the first character of the first token, and only if it is text. |
| accentMap | back to summary |
|---|---|
| private final AccentMap accentMap AccentMap to use to look up single characters (may be null) | |
| combiningCharacter | back to summary |
|---|---|
| private final char combiningCharacter Combining character to use when forming MathML accents (0 if this builder doesn't support MATH mode) | |
| mathMLElementName | back to summary |
|---|---|
| private final String mathMLElementName Name of resulting MathML element (must not be null) | |
| AccentHandler | back to summary |
|---|---|
| public AccentHandler(final AccentMap accentMap, final char combiningCharacter, final String mathMLElementName) | |
| AccentHandler | back to summary |
|---|---|
| public AccentHandler(AccentMap accentMap) | |
| handleCommand | back to summary |
|---|---|
| public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException Implements uk. Doc from uk. Called when a
| |
| handleCommandMathMode | back to summary |
|---|---|
| public void handleCommandMathMode(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException Handles accents in MATH mode. | |
| handleCommandTextMode | back to summary |
|---|---|
| public void handleCommandTextMode(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException LaTeX only adds an accent to the first character of the first token, and only if it is text. If not, it outputs a lone accent character before the first token. For simplicity, we will only allow a single simple text token as the argument of this command since anything else is really a nasty hack and does nothing for the output in LaTeX. | |