[FriBidi] MS-Word bidirectional behaviour
Khaled Hosny
khaledhosny at eglug.org
Sat Dec 10 14:16:43 UTC 2016
On Fri, Dec 09, 2016 at 07:37:00PM +0100, Eduardo Castiñeyra wrote:
> Hi guys,
>
> We have users in Iran who are complaining about our app not behaving the way
> MS-Word does when it comes to directional ordering.
>
> In most applications, if one writes the sentence "In an attack of an F14 780
> people died" in Persian with no RTL marks one gets the following:
>
> هواپیماهای F14 ۷۸۰ نفر را مصدوم کردند.
>
> Obviously the ۷۸۰ number is missplaced, it should be on the left side of
> F14. Even if the numerals were Persian, most applications get the ۷۸۰ in the
> wrong position, and so does FriBiDi.
Note that Arabic-Indic digits (used in Arabic) and Extended Arabic-Indic
digits (used in Persian) have different bidi categories (for reasons
that escape me), if you use Arabic-Indic ٧٨٠ you get your expected
position, so it might be that MS Word is giving both sets of digits the
same bidi category (which, if true, wouldn’t be the first time it
differs from the spec).
Regards,
Khaled
More information about the fribidi
mailing list