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

Sort scx based on script codes rather than aliases. #434

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Apr 14, 2023

Regenerating the UCD currently flips # Script_Extensions=Arab Nkoo and # Script_Extensions=Arab Rohg, as was noted by @markusicu in #416 (comment). This is very annoying in the new world where we want to have many draft PRs in flight for a long time, requiring frequent regeneration of the UCD.

This is happening because #398 ordered these inconsistently with the order produced by MakeUnicodeFiles. That was intentional: the pull request description reads

Sort scripts, first by count, and then alphabetically

This was already the case, but the sorting was alphabetical by alias, rather than script code, and Rohg=Hanifi_Rohingya<Nko=Nkoo. The alternative to this PR would be for @roozbehp to change the logic in https://github.com/roozbehp/unicode-data/blob/67fa2d1bcb4dca1e8f296f1ffca59a3011718179/common.py#L27-L28 to sort script_set by alias, but since codes are what shows up in the file, sorting by code seems reasonable enough.

@eggrobin eggrobin requested a review from markusicu April 14, 2023 12:30
Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

very good catch & fix, thanks!!

@eggrobin eggrobin merged commit 290ff44 into unicode-org:main Apr 14, 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.

3 participants