Skip to content

Commit

Permalink
Merge branch 'haolly-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintimate committed May 7, 2024
2 parents 4b558f2 + b858d46 commit 20cda18
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rime_mint.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ speller:
- derive/([aeiou])ng$/$1gn/ # dagn => dang
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ # zho => zhong|zhou
- derive/ong$/on/ # zhonguo => zhong guo
- abbrev/^([a-z])[a-z]*$/$1/ # 简拼(首字母)
- abbrev/^([zcs]h).+$/$1/ # 简拼(zh, ch, sh)
## 简拼
- derive/^([a-z]).+$/$1/ # 通过正则表达式提取每个拼音的首字母
- derive/^([zcs]h).+$/$1/ # 特别处理 zh, ch, sh 的首字母简写
- abbrev/^([a-z]).+$/$1/ # 允许使用首字母作为缩写
# 简拼: 允许使用前两个字母作为缩写
# - abbrev/^([a-z]{2,}).+$/$1/ # zem -> zen me -> 怎么
### 自动纠错
# 有些规则对全拼简拼混输有副作用:如「x'ai 喜爱」被纠错为「xia 下」
# zh、ch、sh
Expand Down Expand Up @@ -273,6 +277,7 @@ speller:
- derive/ong$/on/ # lon → long
- derive/([tl])eng$/$1en/ # ten → teng
- derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/ # lng → lang、leng、ling、long
- derive/un$/ong/ # yuntong = yongtong

wubi98_mint:
tag: wubi98_mint
Expand Down Expand Up @@ -337,4 +342,4 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字

0 comments on commit 20cda18

Please sign in to comment.