# Ubuntu 20.04 + Rime + 双拼(自然码)

安装

sudo apt install ibus-rime librime-data-double-pinyin

配置

启用 Rime 输入法

image-20230130120356154

~/.config/ibus/rime/default.custom.yaml

patch:
  switcher:
    abbreviate_options: true
    caption: 〔切换〕
    fold_options: true
    hotkeys:
      - "Control+grave"          # control + `
    save_options:
      - full_shape
      - ascii_punct
      - simplification
      - extended_charset
  schema_list:
    - schema: double_pinyin
  menu:
    page_size: 9

  key_binder/bindings:
    - {accept: "Control+p", send: Up, when: composing}
    - {accept: "Control+n", send: Down, when: composing}
    - {accept: "Control+b", send: Left, when: composing}
    - {accept: "Control+f", send: Right, when: composing}
    - {accept: "Control+a", send: Home, when: composing}
    - {accept: "Control+e", send: End, when: composing}
    - {accept: "Control+d", send: Delete, when: composing}
    - {accept: "Control+k", send: "Shift+Delete", when: composing}
    - {accept: "Control+h", send: BackSpace, when: composing}
    - {accept: "Control+g", send: Escape, when: composing}
    - {accept: "Control+bracketleft", send: Escape, when: composing}
    #- {accept: "Alt+v", send: Page_Up, when: composing}
    #- {accept: "Control+v", send: Page_Down, when: composing}
    - {accept: ISO_Left_Tab, send: Page_Up, when: composing}
    - {accept: "Shift+Tab", send: Page_Up, when: composing}
    - {accept: Tab, send: Page_Down, when: composing}
    - {accept: minus, send: Page_Up, when: has_menu}
    - {accept: equal, send: Page_Down, when: has_menu}
    - {accept: comma, send: Page_Up, when: paging}
    - {accept: period, send: Page_Down, when: has_menu}
    #- {accept: "Control+Shift+1", select: .next, when: always}
    #- {accept: "Control+Shift+2", toggle: ascii_mode, when: always}
    - {accept: "Control+Shift+3", toggle: full_shape, when: always}
    - {accept: "Control+Shift+4", toggle: simplification, when: always}
    #- {accept: "Control+Shift+5", toggle: extended_charset, when: always}
    #- {accept: "Control+Shift+exclam", select: .next, when: always}
    #- {accept: "Control+Shift+at", toggle: ascii_mode, when: always}
    #- {accept: "Control+Shift+numbersign", toggle: full_shape, when: always}
    #- {accept: "Control+Shift+dollar", toggle: simplification, when: always}
    #- {accept: "Control+Shift+percent", toggle: extended_charset, when: always}
    #- {accept: "Shift+space", toggle: full_shape, when: always}
    # - {accept: "Control+period", toggle: ascii_punct, when: always}


~/.config/ibus/rime/build/ibus_rime.yaml

style:
  horizontal: true

~/.config/ibus/rime/double_pinyin.custom.yaml

# encoding: utf-8
patch:
  schema:
    name: 双拼(自然码)
  switches:
    - name: simplification
      reset: 1
      states: ["漢字", "汉字"]

注意事项

  • 安装 rime 完成后,重启一下电脑
  • rime 更新完配置之后需要点击一下部署(任务栏图标)

参考资料

https://github.com/rime/home/wiki/Configuration

发表于: 作者:JiapengLi
由于某种不存在的原因,评论区正在努力加载中……