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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 13 19:23:14 PDT 2010


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

           Summary: Need more sophisticated line breaking rule for CJK
                    about quotation marks
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Text
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: phnixwxz at gmail.com


For now, all quotation marks in CJK text are considered prohibiting line
breaking both before and after them. This is not unacceptable, but a
sophisticated CJK text layout software should also consider the opening and
closing natures of the quotation marks and apply different line breaking rules.

For example, the following Chinese text

一二三四五六七八九“甲乙丙丁”

is displayed in a container whose width can contain 10 Chinese characters.

In current WebKit, the above text will be displayed as:

一二三四五六七八
九“甲乙丙丁”

while all word-processing software and other browsers (IE, Firefox) will
display the text as:

一二三四五六七八九
“甲乙丙丁”

which better utilizes the container space and looks better to Chinese people.

Firefox implemented an algorithm (https://wiki.mozilla.org/Gecko:Line_Breaking
http://mxr.mozilla.org/mozilla1.9.2/source/intl/lwbrk/src/nsJISx4501LineBreaker.cpp)
conforming to the JIS X 4051 standard (Formatting rules for Japanese documents)
which also applies to Chinese and Korean documents.

I'd like to add JIS X 4501 support in WebKit. What's the rule about importing
source code of other licenses?

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