-
Notifications
You must be signed in to change notification settings - Fork 0
/
clover.custom.yaml
54 lines (50 loc) · 1.71 KB
/
clover.custom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
patch:
speller/algebra:
- derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
- derive/^n/l/ # n => l
- derive/^l/n/ # l => n
- derive/([ei])n$/$1ng/ # en => eng, in => ing
- derive/([ei])ng$/$1n/ # eng => en, ing => in
- derive/([ei])n$/$1ng/ # ing = in; eng = en
- derive/([ei])ng$/$1n/ # in = ing; en = eng
# 模糊音
# 基础
- abbrev/^([a-z]).+$/$1/
- abbrev/^([zcs]h).+$/$1/
# 补全
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ # o = ou; o = ong
- derive/ong$/on/ # on = ong
- derive/^ding$/din/ # din = ding
# 处理 v 和 u
- derive/^([nl])ue$/$1ve/ # nve = nue; lve = lue
- derive/^([jqxy])u/$1v/ # v = u; v = u
# 智能纠错
- derive/ao$/oa/ # oa = ao
- derive/([iu])a(o|ng?)$/a$1$2/ # aio = iao; aing = iang; aung = uang
- derive/([aeiou])ng$/$1gn/ # gn = ng
- derive/un$/uen/ # uen = un
- derive/ui$/uei/ # uei = ui
- derive/iu$/iou/ # iou = ui
- derive/tie$/tei/ # tei = tie
- derive/i$/ii/ # ii = i # i 不小心按两下
- derive/u$/uu/ # ui = u # u 不小心按两下
switches:
- name: zh_simp_s2t
reset: 0
states: [ 简, 繁 ]
- name: emoji_suggestion
reset: 0
states: [ "�️️\uFE0E", "�️️\uFE0F" ]
- name: symbol_support
reset: 1
states: [ "无符", "符" ]
- name: ascii_punct
reset: 0
states: [ 。,, ., ]
- name: full_shape
reset: 0
states: [ 半, 全 ]
- name: ascii_mode
reset: 0
states: [ 中, 英 ]