-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnguphin-yaehwei.schema.yaml
161 lines (156 loc) · 3.41 KB
/
nguphin-yaehwei.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
# Rime schema
# encoding: utf-8
__include: nguphing.schema:/
schema:
schema_id: nguphin-yaehwei
name: 吳語拼音·吳協式
version: "20240224"
author:
- 山前 <i@estela.moe>
description: |
* 標準吳語
* 使用吳語協會拼法
speller:
algebra:
- erase/^xx$/
- erase/^0$/
- "xform/'//"
- xlit|123|rxq|
# c 系後 i 簡寫
- derive/^(c|ch|j|sh|zh)i([aeou])/$1$2/
# in心 星ing 弗分
- derive/ing([rxq])$/in$1/
- derive/in([rxq])$/ing$1/
- derive/ik$/ih/
- derive/ih$/ik/
- derive/eng/en/
# ih立 ieh列 弗分
- derive/ieh$/ih/
# ie淹 iae煙 弗分
- derive/([iy])ae([rxq])$/$1e$2/
- derive/([iy])e([rxq])$/$1ae$2/
# ok樂 uk六 弗分
- derive/ok$/uk/
- derive/uk$/ok/
# ngi-ni 弗分
- derive/^ngi/ni/
# dz-z j-zh 弗分
- derive/^dz/z/
- derive/^j/zh/
# ci-cy 弗分
- derive/^(c|ch|j|sh|zh)i([rxq])$/$1y$2/
- derive/^(c|ch|j|sh|zh)y([rxq])$/$1i$2/
# l m n 清音簡化
- derive/^([lmn])h/$1/
# ghi ghu 兼容
- derive/yi?/ghi/
- derive/wu?/ghu/
# 弗打聲調
- derive/([rxq])$//
# 吳語協會式
- xform/ts/tsh/
- xform/tz/ts/
# oe ae e 入聲寫法
- xform/eh/eeh/
- xform/ieeh/ieh/
- xform/oh/oeh/
- xform/ah/aeh/
# ng/k 系寫法
- xform/uk/oh/
- xform/ung/on/
- xform/ok/aoh/
- xform/ong/aon/
- xform/ek/eh/
- xform/eng/en/
- xform/ik/ieoh/
- xform/ing/ieon/
- xform/ak/ah/
- xform/ang/an/
- xform/(y|i)u(n|h)/$1ui$2/
# 簡寫
- abbrev/^([a-z]).+$/$1/
- abbrev/^([ptkgszc]h).+$/$1/
- abbrev/^(ts|tsh|dz|ng).+$/$1/
translator:
prism: nguphin-yaehwei
preedit_format:
# 聲調
- xlit|rxq|123|
- xform/([aeiou])(n|l)([123])/$1$3$2/
- xform/([aeo])([eiuo])([123])/$1$3$2/ #多一隻 aon eon
- xform/a1/ā/
- xform/a2/à/
- xform/a3/á/
- xform/e1/ē/
- xform/e2/è/
- xform/e3/é/
- xform/o1/ō/
- xform/o2/ò/
- xform/o3/ó/
- xform/i1/ī/
- xform/i2/ì/
- xform/i3/í/
- xform/u1/ū/
- xform/u2/ù/
- xform/u3/ú/
- xform/y1/ȳ/
- xform/y2/ỳ/
- xform/y3/ý/
- xform/ng1/n̄g/
- xform/ng2/ǹg/
- xform/ng3/ńg/
- xform/m1/m̄/
- xform/m2/m̀/
- xform/m3/ḿ/
- "xform/[;']/-/"
comment_format: &cf # 吳語協會式
- xform/ts/tsh/
- xform/tz/ts/
# oe ae 入聲寫法
- xform/eh/eeh/
- xform/ieeh/ieh/
- xform/oh/oeh/
- xform/ah/aeh/
# ng/k 系寫法
- xform/uk/oh/
- xform/ung/on/
- xform/ok/aoh/
- xform/ong/aon/
- xform/ek/eh/
- xform/eng/en/
- xform/ik/ieoh/
- xform/ing/ieon/
- xform/ak/ah/
- xform/ang/an/
- xform/(y|i)u(n|h)/$1ui$2/
# 聲調
- xlit|rxq|123|
- xform/([aeiou])(n|l)([123])/$1$3$2/
- xform/([aeo])([eiuo])([123])/$1$3$2/ #多一隻 aon eon
- xform/a1/ā/
- xform/a2/à/
- xform/a3/á/
- xform/e1/ē/
- xform/e2/è/
- xform/e3/é/
- xform/o1/ō/
- xform/o2/ò/
- xform/o3/ó/
- xform/i1/ī/
- xform/i2/ì/
- xform/i3/í/
- xform/u1/ū/
- xform/u2/ù/
- xform/u3/ú/
- xform/y1/ȳ/
- xform/y2/ỳ/
- xform/y3/ý/
- xform/ng1/n̄g/
- xform/ng2/ǹg/
- xform/ng3/ńg/
- xform/m1/m̄/
- xform/m2/m̀/
- xform/m3/ḿ/
- "xform/[;']/-/"
nguphing_reverse_lookup:
comment_format: *cf