Wednesday, April 08, 2009

Gentoo 安裝 gcin 中文輸入法

碰到中文輸入,原本想 emerge scim 的,結果找了半天都只有簡體中文的輸入法,於是下載 gcin 的原始檔來編。 想不到一開始就碰到 anthy.h 找不到,找到 patch 把這個功能關掉。

編好才是傷腦筋的開始。有幾個環境變數要改,卻不知道在哪個檔。看了半天 gdm 啟動的過程會執行 .xim,才從 /etc/skel/.xim 下手,加了

export XMODIFIERS=@im=gcin
export LC_CTYPE=zh_TW.UTF-8

然後又要找個適合的地方執行 gcin 程式,看了半天發現直接在 Preference 選單加到 startup programs 裡面就好了。

Gentoo Installation Notes

After xorg-server and gnome is successfully emerged, the keyboard and mouse are simply not working with startx. After starting hald, dbus and avahi-* in /etc/init.d/, it still not get the input device. Finally, add

Option "AllowEmptyInput" "false"

in the "ServerLayout" section of xorg.conf solve this issue.