Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate UnicodeData in MakeUnicodeFiles; fix a bug in Unicode_1_Name #449

Merged
merged 9 commits into from
Apr 20, 2023

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Apr 20, 2023

This turned out much easier than expected, because Mark had done half the work twenty years ago. This should make the processing of new proposals easier: no need to manually merge-sort the lines from the proposal, and with #444, conflict markers will be automatically eliminated when regenerating the UCD.

This also fixes a (fairly uninteresting) bug: the Unicode_1_Name property (obsolete, but neither deprecated nor stabilized, and importantly not blanked like ISO_Comment was) was incorrectly handled by the tools, which relied on an ICU API for it (ICU deprecated that API in ICU-9013, unicode-org/icu@c39e5af).

The new options for BagFormatter should allow us to generate files without spaces either side of the semicolon, like the 15.0 and earlier LB and EAW, should that be needed.

The function dumbFraction is extended to guess the correct denominator based on the name; if we want the fraction fields in DerivedNumericValues to match UnicodeData for the Meroitic cursive twelfths, we could pass the name there too; for now I am leaving the data files unchanged.

@eggrobin eggrobin requested review from macchiati and markusicu April 20, 2023 11:07
Copy link
Member

@macchiati macchiati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@eggrobin eggrobin merged commit ea4227f into unicode-org:main Apr 20, 2023
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.

2 participants