最近在使用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

 

相关文章:

  • 2021-05-03
  • 2021-12-23
  • 2022-01-05
  • 2021-09-26
  • 2022-12-23
  • 2021-12-24
  • 2021-11-03
  • 2021-11-18
猜你喜欢
  • 2022-01-04
  • 2022-01-10
  • 2021-08-13
  • 2022-01-20
  • 2021-11-21
  • 2021-09-19
  • 2021-06-03
相关资源
相似解决方案