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

public final Class AccentMap

extends Object
Class Inheritance

Map defines how unaccented alphabetic characters should map to corresponding Unicode characters when a particular type of accent is applied (e.g. circumflex). FIXME: This needs to extend to cover non-ASCII possibilities as well. This will require a lot of low level changes as the current implementation is not scalable.
Author
David McKain
Version
$Revision:179 $

Field Summary

Modifier and TypeField and Description
private final char[]
private static final int
private static final int
private final char[]

Constructor Summary

AccessConstructor and Description
public
AccentMap(char[] accentData, String mathUnsafeChars)

Method Summary

Modifier and TypeMethod and Description
private int
charToIndex(int c)

public char
getAccentedMathChar(int codePoint)

public char
getAccentedTextChar(int codePoint)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mathSafeAccentByCodePointback to summary
private final char[] mathSafeAccentByCodePoint
MAX_CODEPOINTback to summary
private static final int MAX_CODEPOINT
MIN_CODEPOINTback to summary
private static final int MIN_CODEPOINT
textAccentByCodePointback to summary
private final char[] textAccentByCodePoint

Constructor Detail

AccentMapback to summary
public AccentMap(char[] accentData, String mathUnsafeChars)

Method Detail

charToIndexback to summary
private int charToIndex(int c)
getAccentedMathCharback to summary
public char getAccentedMathChar(int codePoint)
getAccentedTextCharback to summary
public char getAccentedTextChar(int codePoint)