com.itextpdf.text.pdf.languages
Class IndicLigaturizer

java.lang.Object
  extended by com.itextpdf.text.pdf.languages.IndicLigaturizer
All Implemented Interfaces:
LanguageProcessor
Direct Known Subclasses:
DevanagariLigaturizer, GujaratiLigaturizer

public abstract class IndicLigaturizer
extends Object
implements LanguageProcessor

Superclass for processors that can convert a String of bytes in an Indic language to a String in the same language of which the bytes are reordered for rendering using a font that contains the necessary glyphs.


Field Summary
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 Summary
IndicLigaturizer()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MATRA_AA

public static final int MATRA_AA
See Also:
Constant Field Values

MATRA_I

public static final int MATRA_I
See Also:
Constant Field Values

MATRA_E

public static final int MATRA_E
See Also:
Constant Field Values

MATRA_AI

public static final int MATRA_AI
See Also:
Constant Field Values

MATRA_HLR

public static final int MATRA_HLR
See Also:
Constant Field Values

MATRA_HLRR

public static final int MATRA_HLRR
See Also:
Constant Field Values

LETTER_A

public static final int LETTER_A
See Also:
Constant Field Values

LETTER_AU

public static final int LETTER_AU
See Also:
Constant Field Values

LETTER_KA

public static final int LETTER_KA
See Also:
Constant Field Values

LETTER_HA

public static final int LETTER_HA
See Also:
Constant Field Values

HALANTA

public static final int HALANTA
See Also:
Constant Field Values

langTable

protected char[] langTable
The table mapping specific character indexes to the characters in a specific language.

Constructor Detail

IndicLigaturizer

public IndicLigaturizer()
Method Detail

process

public String process(String s)
Reorders the bytes in a String making Indic ligatures

Specified by:
process in interface LanguageProcessor
Parameters:
s - the original String
Returns:
the ligaturized String

isRTL

public boolean isRTL()
Indic languages are written from right to left.

Specified by:
isRTL in interface LanguageProcessor
Returns:
false
See Also:
LanguageProcessor.isRTL()

IsSwaraLetter

protected boolean IsSwaraLetter(char ch)
Checks if a character is vowel letter.

Parameters:
ch - the character that needs to be checked
Returns:
true if the characters is a vowel letter

IsSwaraMatra

protected boolean IsSwaraMatra(char ch)
Checks if a character is vowel sign.

Parameters:
ch - the character that needs to be checked
Returns:
true if the characters is a vowel sign

IsVyanjana

protected boolean IsVyanjana(char ch)
Checks if a character is consonant letter.

Parameters:
ch - the character that needs to be checked
Returns:
true if the chracter is a consonant letter


Copyright © 2013. All Rights Reserved.