Linux输入系统

2016-02-13  本文已影响5464人  mst7

Linux输入系统经过多年的发展,依旧还是一团糟,和整个Linux社区一样,太过于分散和自由,没有一个主心骨。

说道输入系统,社区目前这个样子个人感觉主要是没有持续性,比如fcitx。当然,这也无可厚非,毕竟开源项目都是自愿的、没有回报的,尤其是输入系统这类基础平台,上层系统虽然都依赖它,但是它既没有得到资金上的回报,也没有得到应有的社区关注。尤其Linux平台几年一变化,输入系统类的基础库创始人根本没有精力持续跟进,例子还是fcitx。还好fcitx迎来了新的开发者,让fcitx步入新的4.x,焕发青春。

锤子科技捐助OpenSSL是一个很好的开端,希望更多的商业公司可以捐助一下类似的基础开源平台。

1. 什么是输入系统

引用Wikipedia给输入系统来个定义:

2. Linux平台IME现状

从整个输入系统的发展看,主要分为如下几大类如入

  1. it is the first Chinese input method in open source community since 2002, and it has lots of fans in China, especially guys using Wubi method.
2. it provides more efficient and intelligent input experience than ibus. 
3. it provides skin options and more convenient configuration tool. 
4. it provides good support to cloud-pinyin. 
5. Compatibility between Fcitx and Unity is improving gradually. E.g., the latest update of NUX makes it possible to input Chinese words in Dash. 
6. Fans are working to make it better, such as GTK+ show, Indicator show.

3. Linux IME推荐(Updated at 2017.03.25)

Fcitx我使用fcitx-table-wbpy模式,可以混合输入拼音和五笔,很不错。减少电脑用多了,提笔忘字的问题。
Fcitx在Gnome上最近出了一些小问题(见6.故障排查章节),发现fcitx在Gnome上运行的稳定性比Unity上差好多。

4. fcitx配置

默认情况下,安装完成后配置Language Support使用fcitx输入法即可正常工作,无需配置Region&Language、也无需删除ibus输入法:


Language Support界面 Region&Language配置

如遇到特殊情况,如Ubuntu 15.10升级到Ubuntu 16.04后,wps类的QT程序默认无法调用fcitx,就需要修改一下系统的配置:

ray@ray-ThinkPad-X250:~$ sudo apt remove ibus
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  liblua5.1-0 libpinyin7
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ibus ibus-libpinyin ibus-table ibus-table-wubi ubuntu-desktop unity-control-center unity-control-center-signon
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 20.9 MB disk space will be freed.
Do you want to continue? [Y/n] 
export XIM="fcitx"
export XIM_PROGRAM="fcitx"
export XMODIFIERS="@im=fcitx"      #关键条目
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"

5. 输入法切换工具

$ ./im-config   #目前没感觉有什么用的程序
im-config界面

6. 故障排查

6.1 输入法不显示候选框

出现这个问题时,一般Gnome-Shell上的输入法ICON应该也一同消失了,这个问题表象上是fcitx-ui-qimpanel的问题,可以偿试重新安装这个包。
我这遇到这个问题时,提示了sougou-pinyin的故障,删除掉sogou拼音即可。(我使用fcitx-table-wbpy,不直接用pinyin

参考URL

pinyinjoe 拼音舟 Ubuntu Chinese Setup 12.04 - 15.10
Wikipeadia Input_method
Arch Linux Wiki : SCIM
Arch Linux Wiki : IBUS
Arch Linux Wiki : Fcitx
Linux input method framework brief summary
Ubuntu 中文拼音输入法小结
Linux操作系统下的三种输入法架构探析

上一篇 下一篇

猜你喜欢

热点阅读