[1.5.0 -> 2.1.1] Conversion help with icu::properties. #7374
-
|
I need help converting the lines below using ICU4X 1.5.0 to the approach used in version 2.1.1. Where |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
So these things are now constructed with methods on CodePointSetData. https://unicode-org.github.io/icu4x/rustdoc/icu/properties/struct.CodePointSetData.html#method.new But looking at this, we no longer have buffer provider methods on CodePointSetData. Generally we suggest people use baked data ( Either way, we probably should add a buffer constructor, cc @sffc |
Beta Was this translation helpful? Give feedback.
-
|
Originally, ICU4X only had data providers for external data. Later, internal baked data became available, which was a significant feature, particularly when only specific properties were included. However, at the time, the baked data was only a subset of the CLDR data, and if needed, more comprehensive data than the basic data would require the use of external data stored in files. Additionally, data providers allowed for custom data of private regions, which, to the best of my knowledge, is not included in the CLDR. |
Beta Was this translation helpful? Give feedback.
Found the cause of the issue by taking a wild guess. In
Cargo.toml, the lineicu_propertieswas missing, features = [ "serde" ].Perhaps the crates of ICU4X could include the available features for the crate on the root document page.