#force EN menu and error displaying LANGUAGE=C LC_COLLATE=C LC_NUMERIC=C LC_MONETARY=C LC_TIME=C export LANGUAGE export LC_COLLATE export LC_NUMERIC export LC_MONETARY export LC_TIME
http://dspnet.fr.eu.org/~lonewolf/LinuxJapan/Howto_English_Japanese.html
This howto is a step by step guide to configure a working Debian english system, with the capability of displaying AND writing japanese.
You need a bunch of package to be able to use japanese (from Debian Reference):
install Kana-to-Kanji conversion system and dictionary (for Japanese):
canna - Local server ("free-beer" license), or
freewnn-jserver - Network-extensible server (Public Domain)
install Japanese input method system (for Japanese):
kinput2-canna - for X, or
kinput2-canna-wnn - for X, and
egg - directly works with Emacsen even in console (optional)
Install compatible terminals (for all):
xterm - X (for ISO-8859-1 and UTF-8),
kterm - X (for Japanese EUC), and
mlterm - X (multilingual).
rxvt-ml - X (multilingual).
Install japanese font:
ttf-kochi-gothic - X (for ISO-8859-1 and UTF-8),
ttf-kochi-mincho - X (for Japanese EUC), and
watanabe-vfont - X (multilingual).
gs-cjk-resource - X (multilingual).
ttf-xtt-watanabe-mincho - X (multilingual).
x-ttcidfont-conf
The list seems to be the minimum requirement. You may need additional fonts, and the best way to find out is to use apt-cache (such like "apt-cache search mincho" or "apt-cache search kochi")
LaTeX and CJK installation (if needed)
cjk-latex
hbf-kanji48
Configuration
language-env
Since I'm familiar with canna and kinput2, I suggest you use it, too.
You must add to your system the proper locales: en_US.ISO-8859-1 ja_JP.eucJP You may need en_US.UTF8 or ja_JP.UTF8, also.
To do this, just type dpkg-reconfigure locales and follow the instructions. The tool will generate all the locale you checked in.
You'll need to use the set-language-env script. Select the "7 : ja (Nihongo,Japanese)" and answer all questions default (it is written in japanese and I'm not able to translate it)
The set-language-env script will modify your .bashrc, .bash_profile and .Xressources files. The system is quite clever:
If your terminal is japanese capable, you will have a japanese locale
If not, it falls back to C locale.
This system is very useful to Japanese speaking users,but it is not suitable for English speaking users who need a system which responds in english, not in japanese. Besides, if the terminal you use to launch X with startx isn't japanese capable, your X Window session won't be as well.
So you need to change a few things. add this at the end of your .bashrc:
#force EN menu and error displaying LANGUAGE=C LC_COLLATE=C LC_NUMERIC=C LC_MONETARY=C LC_TIME=C export LANGUAGE export LC_COLLATE export LC_NUMERIC export LC_MONETARY export LC_TIME
You'll still have Japanese locales ON, but all the common display will be in english.
Edit your XF86Config file, search for freetype, and:
# Load "freetype" Load "xtt"
Comment freetype and add xtt driver. Warning: X will fail if freetype and xtt are loaded together
Then, search for "FontPath" and add:
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
edit your .xinitrc file and add this, just before window manager.
# Start Japanese environment export LANG=ja_JP.eucJP export LC_MESSAGES=ja_JP.eucJP #change to en_US on Sarge, otherwise Mozilla will be in japanese export LC_CTYPE=ja_JP.eucJP LANGUAGE=C export LANGUAGE # Start Japanese input XMODIFIERS="@im=kinput2" export XMODIFIERS kinput2 -xim -kinput -canna & xmodmap -e 'keycode 115 = Kanji' [window manager - mine is fvwm2]
All the locales will be set to japanese but, to keep the English menu, we add LANGUAGE set up to C locale. You can probably use your own locale as well (such as French) but you may have some problems with accents and kanji.
At this stage, we launch the kinput2 software which can handle japanese entry, and we add the left Windows Key as "Kanji Key". The default {Shift space} remains, but since the Windows key is unused…
List of the Windows Keys codes.
left Windows key: 115 right Windows key : 116 right Window menu key : 117
Terminal.
LaTeX-CJK
Various X softwares
Gimp 1.2.
Mozilla