修改默认的那个的配置文件
我的这个配置文件在这里~/.config/ibus/rime/build/,所以看一下这个目录下面的文件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| 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 ,似乎也猜对了。拉到底找到这里:
1 2 3 4 5 6 7 8 9 10
| switches: - name: ascii_mode reset: 0 states: ["中文", "西文"] - name: full_shape states: ["半角", "全角"] - name: simplification states: ["漢字", "汉字"] - name: ascii_punct states: ["。,", ".,"]
|
然后改成这样:
1 2 3 4 5 6 7 8 9 10 11
| switches: - name: ascii_mode reset: 0 states: ["中文", "西文"] - name: full_shape states: ["半角", "全角"] - name: simplification reset: 1 states: ["漢字", "汉字"] - name: ascii_punct states: ["。,", ".,"]
|
其实就是加一个reset的选择选成简体中文,就这样就结束了。
写在最后
这个就是这样子了,还算容易,但是不是很好找,因为网上一般都是用F4或者ctrl+`实现的, 这种就要每次打开都要设置一遍,比较麻烦,所以这样子会比较省事一点
ni hao若干年后的补充
其实正确用法应当是在luna_pinyin.schema.custom.yaml(经评论指正这里应该是luna_pinyin.custom.yaml)文件里编辑这一段, 这样就可以保证更新rime的时候不会被覆盖掉原来的配置了。
所以在luna_pinyin.custom.yaml中应当写的内容为
1 2 3 4 5 6 7 8 9 10 11 12 13
| # encoding: utf-8 patch: switches: - name: ascii_mode reset: 0 states: ["中文", "西文"] - name: full_shape states: ["半角", "全角"] - name: simplification reset: 1 states: ["漢字", "汉字"] - name: ascii_punct states: ["。,", ".,"]
|