khchan2@study.csis.hku.hk writes:
and changed the country settings in KDE to tw; zh_TW.Big5; Big5 charset. What I get is all garbage (looks like a Chinese webpage displayed using Western codepage),
I still get garbage in KDE menus and many KDE applications.
This is certainly a font problem. Unfortunately the font selection in KDE2 is still very buggy, especially for CJK. What fonts do you currently have installed? Please try: ~$ xlsfonts | grep big5 I guess you don't have any scalable traditional Chinese fonts installed and will get only these two bitmap fonts listed: -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5-0 -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0 -eten-fixed-medium-r-normal--24-230-75-75-c-240-big5-0 -eten-fixed-medium-r-normal--24-230-75-75-c-240-big5.eten-0 But these work as well for the KDE menus, I just checked again by reducing my fontpath to include only the bitmap fonts: ~$ xset fp /usr/X11R6/lib/X11/fonts/misc After selecting the eten-fixed fonts in kcontrol, all KDE menus, window titles etc. looked correct.
But I can see Chinese correctly in Konqueror now. I don't know why,
Konqueror has it's own font setup menu.
but if I use a font size too small, the garbage appears again.
I can reproduce that when I have *only* the eten-fixed fonts in my font path. Konqueror doesn't scale them (even if the directory in the fontpath lacks ':unscaled'), at unavailable sizes garbage is displayed. Looks like it is not much fun to use Konqueror without scalable fonts. I recommend to either these TrueType fonts ftp://ftp.suse.com/pub/suse/i386/7.2/suse/han1/ttf-arphic-bkai00mp.rpm ftp://ftp.suse.com/pub/suse/i386/7.2/suse/han1/ttf-arphic-bsmi00lp.rpm ftp://ftp.suse.com/pub/suse/i386/7.2/suse/han1/ttf-arphic.rpm or these CID-keyed PostScript fonts: ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CID-keyed-fonts-MOE.rpm ftp://ftp.suse.com/pub/suse/i386/7.2/suse/ap3/CMap-Adobe-CNS1.rpm Both work as scalable fonts under X11 and will remove your garbage problem in Konqueror. If you also want to print from Konqueror, you need the CID-keyed PostScript fonts, CJK-TrueType fonts are not (yet) usable for printing in SuSE Linux. I'll try to improve that for the next version.
In the user account I am testing chinese I don't use anti-aliasing, because the installed fonts are not true type fonts and they don't appear in my primary account that has anti-aliasing enabled.
The above mentioned TrueType fonts can be used with antialasing. At least they work on SuSE Linux 7.3 and I guess on 7.2 as well. There were problems with antialasing on SuSE Linux 7.2 with fonts containing embedded bitmaps for small sizes, but as the Arphic PL fonts don't contain embedded bitmaps, they should be fine.
Chinese characters in KDE applications still show up as ??? or rectangular squares or garbage. For example, in licq the Chinese nicknames are displayed as squares while kword displays the chinese words as ???. Switching to chinese fonts simply doesn't help.
Please start your KDE session with LANG=zh_TW.Big5 again (not only zh_TW). This does seem to make a difference. I also get ?? in KDE entry widgets when entering traditional Chinese when I run KDE with LANG=zh_TW, but it works fine with LANG=zh_TW.Big5. If you use the new ~/.xim which I did attach to my last mail, xcin will also start when LANG=zh_TW.Big5, so you should have no problem switching back to using zh_TW.Big5 instead of zh_TW.
Although I still have some problems, at least this is a good beginning. Thank you very much again for your information. That's very useful. If other Chinese problems can as well be solved my SuSE experience would then be perfect.
It is very kind of you that you are so patient and I hope the rest of
your problems can be solved as well.
--
Mike Fabian