-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
In linebender/parley#452 (comment), we identified that it might be useful for consumers of HarfRust to have access to the normalization data to prevent storing duplicate table data in binaries.
Per @dfrg's comment, as a consumer of HarfRust, Parley also wants to match HarfRust so using a single source of truth is beneficial to maintain consistency between shaping and other stages of the text pipeline.
The options of implementation vary:
- Simply expose
normalize_nfc/normalize_nfdfunctions fromunicode.rs - Expose the tables themselves and push consumers to write their own
normalize_nfc/normalize_nfdfunctions using the data - Split out the data into its own crate, ask consumers to pass in a trait that implements what HarfRust requires while supporting a
bakedor similar feature flag - ...
I think the most important question I have is whether there's appetite for this sort of change.
There are other opportunities of deduplication like potentially the CharExt but I think it might be best to start the dialogue with normalization data?
dfrg
Metadata
Metadata
Assignees
Labels
No labels