魅力博客

魅力Linux|魅力空间|魅力博客|学习Linux|ubuntu日记|电脑教程|手机软件

Ubuntu最全教程之菜鸟飞飞 九.scim-python输入法安装



九.scim-python输入法安装

    scim-python基于scim, 安装后即与 scim 整合, 整合了搜狗拼音输入法的词库,而

且能动态调整词频,用辅助键选词,简单的英文提示。scim-python带了两个输入法:巨

蟒拼音输入法和整句输入法。 缺点是:因为 python的缘故,某些情况下反应比较慢,一

般情况下反应速度还是可以。

安装步骤:

    http://code.google.com/p/scim-python/downloads/list下载 scim-python

源代码包。

    执行下列命令:

$ sudo apt-get install scim-dev

$ sudo apt-get install python-enchant

$ sudo apt-get install python-gtk2-dev

$ sudo apt-get install libgtk2.0-dev

$ tar jxvf scim-python-${version}.tar.bz2

$ cd scim-python-${version}

$ ./configure –prefix=/usr

$ make

$ sudo make install

    重新登录桌面系统。

    设置习惯自己的快捷键:比如左右 Ctrl 切换中英文,左右 shift选词 2,3

sudo gedit ~/.scim/config

    修改:

/IMEngine/Chewing/ChiEngKey = 

Control+Control_R+KeyRelease,Control+Control_L+KeyRelease

/IMEngine/Pinyin/ModeSwitchKey = 

Control+Control_L+KeyRelease,Control+Control_R+KeyRelease

/IMEngine/Table/ModeSwitchKey = 

Control+Control_L+KeyRelease,Control+Control_R+KeyRelease

    重启 X,OK。

让 scim 实现光标跟随:

修改 /etc/X11/xinit/xinput.d/scim 改成这样:

#GTK_IM_MODULE=xim

#QT_IM_MODULE=xim

GTK_IM_MODULE=scim

QT_IM_MODULE=scim

如果出现下列错误:

../libtool: line 1311: g++: command not found

make[2]: *** [_scim_la-scim-python.lo] 错误 1

make[2]: Leaving directory `/home/leslie/scim-python-0.1.8/src’

make[1]: *** [install-recursive] 错误 1

make[1]: Leaving directory `/home/leslie/scim-python-0.1.8/src’

make: *** [install-recursive] 错误 1

安装:sudo apt-get install build-essential gcc make autoconf automake 

libtool gdb g++



返回顶部

发表评论:

Powered By Z-BlogPHP 1.7.3


知识共享许可协议
本作品采用知识共享署名 3.0 中国大陆许可协议进行许可。
网站备案号粤ICP备15104741号-1