-
Notifications
You must be signed in to change notification settings - Fork 412
CLDR-16292 Update supplemental/ordinals.xml for Spanish ordinal numbers of ~1 and ~3 #2769
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
Conversation
b876335 to
dac88c4
Compare
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Ordinal numbers`Primero` and `Tercero` will drop `o` in masculine adjective forms. e.g., 1st/2nd/3rd/4th/5th = 1er/2o/3er/4o/5o (adj. form) Ref. https://www.spanish.academy/blog/ordinal-numbers/
dac88c4 to
7987073
Compare
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
common/supplemental/ordinals.xml
Outdated
| <pluralRule count="other"> @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …</pluralRule> | ||
| </pluralRules> | ||
| <pluralRules locales="es"> | ||
| <pluralRule count="one">n % 10 = 1,3 @integer 1, 3, 11, 13, 21, 23, 31, 33, 41, 43, 51, 53, 101, 103, 1001, 1003, …</pluralRule> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot the and n % 100 != 11 and n % 100 != 13. This rule doesn’t apply to 11 and 13 as can be seen in the Number Format Tester.
It’s worth mentioning that these rules only apply towards the masculine adjective form of ordinals and not the other ordinal forms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @grhoten, Thanks for the review,
For orindal 13:
I believe the Number Format Tester could be incorrect. You can check the spellout-ordinal-masculine-adjective in the rbnf of es.xml.
<rbnfrule value="13">decimo→→;</rbnfrule>The masculine adjective ordinal of 13(decimotercero) will become decimotercer. This means it will apply the rule, drop o and becomes 13ᵉʳ
For orindal 11:
Meanwhile, the ordinal of 11 is more complex, it could be undécimo,decimoprimero or onceno depends on users in different countries or regions. Reference: undécimo y decimoprimero, formas válidas
The rule only applies to decimoprimero, but not to the others. While the rbnf of es.xml prefers to undécimo, I am keeping 11 unchanged and adding the rule on 13 in rnbf and ordinals.xml
Please help to review again.
56cdb46 to
8d53b44
Compare
|
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
8d53b44 to
fdd219c
Compare
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
|
So if you're trying to fix the RBNF ordinal digit rules in this pull request, then you'll need to use the ordinal rule syntax, just like the English rules. |
|
FYI the current RBNF rules don't work correctly. It's kind of hacked together. You can see the parsing issue in the Number Format Tester in a big red warning. This syntax with the revised rules will resolve that issue. |
|
This pull request has been resubmitted as #5163 because this one has conflicts, and this pull request doesn't address the RBNF issue with the correct syntax. I recommend closing this pull request. |
|
replaced by #5163 |
Spanish ordinal numbers First and Third will drop
oin masculine adjective forms.e.g., 1st day, 2nd day, 3rd day, 4th day, 5th day (English)= 1ᵉʳ día, 2º día, 3ᵉʳ día, 4º día, 5º día (Spanish)
The supplemental/ordinals.xml should be updated accordingly.
Reference 1: CLDR rbnf of
es:cldr/common/rbnf/es.xml
Lines 289 to 297 in 835e0c9
Reference 2: https://www.spanish.academy/blog/ordinal-numbers/
CLDR-16292
ALLOW_MANY_COMMITS=true