Make LineBreakPropertyTable and RuleBreakPropertyTable serializable #1638
Labels
C-segmentation
Component: Segmentation
S-medium
Size: Less than a week (larger bug fix or enhancement)
T-core
Type: Required functionality
Milestone
This issue blocks #1373.
Both
LineBreakPropertyTable
andRuleBreakPropertyTable
are behind theprovider_serde
feature, but the feature is not defined in segmenter crate'sCargo.toml
. Therefore, I made the following change to Cargo.toml here.Then I got the following build error.
It seems a large array (or a 2d array) is not serializable, at least it's not implemented in serde per this serde issue.
The 2d array is a serialized form of this
properties_map
array inbuild.rs
, representing a mapping from codepoint to a break state. I feel this is similar to an enumerate Unicode property. For example, each slot inLineBreakPropertyTable
stores a line breaking state, which is synthesized from theLine_Break
property plus other conditions from the line breaking rule. (@makotokato please correct me if I misunderstand it.)So we can either:
cc @sffc
The text was updated successfully, but these errors were encountered: