Class KhmerRenderer
- java.lang.Object
-
- org.apache.fop.complexscripts.scripts.KhmerRenderer
-
public class KhmerRenderer extends java.lang.Object
UnicodeRender Class. author huot.pengleng simple classes, they are used in the state table (in this file) to control the length of a syllable they are also used to know where a character should be placed (location in reference to the base character) and also to know if a character, when independently displayed, should be displayed with a dotted-circle to indicate error in syllable construction Character class tables xx character does not combine into syllable, such as numbers, puntuation marks, non-Khmer signs... sa Sign placed above the base sp Sign placed after the base c1 Consonant of type 1 or independent vowel (independent vowels behave as type 1 consonants) c2 Consonant of type 2 (only RO) c3 Consonant of type 3 rb Khmer sign robat u17CC. combining mark for subscript consonants cd Consonant-shifter dl Dependent vowel placed before the base (left of the base) db Dependent vowel placed below the base da Dependent vowel placed above the base dr Dependent vowel placed behind the base (right of the base) co Khmer combining mark COENG u17D2, combines with the consonant or independent vowel following it to create a subscript consonant or independent vowel va Khmer split vowel in wich the first part is before the base and the second one above the base vr Khmer split vowel in wich the first part is before the base and the second one behind (right of) the base
-
-
Field Summary
Fields Modifier and Type Field Description private static char
BA
private static int
C1
private static int
C2
private static int
C3
private static int
CC_COENG
private static int
CC_CONSONANT
private static int
CC_CONSONANT_SHIFTER
private static int
CC_CONSONANT2
private static int
CC_CONSONANT3
private static int
CC_DEPENDENT_VOWEL
private static int
CC_ROBAT
private static int
CC_SIGN_ABOVE
private static int
CC_SIGN_AFTER
private static int
CF_ABOVE_VOWEL
private static int
CF_CLASS_MASK
private static int
CF_COENG
private static int
CF_CONSONANT
private static int
CF_DOTTED_CIRCLE
private static int
CF_POS_ABOVE
private static int
CF_POS_AFTER
private static int
CF_POS_BEFORE
private static int
CF_POS_BELOW
private static int
CF_SHIFTER
private static int
CF_SPLIT_VOWEL
private static int
CO
private static char
COENG
private static java.lang.String
CONYO
private static java.lang.String
CORO
private static int
CS
private static int
DA
private static int
DB
private static int
DL
private static int
DR
private int[]
khmerCharClasses
private short[][]
khmerStateTable
private static char
MARK
private static char
NYO
private static int
RB
private static int
SA
private static char
SA_C
private static int
SP
private static char
SRAAA
private static char
SRAAU
private static char
SRAE
private static char
SRAIE
private static char
SRAII
private static char
SRAOE
private static char
SRAOO
private static char
SRAU
private static char
SRAYA
private static char
TRIISAP
private static int
VA
private static int
VR
private static int
XX
private static char
YO
-
Constructor Summary
Constructors Constructor Description KhmerRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getCharClass(char uniChar)
java.lang.String
render(java.lang.String strInput)
Re-order Khmer unicode for display with Khmer.ttf file on Android.private char
strEcombining(char chrInput)
-
-
-
Field Detail
-
XX
private static final int XX
- See Also:
- Constant Field Values
-
CC_COENG
private static final int CC_COENG
- See Also:
- Constant Field Values
-
CC_CONSONANT
private static final int CC_CONSONANT
- See Also:
- Constant Field Values
-
CC_CONSONANT_SHIFTER
private static final int CC_CONSONANT_SHIFTER
- See Also:
- Constant Field Values
-
CC_CONSONANT2
private static final int CC_CONSONANT2
- See Also:
- Constant Field Values
-
CC_CONSONANT3
private static final int CC_CONSONANT3
- See Also:
- Constant Field Values
-
CC_DEPENDENT_VOWEL
private static final int CC_DEPENDENT_VOWEL
- See Also:
- Constant Field Values
-
CC_ROBAT
private static final int CC_ROBAT
- See Also:
- Constant Field Values
-
CC_SIGN_ABOVE
private static final int CC_SIGN_ABOVE
- See Also:
- Constant Field Values
-
CC_SIGN_AFTER
private static final int CC_SIGN_AFTER
- See Also:
- Constant Field Values
-
CF_ABOVE_VOWEL
private static final int CF_ABOVE_VOWEL
- See Also:
- Constant Field Values
-
CF_CLASS_MASK
private static final int CF_CLASS_MASK
- See Also:
- Constant Field Values
-
CF_COENG
private static final int CF_COENG
- See Also:
- Constant Field Values
-
CF_CONSONANT
private static final int CF_CONSONANT
- See Also:
- Constant Field Values
-
CF_DOTTED_CIRCLE
private static final int CF_DOTTED_CIRCLE
- See Also:
- Constant Field Values
-
CF_POS_ABOVE
private static final int CF_POS_ABOVE
- See Also:
- Constant Field Values
-
CF_POS_AFTER
private static final int CF_POS_AFTER
- See Also:
- Constant Field Values
-
CF_POS_BEFORE
private static final int CF_POS_BEFORE
- See Also:
- Constant Field Values
-
CF_POS_BELOW
private static final int CF_POS_BELOW
- See Also:
- Constant Field Values
-
CF_SHIFTER
private static final int CF_SHIFTER
- See Also:
- Constant Field Values
-
CF_SPLIT_VOWEL
private static final int CF_SPLIT_VOWEL
- See Also:
- Constant Field Values
-
C1
private static final int C1
- See Also:
- Constant Field Values
-
C2
private static final int C2
- See Also:
- Constant Field Values
-
C3
private static final int C3
- See Also:
- Constant Field Values
-
CO
private static final int CO
- See Also:
- Constant Field Values
-
CS
private static final int CS
- See Also:
- Constant Field Values
-
DA
private static final int DA
- See Also:
- Constant Field Values
-
DB
private static final int DB
- See Also:
- Constant Field Values
-
DL
private static final int DL
- See Also:
- Constant Field Values
-
DR
private static final int DR
- See Also:
- Constant Field Values
-
RB
private static final int RB
- See Also:
- Constant Field Values
-
SA
private static final int SA
- See Also:
- Constant Field Values
-
SP
private static final int SP
- See Also:
- Constant Field Values
-
VA
private static final int VA
- See Also:
- Constant Field Values
-
VR
private static final int VR
- See Also:
- Constant Field Values
-
BA
private static final char BA
- See Also:
- Constant Field Values
-
COENG
private static final char COENG
- See Also:
- Constant Field Values
-
CONYO
private static final java.lang.String CONYO
-
CORO
private static final java.lang.String CORO
-
khmerCharClasses
private int[] khmerCharClasses
-
khmerStateTable
private short[][] khmerStateTable
-
MARK
private static final char MARK
- See Also:
- Constant Field Values
-
NYO
private static final char NYO
- See Also:
- Constant Field Values
-
SA_C
private static final char SA_C
- See Also:
- Constant Field Values
-
SRAAA
private static final char SRAAA
- See Also:
- Constant Field Values
-
SRAAU
private static final char SRAAU
- See Also:
- Constant Field Values
-
SRAE
private static final char SRAE
- See Also:
- Constant Field Values
-
SRAIE
private static final char SRAIE
- See Also:
- Constant Field Values
-
SRAII
private static final char SRAII
- See Also:
- Constant Field Values
-
SRAOE
private static final char SRAOE
- See Also:
- Constant Field Values
-
SRAOO
private static final char SRAOO
- See Also:
- Constant Field Values
-
SRAU
private static final char SRAU
- See Also:
- Constant Field Values
-
SRAYA
private static final char SRAYA
- See Also:
- Constant Field Values
-
TRIISAP
private static final char TRIISAP
- See Also:
- Constant Field Values
-
YO
private static final char YO
- See Also:
- Constant Field Values
-
-
Method Detail
-
strEcombining
private char strEcombining(char chrInput)
-
getCharClass
private int getCharClass(char uniChar)
-
render
public java.lang.String render(java.lang.String strInput)
Re-order Khmer unicode for display with Khmer.ttf file on Android.- Parameters:
strInput
- Khmer unicode string.- Returns:
- String after render.
-
-