You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are all numbers equal in category and directional property?
Digit 2 (U+0032) is of category "EN, European Number". OK.
Arabic-digit indic ٢ (U+0662) is of category "AN, Arabic number". OK.
but the other ۲ (U+06F2), the Eastern Arabic-Indic counterpart of it, is of category "EN, European Number" like digit 2. Any reason to this difference between the last two?
There is also a difference in Bidi behavior : the same visual text
will be displayed in RTL context as if is Arabic number, and , if European number (simply like "a 2 b"). Aren't ALL numbers WEAK in directional property?
The text was updated successfully, but these errors were encountered:
As far as I remember, the difference in bidi category between Arabic-Indic digits and Eastern Arabic-Indic digits is due to the difference in bidi behavior desired in Arabic vs. Persian. Details should be available from Unicode.
As of Unicode 4.0, the Bidirectional Character Types of a few Indic characters were altered so that the Bidirectional Algorithm preserves canonical equivalence. That is, two canonically equivalent strings will result in equivalent ordering after applying the algorithm."
I guess the "few Indic characters" are the Eastern Arabic-Indic digits in range U+06F0..U+06F9, which are classified "European Number" vs "Arabic numbers".
I wonder what is the "canonical equivalence" problem in question. Didn't find more details.
I remember @roozbehp (which I guess won't get pinged by my mentioning here), somewhere on a very old mailing list discussion, something like 2001(?), wrote he was explaining to a developer why these are different, so if my memory on this is correct, perhaps he would be a good person to ask about the reason of the difference.
r12a
changed the title
Bidi Category of numbers are different
Why are Bidi Category of numbers different?
Mar 8, 2019
r12a
changed the title
Why are Bidi Category of numbers different?
Why are bdi categories of numbers different?
Mar 8, 2019
r12a
changed the title
Why are bdi categories of numbers different?
Why are bidi categories of Arabic-indic & Eastern Arabic numbers different?
Mar 8, 2019
Are all numbers equal in category and directional property?
There is also a difference in Bidi behavior : the same visual text
will be displayed in RTL context as if is Arabic number, and , if European number (simply like "a 2 b"). Aren't ALL numbers WEAK in directional property?
The text was updated successfully, but these errors were encountered: