On Sunday 09 November 2003 10:23, mathieu perrenoud wrote:
> Hi, I would like to input kanji & cannas. I used to do it under mandrake
> without problems. But now with gentoo it won't work at all.
>
> I have canna & freewnn servers running.
> my .i18n defines everything to be ja_JP, especially:
> XIM=kinput2
> XMODIFIERS="@im=kinput2"
> I've mapped the windows key to the Kanji key.
> I've tried to launch kinput2 with different args
> -canna
> -xim
> -kinput
> ...
>
> but nothing works!
> ctrl + kanji / shift + space don't do anything.
> I've absolutely no clue of why it won't work.
>
> The only error I see is this:
>
> (process:11009): Gtk-WARNING **: Locale not supported by C library.
>         Using the fallback 'C' locale.

You need to have kinput2 running before the application you want to use is 
run. Use the -wnn switch to use it with freewnn. You also need to have 
compile kinput2 with freewnn in your use flags unless you had freewnn 
installed previous to installing kinput2.

Before running kinput2 you also need to set the locale. I've exported LC_LANG 
and LC_CTYPE as "ja_JP" but LC_CTYPE is the only necessary one. I've built 
glibc with nls use flag but I don't know if it is necessary. Hmm, it was in 
the default use flags at one stage but it has been removed.

That's about all there is to it. My /etc/X11/Sessions/kde-3.1.4 looks like 
this:
#!/bin/sh
export LC_LANG="ja_JP"
export LC_CTYPE="ja_JP"
/usr/X11R6/bin/kinput2 -canna &
/usr/kde/3.1/bin/startkde

That gives me Japanese in any program. The only thing I had to do in KDE was 
to change the qt engine to use over-the-spot instead of on-the-spot - and 
that was only to get a couple of applications that didn't like on-the-spot to 
work.


Jason

--
[EMAIL PROTECTED] mailing list

Reply via email to