Closed Bug 1634631 Opened 5 years ago Closed 5 years ago

Central Kurdish (ckb) uses left-to-right layout instead of RTL

Categories

(Core :: Internationalization, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: flod, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image immagine.png

We have a new locale, Central Kurdish (ckb), that uses Arabic script and RTL layout, but shows up LTR in the browser.

Locale is not available in CLDR. If that's the source of our RTL locales, we need a way to work around it.

No longer blocks: fx-l10n-ckb
Blocks: fx-l10n-ckb
See Also: → 1347272

Sorry for the noise. Not exactly sure about the category of this bug, but keeping as enhancement for now.

Also added reference to bug 1347272, which I believe started using Unicode as source via Services.locale.isAppLocaleRTL. As said, if that's what we're currently doing, I believe we need a way to override missing data from Unicode here.

Type: defect → enhancement

Central Kurdish is Available in CLDR.

(In reply to cwtiyar from comment #3)

Central Kurdish is Available in CLDR.

I remember it was available, but couldn't find it this morning. But it's indeed there, no clue why I missed it
https://github.com/unicode-cldr/cldr-misc-full/blob/master/main/ckb/layout.json

At this point, I guess Axel was right and we have this list hardcoded somewhere?

which list you mean?

The list of locales using RTL layout.

I got down a rabbit hole, not sure I ended up in the right place. given I don't understand this list at all
https://searchfox.org/mozilla-central/rev/7fd1c1c34923ece7ad8c822bee062dd0491d64dc/third_party/rust/unic-langid-impl/src/layout_table.rs#1

pub const CHARACTER_DIRECTION_RTL: [u64; 6] = [29281, 29301, 29552, 24934, 25715, 25960];
See Also: 1347272

So, the caveat here is that the source is https://github.com/zbraniecki/unic-locale, and that uses the modern subset, and ckb isn't in that. Per "ICU Subcommittee".

Zibi, what's the best way forward here?

In other news, I just checked, and Intl seems work OK, at least NumberFormat shows the correct resolved options.

Flags: needinfo?(gandalf)

Filed an issue https://github.com/zbraniecki/unic-locale/issues/58 and then we'll have to update Gecko to new unic-locale.

Flags: needinfo?(gandalf)

when? its time assumptions.

I don't have any time estimates.

If you're interested in writing the patches yourself, here's the intro: https://firefox-source-docs.mozilla.org/build/buildsystem/rust.html

Otherwise, it'll happen when enough changes accrue and we'll be doing an update of the fluent-rs crate in Gecko (which brings the updated unic-locale with the data for ckb).

(In reply to cwtiyar from comment #15)

Thank you but iam not a developer to do it, but my language is not the first language with RTL, arabic is same.
so may be do not need too much work to be done.

I'm going to start marking off-topic comments as such, please let's stay on topic and not make assumptions on how much something requires. I'm not a developer either, and I have no way to tell.

@zibi
This locale is making progress in Nightly, but testing is impacted. It would be great to bump priority if possible.
For reference, how frequently has been this library updated so far?

@Jwtiyar
I assume you should be able to temporarily work around it by setting intl.uidirection to 1 in about:config. Not sure if that covers all cases, but it would be a start. If not, please let's use Matrix for further discussions.

(In reply to Francesco Lodolo [:flod] from comment #16)

(In reply to cwtiyar from comment #15)

Thank you but iam not a developer to do it, but my language is not the first language with RTL, arabic is same.
so may be do not need too much work to be done.

I'm going to start marking off-topic comments as such, please let's stay on topic and not make assumptions on how much something requires. I'm not a developer either, and I have no way to tell.

@zibi
This locale is making progress in Nightly, but testing is impacted. It would be great to bump priority if possible.
For reference, how frequently has been this library updated so far?

@Jwtiyar
I assume you should be able to temporarily work around it by setting intl.uidirection to 1 in about:config. Not sure if that covers all cases, but it would be a start. If not, please let's use Matrix for further discussions.

Thank you dear francessco, now is better.

This should now be fixed. Flod, can you verify?

Flags: needinfo?(francesco.lodolo)

Thanks, it's indeed fixed in the latest Nightly (20200903151816).

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(francesco.lodolo)
Resolution: --- → FIXED

I can confirm it's fixed. Thank you

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: