Package com.ibm.icu.dev.tool.ime.indic
Class IndicInputMethodImpl
java.lang.Object
com.ibm.icu.dev.tool.ime.indic.IndicInputMethodImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
private int
private InputMethodContext
private int
private static final char
protected char[]
protected char[]
private static final char
private static final char
private boolean
protected char[]
private int
private static final char
protected char[][]
private char[]
private int
private static final TextHitInfo
private static final char
private static final char
-
Constructor Summary
ConstructorsConstructorDescriptionIndicInputMethodImpl
(char[] keyboardMap, char[] joinWithNukta, char[] nuktaForm, char[][] substitutionTable) -
Method Summary
Modifier and TypeMethodDescription(package private) void
private char
getMappedChar
(char originalChar) Returns the equivalent character for hindi locale.(package private) void
handleKeyTyped
(KeyEvent kevent) private static byte
highBit
(int n) private int
nuktaIndex
(char ch) Returns the index of the given character in the JOIN_WITH_NUKTA array.(package private) void
setInputMethodContext
(InputMethodContext context)
-
Field Details
-
KBD_MAP
protected char[] KBD_MAP -
SUBSTITUTION_BASE
private static final char SUBSTITUTION_BASE- See Also:
-
SUBSTITUTION_TABLE
protected char[][] SUBSTITUTION_TABLE -
INVALID_CHAR
private static final char INVALID_CHAR- See Also:
-
KEY_SIGN_VIRAMA
private static final char KEY_SIGN_VIRAMA- See Also:
-
KEY_SIGN_NUKTA
private static final char KEY_SIGN_NUKTA- See Also:
-
ZWJ
private static final char ZWJ- See Also:
-
ZWNJ
private static final char ZWNJ- See Also:
-
BACKSPACE
private static final char BACKSPACE- See Also:
-
JOIN_WITH_NUKTA
protected char[] JOIN_WITH_NUKTA -
NUKTA_FORM
protected char[] NUKTA_FORM -
power
private int power -
extra
private int extra -
ZERO_TRAILING_HIT_INFO
-
text
private char[] text -
committedChars
private int committedChars -
totalChars
private int totalChars -
lastCharWasVirama
private boolean lastCharWasVirama -
context
-
-
Constructor Details
-
IndicInputMethodImpl
IndicInputMethodImpl(char[] keyboardMap, char[] joinWithNukta, char[] nuktaForm, char[][] substitutionTable)
-
-
Method Details
-
nuktaIndex
private int nuktaIndex(char ch) Returns the index of the given character in the JOIN_WITH_NUKTA array. If character is not found, -1 is returned. -
getMappedChar
private char getMappedChar(char originalChar) Returns the equivalent character for hindi locale.- Parameters:
originalChar
- The original character.
-
highBit
private static byte highBit(int n) -
setInputMethodContext
-
handleKeyTyped
-
endComposition
void endComposition()
-