https://bugzilla.wikimedia.org/show_bug.cgi?id=57045

       Web browser: ---
            Bug ID: 57045
           Summary: Add CSS classes based on writing system code
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: i18n
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: amir.ahar...@mail.huji.ac.il
                CC: alolita.sha...@gmail.com, asha...@wikimedia.org,
                    kartik.mis...@gmail.com, niklas.laxst...@gmail.com,
                    run...@gmail.com, s.mazel...@xs4all.nl
    Classification: Unclassified
   Mobile Platform: ---

It would be useful to have the languages that MediaWiki supports be aware of
the alphabet in which they are written.

ISO 15924 writing systems code can be used for the most part, so it will be
"latn" for English, French, Vietnamese, etc.; "cyrl" for Russian, Udmurt, etc.;
"deva" for Hindi, Marathi, etc. - and so on.

This is useful for applying special styles that are common to all languages
written in a script. For example the notorious line-height fix is applied in
shared.css by element name and language code, and it could be greatly
simplified by using the relevant script codes so instead of having selectors
for bh, bho, hi, ks, mr, mai, ne, new, pi and sa, there would only be one
selector for class deva.

Of course, it will have to take into account language variants (Serbian
Cyrillic / Latin, Kazakh Cyrillic / Latin / Arabic etc.) and also special cases
not covered by ISO 15924, such as the internal differences between styles of
Arabic (so Arabic may use "arab" and Urdu may use something like
"arab-nastaleeq").

An easy way to implement this would be to add a variable to each Messages file,
similarly to $rtl. (In fact, this can make $rtl obsolete, because the direction
is inherent in the writing system.)

Comment 1: In this bug, "writing system", "script" and "alphabet" are synonyms.
I mentioned all to make it easier to find.

Comment 2: I vaguely recall that there is a bug for this, but I cannot find it.
If there is one, please mark this one as a dupe.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to