1>scim输入法
官方网站
下载地址:
IMEngines Download
编译scim-1.4.7
在./configure 的时候要同时指定PKG_CONFIG_PATH环境变量,以便能够找到当前系统所安装的模块,默认状态下,configure脚本会根据当前系统中以安装的模块来决定编译相应的功能。
添加一种输入法以后,我们必须为下面的文件添加相应的记录,否则gtk程序无法识别刚才安装的输入法。
/usr/gpephone/etc/gtk-2.0/gtk-immodules
通过下面的方法来添加
gtk-query-immodules-2.0 > $V_ROOT/etc/gtk-2.0/gtk.immodules
如:安装了scim以后,增加了如下内容
"/usr/gpephone/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/gpephone/share/locale" "ja:ko:zh"
设置系统环境变量
export GTK_IM_MODULE_FILE=/usr/gpephone/etc/gtk-2.0/gtk.immodules
export GTK_IM_MODULE=scim
----------------------------------------------------------
2>ptim输入法
imheaders
imhelper
imengine
immanager
/usr/gpephone/etc/gtk-2.0/gtk-immodules
"/usr/gpephone/lib/gtk-2.0/2.10.0/immodules/im-ptim.so"
"ptim" "Phone Text Input Method" "gtk+" "" "en:zh"
/usr/gpephone/lib/gtk-2.0/immodules/ptim/engine/ime-keyboard.la
/usr/gpephone/lib/gtk-2.0/immodules/ptim/engine/ime-keyboard.so
/usr/gpephone/lib/gtk-2.0/immodules/ptim/engine/ime-keyboard.a
/usr/gpephone/lib/gtk-2.0/immodules/ptim/pydatabase/pybase.mb
----------------------------------------
ubutu下安装:
sudo apt-get install scim
sudo apt-get install scim-chinese
sudo apt-get install scim-config-socket
sudo apt-get install scim-gtk2-immodule
sudo apt-get install scim-tables-zh
wget -c
sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/
sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/
sudo fc-cache -f -v
2>ptim输入法
阅读(1902) | 评论(1) | 转发(1) |