Note: Fcitx and SCIM are (what I believe) popular Chinese input methods for Linux. They are maintained actively and have been updated for several times since last year. Therefore their features may have already been a little different from what I describe here. For latest news and detailed document, please refer to their homepage.
I did not manage to install an early version of SCIM successfully in Athena. I have forgotten the exact reason, but I guess either it need to copy some files to a folder which I do not have write access right, or I have not configure it properly. The result was that after the installation I cannot bring up the input banner.
Then I turned to Fcitx. Through proper configuration, it can be installed to a local folder. And then by changing the language environment, I did make it run.
Installation of Fcitx is not difficult. Read the online documents for instructions on installation, download the source files, configure, compile (Make), and install it to some place in your home direcotry (e.g., ~/fcitx).
It's not suggested to use the RPM version directly, because we need root permission to install RPM.
After installing fcitx, we need to make some setting on the locale for it to run. I use the following script:
#!/bin/bash
LANG=zh_CN.gb18030
LC_ALL=zh_CN.gb18030
LC_CTYPE=zh_CN.gb18030
KDE_LANG=zh_CN.GB18030
export LANG LC_ALL LC_CTYPE KDE_LANG
export XMODIFIERS=@im=fcitx
fcitx &
#metacity&
#exec wmaker
#exec kde
#exec gnome-session
$1
killall fcitx
Save it as cfcitx.sh, add execute permission:
chmod u+x cfcitx.sh
Then we can use this script to run those programs in which we want to input Chinese characters. For example:
cfcitx gedit&
Here gedit is an editor that supports UTF-8, which helps to display Chinese characters correctly.