PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/native/external/espeak/dictsource/zh_rules

http://eyes-free.googlecode.com/
#! | 290 lines | 249 code | 41 blank | 0 comment | 0 complexity | f7a56a160f5a85f038168b9ada676dbf MD5 | raw file
  1// This file is UTF8 encoded
  2
  3.replace
  4//replace tone mark with tone number
  5? 1
  6? 2
  7? 3
  8? 4
  9? a1
 10á a2
 11? a3
 12ŕ a4
 13? o1
 14ó o2
 15? o3
 16ň o4
 17ę ea
 18? e1
 19é e2
 20? e3
 21č e4
 22? i1
 23í i2
 24? i3
 25ě i4
 26? u1
 27ú u2
 28? u3
 29ů u4
 30? ü1
 31? ü2
 32? ü3
 33? ü4
 34//some pinyin vaiants 
 35? ng
 36? a
 37? g 
 38? zh 
 39? ch 
 40? sh 
 41
 42.L01  j q x y
 43
 44// Note:  ngK  matches "ng" if not followed by a vowel
 45// (D  will match on a digit and also if no digit is present. (special for tone
 46language).
 47
 48// ? ?  erhua
 49
 50.group a
 51       a        A
 52       ai	ai
 53       a1i	ai55
 54       a2i	ai35
 55       a3i	ai214
 56       a4i	ai51
 57       ao	Au
 58       a1o	Au55
 59       a2o	Au35
 60       a3o	Au214
 61       a4o	Au51
 62
 63       a (DnK	a
 64   ch) a (DngK	A
 65   ch) a (4ngK	a
 66   ch) a (ng4K	a
 67    k) a (DngK	A
 68    _) a (DngK	A
 69
 70    y) a	iA
 71    y) ao	Au
 72    y) a1o	Au55
 73    y) a2o	Au35
 74    y) a3o	Au214
 75    y) a4o	Au51
 76    y) a (DnK	iE
 77    y) a (DngK	iA
 78
 79.group b
 80       b        p
 81    @) b (K	_^_EN
 82
 83.group c
 84       c        tsh
 85       ch (+    ts.h
 86    @) c (K	_^_EN
 87
 88.group d
 89       d        t
 90    @) d (K	_^_EN
 91
 92.group e
 93       e	o-
 94    d) e	@
 95    t) e	@
 96    n) e	@
 97    l) e	@
 98    y) e	iE
 99       ea	E
100       ei	ei
101       e1i	ei55
102       e2i	ei35
103       e3i	ei214
104       e4i	ei51
105
106       e (Dn	@ //en eng
107
108       er (K	@r
109       e1r (K	@r55
110       e2r (K	@r35
111       e3r (K	@r214
112       e4r (K	@r51
113
114.group f
115       f        f
116    @) f (K	_^_EN
117
118.group g
119       g        k
120    @) g (K	_^_EN
121
122.group h
123       h        x
124    @) h (K	_^_EN
125
126.group i
127       i        i //i in ing
128    z) i        i[
129    c) i        i[
130    s) i        i[
131    h) i        i. //after zh ch sh
132    r) i        i.
133       ia	iA
134       ia (DnK	iE
135       ia (DngK	iA
136       iao	jAu
137       ia1o	jAu55
138       ia2o	jAu35
139       ia3o	jAu214
140       ia4o	jAu51
141       ie	iE
142       io (DngK	y
143    q) io (DngK	u 
144       iu 	iou 
145
146.group j
147       j        tS;
148    @) j (K	_^_EN
149
150.group k
151       k        kh
152    @) k (K	_^_EN
153
154.group l
155       l        l
156    @) l (K	_^_EN
157    @) l (v     l
158
159.group m
160       m        m
161    @) m (K	_^_EN
162
163.group n
164       n        n
165       ng (K	N     // consider (ng+vowel) as (n g+vowel) ??
166    _) ng (K	N-    // syllablic [N]
167
168.group o
169       o        o
170       ou	ou
171       o1u	ou55
172       o2u	ou35
173       o3u	ou214
174       o4u	ou51
175    y) o	io 
176    y) ou	iou
177    y) o1u	iou55
178    y) o2u	iou35
179    y) o3u	iou214
180    y) o4u	iou51
181
182.group p
183       p        ph
184    @) p (K	_^_EN
185
186.group q
187       q        tS;h
188    @) q (K	_^_EN
189
190.group r
191       r        z.
192       r (K     @r11
193
194.group s
195       s        s
196       sh (+    s.
197    @) s (K	_^_EN
198
199.group t
200       t        th
201    @) t (K	_^_EN
202
203.group u
204       u        u
205       ua	wA
206       ua (DnK	ua
207    g) ua (DnK	wa
208    k) ua (DnK	wa
209       ua (DngK wA
210       uai	uai
211       ua1i	uai55
212       ua2i	uai35
213       ua3i	uai214
214       ua4i	uai51
215       ue	yE //üe
216       ui	uei
217   sh) ui	wei
218       u (DnK	u@
219    k) u (DnK   wu@
220   _h) u (DnK	wu@
221    t) u (DnK   wu@
222       uo	uo
223
224   sh) ui	rei
225   sh) u (DnK	wo-
226   sh) uo	wo
227
228  L01) u	y   /// j,q,x,y + u
229  L01) u (DnK	y@
230    q) u (DnK+  yi
231  L01) ua (DnK	y&
232  L01) ue	yE
233
234
235.group ü
236       ü	y
237       üe	yE
238
239.group v //variant of ü
240       v	v // foreign words
241    l) v        y //ü
242    n) v        y //ü
243    l) ve	yE //üe
244    n) ve	yE //üe
245
246.group w
247    @) w (K	_^_EN
248       wa	wA  //wa wan wang
249       wai	wai
250       wa1i	wai55
251       wa2i	wai35
252       wa3i	wai214
253       wa4i	wai51
254       wei	wei
255       we1i	wei55
256       we2i	wei35
257       we3i	wei214
258       we4i	wei51
259       we	wu@ //wen weng
260       wo	wo
261       wu	wu
262
263.group x
264       x        S;
265    @) x (K	_^_EN
266
267.group y
268       y	j //before a o e i
269       y (u	//NULL before u
270       y (uK	;
271       y (uDn   ;
272       yo (DngK	yu
273       y (K     i    // foreign words
274    @) y (K	_^_EN
275
276.group z
277       z        ts
278       zh (+    ts.
279    @) z (K	_^_EN
280
281//tone number
282.group
283       1	55
284       2	35
285       3	214
286       4	51
287       5	11
288
289	|	_|
290