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-15388 check annotations for empty values or keyword entry without name (tts) entry #4386

Conversation

pedberg-icu
Copy link
Contributor

@pedberg-icu pedberg-icu commented Feb 19, 2025

CLDR-15388

  • This PR completes the ticket.

Add a consoleCheck test (so vetters will see it) in CheckAnnotations that:

  • Annotation entries do not have empty values (<annotation cp=".."></annotation> or <annotation cp=".."/>).
  • If there is a keyword entry for a given emoji/symbol, there should also be a tts (name) entry.

This found many missing tts errors, about which I have filed CLDR-18329. In the meantime, I added a skip for these known error cases so that CI tests will pass (I did not use logKnownIssue, as far as I know we cannot do that in consoleCheck tests, not sure what would happen in Survey Tool)

ALLOW_MANY_COMMITS=true

@pedberg-icu pedberg-icu self-assigned this Feb 19, 2025

public class CheckAnnotations extends CheckCLDR {
private static final Pattern ANNOTATION_PATH = Pattern.compile("//ldml/annotations/.*");

// Skip tts test for these locale/cp combinations unti
// https://unicode-org.atlassian.net/browse/CLDR-18329 is fixed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not use logKnownIssue, as far as I know we cannot do that in consoleCheck tests, not sure what would happen in Survey Tool.

@pedberg-icu
Copy link
Contributor Author

Please feel free to merge when approved, I cannot merge

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.

Lgtm

@pedberg-icu pedberg-icu merged commit 54e3b84 into unicode-org:main Feb 19, 2025
13 checks passed
@pedberg-icu pedberg-icu deleted the CLDR-15388-emoji-annotations-no-empty-and-no-keys-without-tts branch February 19, 2025 18:06
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