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

CLDR Ticket #7895(accepted data)

Opened 4 years ago

Last modified 17 months ago

Percent formatting in Arabic could use some bidi help

Reported by: roozbeh Owned by: shervin
Component: other Data Locale: ar
Phase: final Review:
Weeks: Data Xpath:




Arabic has a strong preference for the percent sign to appear at the left side of the number when using native digits.

Currently, formatting 1% would result in <U+0661, U+066A> which displays fine (with the percent sign on the left) with an explicit RTL direction, but unfortunately that doesn't happen all the time.

In various scenarios, the formatted percent value is displayed in an LTR context, or all by itself. Getting it right in an LTR context may be of less interest to CLDR, but when it's all by itself, we should display it correctly.

The problem is that neither the number nor the percent sign is a strong character, so the UBA's first strong algorithm (which is used in several platforms such as Android) gives it an LTR direction, which makes the percent sign go to the right side which is incorrect for Arabic.

Several solutions could be thought of. One would be adding an RLM before the format string.


Change History

comment:1 Changed 3 years ago by srl

  • Xref set to 7969

comment:2 Changed 3 years ago by shervin

  • Cc James_Lin@… added

comment:3 Changed 3 years ago by shervin

  • Cc shervinafshar@… added

comment:4 Changed 3 years ago by markus

  • Type set to data

comment:5 Changed 3 years ago by markus

  • Component changed from data-other to other

comment:6 Changed 3 years ago by emmons

  • Owner emmons deleted

comment:7 Changed 3 years ago by shervin

  • Cc shervinafshar@… removed
  • Owner set to shervin
  • Priority changed from assess to medium
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 29

comment:8 Changed 3 years ago by pedberg

  • Cc pedberg added

I fixed this in Apple ICU by adding RLM after the ARABIC PERCENT sign for numberSystem="arab" in the "root" and "ar" locales.

    <symbols numberSystem="arab">

Shouldn't we be able to do this for CLDR 28?

comment:9 Changed 2 years ago by emmons

  • Milestone changed from 29 to upcoming

Auto move of all 29 -> upcoming

comment:10 Changed 17 months ago by jungshik

Shouldn't this be marked as a dupe of ticket:9040?

comment:11 Changed 17 months ago by jungshik

  • Xref changed from 7969 to 7969,9040

Add a comment

Modify Ticket

as accepted

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

Note: See TracTickets for help on using tickets.