-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathteochew_dp.schema.yaml
More file actions
248 lines (232 loc) · 5.09 KB
/
teochew_dp.schema.yaml
File metadata and controls
248 lines (232 loc) · 5.09 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
# Rime schema: teochew_dp
# Generated from merged.csv - do not edit manually
schema:
schema_id: teochew_dp
name: 潮州話·拼音
version: "20260504.190221"
author:
- Hokkien Writing Project(https://github.com/hokkien-writing)
dependencies:
- teochew_dp_en
- teochew_dp_zh
- luna_pinyin
switches:
- name: ascii_punct
reset: 0
states: [ 。,, ., ]
- name: zh_simp
states: [ 漢字, 汉字 ]
- name: full_shape
states: [ 半角, 全角 ]
engine:
processors:
- ascii_composer
- recognizer
- lua_processor@dp_caps_tracker
- speller
- punctuator
- selector
- navigator
- key_binder
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@en_lookup
- affix_segmentor@zh_lookup
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- reverse_lookup_translator
- table_translator@en_lookup
- table_translator@zh_lookup
filters:
- simplifier
- lua_filter@dp_filter
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA12345678-!~`
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
delimiter: " -"
algebra:
- derive/ /-/
- derive/[1-8]//
- xform/^b/bh/
- xform/^g/gh/
- xform/^j/r/
- xform/^k(?=[^h])/g/
- xform/^p(?=[^h])/b/
- xform/^t(?=[^h])/d/
- xform/^ch(?=[^h])/z/
- xform/^kh/k/
- xform/^ph/p/
- xform/^th/t/
- xform/^chh/c/
- xform/ur/v/
- xform/au/ao/
- derive/oinn/ainn/
- derive/ien/ian/
- derive/ied/iad/
- derive/([aeiu])n$/$1ng/
- derive/d$/g/
- derive/nn//
- xform/p$/b/
- xform/t$/d/
- xform/k$/g/
- derive/a/A/
- derive/b/B/
- derive/c/C/
- derive/d/D/
- derive/e/E/
- derive/f/F/
- derive/g/G/
- derive/h/H/
- derive/i/I/
- derive/j/J/
- derive/k/K/
- derive/l/L/
- derive/m/M/
- derive/n/N/
- derive/o/O/
- derive/p/P/
- derive/q/Q/
- derive/r/R/
- derive/s/S/
- derive/t/T/
- derive/u/U/
- derive/v/V/
- derive/w/W/
- derive/x/X/
- derive/y/Y/
- derive/z/Z/
menu:
page_size: 6
key_binder:
import_preset: default
bindings:
- { when: paging, accept: Left, send: Page_Up }
- { when: has_menu, accept: Right, send: Page_Down }
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
- { when: has_menu, accept: Tab, send: Page_Down }
- { when: paging, accept: Shift+Tab, send: Page_Up }
- { when: always, accept: Control+Shift+4, toggle: zh_simp }
- { when: always, accept: Control+Shift+dollar, toggle: zh_simp }
- { when: always, accept: Control+period, toggle: ascii_punct }
simplifier:
opencc_config: t2s.json
option_name: zh_simp
tips: char
style:
horizontal: true
candidate_list_layout: linear
candidate_format: "%@"
translator:
dictionary: teochew_dp
enable_completion: true
enable_sentence: true
enable_user_dict: true
spelling_hints: 99
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
suffix: "'"
tips: "〔普通話拼音反查〕"
en_lookup:
tag: en_lookup
dictionary: teochew_dp_en
prefix: "~"
suffix: "'"
tips: "〔English〕"
zh_lookup:
tag: zh_lookup
dictionary: teochew_dp_zh
enable_completion: true
prefix: "!"
suffix: "'"
tips: "〔普通話對照〕"
preedit_format:
- xform/([nljqxy])v/$1ü/
recognizer:
patterns:
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
en_lookup: "~[a-z]*'?$"
zh_lookup: "![a-z]*'?$"
reverse_lookup: "`[a-z]*'?$"
abc_segmentor:
extra_tags:
- reverse_lookup
- en_lookup
- zh_lookup
punctuator:
full_shape:
' ': { commit: ' ' }
',': { commit: , }
'.': { commit: 。 }
'<': [ 《, 〈, «, ‹ ]
'>': [ 》, 〉, », › ]
'/': [ /, ÷ ]
'?': { commit: ? }
';': { commit: ; }
':': { commit: : }
'''': { pair: [ '‘', '’' ] }
'"': { pair: [ '“', '”' ] }
'\': [ 、, \ ]
'|': [ ·, |, '§', '¦' ]
'`': `
'~': ~
'!': { commit: ! }
'@': [ @, ☯ ]
'#': [ #, ⌘ ]
'%': [ %, '°', '℃' ]
'$': [ ¥, '$', '€', '£', '¥', '¢', '¤' ]
'^': { commit: …… }
'&': &
'*': [ *, ·, ・, ×, ※, ❂ ]
'(': (
')': )
'-': -
'_': ——
'+': +
'=': =
'[': [ 「, 【, 〔, [ ]
']': [ 」, 】, 〕, ] ]
'{': [ 『, 〖, { ]
'}': [ 』, 〗, } ]
half_shape:
',': ,
'.': 。
'<': 《
'>': 》
'/': '/'
'?': ?
';': ;
':': :
'''': { pair: [ '‘', '’' ] }
'"': { pair: [ '“', '”' ] }
'\': 、
'|': '|'
'`': '`'
'~': '~'
'!': !
'@': '@'
'#': '#'
'%': '%'
'$': '¥'
'^': ……
'&': '&'
'*': '*'
'(': (
')': )
'-': '-'
'_': ——
'+': '+'
'=': '='
'[': 【
']': 】
'{': 「
'}': 」