Class IPATokens
java.lang.Object
ca.phon.ipa.parser.IPATokens
Maps individual glyphs to their IPA token type.
Tokens are loaded from the ipa.xml file.
-
Method Summary
Modifier and TypeMethodDescriptionGet the name of the provided charGet all characters in the token setGet the characters with the given token type.static IPATokensReturn the token type for the given character.intgetTypeValue(IPATokenType type) Return the integer value for the given token type.
-
Method Details
-
getTokenType
Return the token type for the given character.- Returns:
- the given
Characters token type ornullif not found.
-
getTypeValue
Return the integer value for the given token type.- Parameters:
type-- Returns:
- the integer representation of the token
or
-1if not found.
-
getCharactersForType
Get the characters with the given token type.- Parameters:
type- the type to lookup- Returns:
- the set of characters assigned the given type
-
getCharacterSet
-
getCharacterName