forked from DreamAfar/Rime-IME-for-iOS-iRime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbjz.schema.yaml
187 lines (168 loc) · 4.42 KB
/
sbjz.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
# Rime schema settings
# encoding: utf-8
schema:
schema_id: sbjz
name: "声笔简整"
version: "9.5"
author:
- 戴石麟 <https://sbxlm.gitee.io>
dependencies:
- sbpy #拼音反查
- bihua #笔画反查
- sbzdy #自定义词典
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: ascii_punct
states: [ 。,, ., ]
- name: full_shape
reset: 0
- name: zh_trad
reset: 0
states: [ 简体, 繁體 ]
- name: auto_inline
reset: 1
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- affix_segmentor@sbzdy
- affix_segmentor@bihua_lookup
- affix_segmentor@pinyin_lookup
- affix_segmentor@zhlf_lookup
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- lua_translator@date_translator
- lua_translator@time_translator
- lua_translator@number_translator
- table_translator@sbzdy
- table_translator@gdz
- table_translator@bihua_lookup
- script_translator@pinyin_lookup
- script_translator@zhlf_lookup
filters:
- reverse_lookup_filter@bihua_reverse_lookup
- reverse_lookup_filter@pinyin_reverse_lookup
- reverse_lookup_filter@zhlf_reverse_lookup
- simplifier
- uniquifier
speller:
alphabet: "qwertasdfgzxcvbyuiophjklnm"
initials: "qwrtsdfgzxcvbyphjklnm"
algebra:
- "fuzz/^(\\w).+$/$1/"
- "fuzz/^(\\w)(\\w).+$/$1$2/"
- "fuzz/^(\\w)(\\w)(\\w).+$/$1$2$3/"
- "fuzz/^(\\w)(\\w)(\\w)(\\w).+$/$1$2$3$4/"
- "fuzz/^(\\w)(\\w)(\\w)(\\w)(\\w).+$/$1$2$3$4$5/"
translator:
dictionary: sbjz
sbzdy:
tag: sbzdy
dictionary: sbzdy
enable_user_dict: false
enable_encoder: false
enable_sentence: false
strict_spelling: true
enable_completion: true
encode_commit_history: false
prefix: "u"
tips: "〔自定义〕"
simplifier:
opencc_config: s2t.json
option_name: zh_trad
gdz:
dictionary: sbpygdz
enable_user_dict: false
enable_encoder: false
enable_sentence: false
enable_compeltion: false
strict_spelling: true
bihua_lookup:
tag: bihua_lookup
dictionary: bihua
enable_user_dict: false
enable_encoder: false
enable_sentence: false
strict_spelling: true
enable_completion: true
encode_commit_history: false
tips: "〔笔画反查〕"
bihua_reverse_lookup:
tags: [ bihua_lookup ]
overwrite_comment: true
dictionary: sbjz
pinyin_lookup:
tag: pinyin_lookup
dictionary: sbpy
enable_user_dict: false
enable_encoder: false
enable_sentence: false
strict_spelling: true
enable_completion: true
encode_commit_history: false
prefix: "a"
tips: "〔拼音反查〕"
pinyin_reverse_lookup:
tags: [ pinyin_lookup ]
overwrite_comment: true
dictionary: sbjz
zhlf_lookup:
tag: zhlf_lookup
dictionary: zhlf
enable_user_dict: false
enable_encoder: false
enable_sentence: false
strict_spelling: true
enable_completion: true
encode_commit_history: false
prefix: "i"
tips: "〔两分反查〕"
zhlf_reverse_lookup:
tags: [ zhlf_lookup ]
overwrite_comment: true
dictionary: sbjz
punctuator:
import_preset: symbols
recognizer:
patterns:
bihua_lookup: "^[aeiou]+$"
pinyin_lookup: "^a[qwrtsdfgzxcvbyphjklnm][a-z]*'?$"
sbzdy: "^u[qwrtsdfgzxcvbyphjklnm][a-z0-9]*$"
zhlf_lookup: "^i[qwrtsdfgzxcvbyphjklnm][a-z]*'?$"
retention: "^o[qwrtsdfgzxcvbyphjklnm0-9][a-z0-9]*$"
punct: '^\\([0-9]|10|[A-Za-z]+)$'
key_binder:
bindings:
- { when: composing, accept: Tab, send: Page_Down }
- { when: composing, accept: Shift+Tab, send: Page_Up }
- { when: has_menu, accept: 1, send_sequence: "{Home}" }
- { when: has_menu, accept: 2, send_sequence: "{Home}{Shift+Right}" }
- { when: has_menu, accept: 3, send_sequence: "{Home}{Shift+Right}{Shift+Right}" }
- { when: has_menu, accept: 4, send_sequence: "{Home}{Shift+Right}{Shift+Right}{Shift+Right}" }
- { when: has_menu, accept: 5, send_sequence: "{End}" }
- { when: is_sixth, accept: a, send: 6 }
- { when: is_sixth, accept: e, send: 7 }
- { when: is_sixth, accept: u, send: 8 }
- { when: is_sixth, accept: i, send: 9 }
- { when: is_sixth, accept: o, send: 0 }
menu:
page_size: 5
alternative_select_keys: "67890"
alternative_select_labels: [a,e,u,i,o]
style:
inline_preedit: false