Skip to content

RTL update Follow up #254

Open
Open

Description

@JayPanoz

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 (or ara), fa (or per, fas), he (or iw, heb), yi (or ji, yid), ur (or urd), ps (or pus), sd (or snd), ckb, ug (or uig), dv (or div), 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

  1. JayPanoz commented on Nov 20, 2026

    @JayPanoz
    CollaboratorAuthor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions