Martin Lechner
2: Is it possible to have japanes and chinese Input method installed,
Yes.
and to use both in one document? ( I want to try the xcin server.)
Only in some cases.
Only a few programs can switch between input methods on the fly.
Mlterm and Yudit are the only programs I know which can switch between
different XIM servers on the fly, i.e. if you edit your document in
Yudit or with Vim in an mlterm you can switch between different XIM
input methods.
GTK2 has input modules which can be switched on the fly, i.e. in every
GTK2 program you can open a popup menu with Control+Right-Mouse-Button
and switch between the installed input GTK2 input modules. One of
these input methods is XIM and you cannot switch which XIM server is
used by GTK2 programs on the fly, this is only selected when the
program starts by the values of LC_CTYPE and XMODIFIERS. But you can
switch between XIM and any other GTK2 input module on the fly.
Emacs and XEmacs have some built-in input methods and interfaces to
some input methods which can be switched on the fly.
With Qt/KDE programs you currently have only XIM and can only
use one XIM server at a time.
As a (ugly) workaround you can start two such KDE applications,
one for input of Japanese:
LC_CTYPE=ja_JP.UTF-8 XMODIFIERS=@im=kinput2 kwrite
and one for input of Chinese:
LC_CTYPE=zh_TW.UTF-8 XMODIFIERS=@im=kinput2 kwrite
and use cut and paste from one KDE program to the other.
In future IIIMF will improve the situation. IIIMF is the designated
successor of XIM and is designed to enable switching input methods on
the fly.
--
Mike Fabian