zh_rules 4.0 KB

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