Repository navigation
Description
Ref: c7c64cb
Per Claude review, we end up with the following analysis:
Completing the RTL language list
The RTL rule matches the primary language subtag against a list. That list accepts the ISO 639-2 codes for Persian (per, fas) but not for the other languages, so a publication tagged ara or urd is treated as LTR.
1. Add the 3-letter equivalents
Each language in the list should be matched by all of its codes.
| Language | Current | Add |
|---|---|---|
| Arabic | ar |
ara |
| Persian/Farsi | fa, per, fas |
— |
| Hebrew | he, iw |
heb |
| Yiddish | yi |
yid, ji (deprecated, like iw) |
| Urdu | ur |
urd |
| Pashto | ps |
pus |
| Sindhi | sd |
snd |
| Central Kurdish | ckb |
— |
| Uyghur | ug |
uig |
| Dhivehi | dv |
div |
| Syriac | syr |
— |
2. Optionally, add individual languages
Some of these are macrolanguages, and tools that pick the most specific code write the individual language instead:
- Arabic:
arb(Standard),arz(Egyptian),ary(Moroccan),apc(Levantine),acm(Mesopotamian),aeb(Tunisian),arq(Algerian),afb(Gulf),apd(Sudanese) - Persian:
pes(Iranian Persian),prs(Dari) - Pashto:
pbu(Northern),pbt(Southern) - Yiddish:
ydd(Eastern),yih(Western)
3. Open question: script subtags
Matching the primary subtag alone ignores the script, which goes wrong both ways:
- RTL missed: a language written in an RTL script only through its script subtag, e.g.
pa-Arab(Shahmukhi Punjabi),az-Arab,ms-Arab(Jawi), or languages absent from the list such as Kashmiri (ks), N’Ko (nqo) and Rohingya (rhg). - RTL wrongly applied: a listed language written in another script, e.g.
sd-Deva,ug-Cyrl.
A script subtag, when present, could take precedence: Arab, Hebr, Thaa, Syrc, Nkoo, Adlm, Rohg mean RTL, any other script means LTR. Without one, the language list applies. This mirrors how mn-Mong already selects a writing mode.
Proposed wording
For “Missing page-progression-direction” in CSS16-internationalization.md:
- an RTL language, by primary subtag:
ar(orara),fa(orper,fas),he(oriw,heb),yi(orji,yid),ur(orurd),ps(orpus),sd(orsnd),ckb,ug(oruig),dv(ordiv),syr;
For css/dist/ReadMe.md:
- and the primary language is written right to left, i.e. its primary subtag is one of: Arabic (
ar,ara), Persian/Farsi (fa,per,fas), Hebrew (he,iw,heb), Yiddish (yi,ji,yid), Urdu (ur,urd), Pashto (ps,pus), Sindhi (sd,snd), Central Kurdish (ckb), Uyghur (ug,uig), Dhivehi (dv,div) or Syriac (syr).
If section 2 is adopted, its codes go in the same lists.
Given I’m unable to double-check that for lack of expertise in these scripts, tools and authoring patterns, what should we do?
Activity
JayPanoz commentedon Nov 20, 2026
@danielweck @mickael-menu @chocolatkey any opinion on how to handle that? Should we try setting it once and for all with some or all gaps addressed and prevent a subsequent update at a later date?
Of course the risk is having to fix potential mistakes further down the line, which would defeat this effort's purpose.
We couldn't reach a resolution on Wednesday during the call, so it's up to us to decide when we think things are in a better shape.