-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwubi98_S.schema.yaml
209 lines (189 loc) · 4.5 KB
/
wubi98_S.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
# Rime schema settings
# encoding: utf-8
schema:
schema_id: wubi98_S
name: "简词"
version: "6.0"
author:
- 發明人 王永民
description: |
五笔98版
碼表源自 yanhuacuo
敲 z 鍵進入拼音反查
dependencies:
- py
switches:
- name: ascii_mode
reset: 0
- name: zh_trad
reset: 0
states: [ 简,繁 ]
- name: new_spelling
reset: 1
states: [ 隐,显 ]
- name: jiayin
reset: 1
- 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:
- charset_filter@gb2312
- simplifier
- "reverse_lookup_filter@ci_reverse_lookup"
- lua_filter@new_spelling@spelling
- lua_filter@single_char
- "simplifier@jiayin"
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- "affix_segmentor@mkst"
- "affix_segmentor@rvlk1"
- "affix_segmentor@zhuyin_fix"
- 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@zhuyin_fix"
- "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_S.extended
db_class: tabledb
initial_quality: 100000
enable_charset_filter: false
enable_sentence: false
enable_encoder: true
encode_commit_history: true
max_phrase_length: 4
enable_completion: false
enable_user_dict: false
disable_user_dict_for_patterns:
- "^z.*$"
fixed:
__include: /translator
initial_quality: 1000
enable_encoder: true
enable_user_dict: true
mkst:
__include: /translator
initial_quality: 10
enable_sentence: true
prefix: '`'
tips: "〔精准造词〕"
tag: mkst
reverse_lookup:
__include: /translator
dictionary: py
tips: "〔拼音反查〕"
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
tag: rvlk2
rvlk1:
__include: /reverse_lookup
prefix: "z"
tag: rvlk1
extra_tags:
- rvlk2
ci_reverse_lookup:
dictionary: wubi98_S.extended
tips: "〔五笔滤镜〕"
tags:
- rvlk2
zhuyin_fix:
__include: /translator
prefix: '~'
tips: "〔以形查音〕"
tag: zhuyin_fix
simplifier:
opencc_config: s2t.json
option_name: zh_trad
lua_reverse_db:
spelling: wb_spelling
code: wb_spelling
jiayin:
opencc_config: jiayin.json
option_name: jiayin
show_in_comment: true
comment_format:
- "xform/<br>/\r/"
- "xform/ / /"
tags:
# - abc
- zhuyin_fix
tips: all
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_fix: "~[a-y]*?$"
helper: '^help$'
charset_filter:
option_name: gb2312
history:
input: z
size: 1
initial_quality: 1
key_binder:
bindings:
- {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: 9