[wellylug] Follow-up: Japanese support in Debian

JP jumbophut at yahoo.co.in
Mon Feb 9 15:26:00 NZDT 2004


Hi all

Some time ago, I asked a few people about how to get
Japanese input support working on Debian, without
having to make Japanese the primary language of the
system.

Thanks for the suggestions.

Here is what worked in the end:
1. apt-get the canna packages (installation will set
cannaserver to run on boot).
2. apt-get the kochi-gothic font (a TT font with
Japanese support).  I can't remember exactly how I got
this to be visible to apps, but I think it involved
writing a .scale file and then running some program to
add the font (mkfontdir?).
3. apt-get kinput2 (an input method editor)
4. to use Japanese in Mozilla 1.6 (stable backport):
   kinput2 && LC_CTYPE=ja_JP.UTF-8 mozilla &
   Set the default font for Japanese to be Kochi
5. to use Japanese in openoffice.org 1.1 (stable
backport):
   kinput2 && LANG=ja_JP XMODIFIERS="@im=kinput2"
openoffice -writer &
   Enable Asian language support
   Set the default font for Japanese to be Kochi.

If you set these commands up as scripts, they can run
straight from the desktop in KDE, so you have have
separate Mozilla and Mozilla (Japanese support)
'programs'.  You can even remove cannaserver from the
init startup scripts and run it manually as part of
the command for the program, so that there is no
overhead when you don't need it.  It all looks very
tidy from the outside.

Support in other apps (e.g. kwrite) is similarly done
using the LC_CTYPE definition.

Anybody tried this sort of thing with French?  I know
setting the system to use deadkeys works, but that can
drive you nuts when coding C.  What I'm after is an
easy way to switch from deadkeys to no deadkeys and
back again, or some other way to easily enter French
accented characters.

Cheers
Tony


________________________________________________________________________
Yahoo! India Education Special: Study in the UK now.
Go to http://in.specials.yahoo.com/index1.html




More information about the wellylug mailing list