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
Digital duration format should probably be more lenient with data #161
Comments
It seems as ICU 73-1, B. we have possible 3 values for durationUnits/hm C. we have possible 3 values for durationUnits/ms |
So... there are actually three different issues here
|
@ben-allen or @ryzokuken please consider drafting a spec change to fix this. This is a bug fix, even if it could result in normative changes. |
Discussed in TG2 call: https://github.com/tc39/ecma402/blob/master/meetings/notes-2023-11-16.md#digital-duration-format-should-probably-be-more-lenient-with-data-161 Conclusion: Ideally this would have been ready for the November 2023 TC39 meeting, but if it needs to slip it's okay. We should try to get it in soon though because it blocks implementations. |
#188 addresses most of this issue by
These address, respectively, the issue in the 'nds' locale (and in other locales which also use differing hour/minute and minute/second separators) and the issue in the 'af' locale. I'm comfortable leaving the 'ee' problem unaddressed unless/until there's confirmation that the CLDR data for this locale is correct. |
The spec currently uses a fixed separator for the digital format:
This works in most cases, but there are some locales that have data that potentially breaks from these assumptions:
<durationUnitPattern>hh:mm</durationUnitPattern>
(prefers 2-digit hour)<durationUnitPattern draft="unconfirmed">aɖabaƒoƒo m:ss</durationUnitPattern>
(has some other stuff in the pattern)<durationUnitPattern draft="unconfirmed">h.mm:ss</durationUnitPattern>
(note the different hour and minute separator)The CLDR digital duration data looks like this:
https://github.com/unicode-org/cldr/blob/706d94d95c855bb281a1829488c511f99e689ecf/common/main/af.xml#L9216
Note that two of the three above cases are "unconfirmed", and the third is only about a preference for 2-digit hours, which we could potentially support even if we don't support generalized patterns.
The text was updated successfully, but these errors were encountered: