[webkit-dev] Line breaking

Xianzhu Wang phnixwxz at gmail.com
Sun Oct 31 20:45:40 PDT 2010


Hi, Adam,

I have recently worked on several issues about line breaking. Glad to hear
your plans. Actually I'm a bit tired of waiting for responses about the
issues (and about some other 'old' layout bugs). Your involvement would
greatly help resolve them.

What I have done on these issues are as follows. Hope these information will
be useful for you.

1) https://bugs.webkit.org/show_bug.cgi?id=37698: I wrote a test to generate
line breaking matrix for each browser. However, the test can't reflect some
stateful behaviors of some browsers. The patch extends the original ASCII
line breaking rule dealing with line-breaking only after '?' and hyphen to a
full line breaking matrix to allow line breaking after ')', '}' and ']'. The
patch has been landed.

2) https://bugs.webkit.org/show_bug.cgi?id=20677: I created a simple patch
that disallows line-breaking between a digit and a hyphen. Waiting for
review and/or responses.

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

I think fixing 2) and 3) might need a refactory to the line breaking code.
The break_lines.cpp looks weird because of its non-standard filename and
because it inserts a pure C functional layer into OO code. It causes
difficulties to implement a stateful line-breaking algorithm. For ICU
implementation, break_lines.cpp also causes many unnecessary ubrk_setText()
calls. My thought is to move the logic in break_lines.cpp down into the
implementations of TextBreakIterator, so that the interface could be
stateful.

Please let me know if I could be any help.

Thanks,
Xianzhu

2010/10/29 Adam Barth <abarth at webkit.org>

> In looking at a bunch of web compat bugs filed in the Chromium bug
> tracker, it seems like WebKit's line breaking behavior is a major
> source of compatibility problems.  I'm currently writing a test suite
> to reverse engineer the line breaking behavior of other browsers.  I'm
> not familiar with the history of WebKit's line breaking behavior.  Who
> would be a good person to talk with about these issues?
>
> Thanks,
> Adam
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101101/94ce3371/attachment.html>


More information about the webkit-dev mailing list