HTTP/1.1/GET Sat, 31 Jul 2010 01:49:58 +0000
URL » www.hafenscher.net/wiki/index.php?page=Linux_goes_japanese

Wiki › Linux, Mac OS X, Windows and more.

wiki home
recent pages:    Home > Linux goes japanese
Page: Linux goes japanese

LINUX GOES JAPANESE
Japanese input in debian?

No problem at all.

Topic Update
This topic update is for users which tried already the description below.
In the meantime I prefer uim-xim with engine anthy as input method. Instead of ime I am using ime2 with this content:
XMODIFIERS=@im=uim GTK_IM_MODULE="uim" LC_CTYPE=ja_JP $1
And instead of running kinput2 in background I start the following:
uim-xim --engine=anthy &
That's it. The rest is as with kinput2 described below.
...and after a brandnew installation of my system I was able to figure out the needed packages for uim-xim:
apt-get install uim-xim uim-anthy
...just install with all dependencies.

There is also one interesting engine... scim with skim for kde... but did not figure out how to use it yet. If you have any details please let me know.

Install The Packages
  
canna
  
kinput2-common
  
kinput2-canna
  
xfonts-intl-asian
  
xfonts-intl-japanese
  
xfonts-intl-japanese-big

Generate the locale ja_JP
by adding the following line to /etc/locale.gen

  
ja_JP.EUC-JP EUC-JP
  
ja_JP.UTF-8 UTF-8

Then execute locale-gen.

Create an executable file called /usr/bin/ime containing

  
#!/bin/bash
  
XMODIFIERS="@im=kinput2" LC_CTYPE=ja_JP $1 &

Then start any program you like with

ime programname

Some explanation:
* Make sure canna server is running
* Start kinput2 -canna in background
* Start any program using ime programname
* Then you can activate kinput2 by pressing SHIFT+SPACE
* If it is active it will convert romaji input into kana and kanji. If you want to accept the underlined text press RETURN.
* To switch possible kanji/kana press SPACE while your input is highlighted.
* For little kana prefix the input with x.

Sucessfully tested programs (on a basically english system using german keyboard for input): kterm, kate, gimp

If you need a terminal window supporting kanji/kana try kterm.

The package kanjipad might also be interesting for you.


© 2000 - 2010 Wolfgang Hafenscher
About   Impressum   Disclaimer

Online Consulting

validate
# 20001