[Webkit-unassigned] [Bug 20677] Webkit wraps between hyphen–minus and numeric characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 29 19:54:07 PDT 2010


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


Xianzhu Wang <phnixwxz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mitz at webkit.org




--- Comment #8 from Xianzhu Wang <phnixwxz at gmail.com>  2010-07-29 19:54:07 PST ---
(In reply to comment #7)
> IE8 has changed the way of handling hyphens in standard mode to catch up the standard. See bug 37698 for details. The patch submitted in bug 37698 can also fix this bug.

The patch of bug 37698 has been landed, but this bug is unaffected.

There might be several methods to fix this bug:

1. Based on the patch of bug 37698, change the line breaking matrix about '-', disallowing line breaking between '-' and digits;
2. Same as above, but for the case of '-' before digits, let the underlying ICU handle it;
3. Implement a stateful line breaking algorithm like the one in Firefox.

I just did tests of method 1 and 2, the results seem the same, that is, ICU just simply disallows line breaking between '-' and digits. UAX#14 LB25 also contains a 'HY x NU' rule. So method 1 seems the simplest solution.

I'd like to hear your opinions.

-- 
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