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-13523 add test for valid short day length; fix resulting data errs #3739

Conversation

pedberg-icu
Copy link
Contributor

@pedberg-icu pedberg-icu commented May 22, 2024

CLDR-13523

  • This PR completes the ticket.

CheckDates had tests that abbreviated date symbols were no longer than wide (error), and that narrow date symbols were no longer than abbreviated (warning). But there was no test for short date symbols (only present in weekday names). Added a test that short days are no longer than abbreviated, and no shorter than narrow (both errors). Checked the with width both with a glyph width estimate (as used for the other tests) and a string length test, since the test was too sensitive otherwise (e.g. it failed on letter case differences).

Ran the test and fixed the resulting new data errors:

  • fil: replaced current standalone narrow (same as abbreviated) with format short (shorter)
  • mai: replaced the one provided short value (which was too long) with ↑↑↑ like the other short values, to inherit from abbreviated.
  • mgo: swapped the narrow (in standalone) and short (in format) forms to get the right length ordering.
  • sa: replace short (English abbreviated names) with inheritance from abbreviated (in Sanskrit)
  • so: replaced the one provided standalone short value (too long) with ↑↑↑ like the other standalone short values, to inherit from format short which inherits from format abbreviated.

ALLOW_MANY_COMMITS=true

@macchiati
Copy link
Member

macchiati commented May 22, 2024 via email

@pedberg-icu
Copy link
Contributor Author

Any TC member, please feel free to merge when approved, thanks.

@pedberg-icu
Copy link
Contributor Author

pedberg-icu commented May 22, 2024

Per TC discussion 2024-05-22, decided to remove draft="contributed" and make the changes all approved.

@pedberg-icu pedberg-icu force-pushed the CLDR-13523-short-weekdays-cannot-be-longer-than-abbreviated branch from 2de4912 to f8ac8f1 Compare May 22, 2024 17:07
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@pedberg-icu pedberg-icu merged commit 9b13676 into unicode-org:main May 22, 2024
10 checks passed
@pedberg-icu pedberg-icu deleted the CLDR-13523-short-weekdays-cannot-be-longer-than-abbreviated branch May 22, 2024 17:31
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