Package ca.phon.ipa.parser
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 IPATokens
Return the token type for the given character.int
getTypeValue
(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
Character
s token type ornull
if not found.
-
getTypeValue
Return the integer value for the given token type.- Parameters:
tokenType
-- Returns:
- the integer representation of the token
or
-1
if 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
Get all characters in the token set- Returns:
- all possible characters in the IPA token language.
-
getCharacterName
Get the name of the provided char- Parameters:
c
-