Change the definition of IS_ARABIC_ALPHABETIC to correct the display of Persian and Urdu numerals. Bug 82347, r=mkaply, sr=kin
git-svn-id: svn://10.0.0.236/trunk@107981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -275,8 +275,11 @@ class nsIUBidiUtils : public nsISupports {
|
||||
#define END_HINDI_DIGITS 0x0669
|
||||
#define START_ARABIC_DIGITS 0x0030
|
||||
#define END_ARABIC_DIGITS 0x0039
|
||||
#define START_FARSI_DIGITS 0x06f0
|
||||
#define END_FARSI_DIGITS 0x06f9
|
||||
#define IS_HINDI_DIGIT(u) ( ( (u) >= START_HINDI_DIGITS ) && ( (u) <= END_HINDI_DIGITS ) )
|
||||
#define IS_ARABIC_DIGIT(u) ( ( (u) >= START_ARABIC_DIGITS ) && ( (u) <= END_ARABIC_DIGITS ) )
|
||||
#define IS_FARSI_DIGIT(u) ( ( (u) >= START_FARSI_DIGITS ) && ( (u) <= END_FARSI_DIGITS ) )
|
||||
|
||||
#define IS_BIDI_DIACRITIC(u) ( \
|
||||
( (u) >= 0x0591 && (u) <= 0x05A1) || ( (u) >= 0x05A3 && (u) <= 0x05B9) \
|
||||
@@ -291,7 +294,7 @@ class nsIUBidiUtils : public nsISupports {
|
||||
#define IS_FE_CHAR(c) (((0xfb50 <= (c)) && ((c)<= 0xfbFF)) \
|
||||
|| ((0xfe70 <= (c)) && ((c)<= 0xfeFC)))
|
||||
#define IS_ARABIC_CHAR(c) ((0x0600 <= (c)) && ((c)<= 0x06FF))
|
||||
#define IS_ARABIC_ALPHABETIC(c) (IS_ARABIC_CHAR(c) && !IS_HINDI_DIGIT(c))
|
||||
#define IS_ARABIC_ALPHABETIC(c) (IS_ARABIC_CHAR(c) && !(IS_HINDI_DIGIT(c) || IS_FARSI_DIGIT(c)))
|
||||
|
||||
#define CHAR_IS_BIDI(c) ( (IS_HINDI_DIGIT(c) ) || (IS_HEBREW_CHAR(c) ) \
|
||||
|| (IS_06_CHAR(c) ) || (IS_FE_CHAR(c) ) )
|
||||
|
||||
Reference in New Issue
Block a user