Package com.lowagie.text.pdf
Class ArabicLigaturizer
java.lang.Object
com.lowagie.text.pdf.ArabicLigaturizer
Deprecated.
Shape arabic characters. This code was inspired by an LGPL'ed C library: Pango ( see http://www.pango.com/ ). Note
that the code of this is the original work of Paulo Soares. Hence it is perfectly justifiable to distribute it under
the MPL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.private static final char[][]Deprecated.private static final charDeprecated.static final intDeprecated.Digit type option: Use Arabic-Indic digits (U+0660...U+0669).static final intDeprecated.Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).static final intDeprecated.Bit mask for digit type options.static final intDeprecated.Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039).static final intDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits.static final intDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).static final intDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).static final intDeprecated.Bit mask for digit shaping options.private static final intDeprecated.Not a valid option value.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated.private static final charDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intarabic_shape(char[] src, int srcoffset, int srclength, char[] dest, int destoffset, int destlength, int level) Deprecated.(package private) static charcharshape(char s, int which) Deprecated.(package private) static booleanDeprecated.(package private) static voidcopycstostring(StringBuffer string, ArabicLigaturizer.CharStruct s, int level) Deprecated.(package private) static voiddoublelig(StringBuffer string, int level) Deprecated.(package private) static booleanisVowel(char s) Deprecated.(package private) static intligature(char newchar, ArabicLigaturizer.CharStruct oldchar) Deprecated.(package private) static voidprocessNumbers(char[] text, int offset, int length, int options) Deprecated.(package private) static voidshape(char[] text, StringBuffer string, int level) Deprecated.(package private) static intshapecount(char s) Deprecated.(package private) static voidshapeToArabicDigitsWithContext(char[] dest, int start, int length, char digitBase, boolean lastStrongWasAL) Deprecated.Given an array of characters, process a section of it, and replace European numeral characters (0-9) with Arabic numeral characters (depending on thedigitBase) if the characters are preceded by Arabic characters.
-
Field Details
-
ar_nothing
public static final int ar_nothingDeprecated.- See Also:
-
ar_novowel
public static final int ar_novowelDeprecated.- See Also:
-
ar_composedtashkeel
public static final int ar_composedtashkeelDeprecated.- See Also:
-
ar_lig
public static final int ar_ligDeprecated.- See Also:
-
DIGITS_EN2AN
public static final int DIGITS_EN2ANDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits.- See Also:
-
DIGITS_AN2EN
public static final int DIGITS_AN2ENDeprecated.Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039).- See Also:
-
DIGITS_EN2AN_INIT_LR
public static final int DIGITS_EN2AN_INIT_LRDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be not an Arabic, letter, so European digits at the start of the text will not change. Compare to DIGITS_ALEN2AN_INIT_AL.- See Also:
-
DIGITS_EN2AN_INIT_AL
public static final int DIGITS_EN2AN_INIT_ALDeprecated.Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be an Arabic, letter, so European digits at the start of the text will change. Compare to DIGITS_ALEN2AN_INT_LR.- See Also:
-
DIGITS_MASK
public static final int DIGITS_MASKDeprecated.Bit mask for digit shaping options.- See Also:
-
DIGIT_TYPE_AN
public static final int DIGIT_TYPE_ANDeprecated.Digit type option: Use Arabic-Indic digits (U+0660...U+0669).- See Also:
-
DIGIT_TYPE_AN_EXTENDED
public static final int DIGIT_TYPE_AN_EXTENDEDDeprecated.Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).- See Also:
-
DIGIT_TYPE_MASK
public static final int DIGIT_TYPE_MASKDeprecated.Bit mask for digit type options.- See Also:
-
ALEF
private static final char ALEFDeprecated.- See Also:
-
ALEFHAMZA
private static final char ALEFHAMZADeprecated.- See Also:
-
ALEFHAMZABELOW
private static final char ALEFHAMZABELOWDeprecated.- See Also:
-
ALEFMADDA
private static final char ALEFMADDADeprecated.- See Also:
-
LAM
private static final char LAMDeprecated.- See Also:
-
HAMZA
private static final char HAMZADeprecated.- See Also:
-
TATWEEL
private static final char TATWEELDeprecated.- See Also:
-
ZWJ
private static final char ZWJDeprecated.- See Also:
-
HAMZAABOVE
private static final char HAMZAABOVEDeprecated.- See Also:
-
HAMZABELOW
private static final char HAMZABELOWDeprecated.- See Also:
-
WAWHAMZA
private static final char WAWHAMZADeprecated.- See Also:
-
YEHHAMZA
private static final char YEHHAMZADeprecated.- See Also:
-
WAW
private static final char WAWDeprecated.- See Also:
-
ALEFMAKSURA
private static final char ALEFMAKSURADeprecated.- See Also:
-
YEH
private static final char YEHDeprecated.- See Also:
-
FARSIYEH
private static final char FARSIYEHDeprecated.- See Also:
-
SHADDA
private static final char SHADDADeprecated.- See Also:
-
KASRA
private static final char KASRADeprecated.- See Also:
-
FATHA
private static final char FATHADeprecated.- See Also:
-
DAMMA
private static final char DAMMADeprecated.- See Also:
-
MADDA
private static final char MADDADeprecated.- See Also:
-
LAM_ALEF
private static final char LAM_ALEFDeprecated.- See Also:
-
LAM_ALEFHAMZA
private static final char LAM_ALEFHAMZADeprecated.- See Also:
-
LAM_ALEFHAMZABELOW
private static final char LAM_ALEFHAMZABELOWDeprecated.- See Also:
-
LAM_ALEFMADDA
private static final char LAM_ALEFMADDADeprecated.- See Also:
-
chartable
private static final char[][] chartableDeprecated. -
DIGITS_RESERVED
private static final int DIGITS_RESERVEDDeprecated.Not a valid option value.- See Also:
-
-
Constructor Details
-
ArabicLigaturizer
public ArabicLigaturizer()Deprecated.
-
-
Method Details
-
isVowel
static boolean isVowel(char s) Deprecated. -
charshape
static char charshape(char s, int which) Deprecated. -
shapecount
static int shapecount(char s) Deprecated. -
ligature
Deprecated. -
copycstostring
Deprecated. -
doublelig
Deprecated. -
connects_to_left
Deprecated. -
shape
Deprecated. -
arabic_shape
static int arabic_shape(char[] src, int srcoffset, int srclength, char[] dest, int destoffset, int destlength, int level) Deprecated. -
processNumbers
static void processNumbers(char[] text, int offset, int length, int options) Deprecated. -
shapeToArabicDigitsWithContext
static void shapeToArabicDigitsWithContext(char[] dest, int start, int length, char digitBase, boolean lastStrongWasAL) Deprecated.Given an array of characters, process a section of it, and replace European numeral characters (0-9) with Arabic numeral characters (depending on thedigitBase) if the characters are preceded by Arabic characters.- Parameters:
dest- The array of characters to be processed. Must not benull, and must have a length greater than0.start- The start index of the characters to be processed. The value must be greater than, or equal to,0and less than the length of the arraydest.length- The number of characters to process.length+startmust be less than, or equal to, the length of the arraydest.digitBase- The code of the character which represents the numeral 0 into which the European numbers should be converted. For instance, Arabic-Indic digits begin at'٠', and Eastern Arabic-Indic digits (Persian and Urdu) begin at'۰'.lastStrongWasAL- A boolean flag indicating whether or not the character preceding the array of characters to be processed was an Arabic character, or not.
-
LayoutProcessoror render your Fonts using FOP so glyph substitution is done correctly.