Class KhmerRenderer
- java.lang.Object
-
- org.apache.fop.complexscripts.scripts.KhmerRenderer
-
public class KhmerRenderer extends java.lang.ObjectUnicodeRender 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 charBAprivate static intC1private static intC2private static intC3private static intCC_COENGprivate static intCC_CONSONANTprivate static intCC_CONSONANT_SHIFTERprivate static intCC_CONSONANT2private static intCC_CONSONANT3private static intCC_DEPENDENT_VOWELprivate static intCC_ROBATprivate static intCC_SIGN_ABOVEprivate static intCC_SIGN_AFTERprivate static intCF_ABOVE_VOWELprivate static intCF_CLASS_MASKprivate static intCF_COENGprivate static intCF_CONSONANTprivate static intCF_DOTTED_CIRCLEprivate static intCF_POS_ABOVEprivate static intCF_POS_AFTERprivate static intCF_POS_BEFOREprivate static intCF_POS_BELOWprivate static intCF_SHIFTERprivate static intCF_SPLIT_VOWELprivate static intCOprivate static charCOENGprivate static java.lang.StringCONYOprivate static java.lang.StringCOROprivate static intCSprivate static intDAprivate static intDBprivate static intDLprivate static intDRprivate int[]khmerCharClassesprivate short[][]khmerStateTableprivate static charMARKprivate static charNYOprivate static intRBprivate static intSAprivate static charSA_Cprivate static intSPprivate static charSRAAAprivate static charSRAAUprivate static charSRAEprivate static charSRAIEprivate static charSRAIIprivate static charSRAOEprivate static charSRAOOprivate static charSRAUprivate static charSRAYAprivate static charTRIISAPprivate static intVAprivate static intVRprivate static intXXprivate static charYO
-
Constructor Summary
Constructors Constructor Description KhmerRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intgetCharClass(char uniChar)java.lang.Stringrender(java.lang.String strInput)Re-order Khmer unicode for display with Khmer.ttf file on Android.private charstrEcombining(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.
-
-