-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwhaleliu_ext.schema.yaml
367 lines (328 loc) · 11 KB
/
whaleliu_ext.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
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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
---
schema:
author:
- 蒼頡發明人 朱邦復先生
- 鯨魚輸入法 發明人 臺灣之子
description:
鯨魚舞倉頡輸入法
【鯨魚】輸入法 + 嘸蝦米 字根
http://www.geocities.ws/mycj3/content.html
倉頡字母 倉 嘸
日(日) A D(Day)
月(月) B M( 英文moon )
金(金) C A( 蝦米根)
木(木) D T(tree)
水(水) E W(water)
火(火) F F(fire)
土(土) G Y
竹(斜) H Z
戈(點) I *L (重碼)
十(交) J J
大(叉) K *X( 以叉 為字根)
中(縱) L *I( 以緃為字根)
一(橫) M E
弓(勾) N *K(重碼 模糊音)
人(人) O B
心(心) P H
手(手) Q *S(重碼 模糊音)
口(口) R O
尸(側) S C
廿(并) T R
山(仰) U *U(重碼 倉頡字根)
女(紐) V G
田(方) W Q
難)糸 X *N( 重碼 / 鯨魚輸入法 為"糸"
卜(卜) Y P
符 魚 Z *V (重碼 / 鯨魚輸入法為 魚
虫 , ( 鯨魚輸入法)
羊 ; (鯨魚輸入法)
name: 鯨舞倉-詞
schema_id: whaleliu_ext
version: "0.1.0.1"
# ---------------
dependencies:
- luna_pinyin
- cangjie5liu
- whaleliu
# ---------------
# - reverse_lookup
#
speller: #
alphabet: abcdefghijklmnopqrstuvwxyz[];,.?
# 預設 ascii-punct off 符號鍵為半形上字 特將 [] / 納入才強制觸發 punct / . , '/ ?
#alphabet: abcdefghijklmnopqrstuvwxyz;,?
finals: CP
max_code_length: 5
auto_select: true
delimiter: " '"
#auto_select_pattern: "[a-z]+[CPL']"
algebra:
#
#- derive/^([a-z;,]).([a-z;,])$/$1$2\?/ # 取首尾二碼爲反查三碼字
#- derive/^([a-z;,])..([a-z;,])$/$1$2\?\?/ # 取首尾二碼爲速成碼反查四碼字
#- derive/^([a-z;,])...([a-z;,])$/$1$2\?\?\?/ # 取首尾二碼爲速成碼反查五碼字
translator: &main_tran
#tag: main_tran
dictionary: &dict whaleliu.extended
#prism: *dict
tips: &dict_tips "【鯨舞倉-詞】"
closing_tips: &dict_ctips "【鯨舞倉-詞】"
suffix: "'"
preedit_format: &dict_pre_fmt
- derive/^(.+)$/\1(\U\1\)\E/
#- xform/\((.)(.)(.+)\)/(\1\3\2)/
- &dict_pre_xlit xlit|DMATWFYZLJXIEKBHSOCRUGQNPV[];,|日月金木水火土竹戈十大中一弓人心手口尸廿山女田糸卜魚左右虫羊|
comment_format: &dict_comm_fmt
- xform/^(.+)$/ \1 /
- &dict_comm_xlit xlit|dmatwfyzljxiekbhsocrugqnpv[];,|日月金木水火土竹戈十大中一弓人心手口尸廿山女田糸卜魚左右虫羊|
max_phrase_length: 5
enable_charset_filter: false
enable_encoder: false
enable_sentence: false
enable_user_dict: false
enable_completion: true
#----------------------------------------------------
# 所有副字典 反查 (笫一層) 分發至指定副字典(extra_tags)
lookup:
tag: lookup
extra_tags: [ pinyin ,vcode,cangjie5liu,translator ]
prefix: "`"
tips: "[反查]"
vcode:
tag: vcode
prefix: "`V"
dictionary: &vdict whaleliu
prism: *vdict
tips: &vdict_tips "【鯨舞倉-詞】"
preedit_format: &vdict_pre_fmt
- derive/^(.+)$/\1(\U\1\)\Evcode/
- xform/\((.)(.)([?]+)\)/(\1\3\2)/
- &dict_pre_xlit xlit|DMATWFYZLJXIEKBHSOCRUGQNPV[];,|日月金木水火土竹戈十大中一弓人心手口尸廿山女田糸卜魚左右虫羊|
comment_format: *dict_comm_fmt
reverse_lookup: # reverse_lookup filter
tags: [ vcode, lookup,pinyin, cangjie5liu,translator ]
tag: reverse_lookup
dictionary: *dict
overwrite_comment: true # 覆蓋其他提示
comment_format: #*rcomment
- xlit|?~|?~|
- xform/^(.+)$/〔\1〕-/
- *dict_comm_xlit
#
pinyin: &pinyin
tag: pinyin
dictionary: &pinyin_dict
luna_pinyin
tips: &pinyin_tips
"[拼音]"
closing_tips: &pinyin_ctips
"[拼音]"
prefix: "`P"
preedit_format: &pinyin_pre_fmt
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
comment_format: &pinyin_comm_fmt
- xform/^(.*)$/[\1]拼/
# 反查拼音
lookup_pinyin:
tag: lookup_pinyin
extra_tags: [vcode]
prefix: "P"
#suffix: "P"
tips: "[反查拼音]"
closing_tips: "[反查拼音]"
preedit_format: *dict_pre_fmt
lookup_pinyin1:
tag: lookup_pinyin1
extra_tags: [vcode]
#prefix: "P"
suffix: "P"
tips: "[反查拼音]"
closing_tips: "[反查拼音]"
preedit_format: *dict_pre_fmt
reverse_lookup_pinyin:
tags: [ lookup_pinyin ,lookup_pinyin1 ]
dictionary: *pinyin_dict
overwrite_comment: true
comment_format: *pinyin_comm_fmt
#-s---------------- cangjie5liu
cangjie5liu: &cj5liu
tag: cangjie5liu
dictionary: &cj5liu_dict
cangjie5liu
tips: &cj5liu_tips
"[倉五查]"
closing_tips: &cj5liu_ctips
"[倉五查]"
prefix: "`C"
preedit_format: &cj5liu_pre_fmt
- derive/^(.+)$/\1(\U\1\)\E/
- xform/\((.)(.)(.+)\)/(\1\3\2)/
- &cj5liu_pre_xlit "xlit|DMATWFYZLJXIEKBHSOCRUGQNPV|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
comment_format: &cj5liu_comm_fmt
- &cj5liu_comm_xlit "xlit|dmatwfyzljxiekbhsocrugqnpv~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
- xform/^(.*)$/[\1]倉/
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"
# 反查拼音
lookup_cangjie5liu:
tag: lookup_cangjie5liu
extra_tags: [vcode]
prefix: "C"
suffix: "C"
tips: "[反查倉五]"
closing_tips: "[反查倉五]"
preedit_format: *dict_pre_fmt
reverse_lookup_cangjie5liu:
tags: [ lookup_cangjie5liu ]
dictionary: *cj5liu_dict
overwrite_comment: true
comment_format: *cj5liu_comm_fmt
#----------------------------------------------------
abc_segmentor:
extra_tags:
recognizer:
import_preset: default
patterns:
#pinyin: "^P[a-z]*'?$"
translator: "$[a-z,;?]+$"
lookup: "`[a-z,;?]*'?$|[a-z,;?]+`$" # 第一級
vcode: "`V[a-z,;?]*'?$|^[a-z,;]{2}[?]+$"
pinyin: "`P[a-z ]*'?$" #第二級
lookup_pinyin: "^P[a-z;,?]*'?$"
lookup_pinyin1: "^[a-z;,?]+P'?$"
cangjie5liu: "`C[a-z ]*'?$" #第二級
lookup_cangjie5liu: "^C[a-z;,?]*'?$|^[a-z;,?]+C'?$"
# 主字典反查 副字典
engine:
filters:
- single_char_filter
- simplifier
- uniquifier
- reverse_lookup_filter@reverse_lookup # 轉 主字典碼以 tags 選
- reverse_lookup_filter@reverse_lookup_pinyin # 轉 主字典碼以 tags 選
- reverse_lookup_filter@reverse_lookup_pinyin1 # 轉 主字典碼以 tags 選
- reverse_lookup_filter@reverse_lookup_cangjie5liu # 轉 主字典碼以 tags 選
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- affix_segmentor@translator # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@vcode # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@lookup # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@pinyin # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@lookup_pinyin # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@lookup_pinyin1 # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@reverse_lookup_pinyin # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@cangjie5liu # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@lookup_cangjie5liu # 1 tag -extrato-> pinyin_lookup .....
- affix_segmentor@reverse_lookup_cangjie5liu # 1 tag -extrato-> pinyin_lookup .....
- punct_segmentor
- fallback_segment
translators:
- punct_translator
- table_translator
- table_translator@vcode
- script_translator@pinyin
- table_translator@cangjie5liu
key_binder:
import_preset: default
bindings:
- { when: composing, accept: space, send: Escape }
- { when: has_menu, accept: space, send: space }
punctuator:
import_preset: symbols
simplifier:
tips: all
switches:
- { name: ascii_mode, states: [ 中文 , 西文 ] }
- { name: full_shape, states: [ 半角 , 全角] }
- { name: simplification, states: [ 漢字 , 汉字 ] }
- { name: extended_charset, states: [ 常用 , 增廣] }
- { name: ascii_punct, states: [ "。," , ".," ] }
#pinyin_lookup: # 副字典 反查 正字典碼
#tag: pinyin_lookup
#extra_tags: [pinyin] #轉發 pinyan
#prefix: '`P'
#tips: "[拼音反查]"
#closing_tips: "[拼音反查]"
#dictionary: *dPict
#preedit_format: *dict_pre_fmt
#comment_format: *dict_comm_fmt
#- translator # 跳入 pinyin 輸入法
#extra_tags:
#- main_tran
# 反查拼音
#lookup_pinyin:
#tag: lookup_pinyin
#extra_tags: [ vcode ]
#prefix: "P"
#tips: "[拼音反查]"
#closing_tips: "[拼音反查]"
#reverse_lookup_pinyin:
#tags: [ lookup_pinyin ]
##*main_tran # 引入主字典
#dictionary: *pinyin_dict
#tips: *pinyin_tips
#closing_tips: *pinyin_ctips
#overwrite_comment: true
#comment_format: *pinyin_comm_fmt
# 反查拼音
#bopomo_lookup:
#tag: bopomo_lookup
#tips: "[反查拼音]"
#closing_tips: "[反查拼音]"
#prefix: "PA"
##suffix: 'P'
##dictionary: luna_pinyin
#dictionary: whaleliu
#preedit_format: *dict_pre_fmt
#comment_format: *dict_comm_fmt
#bopomo_reverse_lookup:
##tags: [ bopomo_lookup ]
##dictionary: luna_pinyin
#dictionary: bopomofo_hsuq
#prism: bopomofo_hsuq
#enable_completion: true
#prefix: "PA"
#suffix: "'"
#tips: 〔拼音〕
#overwrite_comment: true
#preedit_format:
#- "xlit|abcdefghijklmnopqrstuvwxyz|"
#comment_format:
#- xform/^r5$/er5/
#- xform/^([jqx])y?u/$1v/
#- xform/^y/i/
#- xform/^w/u/
#- xform/iu/iou/
#- xform/ui/uei/
#- xform/ong/ung/
#- xform/([iu])n/$1en/
#- xform/zh/Z/
#- xform/ch/C/
#- xform/sh/S/
#- xform/ai/A/
#- xform/ei/I/
#- xform/ao/O/
#- xform/ou/U/
#- xform/ang/K/
#- xform/eng/G/
#- xform/an/M/
#- xform/en/N/
#- xform/er/R/
#- xform/eh/E/
#- xform/([iv])e/$1E/
#- xform/1/ˉ/
#- 'xlit|bpmfdtnlgkhjqxZCSrzcsiuvaoeEAIOUMNKGR2345|ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄧㄨㄩㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦˊˇˋ˙|'