Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you need Unicode text segmentation? #133

Open
sffc opened this issue May 24, 2023 · 2 comments
Open

Do you need Unicode text segmentation? #133

sffc opened this issue May 24, 2023 · 2 comments

Comments

@sffc
Copy link

sffc commented May 24, 2023

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

@jackpot51
Copy link
Member

We use this for uax 14, is it sufficient https://docs.rs/unicode-linebreak/latest/unicode_linebreak/

@sffc
Copy link
Author

sffc commented May 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants