To install SCIM, follow the following steps:
1. #emerge arphicfonts
2. #emerge scim scim-pinyin
3. $nano ~/.xinitc
Add these lines to the .xinitc file:
1
2
3
4
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
/usr/bin/scim -d
As a result, the .xinitc file may look like this:
1
2
3
4
5
6
export XDG_MENU_PREFIX=gnome-
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
/usr/bin/scim -d
exec gnome-session
If your SCIM can startup, but it can’t switch to pinyin engine, you can add a line to the .xinitc file:
1
2
3
4
5
6
7
export XDG_MENU_PREFIX=gnome-
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
/usr/bin/scim -d
exec gnome-session
After these have been done, you need to restart gnome to make it work.