Closed Bug 172515 Opened 22 years ago Closed 22 years ago

Some nsFontLangGroup entries missing in X11 font code

Categories

(Core :: Internationalization, defect)

All
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: roland.mainz, Assigned: roland.mainz)

References

()

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

[Per bug 78201 comment 51]: Brian Stell wrote: > would you add a font-lang group for arabic? > > nsFontLangGroup FLG_JA = { "ja", nsnull }; > nsFontLangGroup FLG_KO = { "ko", nsnull }; > +nsFontLangGroup FLG_AR = { "ar", nsnull }; > nsFontLangGroup FLG_NONE = { nsnull , nsnull }; We'll miss a bunch of other nsFontLangGroup entries, too... ;-(
Suffering is all mine... ;-(
Status: NEW → ASSIGNED
Prototype patch for getting from comments. I am sure I am missing some things here - therefore I need the feedback from the exports, e.g. {bstell, katakai, prabhat, smontagu, rbs, shanjian, etc.} ...
s/the exports/the experts/
bstell: What about mapping "*-iso10646-1" fonts to the "x-unicode" langgroup ?
code issue? QA to yokoyama@netscape.com for now.
Keywords: intl
QA Contact: ruixu → yokoyama
The patch looks good to me. Do you have specific ideas on what else might be needed? > What about mapping "*-iso10646-1" fonts to the "x-unicode" langgroup Unicode doesn't have a language associated with it so it would not helpful.
Brian Stell wrote: > The patch looks good to me. Do you have specific ideas on what else might be > needed? The question is whether I catched all entries in |gCharSetMap[]|. At least the following are still mapped to |FLG_NONE|: 1. "cp1251-1" is |FLG_WESTERN|, right ? 2. "microsoft-cp1251" is |FLG_WESTERN| too, right ? 3. http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/charsetData.properties#56 maps (adobe) sybol fonts to "greek", e.g. symbol-fontspecific"&&"adobe-fontspecific" would be mapped to |FLG_GREEK| (IMHO this is completely wrong, but "charsetData.properties" has a different meaning here - who is right ? :) > > What about mapping "*-iso10646-1" fonts to the "x-unicode" langgroup > > Unicode doesn't have a language associated with it so it would not helpful. I know ... that's the reason why it is not in the patch, but someone added "x-unicode" to "charsetData.properties" (see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/charsetData.properties#102 for example). I was wondering if I was missing something here...
bstell: Offtopic: Looking at http://lxr.mozilla.org/seamonkey/source/gfx/src/gtk/nsFontMetricsGTK.cpp#466 ... -- snip -- 466 { "hpbig5-", &FLG_ZHTW, &Big5 }, 467 { "hproc16-", &FLG_NONE, &Unknown }, -- snip -- ... the '-' chars at the end don't look right for me... ... should I fix that with this patch, too ?
I thought cp1251 was Russian so but you will need to verify this with ftang. I would not map symbol fonts to Greek. What would you change the hpbig5- / hproc16- values to?
bstell wrote: > I thought cp1251 was Russian so but you will need to verify this with ftang. ftang ? > I would not map symbol fonts to Greek. That's my opinion, too... :) Any idea why "charsetData.properties" maps them to greek ? > What would you change the hpbig5- / hproc16- values to? I would remove the '-' (e.g. s/"hpbig5-"/"hpbig5"/ and s/"hproc16-"/"hproc16"/). Both entries are the only examples in the list which have such a trailing dash and I wonder if this was a mistake/typo/etc. ...
> Any idea why "charsetData.properties" maps them to greek ? Sorry, no. You would need to ask Erik. > > What would you change the hpbig5- / hproc16- values to? > > I would remove the '-' (e.g. s/"hpbig5-"/"hpbig5"/ and /"hproc16-"/"hproc16"/). > Both entries are the only examples in the list which have such a trailing dash > and I wonder if this was a mistake/typo/etc. ... The strings have 3 parts: registry, separater, and encoding: "registry-encoding" These appear to have a blank encoding. Its my guess that these do not have a "encoding" hence it is blank. I recommend not removing the dash.
I just checked it, cp1251 is cyrillc - new patch follows...
Attachment #101645 - Attachment is obsolete: true
Requesting r=/sr= ...
Keywords: patch, review
Comment on attachment 101966 [details] [diff] [review] Patch for 2002-09-29-08-trunk The code looks fine. Changing to "static" was a good idea. sr=roc+moz
Attachment #101966 - Flags: superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: