forked from functoreality/rime-flypy-zrmfast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpinyin_switch.yaml
148 lines (143 loc) · 5.08 KB
/
pinyin_switch.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
## 全拼加辅助码方案请关注这里:
flypy2quanpin:
translator:
dictionary: flypy_zrmfast ## 若希望用小鹤形码,则注释掉这一行
#dictionary: flypy_flypy ## 若希望用小鹤形码,则取消这一行的注释
spelling_hints: 1
prism: lunapy_zrmfast
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba[
initials: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- xform/^([bpmfdtnljqx])n/$1iao/
- xform/^(\w)g/$1eng/
- xform/^(\w)q/$1iu/
- xform/^(\w)w/$1ei/
- xform/^([dtnlgkhjqxyvuirzcs])r/$1uan/
- xform/^(\w)t/$1ve/
- xform/^(\w)y/$1un/
- xform/^([dtnlgkhvuirzcs])o/$1uo/
- xform/^(\w)p/$1ie/
- xform/^([jqx])s/$1iong/
- xform/^(\w)s/$1ong/
- xform/^(\w)d/$1ai/
- xform/^(\w)f/$1en/
- xform/^(\w)h/$1ang/
- xform/^(\w)j/$1an/
- xform/^([gkhvuirzcs])k/$1uai/
- xform/^(\w)k/$1ing/
- xform/^([jqxnl])l/$1iang/
- xform/^(\w)l/$1uang/
- xform/^(\w)z/$1ou/
- xform/^([gkhvuirzcs])x/$1ua/
- xform/^(\w)x/$1ia/
- xform/^(\w)c/$1ao/
- xform/^([dtgkhvuirzcs])v/$1ui/
- xform/^(\w)b/$1in/
- xform/^(\w)m/$1ian/
# - xform/^([aoe])\1(\w)/$1$2/
- xform/^([aoe])\1/$1/
- xform/^v/zh/
- xform/^i/ch/
- xform/^u/sh/
- xform/^([jqxy])v/$1u/
- abbrev/^([a-z])\w+([[].+)/$1$2/
- abbrev/^([zcs]h)\w+([[].+)/$1$2/
- derive/^([nl])ve([[].+)/$1ue$2/
- derive/^([jqxy])u/$1v/
- derive/un([[].+)/uen$2/
- derive/ui([[].+)/uei$2/
- derive/iu([[].+)/iou$2/
- derive/([aeiou])ng([[].+)/$1gn$2/
- derive/([dtngkhrzcs])o(u|ng)([[].+)/$1o$2/
- derive/ong([[].+)/on$2/
- derive/ao([[].+)/oa$2/
- derive/([iu])a(o|ng?)([[].+)/a$1$2$3/
- derive/^(\w+)[[].+$/$1/
- derive/^(\w+[[].).+$/$1/
reverse_lookup/comment_format:
- "xform/((^|[ '])[bpmfdtnljqx])n/$1iao/"
- "xform/((^|[ '])\\w)g/$1eng/"
- "xform/((^|[ '])\\w)q/$1iu/"
- "xform/((^|[ '])\\w)w/$1ei/"
- "xform/((^|[ '])[dtnlgkhjqxyvuirzcs])r/$1uan/"
- "xform/((^|[ '])\\w)t/$1ve/"
- "xform/((^|[ '])\\w)y/$1un/"
- "xform/((^|[ '])[dtnlgkhvuirzcs])o/$1uo/"
- "xform/((^|[ '])\\w)p/$1ie/"
- "xform/((^|[ '])[jqx])s/$1iong/"
- "xform/((^|[ '])\\w)s/$1ong/"
- "xform/((^|[ '])\\w)d/$1ai/"
- "xform/((^|[ '])\\w)f/$1en/"
- "xform/((^|[ '])\\w)h/$1ang/"
- "xform/((^|[ '])\\w)j/$1an/"
- "xform/((^|[ '])[gkhvuirzcs])k/$1uai/"
- "xform/((^|[ '])\\w)k/$1ing/"
- "xform/((^|[ '])[jqxnl])l/$1iang/"
- "xform/((^|[ '])\\w)l/$1uang/"
- "xform/((^|[ '])\\w)z/$1ou/"
- "xform/((^|[ '])[gkhvuirzcs])x/$1ua/"
- "xform/((^|[ '])\\w)x/$1ia/"
- "xform/((^|[ '])\\w)c/$1ao/"
- "xform/((^|[ '])[dtgkhvuirzcs])v/$1ui/"
- "xform/((^|[ '])\\w)b/$1in/"
- "xform/((^|[ '])\\w)m/$1ian/"
- "xform/(^|[ '])([aoe])\\2(\\w)/$1$2$3/"
- "xform/(^|[ '])v/$1zh/"
- "xform/(^|[ '])i/$1ch/"
- "xform/(^|[ '])u/$1sh/"
- "xform/((^|[ '])[jqxy])v/$1u/"
- "xform/((^|[ '])[nl])v/$1ü/"
## 改用自然码双拼方案请关注这里:
flypy2zrm:
key_binder/bindings:
- { when: composing, accept: Control+m, send: Return }
- { when: composing, accept: Control+w, send: Control+BackSpace }
- { when: has_menu, accept: semicolon, send: 2 }
- { when: has_menu, accept: slash, send: 3 }
- { when: composing, accept: Control+i, send: Shift+Right }
- { when: composing, accept: Control+o, send: Shift+Left }
## 对以下4行取消注释后:启用光标回退至特定音节后、补充辅助码的功能
#- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
#- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
reverse_lookup/comment_format:
- xform/^/ /
- xform/( \w)x/$1W/
- xform/( \w)k/$1Y/
- xform/( \w)y/$1P/
- xform/( \w)l/$1D/
- xform/( \w)c/$1K/
- xform/( \w)d/$1L/
- xform/( \w)w/$1Z/
- xform/( \w)p/$1X/
- xform/( [^aeiou])n/$1C/
- xform/( \w)z/$1B/
- xform/( \w)b/$1N/
- xlit/WYPDKLZXCBN/wypdklzxcbn/
- xform/^ //
reverse_lookup/prism: chaizi_fp2zrm
translator/prism: zrm_zrmfast
speller/algebra:
- xform/^(\w)x/$1W/
- xform/^(\w)k/$1Y/
- xform/^(\w)y/$1P/
- xform/^(\w)l/$1D/
- xform/^(\w)c/$1K/
- xform/^(\w)d/$1L/
- xform/^(\w)w/$1Z/
- xform/^(\w)p/$1X/
- xform/^([^aeiou])n/$1C/
- xform/^(\w)z/$1B/
- xform/^(\w)b/$1N/
- xlit/WYPDKLZXCBN/wypdklzxcbn/
- derive/^(..).+$/$1/
- derive/^(..[[].).+$/$1/
- derive/^([jqxy])u/$1v/
#- xform/[[]// ## 直接引导辅助码
## 如果希望无论有无 [ 均可引导,取消注释的同时将 xform 改成 derive
## 模糊音设置,以 in=ing 为例:
# - derive/^([^gkhvuirzcs])y/$1n/
# - derive/^(.)n/$1y/