public abstract class IndicLigaturizer extends Object implements LanguageProcessor
Modifier and Type | Field and Description |
---|---|
static int |
HALANTA |
protected char[] |
langTable
The table mapping specific character indexes to the characters in a specific language.
|
static int |
LETTER_A |
static int |
LETTER_AU |
static int |
LETTER_HA |
static int |
LETTER_KA |
static int |
MATRA_AA |
static int |
MATRA_AI |
static int |
MATRA_E |
static int |
MATRA_HLR |
static int |
MATRA_HLRR |
static int |
MATRA_I |
Constructor and Description |
---|
IndicLigaturizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRTL()
Indic languages are written from right to left.
|
protected boolean |
IsSwaraLetter(char ch)
Checks if a character is vowel letter.
|
protected boolean |
IsSwaraMatra(char ch)
Checks if a character is vowel sign.
|
protected boolean |
IsVyanjana(char ch)
Checks if a character is consonant letter.
|
String |
process(String s)
Reorders the bytes in a String making Indic ligatures
|
public static final int MATRA_AA
public static final int MATRA_I
public static final int MATRA_E
public static final int MATRA_AI
public static final int MATRA_HLR
public static final int MATRA_HLRR
public static final int LETTER_A
public static final int LETTER_AU
public static final int LETTER_KA
public static final int LETTER_HA
public static final int HALANTA
protected char[] langTable
public String process(String s)
process
in interface LanguageProcessor
s
- the original String
public boolean isRTL()
isRTL
in interface LanguageProcessor
LanguageProcessor.isRTL()
protected boolean IsSwaraLetter(char ch)
ch
- the character that needs to be checked
protected boolean IsSwaraMatra(char ch)
ch
- the character that needs to be checked
protected boolean IsVyanjana(char ch)
ch
- the character that needs to be checked
Copyright © 2016. All rights reserved.