[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #9291(accepted data)

Opened 15 months ago

Last modified 14 months ago

Portuguese number spellout for large numbers

Reported by: pedberg Owned by: grhoten
Component: rbnf Data Locale: pt_PT pt_BR
Phase: rc Review:
Weeks: Data Xpath:
Xref:

Description

From a bug report: Portuguese spellout for 12147889885678 currently produces

  • "doze trilhões e cento e quarenta e sete bilhões e oitocentos e oitenta e nove milhões e oitocentos e oitenta e cinco mil e seiscentos e setenta e oito"

This has too many instances of " e ". It should be

  • "doze trilhões cento e quarenta e sete bilhões oitocentos e oitenta e nove milhões oitocentos e oitenta e cinco mil seiscentos e setenta e oito"

The only time “e”s go between power of thousands, in Portuguese, is if the second one is the final number:

  • "doze trilhões e cem bilhões”
  • "doze trilhões cento e quarenta e sete bilhões e oitocentos milhões”
  • "doze trilhões cento e quarenta e sete bilhões oitocentos e oitenta e nove milhões e oitocentos mil”

es has a similar requirement and does it correctly.

Attachments

Change History

comment:1 Changed 15 months ago by pedberg

An Apple Portuguese linguist agrees with the problem report and the proposed solution.

comment:2 Changed 15 months ago by grhoten

  • Data Locale changed from pt to pt pt_BR

comment:3 Changed 15 months ago by emmons

  • Owner changed from anybody to grhoten
  • Phase changed from dsub to rc
  • Priority changed from assess to medium
  • Status changed from new to accepted
  • Milestone changed from UNSCH to upcoming

comment:4 Changed 15 months ago by grhoten

  • Data Locale changed from pt pt_BR to pt_PT pt_BR

comment:5 Changed 14 months ago by grhoten

If Spanish works correctly, then it's not what is described here. Applying the same structure as Spanish to Portuguese would return "doze trilhões cem bilhões" instead of "doze trilhões e cem bilhões". That structure is a lot easier to deal with than the proposal here.

comment:6 Changed 14 months ago by grhoten

So providing the exact behavior requested requires a fair amount of copying and pasting. It's not trivial to provide something like, "provide something extra if I'm the last component of the number".

comment:7 Changed 14 months ago by grhoten

These revised rules may help for future reference.

1000000: <%spellout-cardinal-masculine< $(cardinal,one{milhão}other{milhões})$[ >>];
1000000000: <%spellout-cardinal-masculine< $(cardinal,one{bilhão}other{bilhões})$[ >>];
1000000000000: <%spellout-cardinal-masculine< $(cardinal,one{trilhão}other{trilhões})$[ >>];
1000000000000000: <%spellout-cardinal-masculine< $(cardinal,one{quatrilhão}other{quatrilhões})$[ >>];
View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.