|
|
第6行: |
第6行: |
| '''Fcitx──小企鹅输入法:Free Chinese Input Toy for X是一个以GPL方式发布的、基于XIM的简体中文输入法集合(原为G五笔),包括五笔、五笔拼音、二笔、仓颉、晚风、冰蟾全息、拼音(全拼和双拼)、区位以及码表输入模块。''' | | '''Fcitx──小企鹅输入法:Free Chinese Input Toy for X是一个以GPL方式发布的、基于XIM的简体中文输入法集合(原为G五笔),包括五笔、五笔拼音、二笔、仓颉、晚风、冰蟾全息、拼音(全拼和双拼)、区位以及码表输入模块。''' |
| '''Fcitx是非常轻巧的输入法,但是原作者于2007年夏终止了该项目据传其导火索缘于有 编程高手 质疑其代码风格。 很快便传出有人接手了其项目,目前Fcitx仍在开发中。''' | | '''Fcitx是非常轻巧的输入法,但是原作者于2007年夏终止了该项目据传其导火索缘于有 编程高手 质疑其代码风格。 很快便传出有人接手了其项目,目前Fcitx仍在开发中。''' |
− |
| |
− | ==fcitx的安装==
| |
− | [[Image:Fcitx_4.png|thumb|512px|center|Fcitx 4 默認輸入法主題]]
| |
− | 请打开终端,并执行以下命令
| |
− | <pre>
| |
− | 为了防止scim与fcitx冲突,如果你安装了scim,你最好卸载掉scim(有一次我的fcitx莫名其妙无法上屏,卸载掉就正常了):
| |
− | sudo apt-get purge scim</pre>
| |
− |
| |
− |
| |
− | <pre>
| |
− | sudo add-apt-repository ppa:fcitx-team/stable #最新的版本都不需要
| |
− | sudo apt-get update
| |
− | sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin</pre>
| |
− | <pre>sudo apt-get install fcitx-table-all #同时安装其他码表</pre>
| |
− | <pre>im-switch -s fcitx -z default #设为默认输入法,一般不需要,除非系统有多个输入法</pre>
| |
− |
| |
− | === 配置工具 ===
| |
− | 配置文件在
| |
− | <pre>局部:~/.config/fcitx/config 或者~/.fcitx/config
| |
− | 全局:/usr/share/fcitx/data/config
| |
− | /usr/share/fcitx/data/tables.conf
| |
− |
| |
− | </pre>
| |
− |
| |
− |
| |
− | 如果安装了 fcitx-config,右击输入法-配置Fcitx。
| |
− |
| |
− | === 关于候选字显示为方框 也就是大家所说的乱码 ===
| |
− | 这是因为没有设置正确的中文字体
| |
− | 请通过fc-list找到自己电脑中已经安装的中文字体:
| |
− | <pre>fc-list |grep Wen</pre>
| |
− |
| |
− | 我选择WenQuanYi Micro Hei这种字体,打开~/.config/fcitx/config:
| |
− | <pre>[程序]
| |
− | 显示字体(中)=WenQuanYi Micro Hei
| |
− | </pre>
| |
− |
| |
− | ===简繁切换===
| |
− | 常用的中文输入法简繁切换是快捷键ctrl+shift+f,fcitx不是这样。
| |
− | [[Image:Fcitx_4_zh_hant.png|thumb|512px|center|Fcitx 4 繁体切换快捷键]]
| |
− |
| |
− | ===常用快捷键===
| |
− | <pre>CTRL+5
| |
− | CTRL+6 词组排序
| |
− | CTRL+7 删除词组
| |
− | CTRL+8 增加词组
| |
− | 全半角=SHIFT_SPACE
| |
− | 中文标点=ALT_SPACE #如果同系统热键有冲突,就请打开~/.fcitx/config 并改为:中文标点=CTRL_.
| |
− | </pre>
| |
− |
| |
− | ===英文语系用户(en.utf8)===
| |
− |
| |
− | ====英文下GTK module设置====
| |
− | <pre>对于 GTK 程序,只需要修改 /etc/gtk-2.0/gtk.immodules或者/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules 将:
| |
− | "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
| |
− | 这一行的后面,加入“en”,即更改为:
| |
− | "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"
| |
− | 就可以顺利的在英文环境下使用 Fcitx 了。
| |
− |
| |
− | 同理,如果想要在英文环境下使用 SCIM ,那么只要将:
| |
− | "scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh"
| |
− | 更改为:
| |
− | "scim" "SCIM Input Method" "scim" "/usr/share/locale" "en:ja:ko:zh"
| |
− |
| |
− | 即可。</pre>
| |
− | ====其它系统可能需要的设置_XMODIFIERS====
| |
− |
| |
− | 对于有的系统(如Arch linux),你可能还需要做一些对XMODIFIERS的设置:
| |
− | * 打开你主文件夹(/home/$HOME)下的 ~/.bashrc 或者~/.xinitrc文件,添加以下几行:
| |
− | <pre>~/.bashrc</pre>
| |
− | <pre>
| |
− | #setup XIM environment, needn't if use SCIM as gtk-immodules
| |
− | #export LC_CTYPE="en_US.utf8" #It should be the same as locale-gen.
| |
− | #export XIM="fcitx"
| |
− | export XMODIFIERS=@im=fcitx
| |
− | export GTK_IM_MODULE=xim
| |
− | export QT_IM_MODULE=xim
| |
− | fcitx& </pre>
| |
− |
| |
− |
| |
− |
| |
− | ===日文===
| |
− | 请看[http://forum.ubuntu.org.cn/viewtopic.php?f=95&t=262914&hilit=fcitx+%E6%97%A5%E8%AF%AD 这里]
| |
− |
| |
− | ===韩文===
| |
− | 参考 [http://forum.ubuntu.org.cn/viewtopic.php?f=8&t=277120&start=0 这里]
| |
− |
| |
− | 首先确保主题能显示韩文,参照上面步骤改成'''微米黑'''字体。
| |
− |
| |
− | 利用的是码表,所以确保开启了
| |
− | <pre>使用码表=1</pre>
| |
− | 新建,编辑码表文件
| |
− | <pre>gedit ~/.config/fcitx/tables.conf</pre>
| |
− | <pre>[码表]
| |
− | 名称=韩文
| |
− | 码表=hy.mb
| |
− | 调频=0
| |
− | 自动上屏=1</pre>
| |
− | 复制合适的韩语编码文档(.mb格式,如果是.txt格式,还需要用txt2mb工具转换)到fcitx-utf8目录下便可。
| |
− | <pre>txt2mb hy.txt hy.mb</pre>
| |
− | {|
| |
− | |[[Image:Fcitx-utf8han.png|center|thumb|300px|效果图]]
| |
− | |}
| |
| | | |
| ==外部链接== | | ==外部链接== |