输入法设置

  1. rime 输入法

2025-11-25:朙月拼音 + 横排候选条 + 英文界面

  1. 复制默认方案及依赖文件到用户目录

    cd ~/.config/ibus/rime
    cp /usr/share/rime-data/{default.yaml,luna_pinyin.schema.yaml,terra_pinyin.schema.yaml} .
    cp /usr/share/rime-data/{luna_pinyin.dict.yaml,terra_pinyin.dict.yaml,symbols.yaml,essay.txt} .
    

    这样可以消除 rime_deployer 提示的 "missing input schema / dict" 错误。

  2. 新建 default.custom.yaml,限定方案顺序,横排候选以及英文菜单标题:

    patch:
      schema_list:
        - schema: luna_pinyin
        - schema: terra_pinyin
      switcher:
        caption: "Input Method Menu"
        hotkeys:
          - Control+grave
          - Control+Shift+grave
          - F4
      menu:
        alternative_select_keys: "123456"
      # 默认简体汉字
      "switcher/save_options":
        - simplification
    
  3. 新建 ibus_rime.custom.yaml,强制候选条横排:

    patch:
      style/horizontal: true
    
  4. 新建 luna_pinyin.custom.yaml,设置默认简体并允许英文候选词:

    patch:
      # 默认简体汉字
      switches:
        - name: simplification
          reset: 1  # 1 = 简体,0 = 繁体
        - name: ascii_mode
          reset: 0  # 0 = 中文模式,1 = 西文模式
      # 允许英文候选词(不启用字符集过滤)
      translator:
        enable_charset_filter: false  # false = 允许英文候选词
    
  5. 重建并重启:

    rime_deployer --build
    ibus restart
    

    然后在 IBus 中切换到 "luna_pinyin",即可得到朙月拼音、默认简体、包含英文候选词、英文菜单和横排候选条。