[Webkit-unassigned] [Bug 49111] [RTL] Arabic/AB - after typing a date, cursors doesn't go back

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 20 12:29:17 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49111





--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2010-12-20 12:29:16 PST ---
The problem comes from the fact arabic numerals are rendered left to right yet flow like RTL text.  Say we had 12ABC where 12 are arabic numerals and ABC are arabic letters.  Then it's rendered as:
CBA12.

We if only had ABC in a LTR block, then the corresponding offsets are
(0)C(2)B(1)A(3).

Similarly, if we had 12 in a LTR block, then the offsets are:
(0)1(1)2(2).

Now combine these two, we get (on WebKit TOT):
(0)C(4)B(3)A1(1)2(2)(5). 

Clearly, either offset 2 or 5 must be between A and 1.  On Firefox, the offset 2 is between A and 1 so I'm inclined to say that we should do the same but this would break a lot of assumptions we make and likely to require a lot of code change.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list