Bug 117320
| Summary: | TextBreakIteratorWchar.cpp should support line breaks with Asian characters | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Salisbury <mark.salisbury> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | fantasai.bugs, glenn, syoichi |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mark Salisbury
Non-ICU unicode support (Wchar) does not have a line breaking implementation beyond simply testing "category(c) != Separator_Line". This causes Asian text to not wrap correctly. Also, it should take into account prior context when breaking lines (see https://bugs.webkit.org/show_bug.cgi?id=105692#c52).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Salisbury
Wchar unicode has bigger problems: it doesn't have basic unicode support, including support for determining the category for a specified category. Without addressing that there's no good way to fix this issue.
I sent a message to webkit-dev a few days ago raising the possibility of embedding limited parts of ICU in order to provide a much lighter weight but functional unicode implementation.
Not much response - just one "I'm interested in this too, any updates?".
fantasai
AFAICT WebKit breaks lines correctly at this point for Asian text. Closing this out, please file a new issue and assign to me if there are specific cases that are broken.