Closed Bug 437276 Opened 16 years ago Closed 16 years ago

Update langGroups with data from the IANA registry

Categories

(Core :: Internationalization, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: 320055323028-0001, Assigned: smontagu)

References

()

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Opera/9.27 (Windows NT 5.1; U; ru)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008051206 Firefox/3.0

When the text language is set to Oromo (code: om) on any web page, Firefox defaults to the Ethiopic font if one is selected in the font dialog. However, Oromo is written in Latin script since 1991.

Reproducible: Always

Steps to Reproduce:
1. If not already done, download and install any Ethiopic font on your computer.
2. Start Firefox and select your Ethiopic font in the Font dialog under the Ethiopic tab for Serif, Sans and Mono.
3. Visit any website that has lang="om" set in the source code (or write one yourself)
Actual Results:  
Firefox uses the Ethiopic font to display the text, which depending on the font can result in hard-to-read text.

Expected Results:  
Firefox should default to the Western font and use it to display the text.
I'm broadening the scope of this bug a bit: I think that any language that has a Suppress-Script value in http://www.iana.org/assignments/language-subtag-registry should have a corresponding definition in langGroups.properties, and can safely have .accept=true defined in languages.properties. I don't include languages where we don't already have a langGroup (e.g. Tibetan, see bug 441110)

It also doesn't make sense to me that there are languages in which we ship a localized version that don't appear in the "preferred language" dialog, so I'm adding a couple of those as well.

Languages affected by the patch:

Code Language    Script
ab   Abkhazian   Cyrillic
ay   Aymara      Latin
gn   Guarani     Latin
gv   Manx        Latin
ht   Haitian     Latin
kk   Kazakh      Cyrillic
kl   Greenlandic Latin
kok  Konkani     Devanagari
ku   Kurdish     Latin (Arabic script is also used; our l10n is Latin)
ln   Lingala     Latin
mg   Malagasy    Latin
mh   Marshallese Latin
mn   Mongolian   Cyrillic (Mongolian script is also used; our l10n is Cyrillic)
na   Nauru       Latin
nd   Ndebele,    Latin
      North
nr   Ndebele,    Latin
      South
nso  Sotho,      Latin
      Northern
ny   Chichewa    Latin
om   Oromo       Latin
ps   Pashto      Arabic
rn   Kirundi     Latin
rw   Kinyarwanda Latin
sm   Samoan      Latin
ss   Siswati     Latin
st   Sotho,      Latin
      Southern  
ti   Tigrinya    Ethiopic
tl   Tagalog     Latin
tn   Tswana      Latin
to   Tonga       Latin
ts   Tsonga      Latin
ur   Urdu        Arabic
ve   Venda       Latin
wo   Wolof       Latin
xh   Xhosa       Latin
Assignee: nobody → smontagu
Status: UNCONFIRMED → ASSIGNED
Component: General → Internationalization
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → i18n
Hardware: x86 → All
Summary: Firefox uses wrong font for Oromo text → Update langGroups with data from the IANA registry
Attached patch The patch (obsolete) — Splinter Review
Attachment #368921 - Flags: review?(VYV03354)
Blocks: 453032
Attached patch Correct patchSplinter Review
Attachment #368921 - Attachment is obsolete: true
Attachment #368924 - Flags: review?(VYV03354)
Attachment #368921 - Flags: review?(VYV03354)
(In reply to comment #3)
> Correct patch
I haven't see the patch yet, but what's the difference between two patches?
Interdiff didn't show any differences.
(In reply to comment #4)

I thought that the first patch didn't have the line

+tl=x-western

but it looks as if hg diff misled me. Sorry about that.
Attachment #368924 - Flags: review?(VYV03354) → review+
http://hg.mozilla.org/mozilla-central/rev/fa285ecf6815
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 368924 [details] [diff] [review]
Correct patch

> ht=x-western
> hr=x-central-euro
> # XXX Latin Ext. A is also used for hsb. 
> hsb=x-western
>+ht=x-western
Bah, doesn't anyone read their debug spew any more?

I guess the existing one is incorrect, due to alphabetical ordering fail.
Removed the duplicate entry in http://hg.mozilla.org/mozilla-central/rev/1a6d30255368 (rs=Neil on IRC)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: