You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UAX#14 can be used directly in most latin languages, but is not enough for CJK. In UAX#14 §8 Customization:
A real-world line breaking algorithm has to be tailorable to some degree to meet user or document requirements. …
In Japanese, for example, tighter and looser specifications of prohibited line breaks may be used.
The most noticeable gap between vanilla UAX#14 and Chinese/Japanese convention is the handling of quotation marks. Here is an example:
Activity
Jisu-Woniu commentedon May 4, 2023
There is an official icu4x implementation in Rust by Unicode.
peng1999 commentedon May 4, 2023
Unfortunately icu4x does not support Chinese/Japanese line break tailoring like ICU. See unicode-org/icu4x#3284
[-]Language aware line breakpoint[/-][+]Language-aware line breakpoints[/+]peng1999 commentedon May 18, 2023
I have found a way to patch the data generater in icu4x, which now allows it to generate a line break rule data for Chinese/Japanese.