写在开始
我的Arch Linux上面安装的rime-ibus默认输入是繁体中文,但是我日常要用简体中文,然后每次切换输入法的时候都要按一次F4我感觉很麻烦,所以就找了一下怎么修改简体字。
修改默认的那个的配置文件
我的这个配置文件在这里~/.config/ibus/rime/build/
,所以看一下这个目录下面的文件:
bopomofo.prism.bin
bopomofo_tw.prism.bin
cangjie5.prism.bin
default.yaml
luna_pinyin_fluency.schema.yaml
luna_pinyin.schema.yaml
luna_pinyin_simp.schema.yaml
luna_quanpin.schema.yaml
stroke.schema.yaml
terra_pinyin.schema.yaml
bopomofo.schema.yaml
bopomofo_tw.schema.yaml
cangjie5.schema.yaml
luna_pinyin_fluency.prism.bin
luna_pinyin.prism.bin
luna_pinyin_simp.prism.bin
luna_quanpin.prism.bin
stroke.prism.bin
terra_pinyin.prism.bin
然后我用的是明月拼音所以我第一反应看到的是luna_pinyin.schema.yaml
,似乎也猜对了。拉到底找到这里:
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
states: ["半角", "全角"]
- name: simplification
states: ["漢字", "汉字"]
- name: ascii_punct
states: ["。,", ".,"]
然后改成这样:
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
states: ["半角", "全角"]
- name: simplification
reset: 1
states: ["漢字", "汉字"]
- name: ascii_punct
states: ["。,", ".,"]
其实就是加一个reset的选择选成简体中文,就这样就结束了。
写在最后
这个就是这样子了,还算容易,但是不是很好找,因为网上一般都是用F4或者ctrl+`实现的, 这种就要每次打开都要设置一遍,比较麻烦,所以这样子会比较省事一点