http://www.scim-im.org/wiki/documentation/installation_and_configuration/ubuntu_kubuntu
Installation of scim on Ubuntu
先安装中文包
sudo apt-get install language-pack-zhMake sure you have the universe repository enabled.
sudo apt-get install scim-gtk2-immoduleThen install the input method engines you plan to use.
sudo apt-get install scim-pinyinSystem configuration
Environment variables
Create a file called 75custom-scim_init in /etc/X11/Xsession.d
Paste the following into it:
export XMODIFIERS="@im=SCIM"It is useless to export QT_IM_MODULE="scim" because the Qt-immodule patch is not applied in Ubuntu's Qt. Therefore, scim (or skim) interacts with KDE/Qt apps via XIM protocol.
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"
Locale configuration
Please read the System configuration section to know which locale you should use. We strongly recommand you to choose a *.UTF-8 locale.
sudo dpkg-reconfigure localesSelect the locale you have chosen as default, it may be already.
Then edit the /etc/environment file. It must include the following:
LANG=en_US.UTF-8Where en_US.UTF-8 is to replace with the locale you have chosen.
LC_CTYPE=en_US.UTF-8
**切记,这里不能是utf8
The file must not define the LC_ALL variable !
If your locale is not en_US.UTF-8, you have to add it to scim supported unicode locales.
mkdir ~/.scimwhere fr_FR.UTF-8 is your locale.
echo '/SupportedUnicodeLocales = en_US.UTF-8,fr_FR.UTF-8' > ~/.scim/global
Scim loading at start-up
Scim should be loaded when you start a Gtk application.
If you want it to be loaded automatically at start-up, go to System->Preferences->Sessions, choose Startup Programs, and add
scim -dYou can keep the order at 50.
OK,配置完成,重启X或者系统。
No comments:
Post a Comment