Skip to main content

Crate parley_data

Crate parley_data 

Source
Expand description

Parley Data packages the Unicode data that Parley’s text analysis and shaping pipeline needs at runtime. It exposes Unicode character Properties backed by compact PackTab lookup tables, allowing the engine to obtain all required character properties with a single lookup.

WARNING: This crate is currently designed only for use within Parley; if you have a use case for it, please reach out.

§Features

The following crate feature flags are available:

  • std (enabled by default): This is currently unused and is provided for forward compatibility.

Note that Parley Data requires that an allocator is available (i.e. it depends on alloc). Currently, Parley Data does not actually allocate, but the dependency is kept so starting to allocate in the future is not a breaking change.

§Regenerating the baked data

Run the following from the repository root to regenerate the baked data:

cargo run -p parley_data_gen -- ./parley_data/src/generated
cargo fmt -p parley_data

Structs§

Properties
Unicode character properties relevant for text analysis.