Skip to content

Commit

Permalink
feat: 容错拼写与按键纠错(针对朙月拼音)
Browse files Browse the repository at this point in the history
双拼不需要 23333
  • Loading branch information
LufsX committed Jan 25, 2022
1 parent 8f881c2 commit f857e83
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
- 词库总大小仅 `7.0MB`(包括八股文仅 `9.8MB`
- `Caps` 切换英文输入法(小狼毫无法享受)
- Emoji 支持
- 模糊音支持(小鹤双拼与朙月拼音均支持)
- 模糊音(小鹤双拼与朙月拼音均支持)
- 朙月拼音支持按键纠错与容错拼写

# 待办

Expand All @@ -73,6 +74,7 @@

- [BlindingDark/rime-lua-select-character](https://github.com/BlindingDark/rime-lua-select-character)
- [KyleBing/rime-wubi86-jidian](https://github.com/KyleBing/rime-wubi86-jidian/)
- [lotem/luna_pinyin.custom.yaml](https://gist.github.com/lotem/2320943)
- [maomiui/rime](https://github.com/maomiui/rime)
- [placeless/squirrel_config](https://github.com/placeless/squirrel_config)
- [rime/squirrel](https://github.com/rime/squirrel)
Expand Down
14 changes: 14 additions & 0 deletions lufs_pinyin.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@ speller:
#- derive/^huang$/wang/ # huang => wang
#- derive/^wang$/huang/ # wang => huang

# 容错拼写,以前者为正
- 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

# 简拼支持
- abbrev/^(.).+$/$1/

Expand Down

0 comments on commit f857e83

Please sign in to comment.