Class IPATokens

java.lang.Object
ca.phon.ipa.parser.IPATokens

public final class IPATokens extends Object
Maps individual glyphs to their IPA token type. Tokens are loaded from the ipa.xml file.
  • Method Details

    • getSharedInstance

      public static IPATokens getSharedInstance()
    • getTokenType

      public IPATokenType getTokenType(Character c)
      Return the token type for the given character.
      Returns:
      the given Characters token type or null if not found.
    • getTypeValue

      public int getTypeValue(IPATokenType type)
      Return the integer value for the given token type.
      Parameters:
      tokenType -
      Returns:
      the integer representation of the token or -1 if not found.
    • getCharactersForType

      public Set<Character> getCharactersForType(IPATokenType type)
      Get the characters with the given token type.
      Parameters:
      type - the type to lookup
      Returns:
      the set of characters assigned the given type
    • getCharacterSet

      public Set<Character> getCharacterSet()
      Get all characters in the token set
      Returns:
      all possible characters in the IPA token language.
    • getCharacterName

      public String getCharacterName(Character c)
      Get the name of the provided char
      Parameters:
      c -