中州韵离线输入法配置
中州韵输入法 是一款开源可高度定制的离线输入法, 不会收集用户隐私 oh-my-rime-docs 是一个用于配置中州韵输入法的配置项目 他们的关系就类似与 neovim 和 lazyvim 的关系
相关文档
我的配置
其他复杂的配置开源项目已经做好了, 只需要按照自己的喜好定制即可
yaml
patch:
# 设置薄荷拼音的拼音串最大长度为 20(太长影响性能)
codeLengthLimit_processor: 20
# 切换输入法快捷键(使用操作系统快捷键来切换输入法)
ascii_composer:
good_old_caps_lock: true
switch_key:
Caps_Lock: noop # commit_code | commit_text | clear | noop
Shift_L: noop # commit_code | commit_text | inline_ascii | clear | noop
Shift_R: noop # commit_code | commit_text | inline_ascii | clear | noop
Control_L: noop # commit_code | commit_text | inline_ascii | clear | noop
Control_R: noop # commit_code | commit_text | inline_ascii | clear | noop
# 输入法默认状态(中文使用英文符号)
switches:
- name: ascii_mode
reset: 0
states: [中文, 英文]
- name: emoji_suggestion
states: ["😣️", "😁️"]
reset: 1
- name: full_shape
states: [半角, 全角]
reset: 0
- name: tone_display
states: [声杳, 声起]
reset: 0
- name: transcription
states: [简体, 繁体]
reset: 0
- name: ascii_punct
states: ["。,", ".,"]
reset: 1
# 模糊音设置
"speller/algebra":
- xlit/āáǎàōóǒòēéěèīíǐìūúǔùǖǘǚǜü/aaaaooooeeeeiiiiuuuuvvvvv/
- xform/^ng$/eng/
- xform/ńg|ňg|ǹg/eng/
- xform/ń|ň|ǹ/en/
- erase/^xx$/ ################## 与 rime_mint.schema.yaml 默认配置不同: 开启了以下模糊音
- derive/^([zcs])h/$1/ ######### zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
- derive/([aei])n$/$1ng/ ####### en => eng, in => ing
- derive/([aei])ng$/$1n/ ####### eng => en, ing => in
- derive/([iu])an$/$lan/ ####### ian => iang, uan => uang
- derive/([iu])ang$/$lan/ ###### iang => ian, uang => uan
- derive/([aeiou])ng$/$1gn/
- derive/([dtngkhrzcs])o(u|ng)$/$1o/
- derive/ong$/on/
- derive/un$/ong/
- derive/^([zcs]h).+$/$1/
- abbrev/^([a-z]).+$/$1/
- derive/([zcs])h(a|e|i|u|ai|ei|an|en|ou|uo|ua|un|ui|uan|uai|uang|ang|eng|ong)$/h$1$2/
- derive/([zcs])h([aeiu])$/$1$2h/
- derive/^([wghk])ai$/$1ia/
- derive/([qjx])ia$/$1ai/
- derive/([wtfghkz])ei$/$1ie/
- derive/([jqx])ie$/$1ei/
- derive/([rtypsdghklzcbnm])ao$/$1oa/
- derive/([ypfm])ou$/$1uo/
- derive/([wrtypsdfghklzcbnm])an$/$1na/
- derive/([wrpsdfghklzcbnm])en$/$1ne/
- derive/([wrtypsdfghklzcbnm])ang$/$1nag/
- derive/([wrtypsdfghklzcbnm])ang$/$1agn/
- derive/([wrtpsdfghklzcbnm])eng$/$1neg/
- derive/([wrtpsdfghklzcbnm])eng$/$1egn/
- derive/([qtypdjlxbnm])ing$/$1nig/
- derive/([qtypdjlxbnm])ing$/$1ign/
- derive/([rtysdghklzcn])ong$/$1nog/
- derive/([rtysdghklzcn])ong$/$1ogn/
- derive/([qtpdjlxbnm])iao$/$1ioa/
- derive/([qtpdjlxbnm])iao$/$1oia/
- derive/([rtsghkzc])ui$/$1iu/
- derive/([qjlxnm])iu$/$1ui/
- derive/([qtpdjlxbnm])ian$/$1ain/
- derive/([qypjlxbnm])in$/$1ni/
- derive/([qjlxn])iang$/$1aing/
- derive/([qjlxn])iang$/$1inag/
- derive/([g|k|h|zh|sh])ua$/$1au/
- derive/([g|h|k|zh|ch|sh])uai$/$1aui/
- derive/([g|h|k|zh|ch|sh])uai$/$1uia/
- derive/([qrtysdghjklzxcn])uan$/$1aun/
- derive/([qrtysdghjklzxc])un$/$1nu/
- derive/([nlyjqx])ue$/$1eu/
- derive/([g|h|k|zh|ch|sh])uang$/$1aung/
- derive/([g|h|k|zh|ch|sh])uang$/$1uagn/
- derive/([g|h|k|zh|ch|sh])uang$/$1unag/
- derive/([g|h|k|zh|ch|sh])uang$/$1augn/
- derive/([jqx])iong$/$1inog/
- derive/([jqx])iong$/$1oing/
- derive/([jqx])iong$/$1iogn/
- derive/([jqx])iong$/$1oign/
- derive/([rtsdghkzc])o(u|ng)$/$1o/
- derive/ong$/on/
- derive/([tl])eng$/$1en/
- derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/
- derive/un$/ong/yaml
patch:
# 输入方案(只需要拼音输入法就行)
schema_list:
- schema: rime_mint
# 候选词个数(默认为5)
"menu/page_size": 9
# 切换输入方案 & 输入法状态
"switcher/hotkeys":
- F4
- Control+Shift+F4
- Control+Shift+grave
# 关闭翻译
"translator/enable": false
# 按键绑定(覆盖默认而不是 patch)
key_binder:
bindings:
# 使用 vim 风格的快捷键选词
- { accept: Control+k, send: Page_Up, when: paging } # 向上翻页(第一页时候无效)
- { accept: Control+j, send: Page_Down, when: has_menu } # 向下翻页
- { accept: Control+h, send: Left, when: composing } # 前一个候选词
- { accept: Control+l, 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+g", send: Escape, 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 } # 切换 ASCII 模式(仅输入英文)yaml
patch:
# 设置显示样式,如果皮肤有设置则使用皮肤的设置
"style/color_scheme": mint_dark_blue
"style/candidate_list_layout": linear # stacked | linear 皮肤横竖排显示是调整这个
"style/text_orientation": horizontal # horizontal | vertical 文字方向
"style/corner_radius": 6 # 外边框 圆角大小
"style/border_height": 2 # 外边框 高度
"style/font_point": 18 # 候选词字体大小
"style/line_spacing": 6 # 行间距
# 修改皮肤样式设置(定义在 squirrel.yaml)
"preset_color_schemes/mint_dark_blue/inline_preedit": false
"preset_color_schemes/mint_dark_blue/translucency": false
"preset_color_schemes/mint_dark_blue/hilited_candidate_back_color": 0xed9564
"preset_color_schemes/mint_dark_blue/line_spacing": 6