|
|
|
|
9.7.9 Example for a multilingual X window system
Let us set up a multilingual X window system which simultaneously supports
Japanese, English, German, and French with EUC, UTF-8, and ISO-8859-1 encodings
in different consoles.
I will show you a customization using the Debian menu system. See the details
of Debian menu system in /usr/share/doc/menu/html/index.html .
I also create a shortcut to the mozilla web browser in this
example. [
46]
-
create the ~/.xsession that sets the user-specific X environment
as described in
Custom X sessions, Section 9.4.5.1
(for all):
#!/bin/sh
# This makes X work when I su to root.
if [ -z "$XAUTHORITY" ]; then
XAUTHORITY=$HOME/.Xauthority
export XAUTHORITY
fi
# Set specific environment through debian menu system.
# Reset locale
unset LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
unset LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
unset LC_IDENTIFICATION LC_ALL LANG LANGUAGE PAGER
# set locale default in X
LANG=C
# export locale
export LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
export LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
export LC_IDENTIFICATION LC_ALL LANG LANGUAGE PAGER
###
# activate input method for Japanese with kinput2
kinput2 &
XMODIFIERS="@im=kinput2"
export XMODIFIERS
# How about blackbox window manager (lightweight)
exec blackbox
#exec xfwm
#exec wmaker
-
add the following lines to ~/.muttrc (for Japanese):
# UTF-8 support is not popular in popular Japanese EMACS environment
# 7-bit encoding of iso-2022-jp is easier for everyone.
# default encoding order = us-ascii --> iso-8859-1 --> iso-2022-jp
set send_charset="us-ascii:iso-8859-1:iso-2022-jp"
set allow_8bit=no
-
start X by typing startx or from one of the display managers
(xdm , gdm , kdm , wdm , ...)
(for all).
-
start a Japanese-compatible application such as Vim 6, (x)emacs21, mc-4.5,
mutt-1.4, ... in kterm (for Japanese). (Emacs seems to be the
most popular platform, though I do not use it.)
For other CJK language supports, see the following sections and SuSE pages for
CJK .
|
|
|