Suppose you need an English environment with Chinese support.
For chinese display
1. install kdei (in slackware-11.0-CD3)
Code:
kde-i18n_kde-i18n-zh_CN-3.5.4-noarch-1.tgz <--- for Simplified Chinese suuport.
kde-i18n-zh_TW-3.5.4-noarch-1.tgz <--- for Tranditional Chinese support.
2. install fonts. There are many options.
(a) Copy TTF fonts from Windows to Slackware (sim*.ttf)
(b) Download TTF fonts from
http://www.ctan.org/tex-archive/fonts/arphic/
Code:
gbsn00lp-20050720.tar.gz <--- simplified Chinese fonts
gkai00mp-20050720.tar.gz <--- simplified Chinese fonts
bkai00mp-20050720.tar.gz <--- BIG5 fonts for traditional Chinese
bsmi00lp-20050720.tar.gz <--- BIG5 fonts for traditional Chinese
(c) Download WQY fonts from
http://wqy.sourceforge.net/cgi-bin/enindex.cgi
Install Chinese fonts as TTF fonts as other post discussed.
Then you can read Chinese without problems.
For Chinese input
3. Install SCIM,
Code:
wget http://downloads.sourceforge.net/scim/scim-1.4.5.tar.gz
tar zxvf scim-1.4.5.tar.gz
./configure --prefix=/usr
make && make install
4. Install IME engine
Code:
wget http://downloads.sourceforge.net/scim/scim-pinyin-0.5.91.tar.gz
tar zxvf scim-pinyin-0.5.91.tar.gz
./configure --prefix=/usr
make && make install
Configure SCIM
5. setup locale
Code:
export LANG=en_US.UTF-8
or if you would like to set up locale globally, edit
/etc/profile.d/lang.sh if you are using bash.
Code:
#File /etc/profile.d/lang.sh
#export LANG=en_US
export LANG=en_US.UTF-8
6. setup environment variables
Code:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
7. invoke Chinese input method. From a console, type
8. If you edit file in kedit or kate, you can hit Ctrl+SPC to active pinyin input.
I cannot active "Pinyin Input" in vim or emacs. If you have a solution for vim and emacs editor, please post here.
I have created scim.Slackbuild, scim-pinyin.SlackBuild, scim-fcitx.SlackBuild, and *-.tgz for my own use. I don't know how to upload.