[opensuse-m17n] CJK font display more broken in 10.2
Hi, Already in SuSE 10.1 only those han characters that are present in the Japanese charsets (JIS) were reliably rendered in x11 applications, even if all CJK languages (including traditional and simplified Chinese) were specified as languages in YaST. When typing the chinese greeting ni3 hao3 你好 nin2 hao3 您好 the first of either of the two was represented by a square. This is now still the case in SuSE 10.2. But things got worse. In SuSE 10.1 Emacs was an asylum where everything worked. With SuSE 10.2 Emacs is no longer any different, except in that it refuses to accept SCIM input, as I reporterd earlier. Sorry to dump these raw findings on the list. I haven't had time to investigate further. -- Hartmut Pilch http://a2e.de/phm -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
Hi Florian, thanks for the encouraging hints,
When typing the chinese greeting
ni3 hao3 你好 nin2 hao3 您好
the first of either of the two was represented by a square.
I have no problems with the chinese charakter display in 10.2. I can see all characters. Maybe you haven't installed the right fonts?
but xlsfonts shows lots of chinese fonts on my system. Just to name some of the gb2312 and -founder-fangsong-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-fangsong-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-fangsong-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-fangsong-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-fangsong-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-fangsong-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-heiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-kaiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -founder-songti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -guobiao-song-medium-r-normal--16-160-72-72-c-160-gb2312.80&gb8565.88-0 -isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0 -isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0 -isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0 -misc-bitstream cyberbit-bold-i-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-bitstream cyberbit-bold-o-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-bitstream cyberbit-bold-r-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-bitstream cyberbit-medium-i-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-bitstream cyberbit-medium-o-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-bitstream cyberbit-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0 -misc-fzfangsong-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzfangsong-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzfangsong-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzfangsong-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzfangsong-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzfangsong-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzheiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzkaiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 -misc-fzsongti-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 and big5-based ones: -cmex-song-bold-i-normal--0-0-0-0-c-0-big5-0 -cmex-song-bold-i-normal--0-0-0-0-c-0-big5.eten-0 -cmex-song-bold-o-normal--0-0-0-0-c-0-big5-0 -cmex-song-bold-o-normal--0-0-0-0-c-0-big5.eten-0 -cmex-song-bold-r-normal--0-0-0-0-c-0-big5-0 -cmex-song-bold-r-normal--0-0-0-0-c-0-big5.eten-0 -cmex-song-medium-i-normal--0-0-0-0-c-0-big5-0 -cmex-song-medium-i-normal--0-0-0-0-c-0-big5.eten-0 -cmex-song-medium-o-normal--0-0-0-0-c-0-big5-0 -cmex-song-medium-o-normal--0-0-0-0-c-0-big5.eten-0 -cmex-song-medium-r-normal--0-0-0-0-c-0-big5-0 -cmex-song-medium-r-normal--0-0-0-0-c-0-big5.eten-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.eten-0 -founder-kaitib-bold-i-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-bold-i-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-bold-i-normal--0-0-0-0-c-0-big5hkscs-0 -founder-kaitib-bold-o-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-bold-o-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-bold-o-normal--0-0-0-0-c-0-big5hkscs-0 -founder-kaitib-bold-r-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-bold-r-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-bold-r-normal--0-0-0-0-c-0-big5hkscs-0 -founder-kaitib-medium-i-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-medium-i-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-medium-i-normal--0-0-0-0-c-0-big5hkscs-0 -founder-kaitib-medium-o-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-medium-o-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-medium-o-normal--0-0-0-0-c-0-big5hkscs-0 -founder-kaitib-medium-r-normal--0-0-0-0-c-0-big5-0 -founder-kaitib-medium-r-normal--0-0-0-0-c-0-big5.eten-0 -founder-kaitib-medium-r-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-bold-i-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-bold-i-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-bold-i-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-bold-o-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-bold-o-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-bold-o-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-bold-r-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-bold-r-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-bold-r-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-medium-i-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-medium-i-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-medium-i-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-medium-o-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-medium-o-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-medium-o-normal--0-0-0-0-c-0-big5hkscs-0 -founder-mingtib-medium-r-normal--0-0-0-0-c-0-big5-0 -founder-mingtib-medium-r-normal--0-0-0-0-c-0-big5.eten-0 -founder-mingtib-medium-r-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-bold-i-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-bold-i-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-bold-i-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-bold-o-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-bold-o-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-bold-o-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-bold-r-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-bold-r-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-bold-r-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-medium-i-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-medium-i-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-medium-i-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-medium-o-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-medium-o-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-medium-o-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzkaitib-medium-r-normal--0-0-0-0-c-0-big5-0 -misc-fzkaitib-medium-r-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzkaitib-medium-r-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-bold-i-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-bold-i-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-bold-i-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-bold-o-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-bold-o-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-bold-o-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-bold-r-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-bold-r-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-bold-r-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-medium-i-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-medium-i-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-medium-i-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-medium-o-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-medium-o-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-medium-o-normal--0-0-0-0-c-0-big5hkscs-0 -misc-fzmingtib-medium-r-normal--0-0-0-0-c-0-big5-0 -misc-fzmingtib-medium-r-normal--0-0-0-0-c-0-big5.eten-0 -misc-fzmingtib-medium-r-normal--0-0-0-0-c-0-big5hkscs-0 and cns: -cbs-song-medium-r-normal-fantizi-16-160-75-75-c-160-cns11643.1992-3 -cbs-song-medium-r-normal-fantizi-16-160-75-75-c-160-cns11643.1992-4 -cbs-song-medium-r-normal-fantizi-16-160-75-75-c-160-cns11643.1992-5 -cbs-song-medium-r-normal-fantizi-16-160-75-75-c-160-cns11643.1992-6 -cbs-song-medium-r-normal-fantizi-16-160-75-75-c-160-cns11643.1992-7 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-1 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-2 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-3 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-4 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-5 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-6 -cbs-song-medium-r-normal-fantizi-24-240-75-75-c-240-cns11643.1992-7 -hku-fixed-medium-r-normal--16-160-72-72-c-160-cns11643.1992-1 -hku-fixed-medium-r-normal--16-160-72-72-c-160-cns11643.1992-2 -misc-bitstream cyberbit-bold-i-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-bold-i-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-bold-i-normal--0-0-0-0-p-0-cns11643-3 -misc-bitstream cyberbit-bold-o-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-bold-o-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-bold-o-normal--0-0-0-0-p-0-cns11643-3 -misc-bitstream cyberbit-bold-r-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-bold-r-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-bold-r-normal--0-0-0-0-p-0-cns11643-3 -misc-bitstream cyberbit-medium-i-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-medium-i-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-medium-i-normal--0-0-0-0-p-0-cns11643-3 -misc-bitstream cyberbit-medium-o-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-medium-o-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-medium-o-normal--0-0-0-0-p-0-cns11643-3 -misc-bitstream cyberbit-medium-r-normal--0-0-0-0-p-0-cns11643-1 -misc-bitstream cyberbit-medium-r-normal--0-0-0-0-p-0-cns11643-2 -misc-bitstream cyberbit-medium-r-normal--0-0-0-0-p-0-cns11643-3 Beside the cyberbit font, which covers much of the unicode range, there is also gnu unifont -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1 -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1 The only differnece to the standard 10.2 distribution (in which I chose all CJK locales as secondary languages) should be the presence of the cyberbit font. As a locale, I'm mostly using de_DE.utf-8. -- Hartmut Pilch 裴寒牧 ピルヒ・ハルトムート http://a2e.de/phm -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
On Fri, Dec 22, 2006 at 01:57:18AM +0100, PILCH Hartmut wrote:
Hi Florian,
thanks for the encouraging hints,
When typing the chinese greeting
ni3 hao3 你好 nin2 hao3 您好
the first of either of the two was represented by a square.
I have no problems with the chinese charakter display in 10.2. I can see all characters. Maybe you haven't installed the right fonts?
As a locale, I'm mostly using de_DE.utf-8.
But this happens just as well under zh_CN.utf-8. Have you also installed the Japanese fonts on your display? My impression is that these are being used systematically for the whole unihan range, and when they don't cover some code points, those remain empty. -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
I write this after reading your exchange - with the hope that you might either help me to get started with Japanese facilities - or give me some leads whom else to contact.. I was a Windows user for many years, and used the Microsoft input program for Japanese (I am fairly fluent in the language). But some months ago (after a severe hardware problem) I changed to an ACER Travelmate 2420 (which was sold without any OS), and I installed SuSE 10.0 and later upgraded to 10.1. I did NOT create any Windows partition, and I am quite happy working in the Linux environment only - adding one element of what I need after the other. But I have not yet started to add Japanese. Any guidance how to start is highly welcome. Norbert Klein Phnom Penh/Cambodia Have a look at www.khmeros.info - creating UNICODE based localized Open Source software in Khmer = PILCH Hartmut wrote:
On Fri, Dec 22, 2006 at 01:57:18AM +0100, PILCH Hartmut wrote:
Hi Florian,
thanks for the encouraging hints,
When typing the chinese greeting
ni3 hao3 你好 nin2 hao3 您好
the first of either of the two was represented by a square.
I have no problems with the chinese charakter display in 10.2. I can see all characters. Maybe you haven't installed the right fonts?
[snip] -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
PILCH Hartmut <phm@a2e.de> さんは書きました:
On Fri, Dec 22, 2006 at 01:57:18AM +0100, PILCH Hartmut wrote:
Hi Florian,
thanks for the encouraging hints,
When typing the chinese greeting
ni3 hao3 你好 nin2 hao3 您好
the first of either of the two was represented by a square.
I have no problems with the chinese charakter display in 10.2. I can see all characters. Maybe you haven't installed the right fonts?
As a locale, I'm mostly using de_DE.utf-8.
But this happens just as well under zh_CN.utf-8.
Have you also installed the Japanese fonts on your display?
My impression is that these are being used systematically for the whole unihan range, and when they don't cover some code points, those remain empty.
I guess you are using KDE. This is just a Qt3 font problem. Qt3 can only use a single font for the complete Han region., The defaults should be OK if you are using the right locale, i.e. when using zh_CN.UTF-8, a simplified Chinese font should be preferred, when using ja_JP.UTF-8, a Japanese font should be preferred. In de_DE.UTF-8, a Japanese font will be preferred. If you get a wrong font, you can force the right font to be used in KDE by selecting it explicitely in the KDE control centre instead of the generic place holders "Sans Serif", "Serif" and "Monospace". I.e. select "FZSongTi" in the KDE control centre, if it is not used automatically. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 I � Unicode -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
Hi Mike,
I guess you are using KDE.
In fact I'm using Ratpoison, mostly. However I have tried with KDE and it was the same.
This is just a Qt3 font problem.
Ratpoision doesn't use Qt3 AFAICS.
Qt3 can only use a single font for the complete Han region.,
Then maybe there is a way to configure it to use cyberbit.ttf (mentioned in file:/usr/share/doc/packages/cjk-latex/README.SuSE). Thanks for the hints, which I just saw and wanted to reply to quickly. I'll try to find out more later. -- Hartmut Pilch http://a2e.de/phm -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
PILCH Hartmut <phm@a2e.de> さんは書きました:
Hi Mike,
I guess you are using KDE.
In fact I'm using Ratpoison, mostly. However I have tried with KDE and it was the same.
This is just a Qt3 font problem.
Ratpoision doesn't use Qt3 AFAICS.
Qt3 can only use a single font for the complete Han region.,
Then maybe there is a way to configure it to use cyberbit.ttf (mentioned in file:/usr/share/doc/packages/cjk-latex/README.SuSE).
Yes, you can of course select "Bitstream Cyberbit" in KDE (or "FZSongTi" which also is very complete in the Han-region). But as theses fonts are not very nice for Latin script, it is better to choose good fonts for Latin in your KDE setup and then setup your favorite font for the Han region as a fallback font for these Latin fonts using qtconfig. You have to choose specific Latin fonts in KDE to make this work, it won't work with the generic aliases "Sans", "Serif", "Monospace". To do this, make sure you use the Qt3 qtconfig which is in /usr/lib/qt3/bin/qtconfig, not the Qt3 qtconfig which is in /usr/bin/qtconfig because KDE3 is based on Qt3. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 I � Unicode -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
Hello
But as theses fonts are not very nice for Latin script, it is better to choose good fonts for Latin in your KDE setup and then setup your favorite font for the Han region as a fallback font for these Latin fonts using qtconfig.
You have to choose specific Latin fonts in KDE to make this work, it won't work with the generic aliases "Sans", "Serif", "Monospace".
To do this, make sure you use the Qt3 qtconfig which is in /usr/lib/qt3/bin/qtconfig, not the Qt3 qtconfig which is in /usr/bin/qtconfig because KDE3 is based on Qt3.
This is not working on my system. I tried it several times with different fonts. In my qtrc I set up the font substitution [Font Substitutions] Sans Serif=AR PL SungtiL GB^e Verdana=AR PL New Sung^e I tried both to set up "Sans Serif" and "Verdana" as the default font in konqueror. I get still the same result, for the chinese Characters only a bitmap font is used which will not be scaled and looks quite ugly -> see attached screenshot. Please see also my earlier post "Chinese Font under KDE" for that topic. Bye Florian
Florian Ehinger <florian@kflog.org> さんは書きました:
This is not working on my system. I tried it several times with different fonts.
In my qtrc I set up the font substitution [Font Substitutions] Sans Serif=AR PL SungtiL GB^e Verdana=AR PL New Sung^e
I tried both to set up "Sans Serif" and "Verdana" as the default font in konqueror. I get still the same result, for the chinese Characters only a bitmap font is used which will not be scaled and looks quite ugly -> see attached screenshot.
You are right, this doesn't work anymore. As this used to work, I have opened the following bug report: http://bugzilla.novell.com/show_bug.cgi?id=244579 I think it might be useful for you to create an account for yourself on http://www.opensuse.org. With that account you can then login to http://bugzilla.novell.com and report bugs or add comments to existing bug reports. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 I � Unicode -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
Mike FABIAN <mfabian@suse.de> さんは書きました:
Florian Ehinger <florian@kflog.org> さんは書きました:
This is not working on my system. I tried it several times with different fonts.
In my qtrc I set up the font substitution [Font Substitutions] Sans Serif=AR PL SungtiL GB^e Verdana=AR PL New Sung^e
I tried both to set up "Sans Serif" and "Verdana" as the default font in konqueror. I get still the same result, for the chinese Characters only a bitmap font is used which will not be scaled and looks quite ugly -> see attached screenshot.
You are right, this doesn't work anymore. As this used to work, I have opened the following bug report:
This bug has been fixed now. Please try the updated qt3 packages in http://software.opensuse.org/download/M17N/openSUSE_10.2
Sans Serif=AR PL SungtiL GB^e
Font substitutions for aliases like "Sans Serif" will not work, font substitutions only work for real fonts.
Verdana=AR PL New Sung^e
This one should work now. Note that some Chinese fonts have translated family names and the name listed first by fontconfig depends on the locale used. For example: mfabian@magellan:~$ LC_CTYPE=en_US.UTF-8 fc-list "AR PL SungtiL GB" AR PL SungtiL GB,文鼎PL简报宋:style=Regular mfabian@magellan:~$ LC_CTYPE=zh_CN.UTF-8 fc-list "AR PL SungtiL GB" 文鼎PL简报宋,AR PL SungtiL GB:style=Regular mfabian@magellan:~$ LC_CTYPE=en_US.UTF-8 fc-list "FZSongTi" FZSongTi,方正宋体:style=Regular mfabian@magellan:~$ LC_CTYPE=zh_CN.UTF-8 fc-list "FZSongTi" 方正宋体,FZSongTi:style=Regular mfabian@magellan:~$ However, Qt3 only knows one name of such a font and which one depends on the locale! I.e. if LC_CTYPE=en_US.UTF-8, qt3 will only find "FZSongTi", as far as qt3 is concerned "方正宋体" does not exist if LC_CTYPE=en_US.UTF-8. If LC_CTYPE=zh_CN.UTF-8, the situation is reversed, qt3 will then only find "方正宋体" and will not now about "FZSongTi". Therefore, to make the font substitutions work independent of the locale, you should add all the possible names for a font to the font substitutions, for example write Verdana=FZSongTi^e方正宋体^e instead of just Verdana=FZSongTi^e While trying to fix the problem with the font substitutions reported in http://bugzilla.novell.com/show_bug.cgi?id=244579, several other font bugs in qt3 were fixed. For example, even when LC_CTYPE=zh_TW.UTF-8, qt3 would sometimes refuse to use the font matched by fontconfig for that locale. The default fontconfig setup on openSUSE 10.2 uses CMEXSong for traditional Chinese (if this font is installed of course), i.e.: mfabian@magellan:~$ LC_CTYPE=zh_TW.UTF-8 fc-match sans cmexsong.ttf: "CMEXSong" "Regular" mfabian@magellan:~$ But due to bugs in qt3, this font was not used by qt3 for zh_TW.UTF-8 locale if "Sans Serif" was selected in qt3. This is fixed now. You wrote in another mail: Florian Ehinger> the problem is, that I am normally using the de Florian Ehinger> locale, since I am German. I stayed half a year in Florian Ehinger> China and still studying Chinese. Florian Ehinger> I have installed the founder fonts, but they are not Florian Ehinger> used by KDE normally. Florian Ehinger> I do not want to set up the founder font as the Florian Ehinger> default kde font since for normal latin characters it Florian Ehinger> is not so nice. Florian Ehinger> I just want to set up the font which is used if KDE Florian Ehinger> (or QT) is not able to find the characters in the Florian Ehinger> default font. With the fixed qt3 packages, there are two ways to achieve what you want. For both ways first select your favorite Fonts for German in KDE (i.e. "Verdana" instead of "Sans Serif", ...). Don't use the aliases "Sans Serif", "Serif", and "Monospace"! Then: 1) use font substitutions for Verdana in qtrc as described above 2) don't use the font substitutions but set LC_CTYPE=zh_CN.UTF-8 (for simplified Chinese) or LC_CTYPE=zh_TW.UTF-8 (for traditional Chinese). Keep LANG=de_DE.UTF-8 to keep the rest of your locale settings German. For example: mfabian@magellan:~$ export LANG=de_DE.UTF-8 mfabian@magellan:~$ export LC_CTYPE=zh_CN.UTF-8 mfabian@magellan:~$ locale LANG=de_DE.UTF-8 LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= mfabian@magellan:~$ Setting LC_CTYPE=zh_CN.UTF-8 has no disadvantages for your German desktop, the only effect it has is that the preferred fonts will be simplified Chinese, i.e. aliases like "Sans Serif", "Serif", and "Monospace" will expand to simplified Chinese fonts. That means, if you select "Verdana" in the KDE control centre and Chinese glyphs need to be displayed, and no font substitutions are set up in qtrc, qt3 will fall back to the font given by "fc-match sans" which will be a good Chinese font if LC_CTYPE=zh_CN.UTF-8. If you want to change which Chinese fonts are matched by fontconfig for the generic aliases "serif", "sans-serif", and "monospace", you can add rules as follows to your ~/.fonts.conf: <alias> <family>serif</family> <prefer> <family>DejaVu Serif</family> <family>CMEXSong</family> <family>FZSongTi</family> <family>FZMingTiB</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>DejaVu Serif</family> <family>CMEXSong</family> <family>FZSongTi</family> <family>FZMingTiB</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>DejaVu Sans Mono</family> <family>CMEXSong</family> <family>FZSongTi</family> <family>FZMingTiB</family> </prefer> </alias> I.e. your favorite fonts for German followed by your favorite fonts for Chinese for each of the three generic aliases. Please tell us if you still encounter any problems. PS: I've added you to the CC: of http://bugzilla.novell.com/show_bug.cgi?id=244579 -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 I � Unicode -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
PILCH Hartmut <phm@a2e.de> さんは書きました:
Hi Florian,
thanks for the encouraging hints,
When typing the chinese greeting
ni3 hao3 你好 nin2 hao3 您好
the first of either of the two was represented by a square.
I have no problems with the chinese charakter display in 10.2. I can see all characters. Maybe you haven't installed the right fonts?
but xlsfonts shows lots of chinese fonts on my system.
xlsfonts is not so interesting for as Qt doesn't use server side fonts but client side font rendering using fontconfig/Xft. Nevertheless your xlsfonts output shows that you have the Founder fonts installed. That should be enough to display simplified Chinese correctly in KDE. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 I � Unicode -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
participants (4)
-
Florian Ehinger
-
Mike FABIAN
-
Norbert Klein
-
PILCH Hartmut