Skip to content

Instantly share code, notes, and snippets.

@Lincest
Last active January 23, 2022 12:15
Show Gist options
  • Save Lincest/6ceb3e9ce67450233c5c86d675b6210e to your computer and use it in GitHub Desktop.
Save Lincest/6ceb3e9ce67450233c5c86d675b6210e to your computer and use it in GitHub Desktop.
Rime - 我的rime配置

配置效果如图:

patch:
menu/page_size: 8
ascii_composer:
switch_key:
Shift_L: noop
Shift_R: noop
Control_L: noop
Control_R: noop
Caps_Lock: noop
Eisu_toggle: clear
'speller/algebra':
- erase/^xx$/
- derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
- derive/^an$/ang/ # an => ang
- derive/^ang$/an/ # ang => an
- derive/^en$/eng/ # en => eng
- derive/^eng$/en/ # eng => en
- derive/^in$/ing/ # in => ing
- derive/^ing$/in/ # ing => in
- derive/^ian$/iang/ # ian => iang
- derive/^iang$/ian/ # iang => ian
- derive/^uan$/uang/ # uan => uang
- derive/^uang$/uan/ # uang => uan
- derive/^n/l/ # n => l
- derive/^l/n/ # l => n
- derive/^l/r/ # l => r
- derive/^r/l/ # r => l
- derive/^h/f/ # h => f
- derive/^f/h/ # f => h
- derive/^hui$/fei/ # hui => fei
- derive/^fei$/hui/ # fei => hui
- derive/^huang$/wang/ # huang => wang
- derive/^wang$/huang/ # wang => huang
# 模糊音定義先於簡拼定義,方可令簡拼支持以上模糊音
- abbrev/^([a-z]).+$/$1/ # 簡拼(首字母)
- abbrev/^([zcs]h).+$/$1/ # 簡拼(zh, ch, sh)
# 以下是一組容錯拼寫,《漢語拼音》方案以前者爲正
- derive/^([nl])ve$/$1ue/ # nve = nue, lve = lue
- derive/^([jqxy])u/$1v/ # ju = jv,
- derive/un$/uen/ # gun = guen,
- derive/ui$/uei/ # gui = guei,
- derive/iu$/iou/ # jiu = jiou,
# 自動糾正一些常見的按鍵錯誤
- derive/([aeiou])ng$/$1gn/ # dagn => dang
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ # zho => zhong|zhou
- derive/ong$/on/ # zhonguo => zhong guo
- derive/ao$/oa/ # hoa => hao
- derive/([iu])a(o|ng?)$/a$1$2/ # tain => tian
"switcher/@0/reset": 1
patch:
"style/color_scheme": google # 设置主题
"style/font_point": 12 # 设置字体大小
"style/horizontal": true # 横向显示候选词
"style/corner_radius": 10 # 圆角是答案
"style/inline_preedit": true # 行内显示待输入拼音
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment