-
Notifications
You must be signed in to change notification settings - Fork 1
/
zrlong_sentence.schema.yaml
292 lines (280 loc) · 6.42 KB
/
zrlong_sentence.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
schema:
schema_id: zrlong_sentence
name: 自然龙-整
version: "20240425"
author:
- 自然碼發明人:周志農
- 方案製作:晡时之光
- modded by 小幽幽
- 词库 by 蓝落萧
description: |
自然龙的整句模式。
switches:
- name: ascii_mode
states: [中文, 西文]
- name: full_shape
states: [半角, 全角]
- name: ascii_punct
states: [。,, .,]
- name: emoji
states: [🈚, 🈶]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- table_translator@custom_phrase # 自定義短語
# - history_translator@repeat
- lua_translator@*moran_shijian # 日期orq 節氣ojq 星期oxq 時間osj
- lua_translator@*moran_number # 數字轉大寫
- script_translator
filters:
- simplifier@emoji
- uniquifier
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz;`"
delimiter: "'"
# max_code_length: 4
# auto_select: true
# auto_clear: max_length # manual | auto | max_length
# auto_select_pattern: ;\w+ #自动上屏规则 对 [;] 引导的编码实行候选唯一自动上屏
algebra:
- xform/^([jqxy])u(\d)$/$1v$2/
- xform/^([aoe])([ioun]\d)$/$1$1$2/
- xform/^([aoe])(ng\d)$/$1$1$2/
- xform/^([aoe])(\d)$/$1$1$2/
- xform/^(ng\d)$/ee$1/
- xform/^sh/U/
- xform/^ch/I/
- xform/^zh/V/
- xform/iao4$/L/
- xform/iao3$/L/
- xform/iao2$/U/
- xform/iao5$/M/
- xform/iao1$/M/
- xform/ian1$/R/
- xform/ian2$/V/
- xform/ian3$/P/
- xform/ian4$/A/
- xform/ian5$/R/
- xform/uan4$/C/
- xform/uan3$/S/
- xform/uan2$/O/
- xform/uan1$/D/
- xform/uan5$/D/
- xform/iang4$/E/
- xform/iang3$/U/
- xform/iang2$/I/
- xform/iang1$/Y/
- xform/iang5$/Y/
- xform/iong4$/H/
- xform/iong3$/E/
- xform/iong2$/K/
- xform/iong1$/P/
- xform/iong5$/P/
- xform/uang5$/W/
- xform/uang1$/W/
- xform/uang2$/B/
- xform/uang3$/U/
- xform/uang4$/E/
- xform/(.)eng1$/$1C/
- xform/(.)eng2$/$1F/
- xform/(.)eng3$/$1Y/
- xform/(.)eng4$/$1F/
- xform/(.)eng5$/$1C/
- xform/uai4$/F/
- xform/uai3$/P/
- xform/uai2$/S/
- xform/uai1$/G/
- xform/uai5$/G/
- xform/ua4$/G/
- xform/ua3$/G/
- xform/ua2$/T/
- xform/ua1$/S/
- xform/ua5$/S/
- xform/(.)ai4$/$1O/
- xform/(.)ou3$/$1Z/
- xform/(.)en2$/$1S/
- xform/(.)ang4$/$1D/
- xform/(.)ong1$/$1K/
- xform/(.)ong5$/$1K/
- xform/(.)ei4$/$1K/
- xform/(.)ai2$/$1D/
- xform/(.)ao4$/$1V/
- xform/(.)ao3$/$1X/
- xform/(.)ao2$/$1I/
- xform/(.)ao1$/$1Q/
- xform/(.)en1$/$1E/
- xform/(.)en5$/$1E/
- xform/en1$/E/
- xform/en5$/E/
- xform/ia4$/X/
- xform/uo4$/P/
- xform/uo1$/S/
- xform/uo5$/S/
- xform/(.)ong4$/$1Y/
- xform/ia1$/D/
- xform/ia2$/C/
- xform/ia3$/N/
- xform/ia4$/X/
- xform/ia5$/D/
- xform/(.)ang1$/$1U/
- xform/(.)ang5$/$1U/
- xform/(.)ou4$/$1R/
- xform/(.)ai1$/$1B/
- xform/(.)ai5$/$1B/
- xform/in1$/H/
- xform/in2$/C/
- xform/in3$/X/
- xform/in4$/V/
- xform/in5$/H/
- xform/uo3$/L/
- xform/(.)ong2$/$1J/
- xform/ing1$/E/
- xform/ing2$/N/
- xform/ing3$/W/
- xform/ing4$/W/
- xform/ing5$/E/
- xform/(.)ou1$/$1X/
- xform/(.)ou5$/$1X/
- xform/(.)an2$/$1Q/
- xform/(.)en3$/$1O/
- xform/en3$/O/
- xform/(.)en4$/$1O/
- xform/en4$/O/
- xform/(.)ao5$/$1Q/
- xform/(.)ang3$/$1P/
- xform/(.)an1$/$1N/
- xform/(.)an5$/$1N/
- xform/uo2$/L/
- xform/(.)an4$/$1A/
- xform/(.)ei2$/$1R/
- xform/(.)ong3$/$1N/
- xform/(.)ou2$/$1A/
- xform/ui1$/T/
- xform/ui2$/W/
- xform/ui3$/V/
- xform/ui4$/F/
- xform/ui5$/T/
- xform/(.)ei3$/$1J/
- xform/ue1$/U/
- xform/ue2$/I/
- xform/ue3$/O/
- xform/ue4$/D/
- xform/ue5$/U/
- xform/ve1$/U/
- xform/ve2$/I/
- xform/ve3$/O/
- xform/ve4$/D/
- xform/ve5$/U/
- xform/(.)ang2$/$1W/
- xform/ie1$/K/
- xform/ie2$/S/
- xform/ie3$/C/
- xform/ie4$/Q/
- xform/ie5$/K/
- xform/(.)ei1$/$1I/
- xform/(.)ei5$/$1I/
- xform/(.)ai3$/$1U/
- xform/v1$/H/
- xform/v2$/M/
- xform/v3$/S/
- xform/v4$/F/
- xform/(.)an3$/$1O/
- xform/un1$/G/
- xform/un2$/F/
- xform/un3$/O/
- xform/un4$/R/
- xform/un5$/G/
- xform/er1$/eQ/
- xform/er2$/eK/
- xform/er3$/eU/
- xform/er4$/eH/
- xform/er5$/eQ/
- xform/iu5$/Z/
- xform/iu4$/O/
- xform/iu3$/Z/
- xform/iu2$/M/
- xform/iu1$/Z/
- xform/(.)a1$/$1L/
- xform/(.)a2$/$1U/
- xform/(.)a3$/$1M/
- xform/(.)a4$/$1I/
- xform/(.)a5$/$1L/
- xform/(.)e1$/$1R/
- xform/(.)e2$/$1E/
- xform/(.)e3$/$1L/
- xform/(.)e4$/$1I/
- xform/(.)e5$/$1R/
- xform/(.)o1$/$1P/
- xform/(.)o2$/$1E/
- xform/(.)o3$/$1I/
- xform/(.)o4$/$1G/
- xform/(.)o5$/$1P/
- xform/i5$/J/
- xform/i4$/T/
- xform/i3$/G/
- xform/i2$/B/
- xform/i1$/J/
- xform/u5$/A/
- xform/u4$/H/
- xform/u3$/M/
- xform/u2$/L/
- xform/u1$/A/
- xlit/QWERTYUIOPASDFGHMJCKLZXVBN/qwertyuiopasdfghmjcklzxvbn/
translator:
dictionary: zrlong_sentence
prism: zrlong_sentence
db_class: tabledb
# enable_charset_filter: false
contextual_suggestions: true
enable_sentence: false
enable_completion: true
enable_user_dict: true
initial_quality: 10000
grammar:
language: zh-hans-t-essay-bgw
custom_phrase: # 自定義短語
dictionary: ""
user_dict: zrlong_custom_phrases
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 20000
# repeat: # 重複上屏
# input: "="
# size: 1
# initial_quality: 0
emoji:
opencc_config: moran_emoji.json
option_name: emoji
tips: all
punctuator:
import_preset: symbols
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: ";", send: "2" } # 分号次选
- { when: has_menu, accept: "Control+e", toggle: emoji }
recognizer:
import_preset: default
patterns:
reverse_lookup: "(^(``[a-z`]+))|(^([a-z]{2}(`[a-z`]?|[a-z`]`)))"
punct: "^/([0-9]0?|[A-Za-z]+)$"
menu:
page_size: 5
alternative_select_keys: "12345"