cosmic-text
cosmic-text copied to clipboard
Do you need Unicode text segmentation?
Hi, I'm from the ICU4X team. We're an open source project building i18n components in Rust.
I noticed in your README that you support "basic" line layout. If you need to support full UAX 14 line break, including models for Southeast Asian languages, I wanted to suggest ICU4X, the icu_segmenter crate.
icu4x.unicode.org
We use this for uax 14, is it sufficient https://docs.rs/unicode-linebreak/latest/unicode_linebreak/
Ok! The main extra functionally icu_segmenter brings to the table are the models for Southeast Asian line break.
Actually I think a good solution here would be to have a trait that can be implemented on top of your choice of underlying UAX 14 engine.