forked from DreamAfar/Rime-IME-for-iOS-iRime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clover.schema.yaml
202 lines (186 loc) · 4.34 KB
/
clover.schema.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Rime schema
# encoding: utf-8
schema:
schema_id: clover
name: 🍀️四叶草简体拼音
version: "1.0.0"
author:
- fkxxyz - https://www.fkxxyz.com
description: |
由🍀️四叶草亲自定制,特点:
1. 结合搜狗输入法的输入习惯
2. 默认开启 emoji 表情支持
3. 加上很多特殊符号的输入支持
4. 繁简切换支持
5. 许多智能纠错
dependencies:
- emoji
switches:
- name: zh_simp_s2t
reset: 0
states: [ 简, 繁 ]
- name: ascii_mode
reset: 0
states: [ 中, 英 ]
- name: emoji_suggestion
reset: 1
states: [ "😭️", "😄️" ]
- name: symbol_support
reset: 1
states: [ "无符", "符" ]
- name: ascii_punct
reset: 0
states: [ 。,, ., ]
- name: full_shape
reset: 0
states: [ 半, 全 ]
engine:
processors:
- ascii_composer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
filters:
- simplifier@emoji_suggestion
- simplifier@symbol_support
- simplifier
- uniquifier
simplifier:
option_name: zh_simp_s2t
opencc_config: s2t.json
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
symbol_support:
opencc_config: symbol.json
option_name: symbol_support
tips: all
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
# 基础
- 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 不小心按两下
translator:
dictionary: clover
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
punctuator:
import_preset: symbols
full_shape:
"`": "`"
"~": "~"
"!": "!"
"@": "@"
"#": "#"
"$": "¥"
"%": "%"
"^": "……"
"&": "&"
"*": "×"
"(": "("
")": ")"
"_": "——"
"+": "+"
"-": "-"
"=": "="
"[": "【"
"]": "】"
"{": "{"
"}": "}"
"|": "|"
"\\": "、"
"/": "、"
";": ";"
"'": "‘"
",": ","
".": "。"
"<": "《"
">": "》"
"?": "?"
half_shape:
"`": "·"
"~": "~"
"!": "!"
"@": "@"
"#": "#"
"$": "¥"
"%": "%"
"^": "……"
"&": "&"
"*": "×"
"(": "("
")": ")"
"_": "——"
"+": "+"
"-": "-"
"=": "="
"[": "【"
"]": "】"
"{": "{"
"}": "}"
"|": "|"
"\\": "、"
"/": "、"
";": ";"
"'": "’"
",": ","
".": "。"
"<": "《"
">": "》"
"?": "?"
key_binder:
import_preset: default
# bindings:
# __patch:
# - key_bindings:/emacs_editing # emacs 习惯
# - key_bindings:/move_by_word_with_tab # tab 在单词间切换
# - key_bindings:/paging_with_minus_equal # 减号等号翻页
# - key_bindings:/paging_with_comma_period # 逗号句号翻页
# - key_bindings:/paging_with_brackets # 中括号翻页
# - clover.key_bindings:/numbered_mode_switch # Ctrl+Shift+数字 切换开关
# - clover.key_bindings:/windows_compatible_mode_switch # Windows 兼容
# - clover.key_bindings:/kp_enter_is_return # 小键盘回车设为普通回车
ascii_composer:
import_preset: default
good_old_caps_lock: true
switch_key:
Shift_L: commit_code # 左 Shift 切换直接上屏字母
Shift_R: commit_code # 右 Shift 切换直接上屏字母
Control_L: noop
Control_R: noop
Caps_Lock: noop
Eisu_toggle: clear