RESOLVED CONFIGURATION CHANGED117320
TextBreakIteratorWchar.cpp should support line breaks with Asian characters
https://bugs.webkit.org/show_bug.cgi?id=117320
Summary TextBreakIteratorWchar.cpp should support line breaks with Asian characters
Mark Salisbury
Reported 2013-06-06 14:24:58 PDT
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
Mark Salisbury
Comment 1 2013-06-13 14:26:18 PDT
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
Comment 2 2025-08-28 03:17:27 PDT
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.
Note You need to log in before you can comment on or make changes to this bug.