unicode-org / icu4x

Solving i18n for client-side and resource-constrained environments.
https://icu4x.unicode.org
Other
1.31k stars 169 forks source link

Remove duplication in Units Essential and Namespace data by Removing all the patterns that equals to `Other` #5170

Open younies opened 1 month ago

younies commented 1 month ago

In the CLDR specification: https://unicode.org/reports/tr35/tr35-numbers.html#Contents,

In Units Formatting patterns, if the pattern does not exist, choose to Other instead. Therefore, any pattern equal to Other should be deleted and Other should be used as the default value.

robertbastian commented 3 weeks ago

The other pattern is actually always required, so it can have its own field instead of being in the ZeroMap. This will often make the map be empty.

sffc commented 3 weeks ago

Agreed, though I hope that my vague idea of a plural pattern type would resolve this, too.