-
Notifications
You must be signed in to change notification settings - Fork 0
/
wubi98_dz.schema.yaml
254 lines (236 loc) · 5.84 KB
/
wubi98_dz.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
# Rime schema settings
# encoding: utf-8
schema:
schema_id: wubi98_dz
name: "单字"
version: "6.0"
author:
- 發明人 王永民
description: |
五笔98版
碼表源自 yanhuacuo
敲 z 鍵進入拼音反查
dependencies:
- py
switches:
- name: ascii_mode
reset: 0
states: [ 中,英 ]
- name: zh_trad
reset: 0
states: [ 简,繁 ]
- name: new_spelling
reset: 1
states: [ 隐,显 ]
- name: rvl_zhuyin
reset: 1
states: [ 形,拼 ]
- name: GB2312
reset: 0
states: [ 扩,常 ]
- name: new_hide_pinyin
reset: 1
states: [ 音, 哑 ]
- name: single_char
reset: 0
states: [ 单, 词 ]
- name: ascii_punct
reset: 0
states: [ 。,, ., ]
- name: full_shape
reset: 0
states: [ 半, 全 ]
engine:
filters:
- simplifier
- "reverse_lookup_filter@ci_reverse_lookup"
- lua_filter@new_spelling@spelling
- 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"
- 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"
speller:
auto_select: true
auto_clear: max_length
delimiter: "`"
max_code_length: 4
translator:
dictionary: wubi98_dz
db_class: tabledb
initial_quality: 100000
enable_charset_filter: false
enable_sentence: false
enable_encoder: false
encode_commit_history: false
max_phrase_length: 4
enable_completion: false
enable_user_dict: false
disable_user_dict_for_patterns:
- "^z.*$"
fixed:
db_class: tabledb
dictionary: wubi98_dz
disable_user_dict_for_patterns:
- "^z.*$"
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: 4
mkst:
db_class: tabledb
dictionary: wubi98_dz
disable_user_dict_for_patterns:
- "^z.*$"
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: 4
prefix: "`"
tag: mkst
tips: "〔精准造词〕"
rvl_zhuyin:
db_class: tabledb
dictionary: wubi98_dz
disable_user_dict_for_patterns:
- "^z.*$"
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: 4
prefix: "~"
tag: zhuyin
tips: "〔以形查音〕"
reverse_lookup:
db_class: tabledb
dictionary: py
disable_user_dict_for_patterns:
- "^z.*$"
enable_charset_filter: false
enable_completion: false
enable_encoder: false
enable_sentence: false
enable_user_dict: false
encode_commit_history: false
initial_quality: 100000
max_phrase_length: 4
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
tag: rvlk2
tips: "〔拼音反查〕"
rvlk1:
db_class: tabledb
dictionary: py
disable_user_dict_for_patterns:
- "^z.*$"
enable_charset_filter: false
enable_completion: false
enable_encoder: false
enable_sentence: false
enable_user_dict: false
encode_commit_history: false
extra_tags:
- rvlk2
initial_quality: 100000
max_phrase_length: 4
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: z
tag: rvlk1
tips: "〔拼音反查〕"
ci_reverse_lookup:
dictionary: wubi98_dz
tips: "〔五笔滤镜〕"
tags:
- rvlk2
simplifier:
opencc_config: s2t.json
option_name: zh_trad
lua_reverse_db:
spelling: wb_spelling
code: wb_spelling
recognizer:
import_preset: default
patterns:
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
mkst: "^[a-y]*`[a-y`]*$"
punct: "^/([0-9]0?|[A-Za-z]+)$"
rvlk1: "^z[a-z]*$"
rvlk2: "^z[a-z]*$"
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
zhuyin: "~[a-y]*?$"
helper: '^help$'
history:
input: z
size: 1
initial_quality: 1
key_binder:
bindings:
- { when: has_menu, accept: Left, send: Up }
- { when: has_menu, accept: Right, send: Down }
- {accept: minus, send: Page_Up, when: has_menu}
- {accept: equal, send: Page_Down, when: has_menu}
- {accept: semicolon, send: 2, when: has_menu}
- {accept: apostrophe, send: 3, when: has_menu}
- {accept: space, send: Escape, when: composing}
- {accept: space, send: space, when: has_menu}
- {accept: Return, send: Escape, when: composing}
- {accept: Return, send: Escape, when: has_menu}
- {accept: "Control+Shift+4", toggle: zh_trad, when: always}
- {accept: "Control+Shift+dollar", toggle: zh_trad, when: always}
- {accept: "Control+Shift+F", toggle: zh_trad, when: always}
- {accept: "Control+Shift+H", toggle: new_spelling, when: always}
- {accept: "Control+Shift+J", toggle: new_hide_pinyin, when: always}
- {accept: "Control+Shift+K", toggle: single_char, when: always}
- {accept: "Control+Shift+U", toggle: GB2312, when: always}
- {accept: "Control+Shift+I", toggle: GB2312, when: always}
- {accept: "Control+Shift+O", toggle: GB2312, when: always}
punctuator:
import_preset: symbols
menu:
page_size: 5