日期:2014-05-16  浏览次数:20754 次

Ubuntu下 配置 fitx -Fun Input Toy for Linux (系统默认语言为英语)
大家知道在Windows下搜狗拼音输入法以及谷歌拼音输入法也非常好用,而Ubuntu下自带的中文输入法实在是不敢恭维,幸好有了Fun Input Toy for Linux,非常好用,是Google Code的一个Project,具体的特色功能以及下载地址参见[url]http://code.google.com/p/fitx/ [/url]我就不浪费空间了。
    
     首先安装scim,scim-python,以及fitx。第一个可以使用
sudo apt-get install scim
进行安装。而 scim-python,fitx到
http://code.google.com/p/fitx/
处下载。

     在英文环境下,默认的输入法是system,并且 具体的选项并没有配置,所以只须将scim的配置copy给system即可。
 sudo gedit /etc/X11/xinit/xinput.d/default
改为如下形式即可:

#
 # This configuration provides default IM setting (user edittable)
 # See im-switch(8) and /usr/share/doc/im-switch/README.Debian .

 #
 # Define IM for traditional X application with XIM
 #
 # XIM server name used for XMODIFIERS="@im=$XIM"
 # XIM program /path/filename
 # XIM program command line arguments
 #
 # These were traditional setting before uim and scim for CJK languages
 # Language   LC_CTYPE     XIM server XMODIFIERS              Start key
 # Japanese   ja_JP*       kinput2    "@im=kinput2"           Shift-Space
 # Korean     ko_KR*       ami        "@im=Ami"               Shift-Space
 # Chinese(T) zh_TW.Big5   xcin       "@im=xcin-zh_TW.big5"   Ctrl-Space
 # Chinese(S) zh_CN.GB2312 xcin       "@im=xcin-zh_CN.GB2312" Ctrl-Space
 # 
 XIM=SCIM
 XIM_PROGRAM=/usr/bin/scim
 XIM_ARGS="-d"
 XIM_PROGRAM_XTRA=
 # Set following variable to non-zero string if program set itself as deamon
 XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
 #
 # Define GTK and QT IM module
 #   They may or may not be using xim as the IM.
 #
 GTK_IM_MODULE=xim
 QT_IM_MODULE=xim

 #
 # Define lists of packages neded for above IM to function
 #
 DEPENDS="scim,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangle|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"

 #
 # Define X start up hook script to update IM environment
 #

全部复制过去,重启X即可。