Package com.ibm.icu.dev.tool.ime.indic
Class IndicInputMethodImpl
- java.lang.Object
-
- com.ibm.icu.dev.tool.ime.indic.IndicInputMethodImpl
-
class IndicInputMethodImpl extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
IndicInputMethodImpl.ACIText
-
Field Summary
Fields Modifier and Type Field Description private static char
BACKSPACE
private int
committedChars
private java.awt.im.spi.InputMethodContext
context
private int
extra
private static char
INVALID_CHAR
protected char[]
JOIN_WITH_NUKTA
protected char[]
KBD_MAP
private static char
KEY_SIGN_NUKTA
private static char
KEY_SIGN_VIRAMA
private boolean
lastCharWasVirama
protected char[]
NUKTA_FORM
private int
power
private static char
SUBSTITUTION_BASE
protected char[][]
SUBSTITUTION_TABLE
private char[]
text
private int
totalChars
private static java.awt.font.TextHitInfo
ZERO_TRAILING_HIT_INFO
private static char
ZWJ
private static char
ZWNJ
-
Constructor Summary
Constructors Constructor Description IndicInputMethodImpl(char[] keyboardMap, char[] joinWithNukta, char[] nuktaForm, char[][] substitutionTable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
endComposition()
private char
getMappedChar(char originalChar)
Returns the equivalent character for hindi locale.(package private) void
handleKeyTyped(java.awt.event.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(java.awt.im.spi.InputMethodContext context)
-
-
-
Field Detail
-
KBD_MAP
protected char[] KBD_MAP
-
SUBSTITUTION_BASE
private static final char SUBSTITUTION_BASE
- See Also:
- Constant Field Values
-
SUBSTITUTION_TABLE
protected char[][] SUBSTITUTION_TABLE
-
INVALID_CHAR
private static final char INVALID_CHAR
- See Also:
- Constant Field Values
-
KEY_SIGN_VIRAMA
private static final char KEY_SIGN_VIRAMA
- See Also:
- Constant Field Values
-
KEY_SIGN_NUKTA
private static final char KEY_SIGN_NUKTA
- See Also:
- Constant Field Values
-
ZWJ
private static final char ZWJ
- See Also:
- Constant Field Values
-
ZWNJ
private static final char ZWNJ
- See Also:
- Constant Field Values
-
BACKSPACE
private static final char BACKSPACE
- See Also:
- Constant Field Values
-
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
private static final java.awt.font.TextHitInfo ZERO_TRAILING_HIT_INFO
-
text
private char[] text
-
committedChars
private int committedChars
-
totalChars
private int totalChars
-
lastCharWasVirama
private boolean lastCharWasVirama
-
context
private java.awt.im.spi.InputMethodContext context
-
-
Method Detail
-
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
void setInputMethodContext(java.awt.im.spi.InputMethodContext context)
-
handleKeyTyped
void handleKeyTyped(java.awt.event.KeyEvent kevent)
-
endComposition
void endComposition()
-
-