1. 程式人生 > >rime設定為預設簡體

rime設定為預設簡體

轉載 https://github.com/ModerRAS/ModerRAS.github.io/blob/master/_posts/2018-11-07-rime%E8%AE%BE%E7%BD%AE%E4%B8%BA%E9%BB%98%E8%AE%A4%E7%AE%80%E4%BD%93.md

寫在開始

我的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+`實現的, 這種就要每次開啟都要設定一遍,比較麻煩,所以這樣子