-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkongmingma_chord.schema.yaml
302 lines (245 loc) · 6.76 KB
/
kongmingma_chord.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# Rime schema
# encoding: utf-8
### ### ### ###
反查词典: &reverse_lookup_dict flypy_light
反查词典所挂方案: &reverse_lookup_schema flypy_light
### ### ### ###
schema:
schema_id: kongmingma_chord
name: 空明码并击
# icon: icons/kongmingma.ico
version: 2024/05/12
author:
- 曌(空明码方案设计维护者)
- zhanghaozhecn (Rime方案配置初始编写)
- 叫我最右君(Rime方案改进维护)
description: |
空明码,是专为并击设计的编码方案,大词库(38万),码长短(平均0.8),8万高频词重码少(0.09%)。
dependencies:
- phony_kongmingma_part_user
- phony_kongmingma_part00
- phony_kongmingma_part01_char
- phony_kongmingma_part01_ii
- phony_kongmingma_part01_sym
- phony_kongmingma_part02+03
- phony_kongmingma_part04
# - phony_kongmingma_part05
# - phony_kongmingma_part06
- phony_kongmingma_part99
- *reverse_lookup_schema
switches:
- name: ascii_mode
reset: 0
states: [ 中, 英 ]
- name: force_select_mode
reset: 1
states: [ 默认无重上屏, 强制四码上屏 ]
engine:
processors:
- lua_processor@*disable_soft_cursor
- lua_processor@*chord_command_handler
- ascii_composer
- lua_processor@*mode_helper
- recognizer
- chord_composer
- key_binder
- lua_processor@*shiftedkey_rejector
- speller
- selector
- express_editor
segmentors:
- matcher
- abc_segmentor
- affix_segmentor@ii_mode_prompt
- affix_segmentor@ii_mode
- affix_segmentor@tmp_schema_mode
- affix_segmentor@tmp_en_mode
translators:
- table_translator@ii_mode
# - lua_translator@*ii_mode_translator
- table_translator@tmp_schema_mode
- table_translator@tmp_en_mode
- lua_translator@*main_translator
filters:
- lua_filter@*reverse_lookup_filter_when_tmp_schema_mode@reverse_lookup_filter_when_tmp_schema_mode
- lua_filter@*char_cands_popper
- lua_filter@*ensure_uniquifier
chord_composer:
# finish_chord_on_first_key_release: true #有一键被释放时立刻触发合成
finish_chord_on_first_key_release: false
__include: chord_composer.yaml:/自定义
speller:
auto_select: false
alphabet: QWERTYUIOPASDFGHJKL:ZXCVBNM<>?qwertyuiopasdfghjkl;zxcvbnm,./1234567890_~!@%&*'"`
recognizer:
patterns:
dbl_slash_pattern: ^(//).*$
# dbl_semicolon_pattern: ^(;;).*$
dbl_semicolon_pattern: ^([?]{2}).*$
ii_pattern: ^(ii).+$
ii_prompt_pattern: ^(ii).*$
ii_mode_prompt:
tag: ii_prompt_pattern
prefix: "ii"
tips: 〔 字形输入 〕
# dictionary: ""
# enable_user_dict: false
ii_mode:
tag: ii_pattern
# prefix: "ii"
extra_tags:
- ii_mode
####
dictionary: kongmingma_part01_ii
enable_encoder: false
enable_sentence: false
enable_user_dict: false
# enable_completion: false
tmp_schema_mode:
tag: dbl_slash_pattern
prefix: "//"
tips: 〔 反查方案 〕
extra_tags:
- tmp_schema_mode
####
dictionary: *reverse_lookup_dict
enable_encoder: false
enable_sentence: false
enable_user_dict: false
# enable_completion: false
tmp_en_mode:
tag: dbl_semicolon_pattern
prefix: "??"
tips: 〔 英文 〕
extra_tags:
- tmp_en_mode
####
dictionary: ""
enable_user_dict: false
reverse_lookup_filter_when_tmp_schema_mode:
tags: [ tmp_schema_mode, ii_pattern ]
dicts_to_reverse_lookup:
- kongmingma_part_user
- kongmingma_part00
- kongmingma_part01_char
- kongmingma_part01_ii
- kongmingma_part01_sym
- kongmingma_part02+03
# - kongmingma_part04
# - kongmingma_part05
# - kongmingma_part06
# - kongmingma_part99
translator:
dictionaries:
- kongmingma_part_user
- kongmingma_part00
- kongmingma_part01_char
# - kongmingma_part01_ii
- kongmingma_part01_sym
- kongmingma_part02+03
- kongmingma_part04
# - kongmingma_part05
# - kongmingma_part06
- kongmingma_part99
# 拆分词典和翻译器
kongmingma_part_user:
dictionary: kongmingma_part_user
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
initial_quality: 99
kongmingma_part00:
dictionary: kongmingma_part00
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part01_char:
dictionary: kongmingma_part01_char
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part01_ii:
dictionary: kongmingma_part01_ii
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part01_sym:
dictionary: kongmingma_part01_sym
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part02+03:
dictionary: kongmingma_part02+03
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part04:
dictionary: kongmingma_part04
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part05:
dictionary: kongmingma_part05
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part06:
dictionary: kongmingma_part06
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
kongmingma_part99:
dictionary: kongmingma_part99
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: false
key_binder:
bindings:
# - { accept: bracketleft, send: Page_Up, when: paging } # [上翻页
# - { accept: bracketleft, send: Page_Up, when: has_menu }
# - { accept: bracketright, send: Page_Down, when: has_menu } # ]下翻页
- { when: composing, accept: BackSpace, send: Escape }
- { when: composing, accept: Delete, send: BackSpace }
# 用Shift切换中英文
ascii_composer:
good_old_caps_lock: false
switch_key:
# Shift_L: commit_code
# Shift_R: commit_code
Control_L: commit_code
Control_R: commit_code
# Caps_Lock: clear
#为了不要天天在日志里警告缺失标点处理器勉为其难补一个
#punctuator:
# full_shape:
# "" : { commit: "" }
# half_shape:
# "" : { commit: "" }
#要写在.custom.yaml文件里
#__patch:
# - patch/+:
# __include: grammar:/huayu #语言模型
# 不要使用这个pack的功能,这个pack模式可以(将会)对packs的部分不编译出棱镜文件.prism和反查词典.reverse.bin文件
#translator:
# dictionary: kongmingma_user
# packs:
# - kongmingma_user
# - kongmingma_part00
# - kongmingma_part01_char
# - kongmingma_part01_ii
# - kongmingma_part01_symbols
# - kongmingma_part02
# - kongmingma_part03
# - kongmingma_part04
# - kongmingma_part06
# - kongmingma_part99