Re: multi-language debian
On Sun, 25 May 2003 19:20:04 +0200
Christian Fiedler <fido2@gmx.net> wrote:
> I got it this way:
>
> I added the following lines to ~/.xsession (kdm)
> --
> /usr/bin/X11/kinput2 -canna &
> xmodmap -e 'keycode 96 = Kanji'
> --
>
> First line starts kinput2 (using canna server, maybe you want to use
> wnn) on x startup, second sets F12 as Kanji key (thats my personal
> favour). If I want to use japanese input for some application, I start
> it using a wrapper file:
>
> >cat ~/bin/japan
> --
> #!/bin/bash
> XMODIFIERS="@im=kinput2" LANGUAGE=en_US LANG=jaJP.eucJP
> LC_ALL=ja_JP.eucJP $1 &
> --
>
> So the following line runs mozilla using kinput2 as input method.
> > bin/japan mozilla
> Here I can input japanese Text
Thanks a lot!
Now I can start programs such as sylpheed with a jap look, and I can look at kanji with ease;
but I still can not write anything other than romaji.
What am I missing?
Anyway, here's my .session :
if [ -z "$XAUTHORITY" ]; then
XAUTHORITY=$HOME/.Xauthority
export XAUTHORITY
fi
LANG=it_IT@euro
export LANG
LC_CTYPE=ja_JP.eucJP
export LC_CTYPE
LC_MESSAGES=it_IT@euro
export LC_MESSAGES
/usr/bin/X11/kinput2-canna &
xmodmap -e 'keycode 96 = Kanji'
And the script:
#!/bin/bash
XMODIFIERS="@im=kinput2i-canna" LANGUAGE=it_IT@euro LANG=ja_JP.eucjp
LC_ALL=ja_JP.eucJP $1 &
Bye,
Guldo
Debian woody 3.0
KDE 2.2
Reply to: