|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.thdl.tib.text.TibetanKeyboard
An alternate (non-Extended Wylie) keyboard input method. A keyboard URL is passed to its constructor. This URL must follow a particular format, and include particular subparts. For example, the keyboard URL must specify values for various input parameters, as well as correspondences for the Wylie characters this keyboard allows the user to input. For an example, see the file 'sambhota_keyboard.ini' found in the same directory as this class.
It is normative practice for a null keyboard to be interpreted as the default Wylie keyboard. A non-null keyboard defines a transformation of the default Wylie keyboard, setting new values for each Wylie value, as well as (re-)defining various parameters.
Nested Class Summary | |
class |
TibetanKeyboard.InvalidKeyboardException
A generic Exception to indicate an invalid keyboard. |
Constructor Summary | |
TibetanKeyboard(URL url)
Opens the URL specified by the parameter, and tries to construct a keyboard from it. |
Method Summary | |
char |
getDisambiguatingKey()
Gets the disambiguating key for this keyboard. |
char |
getStackingKey()
Gets the stacking key. |
String |
getWylieForChar(String s)
Gets the Extended Wylie corresponding to this character. |
String |
getWylieForPunc(String s)
Gets the Extended Wylie corresponding to this punctuation. |
String |
getWylieForVowel(String s)
Gets the Extended Wylie corresponding to this vowel. |
boolean |
hasAVowel()
Does the keyboard have a key for the invisible 'a' vowel? |
boolean |
hasDisambiguatingKey()
Does this keyboard have a disambiguating key? |
boolean |
hasInputPrefix(String s)
This addresses bug 624133, "Input freezes after impossible character". |
boolean |
hasSanskritStackingKey()
Does this keyboard require a stacking key for Sanskrit stacks? |
boolean |
hasTibetanStackingKey()
Does this keyboard require a stacking key for Tibetan stacks? |
boolean |
isAChenRequiredBeforeVowel()
Must achen be typed first if you want achen plus a vowel? |
boolean |
isAChungConsonant()
Is achung treated as an ordinary consonant? |
boolean |
isChar(String s)
Decides whether or not a string is a character (as opposed to a vowel or punctuation) in this keyboard. |
boolean |
isPunc(String s)
Decides whether or not a string is a punctuation mark in this keyboard? |
boolean |
isStackingMedial()
Is stacking medial? |
boolean |
isVowel(String s)
Decides whether or not the string is a vowel in this keyboard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TibetanKeyboard(URL url) throws TibetanKeyboard.InvalidKeyboardException
url
- the URL of the keyboard
TibetanKeyboard.InvalidKeyboardException
- a valid keyboard cannot be
constructed from this URLMethod Detail |
public boolean hasDisambiguatingKey()
public char getDisambiguatingKey()
public boolean hasSanskritStackingKey()
public boolean hasTibetanStackingKey()
public boolean isStackingMedial()
public char getStackingKey()
public boolean isAChenRequiredBeforeVowel()
public boolean isAChungConsonant()
public boolean hasAVowel()
public boolean isChar(String s)
s
- the possible character
public String getWylieForChar(String s)
public boolean isPunc(String s)
s
- the possible punctuation
public String getWylieForPunc(String s)
s
- the possible punctuation
public boolean isVowel(String s)
s
- the possible vowel
public String getWylieForVowel(String s)
public boolean hasInputPrefix(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |