-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzhung_transcript.schema.yaml
105 lines (97 loc) · 2.25 KB
/
zhung_transcript.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
# Rime schema
# encoding: utf-8
schema:
schema_id: zhung_transcript
name: 中州注音法(轉寫)
version: "0.4"
author:
- 佛振 <[email protected]>
description: |
老派鄭州話
以羅馬字轉寫注音符號
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- r10n_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba-:;<,/\'
initials: 'zyxwvutsrqponmlkjihgfedcba'
delimiter: " '"
algebra:
- derive/^yi?/i/
- derive/^wu?/u/
- derive/^wu/vu/
- derive/^([vw])u([in])/$1e$2/
- derive/^([jqx])([^i])/$1i$2/
- derive/ui/uei/
- derive/([iu])n/$1en/
- derive/^([zcsr]h?)y/$1/
- derive/^rh/r/
#- derive/iu/y/
#- derive/el/w/
#- derive/([aou])l/$1w/
- derive/^w(a|au|ang?|en)/v$1/
- abbrev/^([bpmfvdtnlgkhjqxyw]|[zcsr]h?).+$/$1/
- derive/^([A-Za-z]+)\d$/$1/
- 'xlit|1234|-</\|'
- 'derive/^(.*)-$/$1:/'
- 'derive/^(.*)-$/$1;/'
- 'derive/^(.*)<$/$1,/'
translator:
dictionary: zhung
prism: zhung_transcript
preedit_format:
- "xform/(^|[ '])yi?/$1i/"
- "xform/(^|[ '])wu?/$1u/"
- xform/([zcsr]h?)y/$1/
- xform/([zcsr])h/\U$1/
- xform/iu/Y/
- xform/([jqx])u/$1Y/
- xform/el/W/
- xform/([aou])l/$1W/
- xform/eo/O/
- xform/ai/I/
- xform/ei/E/
- xform/ui/uE/
- xform/au/A/
- xform/ou/U/
- xform/ang/K/
- xform/eng/G/
- xform/([iuY])ng/$1G/
- xform/an/M/
- xform/en/N/
- xform/([iuY])n/$1N/
- 'xlit|:;,|--<|'
- 'xlit|bpmfvdtnlgkhjqxZCSRzcsriuYWaoOeIEAUMNKG-</\|ㄅㄆㄇㄈㄪㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄖㄧㄨㄩㄦㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥˉˆˊˋ|'
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default