-
Notifications
You must be signed in to change notification settings - Fork 0
/
tlpa_huan_ciat_sip_ngoo_im.schema.yaml
596 lines (566 loc) · 19.8 KB
/
tlpa_huan_ciat_sip_ngoo_im.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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# Rime schema
# encoding: utf-8
---
schema:
schema_id: tlpa_huan_ciat_sip_ngoo_im
name: 河洛反切十五音
version: "v0.0.2.11"
author:
- 居正中
description: |
基於《雅俗通》(Ngée-sio̍k-thong) 所收紅字校增
【輸入類型】:十五音輸入法
【拼音系統】:雅俗通十五音
【字典編碼】:台羅音標
【注音輸入】:羅馬拼音字母(siaⁿ1:siann;)
【侯選清單】:〔siaⁿ¹〕 【時驚一】
【聲調標示】:
(1) 台羅八聲調;
(2) 使用數值標示聲調,以利閱讀。
dependencies:
- luna_pinyin
switches:
- name: ascii_mode
reset: 0
states: [中文, 西文]
- name: full_shape
states: [半角, 全角]
- name: simplification
states: [漢字, 汉字]
- name: ascii_punct
states: [,。, ,.]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- r10n_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
#------------------------------------------------------
# 定義使用者按下鍵盤時,輸入法能接受的按鍵
#------------------------------------------------------
# 舒聲 [12357]
# 1: ;
# 2: \
# 3: _ (劃底線符號)
# 5: /
# 6: [N/A]
# 7: -
# 4: [
# 8: ]
# 輕聲及入聲 [48] = 0
# 0: .
#------------------------------------------------------
alphabet: abcdefghijklmnopqrstuvwxyzN;\_/-.[]
initials: abcdefghijklmnopqrstuvwxyz
delimiter: "'"
use_space: true
algebra:
#--------------------------------------------------------------------------
# 調整字典台語音標字母
# 定義【台語音標】與【音標編碼】的對映關係
#--------------------------------------------------------------------------
# 去除零聲母
- derive/Ø//
# --------------------------------------------------------------------------
# 舌尖前音(齒齦音): z[c], c[ch], j[j], s[s]
- derive/^ts/c/ # 可與台語拼音相容
- derive/^c(?!h)/z/ # ㄗ(拼音字母 c 之後不是接 h 的【c】換成【z】)
- derive/^ch/c/ # ㄘ
#------------------------------------------------------------------
# 變調
#------------------------------------------------------------------
- derive/6/7/
# 舒聲變調(1 2 3 5 7)
- derive/2/1/ # 第二調 → 第一調:高降取高
- derive/5/7/ # 第五調 → 第七調:低升取升
- derive/1/7/ # 第一調 → 第七調:高變中
- derive/7/3/ # 第七調 → 第三調:中變低
- derive/3/2/ # 第三調 → 第二調:低變高降
# - derive/5/3/ # 第五調 → 第三調
# 入聲變調(4 8)
# - derive/(?<![ktp])4/2/ # -ㆷ 第四調 → 第二調
# - derive/(?<![ktp])8/3/ # -ㆷ 第八調 → 第三調
- derive/(?<![ptkh])4/8/ # -ㆷ 第四調 → 第八調
- derive/(?<![ptkh])8/4/ # -ㆷ 第八調 → 第四調
#------------------------------------------------------------------
# 定義【地方腔】與【優勢腔】相容之處理規則
#------------------------------------------------------------------
# - derive/er(ng|k)/i$1/
- derive/er(n|t)/u$1/
- derive/ere/ue/
- derive/er/e/
- xform/er(ng|k)/i$1/
# - xform/er(n|t)/u$1/
# - xform/ere/ue/
# - xform/er/e/
- derive/ei/e/ # 漳州腔
- derive/ur/u/ # 廈門腔
- derive/ou/oo/
- derive/ee/e/ # 漳州/泉州腔
# --------------------------------------------------------------------------
# 【135拼音法】 鼻音韻母
# ann ==> nna ==> Na ==> Ba ==> ㄥㄚ ==> ㆩ
#------------------------------------------------------
- derive/([iu]?(ai|au|[iuaoe]))nn/N$1/
#--------------------------------------------------------------------------
# 入聲韻尾轉換
# -ng ==> -k = ㄎ
# -n ==> -t = ㄊ
# -m ==> -p = ㄆ
- derive/k[48]/k0/ # ㄎ
- derive/t[48]/t0/ # ㄊ
- derive/p[48]/p0/ # ㄆ
- derive/h[48]/h0/ # ㄆ
#--------------------------------------------------------------------------
# 設定讀取 ‘字典’ 漢字拼音的 ‘解析格式'
#--------------------------------------------------------------------------
- derive/^([A-Za-z]+)\d$/$1/
#--------------------------------------------------------------------------
# 台語音標之拼音字母輸入【簡化規則】
#--------------------------------------------------------------------------
# 可以只用【聲母】音標找漢字
- abbrev/^([pbmtnlkgzcjsh]g?s?h?h?).*/$1/
# 可只輸入【聲母】與【調號】
- abbrev/^([pbmtnlkgzcjsh]g?s?h?h?).+(\d)$/$1$2/
#--------------------------------------------------------------------------
# 定義聲調的「調號」與「按鍵」的對映規則
#--------------------------------------------------------------------------
- xlit|12357480|;\_/-[].|
translator:
dictionary: tl_ji_khoo_nga_siok_thong
prism: tlpa_huan_ciat_sip_ngoo_im
spelling_hints: 20
always_show_comments: true
initial_quality: 0.75
preedit_format:
#------------------------------------------------------
# 將【台語音標】改成【台羅拼音】
#------------------------------------------------------
- xform/z/ts/
- xform/c/tsh/
#------------------------------------------------------
# 處理鼻音化韻母
# a/e/i/O/u/uai/iau/ai/au/ia/io/iu/ua/ui
#------------------------------------------------------
- xform/N([iu]?(ai|au|[iuaoe]))/$1ⁿ/
#------------------------------------------------------
# 鼻化符號顯示成上標
#------------------------------------------------------
- xform/nn(h?)(\d|\>)/$1ⁿ$2/
#------------------------------------------------------
# 定義 ‘調號’ 的 '對映規則'
#------------------------------------------------------
- xlit|;\_/-[].|12357480|
comment_format:
# 【千萬別做】拼音字母編碼與注音符號對映的設定
# - xlit|pbPmtTnlkgKwzcsjZCShiIuUaAeEOQo@yYxX}{][RWMNB123570|ㄅㆠㄆㄇㄉㄊㄋㄌㄍㆣㄎㄫㄗㄘㄙㆡㄐㄑㄒㄏㄧㆪㄨㆫㄚㆩㄝㆥㄛㆧㄜㄢㄞㆮㄠㆯㆱㆰㆲㄤㆨㆭㆬㄣㄪˉˋ_ˇ+˙|
#======================================================
# 拼音系統設定 (TL:台羅拼音;TLPA:台語音標)
# TLPA+ : ts(TL) ==> c(TLPA) ==> z(TLPA+)
# TLPA+ : tsh(TL) ==> ch(TLPA) ==> c(TLPA+)
#======================================================
# 舌尖前音(齒齦音): z[c], c[ch], j[j], s[s]
- derive/^ts/c/ # 可用【台語音標】相容設𡩵
- derive/^c(?!h)/z/ # ㄗ(拼音字母 c 之後不是接 h 的【c】換成【z】)
- derive/^ch/c/ # ㄘ
- xform/6/7/ # 聲調 6 改為 7
#======================================================
# 令候選字視窗,可顯示兩組「注音】/拼音」
# 左邊:TLPA 拼音;右邊:十五音(河洛十八音)
#======================================================
# 連續輸入用【拼音分隔符號】換成空白
- xform/'/ /
#------------------------------------------------------
# 為候選字之拼音字母,建立轉換格式
#------------------------------------------------------
# - xform/^([Øa-z]+\d)$/〔$1〕【》$1】/
#------------------------------------------------------
# 無聲母
- xform/^(([aeiou]|oo).*)$/〔$1〕 【》Ø$1】/
- xform/^((m|ng)(\d))$/〔$1〕 【》Ø$1】/
# 有聲母
- xform/^(([pbmtnlkgzcjsh]g?s?h?h?).*)$/〔$1〕 【》$1】/
#------------------------------------------------------
# 處理鼻音化韻母
# a/e/i/O/u/uai/iau/ai/au/ia/io/iu/ua/ui
#------------------------------------------------------
- xform/([iu]?(ai|au|[iuaoe]))nn/N$1/
#------------------------------------------------------
# 消除 "零聲母"
#------------------------------------------------------
- xform/》Ø/英》/
#------------------------------------------------------
# 聲母
#------------------------------------------------------
# 舌齒音
# - xform/》c(?!h)/曾》/
# - xform/》ch/出》/
- xform/》tsh/出》/
- xform/》ts(?!h)/曾》/
- xform/》z/曾》/
- xform/》c/出》/
- xform/》j/入》/
- xform/》s/時》/
# 唇音(不送氣音/送氣音/濁音/鼻音)
- xform/》ph/頗》/
- xform/》p(?!h)/邊》/
- xform/》b/門》/
- xform/》m(?!\d)/毛》/
# 舌根音
- xform/》kh/氣》/
- xform/》k(?!h)/求》/
- xform/》g/語》/
- xform/》ng(?!\d)/雅》/
# 舌尖音
- xform/》th/他》/
- xform/》t(?!h)/地》/
- xform/》n(?!g)/耐》/
- xform/》l/柳》/
# 喉音
- xform/》h/喜》/
#======================================================
# 韻母
#======================================================
# 泉州腔《彙音妙悟》十五音韻書
- xform/》ir(ng|k)/生》/
- xform/》er(ng|k)/生》/
- xform/》ir(n|t)/恩》/
- xform/》er(n|t)/恩》/
# - xform/》ir(m|p)/箴》/
- xform/》ere(h?)/雞》/
- xform/》eru/鉤》/
- xform/》er(h?)/科》/
- xform/》or(h?)/刀》/
- xform/》ir/居》/
# ???
- xform/》ur(h?)/高》/
#------------------------------------------------------
# i
#------------------------------------------------------
# - xform/》iauⁿ(h?)/嘄》/
- xform/》Niau(h?)/嘄》/
- xform/》iau(h?)/嬌》/
- xform/》ia(ng|k)/姜》/
- xform/》ia(n|t)/堅》/
- xform/》ia(m|p)/兼》/
# - xform/》iaⁿ/驚》/
- xform/》Nia/驚》/
- xform/》ia(h?)/迦》/
# - xform/》ioⁿ/薑》/
- xform/》Nio/薑》/
- xform/》io(ng|k)/恭》/
- xform/》io(h?)/茄》/
# - xform/》iuⁿ/牛》/
- xform/》Niu/牛》/
- xform/》iu/丩》/
- xform/》i(ng|k)/經》/
- xform/》i(n|t)/巾》/
- xform/》i(m|p)/金》/
# - xform/》iⁿ(h?)/梔》/
- xform/》Ni(h?)/梔》/
- xform/》i(h?)/居》/
#------------------------------------------------------
# u
#------------------------------------------------------
# - xform/》uaiⁿ(h?)/閂》/
- xform/》Nuai(h?)/閂》/
- xform/》uai(h?)/乖》/
# - xform/》uaⁿ/官》/
- xform/》Nua/官》/
- xform/》ua(h?)/瓜》/
- xform/》ua(ng|k)/光》/
- xform/》ua(n|t)/觀》/
# - xform/》uiⁿ/禈》/
- xform/》Nui/禈》/
- xform/》ui(h?)/規》/
# - xform/》ueⁿ/糜》/
- xform/》Nue/糜》/
- xform/》ue(h?)/檜》/
- xform/》u(n|t)/君》/
- xform/》u(h?)/艍》/
#------------------------------------------------------
# a
#------------------------------------------------------
# - xform/》aiⁿ/閒》/
- xform/》Nai/閒》/
- xform/》ai/皆》/
# - xform/》auⁿ/爻》/
- xform/》Nau/爻》/
- xform/》au(h?)/交》/
- xform/》a(ng|k)/江》/
- xform/》a(n|t)/干》/
- xform/》a(m|p)/甘》/
# - xform/》aⁿ(h?)/監》/
- xform/》Na(h?)/監》/
- xform/》a(h?)/膠》/
#------------------------------------------------------
# e
#------------------------------------------------------
- xform/》ei/稽》/
- xform/》ee(h?)/嘉》/
# - xform/》eⁿ(h?)/更》/
- xform/》Ne(h?)/更》/
- xform/》e(h?)/伽》/
#------------------------------------------------------
# oo
#------------------------------------------------------
- xform/》o(ng|k)/公》/
- xform/》o(m|p)/箴》/
# - xform/》ooⁿ/姑》/
- xform/》Noo/姑》/
- xform/》oo(h?)/沽》/
#------------------------------------------------------
# o
# 停用 `江(oⁿ)` ,併入 `姑(oⁿ/ooⁿ)`
# - xform/》oⁿ(h?)/扛》/
#------------------------------------------------------
# - xform/》oⁿ(h?)/姑》/
- xform/》No(h?)/姑》/
- xform/》o(h?)/高》/
#------------------------------------------------------
# m, ng
#------------------------------------------------------
- xform/》m/姆》/
- xform/》ng/鋼》/
#------------------------------------------------------
# 轉換聲調
#------------------------------------------------------
# 轉換【辭彙】的聲調
- xform/》0/輕声/ # 上平
- xform/》1/上平/
- xform/》2/上上/
- xform/》3/上去/
- xform/》4/上入/
- xform/》5/下平/
- xform/》7/下去/
- xform/》8/下入/
#======================================================
# 調整候選字視窗左半邊
#======================================================
# 左半邊 `零聲母` 不顥示處理 。
# 1. 零聲母 + 元音韻母 + 調號,如:Øu5, Øi1, ...
# 2. 零聲母 + 複合韻母 + 調號,如:Øiau1, Øiong2, Øuan2, Øuai1, ....
# 3. 零聲母 + 鼻音化韻母 + 調號,如:Øann1, Øi1, ...
#------------------------------------------------------
- xform/(〔)Ø/$1/
#------------------------------------------------------
# 與 TLPA+【台灣拼音進階版】相容
#------------------------------------------------------
- xform/z/ts/
- xform/c/tsh/
#------------------------------------------------------
# 處理鼻音化韻母
# a/e/i/O/u/uai/iau/ai/au/ia/io/iu/ua/ui
#------------------------------------------------------
- xform/N([iu]?(ai|au|[iuaoe])/$1ⁿ/
#------------------------------------------------------
# 顯示調號:標調務必放在 ’零聲母處理‘ 及 ’鼻音韻母顯示‘ 之後
- xform/0(?=〕)/⁰/
- xform/1(?=〕)/¹/
- xform/2(?=〕)/²/
- xform/3(?=〕)/³/
- xform/4(?=〕)/⁴/
- xform/5(?=〕)/⁵/
- xform/6(?=〕)/⁶/
- xform/7(?=〕)/⁷/
- xform/8(?=〕)/⁸/
#------------------------------------------------------
# 微調輸出
#------------------------------------------------------
- xform/Ø//
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
suffix: "'"
tips: 〔漢語拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
comment_format:
- xform/([a-z]+\d)/$1;$1/
- xform/;l/\[柳;/
- xform/;p(?!h)/\[邊;/
- xform/;k(?!h)/\[求;/
- xform/;kh/\[氣;/
- xform/;t(?!h)/\[地;/
- xform/;ph/\[頗;/
- xform/;th/\[他;/
- xform/;c(?!h)/\[曾;/
- xform/;j/\[入;/
- xform/;s/\[時;/
- xform/;q/\[英;/
- xform/;b/\[門;/
- xform/;g/\[語;/
- xform/;ch/\[出;/
- xform/;h/\[喜;/
- xform/;u(n|t)(\d)/君;$2/
- xform/;ia(n|t)(\d)/堅;$2/
- xform/;i(m|p)/金;/
- xform/;ui(h?)(\d)/規;$2/
- xform/;ee(h?)/嘉;/
- xform/;a(n|t)(\d)/干;$2/
- xform/;o(ng|k)/公;/
- xform/;uai(h?)/乖;$2/
- xform/;e(ng|k)/經;/
- xform/;ua(n|t)(\d)/觀;$2/
- xform/;ou(h?)(\d)/沽;$2/
- xform/;iau(h?)(\d)/嬌;$2/
- xform/;ei/稽;/
- xform/;io(ng|k)/恭;/
- xform/;o(h?)(\d)/高;$2/
- xform/;ai(\d)/皆;$1/
- xform/;i(n|t)(\d)/巾;$2/
- xform/;ia(ng|k)/姜;/
- xform/;a(m|p)/甘;/
- xform/;ua(h?)(\d)/瓜;$2/
- xform/;a(ng|k)/江;/
- xform/;ia(m|p)/兼;/
- xform/;au(h?)(\d)/交;$2/
- xform/;ia(h?)(\d)/迦;$2/
- xform/;ue(h?)(\d)/檜;$2/
- xform/;ann(h?)/監;/
- xform/;u(h?)(\d)/艍;$2/
- xform/;a(h?)(\d)/膠;$2/
- xform/;i(h?)(\d)/居;$2/
- xform/;iu(\d)/丩;$1/
- xform/;enn(h?)/更;/
- xform/;inn(h?)/梔;/
- xform/;iann/驚;/
- xform/;uann/官;/
- xform/;e(h?)(\d)/伽;$2/
- xform/;ainn(h?)/閒;/
- xform/;ounn/姑;/
- xform/;uenn/糜;/
- xform/;iaunn(h?)/嘄;/
- xform/;o(m|p)/箴;/
- xform/;aunn/爻;/
- xform/;onn(h?)/扛;/
- xform/;iunn/牛;/
- xform/;1/上平\]/
- xform/;2/上上\]/
- xform/;3/上去\]/
- xform/;4/上入\]/
- xform/;5/下平\]/
- xform/;7/下去\]/
- xform/;8/下入\]/
# 以下爲羅馬字轉寫
# - xform/q//
# - xform/c/ts/
# 「更」韻
- xform/(^u)enn/$1eenn/
# 「門」「柳」「語」鼻化韻
- xform/b([aeiou]+)nn/m$1/
- xform/l([aeiou]+)nn/n$1/
- xform/g([aeiou]+)nn/ng$1/
# 標調
- xform/([aeiou])(m?n*h?g?p?t?k?)([1234578])/$1$3$2/
- xform/([aeo])([iueo])([1234578])/$1$3$2/
- "xform a1 a"
- "xform e1 e"
- "xform i1 i"
- "xform u1 u"
- "xform o1 o"
- "xform a2 á"
- "xform e2 é"
- "xform i2 í"
- "xform u2 ú"
- "xform o2 ó"
- "xform a3 à"
- "xform e3 è"
- "xform i3 ì"
- "xform u3 ù"
- "xform o3 ò"
- "xform a4 a"
- "xform e4 e"
- "xform i4 i"
- "xform u4 u"
- "xform o4 o"
- "xform a5 â"
- "xform e5 ê"
- "xform i5 î"
- "xform u5 û"
- "xform o5 ô"
- "xform a7 ā"
- "xform e7 ē"
- "xform i7 ī"
- "xform u7 ū"
- "xform o7 ō"
- "xform a8 a̍"
- "xform e8 e̍"
- "xform i8 i̍"
- "xform u8 u̍"
- "xform o8 o̍"
# 鼻化符號顯示成上標
- xform/nn(h?)(\d|\>)/ⁿ$1$2/
key_binder:
import_preset: default
bindings:
#---------------------------------------------------
# 使用【_】鍵,輸入【調號】:3 (低音調)
- { when: composing, accept: underscore, send: underscore }
- { when: has_menu, accept: underscore, send: underscore }
#---------------------------------------------------
# 使用【-】鍵,輸入【調號】:7 (中音調)
- { when: composing, accept: minus, send: minus }
- { when: has_menu, accept: minus, send: minus }
#---------------------------------------------------
# 使用 【.】鍵,輸入【調號】:0(輕聲及入聲調)
- { when: composing, accept: period, send: period }
- { when: has_menu, accept: period, send: period }
#---------------------------------------------------
# 翻頁
#---------------------------------------------------
# - { accept: comma, send: Page_Up, when: has_menu } # 選下一個字
# - { accept: period, send: Page_Down, when: has_menu } # 選上一個字
- { accept: "Control+p", send: Page_Up, when: composing }
- { accept: "Control+n", send: Page_Down, when: composing }
#---------------------------------------------------
# Vim Mode
#---------------------------------------------------
- { when: has_menu, accept: "Control+h", send: Page_Up }
- { when: has_menu, accept: "Control+l", send: Page_Down }
- { when: has_menu, accept: "Control+k", send: Up }
- { when: has_menu, accept: "Control+j", send: Down }
#---------------------------------------------------
editor:
bindings:
space: commit # 選擇「備選漢字」
Return: commit_composition # 上屏原始的輸入:lau5
Control+Return: commit_script_text # 上屏顯示的輸入:lau⁵ / lâu
Shift+Return: commit_comment # 上屏候選項備注:ㄉㄚ˪〖柳交五〗
Control+Shift+Return: commit_raw_input # 將 Control+Return 綁定到 Lua 函數
menu:
alternative_select_labels: [ ①, ②, ③, ④, ⑤ ] # 修改候選標籤
page_size: 5 #選單每䈎顯示個數
style:
horizontal: false
recognizer:
import_preset: default
patterns:
email: ^[a-z][-_.0-9a-z]*@.*$
uppercase: ^[A-Z][-_+.'0-9A-Za-z]*$
url: ^(www[.]|https?:|ftp:|mailto:).*$
punct: '`[^\s]$'
reverse_lookup: "`[a-z]*'?$"
punctuator:
import_preset: piau_tian_hu_ho