How to use segmenter #2877
-
I have a simple use case, I'm wrapping some text for a text file at 80 columns. I take an unwrapped line and need to find the last line break before the max line width. I'm 99% sure what I want is The documentation example shows
Sorry for the dump of topics, I've read the data provider, tutorials, etc. but I'm not getting the full picture here so I'm not sure what's relevant and what's not. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @andrewbaxter! These are all super valid questions! ICU4X Segmenter is still experimental and currently planned for a full stable release in 1.2 (spring 2023), at which point we'll make sure that the developer experience is where it should be. In the mean time:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @andrewbaxter!
These are all super valid questions! ICU4X Segmenter is still experimental and currently planned for a full stable release in 1.2 (spring 2023), at which point we'll make sure that the developer experience is where it should be. In the mean time:
icu_testdata
to get bootstrapped. In general, the recommendation is that you use icu4x-datagen to build your data file. For certain components like Segmenter, I'd like to see us start shipping data directly on crates.io; #2888 is a follow-up.icu_segmenter
feature on icu_testdata. You won'…