Bernhard Rulla <b.rulla@arcor.de> writes:
thanks for your support Mike. Although it does not work fully, yet, I am at least able to see some hiragana. :)
What did I do:
1) I returned my system to German values, as you advised in your last mail. 2) I proceed, after booting, with the following commands: export XMODIFIERS="@im=kinput2" LANG=ja_JP kinput2 -xim -kinput -canna & LC_CTYPE=ja_JP kmail
OK, then I can activate the XIM as before but when I push Return, everything converts to small squares. There are no question marks anymore, because I changed the font to jis-fixed and activated unicode for mails. But still, in a mail that I try to write, I see only nothing but squares.
jis-fixed is not a unicode font. If you want to use jis-fixed, you should not activate the "Use unicode font for messages" checkbox, then the square boxes will disappear and you will see Japanese characters. jis-fixed is a font in jisx0208.1983-0 encoding, you will not be able to write German umlauts using that font.G To write German you have to switch back to a font which can display German umlauts. If you often write both, Japanese and German, having to switch fonts all the time will soon become tedious, than you may want to use a Unicode font which contains glyphs for both languages. For example the GNU-Unicode font is suitable for Japanese and German and it is already available on your machine, because it belongs to one of the YaST2 packages. In the font selection box of KDE2 (i.e. in the KMail setup), the GNU-Unicode font is listed as "unifont". If you want to use that font, please check that you have ":unscaled" appended to the relevant FontPath in /etc/X11/XF86config: FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled" without the ":unscaled", KDE2 may try to scale this font, which will be extremely ugly. Scaled bitmap fonts are always very ugly. Using the GNU-Unicode font for E-Mails will make both German and Japanese readable, but you have only one size available (16 pixel). On top of that, it is a proportional font and E-Mails don't look nice when proportional fonts are used (at least in my opinion). The efont-unicode package ftp://ftp.suse.com/pub/people/mfabian/8.0-noarch/efont-unicode.rpm will give you fonts in a few more sizes (12, 14, 16, 24 pixels) which are monospaced. Use these which are listed with family "biwidth" by xlsfonts: D13:~ # xlsfonts | grep "efont.*medium-r-normal--24" -efont-biwidth-medium-r-normal--24-240-75-75-p-120-iso10646-1 -efont-fixed-medium-r-normal--24-240-75-75-c-120-iso10646-1 -efont-fixed-medium-r-normal--24-240-75-75-c-240-iso10646-1 D13:~ # They appear in the font listing of KMail just as "biwidth". They have "-p-" in their XLFD which means "proportional" because the CJK characters in these fonts are twice as wide as the latin characters, i.e. technically these are not really monospaced fonts. But all latin characters have the same width and all CJK characters have the same width, i.e. for practical purposes in you e-mail composer you can consider them as monospaced fonts. The efonts listed with family "fixed" are pairs of fonts, the one with the smaller value in the average width field contains the latin characters only, the one with the bigger value in the avarage width field the CJK characters only. You need such pairs of fonts for xterm in UTF-8 mode to display CJK characters. For KMail you need the "biwidth" fonts which contain the whole Unicode range. For other sizes, you could use commercial TrueType fonts like Bitstream Cyberbit or MS Arial Unicode which cover almost everything of Unicode 2.0. But both are not free, both are proportional and Bitstream Cyberbit is also very ugly. Probably the fonts from the efont-unicode package are best for German and Japanese e-mail in KMail in KDE2. Or upgrade to Qt3/KDE3 (distributed with SuSE Linux 8.0), then you will have much more fonts to choose from, because in Qt3 you can combine fonts, you don't need to have one single Unicode font to cover everything. See also http://www.suse.de/~mfabian/suse-cjk/kde-font-setup.html
In mails which I received, however, I can identify some hiragana, like in your signature. You write something like XXXX ha i i XX no X da. I see the X as squares. Maybe we can try a counter-test. Can you read this? 日本語は難しいですね。 I wanted to write "Nihongo ha muzukashii desu ne."
Yes, no problem.
if you have installed xfntjp.rpm you should have a quite large selection of Japanese bitmap fonts.
Obviously, I have not installed this. I looked for it on rpmfind.org and found some quite large files (16MB), so I backed away from downloading them.
On the German edition of SuSE Linux 7.3 Professional, it is available on CD5: CD5/suse/j2/xfntjp.rpm
Maybe it is a must to do?
It is not absolutely necessary, it just gives you some more Japanese bitmap fonts to choose from. The efont-unicode package is probably more interesting for you if you want to use German *and* Japanese in KMail of KDE2. It is also huge (27MB) and unfortunately it is not on the SuSE Linux 7.3 CD set, i.e. you need download it from the URL given above.
If you want Anti-Aliasing, you can use the free Japanese TrueType fonts "Kochi Mincho" and "Kochi Gothic" fonts which are available as well on the SuSE Linux 7.3 CD set.
In the first step, I am keen on seeing complete Japanese text, anti-aliasing comes later. I looked for these two fonts anyway but could not find them on my SuSE CDs. Where do I have to look?
CD5/suse/han1/ttf-kochi-gothic.rpm CD5/suse/han1/ttf-kochi-mincho.rpm If you use YaST2 to install additional package, you will find a 'search' button where you can enter 'xfntjp' or 'kochi'. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
After upgrading to suse 8.0 I had a strange problem with canna (which had worked before, and which I eventually could resolve): canna seemed not to work anymore, xemacs etc reporting that it couldn't connect to the canna server and: # ps -aux | grep canna wnn 463 0.0 0.0 1716 4 ? S 07:28 0:00 /usr/sbin/cannaserver wnn 464 0.0 0.0 0 0 ? Z 07:28 0:00 [cannaserver <defunct>] user1 838 0.1 1.0 4268 792 ? S 07:31 0:05 kinput2 -xim -kinput -canna root 1099 0.0 0.8 2020 640 pts/4 D 08:43 0:00 grep canna # /etc/init.d/rc5.d/S06canna stop Shutting down Canna Kanji ServerCannot connect with cannaserver "unix". done I upgraded to the then newest canna packages but this did not help, currently I have # rpm -q -a |grep canna cannadic-0.92-190 canna-yubin-0.0.20010601-220 canna-3.5b2-409 What seemed to have helped finally on June 12 was to insert "unix" into the /etc/hosts file somewhere together with localhost. It then worked fine for nearly a month, until suddenly, on July 7, canna again stopped working with the same symptoms as before (strangely enough as I did not change whatsoever on the system since I made that change in /etc/hosts). Today, I removed /etc/hosts.canna (which contained nothing other than localhost and unix in separate lines) and it worked again. I assume this is no security risk as all ports from outside are closed and the system is standalone (see http://www.suse.de/~mfabian/suse-cjk/canna-access-control.html for details). I also have an strace -f -o /tmp/cannaserver-log /usr/sbin/cannaserver log (when it still did not work) that ends in a segmentation fault of the child process that is forked away before the child does anything interesting according to strace. So, basically it seems to work again, though I cannot really explain what suddenly went wrong and why it works again. Best regards, Wolfgang Wolfgang SLANY mailto:wsi@dbai.tuwien.ac.at
Wolfgang Slany <wsi@dbai.tuwien.ac.at> writes:
After upgrading to suse 8.0 I had a strange problem with canna (which had worked before, and which I eventually could resolve): canna seemed not to work anymore, xemacs etc reporting that it couldn't connect to the canna server and:
[...]
What seemed to have helped finally on June 12 was to insert "unix" into the /etc/hosts file somewhere together with localhost.
Yes, both "localhost" and "unix" are necessary to give the host running the canna server access to its own canna server, only one of them is not sufficient! If you have a non-empty /etc/hosts.canna file, it should contain at least the lines localhost unix to give the host running the canna server access.
It then worked fine for nearly a month, until suddenly, on July 7, canna again stopped working with the same symptoms as before (strangely enough as I did not change whatsoever on the system since I made that change in /etc/hosts).
Today, I removed /etc/hosts.canna (which contained nothing other than localhost and unix in separate lines) and it worked again.
I guess you had a space behind either "localhost" or "unix". This is already enough to prevent access. Canna is *very* picky about the syntax of /etc/hosts.canna.
I assume this is no security risk as all ports from outside are closed and the system is standalone
Yes, in that case you can safely delete /etc/hosts.canna.
(see http://www.suse.de/~mfabian/suse-cjk/canna-access-control.html for details).
I have improved that description now to make it more clear that both "localhost" and "unix" are needed and that you should not add any extra spaces. Probably I should patch Canna to ignore at least the spaces when reading /etc/hosts.canna. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
On Mon, 22 Jul 2002, Mike Fabian wrote:
I guess you had a space behind either "localhost" or "unix". This is already enough to prevent access. Canna is *very* picky about the syntax of /etc/hosts.canna.
But how should the space have been inserted? I did not touch the /etc/hosts* files and it had worked the previous day. Best regards, Wolfgang
Wolfgang Slany <wsi@dbai.tuwien.ac.at> writes:
On Mon, 22 Jul 2002, Mike Fabian wrote:
I guess you had a space behind either "localhost" or "unix". This is already enough to prevent access. Canna is *very* picky about the syntax of /etc/hosts.canna.
But how should the space have been inserted? I did not touch the /etc/hosts* files and it had worked the previous day.
I thought that you had edited the /etc/hosts.canna file because you wrote:
What seemed to have helped finally on June 12 was to insert "unix" into the /etc/hosts file somewhere together with localhost.
The default /etc/hosts.canna file which comes with the SuSE canna package contains the two lines localhost unix i.e. if "unix" was not there and you had to insert it, it looks like you changed the default manually. When editing it is of course easy to accidentally insert an additional space somewhere. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
On Tue, 23 Jul 2002, Mike Fabian wrote:
Wolfgang Slany <wsi@dbai.tuwien.ac.at> writes:
On Mon, 22 Jul 2002, Mike Fabian wrote:
I guess you had a space behind either "localhost" or "unix". This is already enough to prevent access. Canna is *very* picky about the syntax of /etc/hosts.canna.
But how should the space have been inserted? I did not touch the /etc/hosts* files and it had worked the previous day.
I thought that you had edited the /etc/hosts.canna file because you wrote:
What seemed to have helped finally on June 12 was to insert "unix" into the /etc/hosts file somewhere together with localhost.
The default /etc/hosts.canna file which comes with the SuSE canna package contains the two lines
localhost unix
i.e. if "unix" was not there and you had to insert it, it looks like you changed the default manually. When editing it is of course easy to accidentally insert an additional space somewhere.
I never edited /etc/hosts.canna, I only edited /etc/hosts, and this on June 12, after which canna worked for almost a month before it got its problem again, without me editing /etc/hosts or /etc/hosts.canna after June 12. So there was no spurious space in /etc/hosts.canna at anytime. Mysterious ... Best regards, Wolfgang
Wolfgang Slany <wsi@dbai.tuwien.ac.at> writes: [...]
I never edited /etc/hosts.canna, I only edited /etc/hosts,
Oh, sorry, I didn't read your mail carefully enough.
and this on June 12, after which canna worked for almost a month before it got its problem again, without me editing /etc/hosts or /etc/hosts.canna after June 12. So there was no spurious space in /etc/hosts.canna at anytime.
Mysterious ...
Yes, then I really don't know. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Mike Fabian
-
Wolfgang Slany