lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 10/07/2018 23:56, Gregg Reynolds wrote:


On Tue, Jul 10, 2018, 4:44 PM Gregg Reynolds <dev@mobileink.com> wrote:

 (e.g. numbers in ltr scripts).

Correction: numbers in rtl scripts. Unicode says that numbers in e.g. Arabic are ltr. This is complete BS, but it is also a fact on the ground that cannot be fixed. Extra credit: estimate the cost of this very fundamental mistake.

I'm not sure it's a mistake, it may be a well-though design compromise.

In arabic, the numbers are written in the same orientation as we do in european languages, because of a double inversion: from right to left, they first write the unit, then the 10s, then the 100s... the end result being that in both writing systems, the units go to the right and the heavier digits go to the left.

See https://ar.wikipedia.org/wiki/%D8%AE%D8%B7_%D8%B2%D9%85%D9%86%D9%8A_%D9%84%D8%AA%D8%A7%D8%B1%D9%8A%D8%AE_%D8%A7%D9%84%D8%B9%D8%A7%D9%84%D9%85 for examples. (It's the arabic counterpart to https://en.wikipedia.org/wiki/Timelines_of_world_history with plenty of numbers in a non-mathematical context.)

Frederic