public class ArabicLigaturizer extends Object implements LanguageProcessor
Modifier and Type | Field and Description |
---|---|
static int |
ar_composedtashkeel |
static int |
ar_lig |
static int |
ar_nothing |
static int |
ar_novowel |
static int |
DIGIT_TYPE_AN
Digit type option: Use Arabic-Indic digits (U+0660...U+0669).
|
static int |
DIGIT_TYPE_AN_EXTENDED
Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).
|
static int |
DIGIT_TYPE_MASK
Bit mask for digit type options.
|
static int |
DIGITS_AN2EN
Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039).
|
static int |
DIGITS_EN2AN
Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits.
|
static int |
DIGITS_EN2AN_INIT_AL
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 int |
DIGITS_EN2AN_INIT_LR
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 int |
DIGITS_MASK
Bit mask for digit shaping options.
|
protected int |
options |
protected int |
runDirection |
Constructor and Description |
---|
ArabicLigaturizer() |
ArabicLigaturizer(int runDirection, int options) |
Modifier and Type | Method and Description |
---|---|
static int |
arabic_shape(char[] src, int srcoffset, int srclength, char[] dest, int destoffset, int destlength, int level) |
static Character |
getReverseMapping(char c) |
boolean |
isRTL()
Arabic is written from right to left.
|
String |
process(String s)
Processes a String
|
static void |
processNumbers(char[] text, int offset, int length, int options) |
public static final int ar_nothing
public static final int ar_novowel
public static final int ar_composedtashkeel
public static final int ar_lig
public static final int DIGITS_EN2AN
public static final int DIGITS_AN2EN
public static final int DIGITS_EN2AN_INIT_LR
public static final int DIGITS_EN2AN_INIT_AL
public static final int DIGITS_MASK
public static final int DIGIT_TYPE_AN
public static final int DIGIT_TYPE_AN_EXTENDED
public static final int DIGIT_TYPE_MASK
protected int options
protected int runDirection
public ArabicLigaturizer()
public ArabicLigaturizer(int runDirection, int options)
public static int arabic_shape(char[] src, int srcoffset, int srclength, char[] dest, int destoffset, int destlength, int level)
public static void processNumbers(char[] text, int offset, int length, int options)
public static Character getReverseMapping(char c)
public String process(String s)
LanguageProcessor
process
in interface LanguageProcessor
s
- the original String
public boolean isRTL()
isRTL
in interface LanguageProcessor
LanguageProcessor.isRTL()
Copyright © 1998–2024. All rights reserved.