CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page

Categories: General

SCIM Setup


Da-Jun Zhong


This document contain steps to setup Chinese for few softwares. You should be able to adopt to your locale with few changes if you use Simplified Chinese, Japanese, Korean.


SCIM input mehods framework

download latest version of scim from

$su -
$tar xfz scim-1.4.7.tar.gz
$cd scim-1.4.7
$./configure --prefix=/usr --with-gtk-im-module-dir= \
>/usr/lib/gtk-2.0/2.10.0/immodules/ #gtk-im-module-dir may changes with version
$make install
$gtk-query-immodules-2.0 > /usr/etc/gtk-2.0/gtk.immodules

Adjust environment variables

For system wide setting put the following lines to /etc/profile otherwise put it in ~/.profile

export LC_CTYPE=en_US.UTF-8
export XMODIFIERS=@im=SCIM #case sensitive
export GTK_IM_MODULE=scim
scim --no-socket -f x11 -d #or simply scim -d

Now, you can type Ctrl+Space to invoke SCIM input method panel in programs support SCIM.

Input method engines install

Install you favorite Input Method Engine

$su -
$tar xfz libchewing-0.3.0.tar.gz
$cd libchewing-0.3.0
$./configure --prefix=/usr
$make install
$cd ..
$tar xfz scim-chewing-0.3.1.tar.gz
$cd scim-chewing-0.3.1
$./configure --prefix=/usr
$make install
$cd ..

Specific Application Settings

Some applications come with CRUX may need to modified slightly for working properly.


If you wish to input native speach without setting environment variable such as $LANG to your locale, modified /usr/ports/opt/gvim/Pkgfile as the follows.

    ./configure --prefix=/usr \
                --with-vim-name=gvim \
                --with-x=yes \
                --enable-gui=gtk2 \
                --enable-multibyte \
		--enable-xim \                     #add this line
                --disable-gpm \


$su -
$prt-get depinst gvim

Finally, add lines as below to .vimrc or .gvimrc

set encoding=utf-8
set fileencodings=big5,sjis,euc-cn,euc-kr,utf-8


OpenOffice and some applications using standard XIM as input. Add the following line as first line in start script, (say, /usr/lib/openoffice/program/soffice for openoffice).

... other announcements
export GTK_IM_MODULE=xim #add this line

For detail, visit SCIM FAQ page