Linux 系统中五笔输入法有些字打不出来(已解决)

最近在使用CentOS7 桌面版本,在用五笔打字时,有些字打不出来,比如“覆盖”。但是在WIN下能打出来。

从网上查找原因,原来是需要改成GBK字符集。方法如下:

修改文件 vim /usr/share/ibus-table/engine/table.py  定位到227行

# self._chinese_mode: the candidate filter mode,
# 0 means to show simplified Chinese only
# 1 means to show traditional Chinese only
# 2 means to show all characters but show simplified Chinese first     表示所有汉字,但首先显示简体中文。
# 3 means to show all characters but show traditional Chinese first
# 4 means to show all characters
# we use LC_CTYPE or LANG to determine which one to use

把下面这三行注释
#self._chinese_mode
= variant_to_value(self._config.get_value( #self._config_section, #"ChineseMode"))

添加一行:
self._chinese_mode = 2

然后重启输入法。

附:安装五笔

yum list |grep wubi
ibus-table-chinese-wubi-jidian.noarch 1.4.6-3.el7 
ibus-table-chinese-wubi-haifeng.noarch 1.4.6-3.el7 

yum install ibus-table-chinese-wubi-haifeng.noarch -y
原文地址:https://www.cnblogs.com/luck123/p/8405652.html