-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtigress.schema(json).yaml
More file actions
310 lines (310 loc) · 7.96 KB
/
tigress.schema(json).yaml
File metadata and controls
310 lines (310 loc) · 7.96 KB
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
303
304
305
306
307
308
309
310
schema:
schema_id: tigress
name: "虎词"
version: "6.1"
author:
- 發明人
description: |
虎码
dependencies:
- core2022
- PY_c
- easy_english
- stroke
switches:
- name: extended_char
reset: 1
states: [ 全集,常用 ]
- name: ascii_mode
reset: 0
states: [ 中,英 ]
- name: zh_trad
reset: 0
states: [ 简,繁 ]
- name: new_spelling
reset: 0
states: [ 拆隐,拆显 ]
- name: single_char
reset: 0
states: [ 词,单 ]
- name: rvl_zhuyin
reset: 1
states: [ 形,拼 ]
- name: emoji_cn
reset: 0
states: [ 🈚, 🈶 ]
- name: ascii_punct
reset: 0
states: [ 。,,., ]
- name: full_shape
reset: 0
states: [ 半,全 ]
- name: charset_comment_filter
reset: 0
states: [ U区关, U区开 ]
- name: udpf_switch
reset: 0
states: [ U编关, U编开]
- name: GB2312
reset: 0
states: [ 扩,常 ]
- name: new_hide_pinyin
reset: 0
states: [ 音,哑 ]
engine:
filters:
- lua_filter@core2022
- simplifier
- simplifier@zh_trad
- "reverse_lookup_filter@ci_reverse_lookup"
- "lua_filter@new_spelling@spelling"
- "lua_filter@*multiline*Multiline_filter"
- simplifier@rvl_zhuyin
- simplifier@new_spelling
- simplifier@emoji_cn
- lua_filter@charset_comment_filter
- lua_filter@lua_unicode_display_filter
- lua_filter@single_char
- uniquifier
processors:
- ascii_composer
- "lua_processor@submit_text_processor"
- "lua_processor@switch_processor"
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- "affix_segmentor@mkst"
- "affix_segmentor@rvlk1"
- "affix_segmentor@rvl_zhuyin"
- affix_segmentor@easy_english
- affix_segmentor@stroke
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- "table_translator@rvlk1"
- table_translator
- "table_translator@fixed"
- "table_translator@mkst"
- "table_translator@rvl_zhuyin"
- "history_translator@history"
- "lua_translator@helper"
- "lua_translator@time_date"
- table_translator@easy_english
- table_translator@stroke
- lua_translator@number_translator
- lua_translator@calculator_translator
- lua_translator@shijian2_translator
speller:
auto_select: true
auto_clear: max_length
delimiter: "`"
max_code_length: 99
alphabet: "[;'zyxwvutsrqponmlkjihgfedcba=]"
translator:
dictionary: tigress.extended
db_class: tabledb
initial_quality: 100000
enable_charset_filter: false
enable_sentence: false
enable_encoder: false
encode_commit_history: false
max_phrase_length: 99
enable_completion: true
enable_user_dict: false
comment_format:
- "xform/~/ /"
fixed:
db_class: tabledb
dictionary: tigress.extended
enable_charset_filter: false
enable_completion: false
enable_encoder: true
enable_sentence: false
enable_user_dict: true
encode_commit_history: false
initial_quality: 1000
max_phrase_length: 9
mkst:
db_class: tabledb
dictionary: tigress.extended
enable_charset_filter: false
enable_completion: false
enable_encoder: false
enable_sentence: true
enable_user_dict: false
encode_commit_history: false
initial_quality: 10
max_phrase_length: 99
prefix: "`"
tag: mkst
tips: "〔精准造词〕"
rvl_zhuyin:
opencc_config: pinyin.json
option_name: rvl_zhuyin
show_in_comment: true
comment_format:
- 'xform/ / /'
tips: char
tags:
- abc
- tigress
rvlk1:
dictionary: PY_c
prefix: "P"
tips: "〔拼音单字反查〕"
enable_completion: true
enable_sentence: false
max_phrase_length: 99
initial_quality: -1
tag: rvlk1
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
comment_format:
- "xform/^/ /"
reverse_lookup:
db_class: tabledb
dictionary: PY_c
enable_charset_filter: false
enable_completion: true
enable_encoder: false
enable_sentence: false
enable_user_dict: false
encode_commit_history: false
prefix: "F"
initial_quality: 100000
max_phrase_length: 99
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
comment_format:
- "xform/^/ /"
tips: "〔小鹤双拼反查〕"
ci_reverse_lookup:
dictionary: tigress.extended
tips: "〔虎码滤镜〕"
zh_trad:
opencc_config: st_tu.json
option_name: zh_trad
tips: all
pinyin:
opencc_config: pinyin.json
option_name: pinyin
show_in_comment: true
comment_format:
- 'xform/ / /'
tips: char
tags:
- abc
- tigress
easy_english:
dictionary: easy_english
tag: easy_english
prefix: "E"
tips: 〔En〕
enable_completion: true
enable_sentence: false
initial_quality: -1
preedit_format:
- "xlit|_| |"
comment_format:
- "xform/~/ /"
stroke:
dictionary: stroke
tag: stroke
prefix: "B"
tips: "〔笔画〕"
enable_completion: true
enable_sentence: false
max_phrase_length: 99
initial_quality: -1
preedit_format:
- "xlit/hspnz/一丨丿丶ㄥ/"
comment_format:
- "xform/^/ /"
new_spelling:
opencc_config: hu_cf.json
option_name: new_spelling
show_in_comment: true
comment_format:
- "xform/ / /"
tags:
- abc
- tigress
tips: all
lua_reverse_db:
spelling: tigress_spelling
code: tigress_spelling
recognizer:
import_preset: default
patterns:
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
mkst: "^[a-z]*`[a-z`]*$"
punct: "^/([0-9]0?|[A-Za-z]+)$"
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
zhuyin: "~[a-y]*?$"
helper: '^help$'
reverse_lookup: "^F[a-z]*$"
stroke: "^B[a-z]*$"
rvlk1: "^P[a-z]*$"
easy_english: "^E[A-Z|a-z]*$"
expression: "^=.*$"
emoji_cn:
opencc_config: emoji.json
option_name: emoji_cn
tips: all
history:
input: z
size: 1
initial_quality: 1
key_binder:
bindings:
- {send: Up, accept: Left, when: has_menu}
- {send: Down, accept: Right, when: has_menu}
- {send: Page_Up, accept: minus, when: has_menu}
- {send: Page_Down, accept: equal, when: has_menu}
- {send: space, accept: space, when: has_menu}
- {toggle: zh_trad, accept: "Control+Shift+F", when: always}
- {toggle: new_spelling, accept: "Control+Shift+H", when: always}
- {toggle: new_hide_pinyin, accept: "Control+Shift+J", when: always}
- {toggle: single_char, accept: "Control+Shift+K", when: always}
- {toggle: extended_char, accept: "Control+Shift+U", when: always}
- {toggle: charset_comment_filter, accept: "Control+Shift+O", when: always}
- {toggle: udpf_switch, accept: "Control+Shift+I", when: always}
- {toggle: rvl_zhuyin, accept: "Control+Shift+P", when: always}
- {toggle: emoji_cn, accept: "Control+Shift+Y", when: always}
- {toggle: single_char, accept: "Control+Shift+G", when: always}
- {accept: semicolon, send: 2, when: has_menu}
- {accept: apostrophe, send: 3, when: has_menu}
- {accept: KP_0, send: 0, when: composing}
- {accept: KP_1, send: 1, when: composing}
- {accept: KP_2, send: 2, when: composing}
- {accept: KP_3, send: 3, when: composing}
- {accept: KP_4, send: 4, when: composing}
- {accept: KP_5, send: 5, when: composing}
- {accept: KP_6, send: 6, when: composing}
- {accept: KP_7, send: 7, when: composing}
- {accept: KP_8, send: 8, when: composing}
- {accept: KP_9, send: 9, when: composing}
- {accept: KP_Decimal, send: period, when: composing}
punctuator:
import_preset: symbols
menu:
page_size: 7
historyDM:
input: "z"
size: 1
initial_quality: 999