寫在開始

我的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+\`实现的, 这类就要每次打开都要设置一遍,比较麻烦,所以这样子容貌会比较省事一点

若幹年後的補充

其實正確用法應當是在luna_pinyin.schema.custom.yaml(經評論斧正這裏應該是luna_pinyin.custom.yaml)文件里编辑这一段, 如许便可以包管更新rime的时辰不会被覆盖掉落本来的建设了。

所以在luna_pinyin.custom.yaml中應當寫的內容爲

# encoding: utf-8
patch:
  switches:
    - name: ascii_mode
      reset: 0
      states: ["中文", "西文"]
    - name: full_shape
      states: ["半角", "全角"]
    - name: simplification
      reset: 1
      states: ["漢字", "汉字"]
    - name: ascii_punct
      states: ["。,", ".,"]
Last modification:March 14, 2020
若是覺得我的文┞仿對你有效,請隨意贊賞