Project

Profile

Help

Bug #5753

closed

Localisation: numbering as words

Added by Michael Kay over 1 year ago. Updated over 1 year ago.

Status:
Won't fix
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-12-01
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

What should be the output of

format-number(101, "w", "en")

and should it vary between en-GB and en-US?

At present, for both en-GB and en-US, we are returning the cardinal "one hundred and one" and the ordinal "one hundred and first". But a unit test that calls ICU directly, not via XPath, is outputting the cardinal "one hundred and one" and the ordinal "one hundred first" - again, for both locales, Which is correct, and why do they vary?

I think that what is happening here is that ICU offers two cardinal numbering schemes spellout-cardinal and spellout-cardinal-verbose, and similarly two ordinal schemes spellout-ordinal and spellout-ordinal-verbose; and we are choosing between them essentially at random. The verbose option includes and in the result, the non-verbose option omits it.

Please register to edit this issue

Also available in: Atom PDF