[Webkit-unassigned] [Bug 37543] Need more sophisticated line breaking rule for CJK about quotation marks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 14 23:18:34 PDT 2010


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





--- Comment #2 from Xianzhu Wang <phnixwxz at gmail.com>  2010-04-14 23:18:34 PST ---
Though UAX14 says that by default quotation marks "act like they are both
opening and closing" thus prohibit line breaks both before and after it, there
is also a note: "If language information is available, it can be used to
determine which character is used as the opening quote and which as the closing
quote. ... the quotation marks could be tailored to either OP or CL depending
on their actual usage."

Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=450088 contains
detailed discussions about the quotation mark line breaking issue.

Mozilla's rule about quotation marks are as follows (not including the
quotation marks that already have OP or CL line breaking properties):

1. The following left quotation marks are treated as opening punctuations
(prohibiting break after) in all language contexts:

201B;QU # SINGLE HIGH-REVERSED-9 QUOTATION MARK
201F;QU # DOUBLE HIGH-REVERSED-9 QUOTATION MARK

2. The following left quotation marks are treated as opening punctuations
(prohibiting break after) in CJK contexts (where the next character is CJK a
character):

00AB;QU # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
2018;QU # LEFT SINGLE QUOTATION MARK
201C;QU # LEFT DOUBLE QUOTATION MARK

3. The following right quotation marks are treated as closing punctuations
(prohibiting break before) in all language contexts:

2019;QU # RIGHT SINGLE QUOTATION MARK
201D;QU # RIGHT DOUBLE QUOTATION MARK

I think the above 1 should be combined into 2 because 201B and 201F has the
same semantic as 2018 and 201C respectively.

I think the solution might be either pushing icu to add this functionality or
implementing an extra layer over icu in webkit code.

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