Skip to content

Update grapheme cluster boundary detection to Unicode 17 - #214

Merged
khaledhosny merged 4 commits into
mainfrom
grapheme-unicode-17
Apr 11, 2026
Merged

khaledhosny merged 4 commits into
mainfrom
grapheme-unicode-17

Conversation

@khaledhosny

Copy link
Copy Markdown
Collaborator

No description provided.

Rewrite the grapheme cluster boundary implementation to conform to
Unicode TR29 with all current rules (GB3-GB9c, GB11, GB12/GB13).

Property data is now generated from Unicode data files using a Python
script (scripts/gen-grapheme-data.py) and packed into compact lookup
tables using packTab, instead of being hard-coded.

Add a conformance test using Unicode's GraphemeBreakTest.txt.
If new versions of Unicode add new properties, the script should fail
instead of silently ignoring them.
@khaledhosny
khaledhosny merged commit a6d9717 into main Apr 11, 2026
8 checks passed
@khaledhosny
khaledhosny deleted the grapheme-unicode-17 branch April 11, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant