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

CLDR-14801 Unicode 14 new scripts & script metadata #1291

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

markusicu
Copy link
Member

@markusicu markusicu commented Jun 2, 2021

CLDR-14801

  • This PR completes the ticket.

Note: I selectively copied some scripts from the latest language-subtag-registry (File-Date: 2021-05-11) but did not update the whole file, in order to avoid having to make changes for new language subtags etc.

I updated http://cldr.unicode.org/development/updating-codes/updating-script-metadata to match what I did, adjusting paths, simplifying instructions for VM arguments, and some other details.

@@ -382,17 +382,17 @@ public void TestCoverageCompleteness() {

final Pattern script100 = PatternCache.get("("
Copy link
Member

Choose a reason for hiding this comment

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

why is this a static list? should be pulled from data (maybe lstreg?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. I noted this in the instructions a few years ago but never investigated. See point 11 there:

  • Add the script codes to TestCoverageLevel.java variable script100.
    • Why is this hardcoded here? Why does it not come from common/supplemental/coverageLevels.xml?

Thinking for a moment, I guess it can't pull it from coverageLevels.xml because that's what it wants to test, and while we can get the full list of script codes from ScriptMetadata, there is no other source for the coverage levels. But maybe we could get "all others" and test against those here? @macchiati

I plan to merge this PR now, but we could revisit this.

Copy link
Member

Choose a reason for hiding this comment

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

Good question. I noted this in the instructions a few years ago but never investigated. See point 11 there:

  • Add the script codes to TestCoverageLevel.java variable script100.

    • Why is this hardcoded here? Why does it not come from common/supplemental/coverageLevels.xml?

Thinking for a moment, I guess it can't pull it from coverageLevels.xml because that's what it wants to test, and while we can get the full list of script codes from ScriptMetadata, there is no other source for the coverage levels. But maybe we could get "all others" and test against those here? @macchiati

It could check locale validity against coverage levels perhaps?

Copy link
Member Author

Choose a reason for hiding this comment

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

FTR This variable should normally not need to be updated any more after #1296

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

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

LGTM but i have questions about the script metadata process ( #1267 )

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