es_rules 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. // translation rules for Spanish
  2. // This file is UTF-8 encoded
  3. // Conditional rules
  4. // ?1 Castilian
  5. // ?2 Latin America
  6. // ?3 mbrola VZ1
  7. .L01 l r y
  8. .L02 b d g n m // change [s] to [z] before these
  9. .L03 f h j r s y z // allow [B] [D] [Q] before these consonants
  10. .L04 b v f p // labials, nasals are [m]
  11. .L05 g k // velars, nasals are [N]
  12. .L06 j w l r b d g n m p t k c
  13. .group a
  14. a a
  15. ai aI
  16. ay (K aI
  17. ay (_ 'aI
  18. au aU
  19. au (_ 'aU
  20. .group b
  21. b b
  22. _) b ($unpr b // phoneme definition may change it to [B]
  23. _) b (L01A b // Only bl, br are allowed at start of word
  24. _) b (A b
  25. b (A B
  26. b (cY B
  27. b (L03 B
  28. m) b b
  29. n) b b
  30. b (iA b
  31. b (uA b
  32. .group c
  33. c k
  34. _) c (L01A k // allow: cl cr at start of word
  35. _) ch tS // allow _ch
  36. c (Y T // ce, ci
  37. ch tS
  38. A) ck k
  39. .group ç
  40. ç s
  41. A) ç (A s
  42. _) ç s
  43. .group d
  44. d d
  45. _) d ($unpr d // phoneme definition may change it to [D]
  46. _) d (rA d
  47. _) d (A d
  48. d (A D
  49. d (_ d
  50. d (_A D
  51. d (cY D
  52. d (L03 D
  53. l) d d
  54. d (v D
  55. m) d d
  56. n) d d
  57. r) d d
  58. .group e
  59. e e
  60. e (nC E
  61. e (Ch e
  62. ei eI
  63. ey (K eI
  64. ey (_ 'eI
  65. eu eU
  66. eu (_ 'eU
  67. .group f
  68. f f
  69. _) f (L01A f // allow fl fr at start of word
  70. .group g
  71. g g
  72. _) g ($unpr g // phoneme definition may change it to [Q]
  73. _) g (L01A g
  74. _) gh (A g // allow _gh in foreign words
  75. _) gn (A n
  76. _) g (A g
  77. g (A Q
  78. g (_A Q
  79. g (_ g
  80. g (cY Q
  81. g (L03 Q
  82. m) g g
  83. n) g g
  84. g (Y+ x // ge gi
  85. n) g (_ // ing
  86. .group h
  87. h // silent
  88. _) hi (A j
  89. .group i
  90. i i
  91. i (A j
  92. C) i (A j
  93. gu) i (A j
  94. ?!3 l) i (A %i
  95. ?!3 r) i (A %i
  96. ?!3 Al) i (A j
  97. ?!3 Ar) i (A j
  98. .group j
  99. j x
  100. .group k
  101. k k
  102. _) k (L01A k // allow kl kr at start of word
  103. .group l
  104. l l
  105. ll (_ l^
  106. _) ll (A l^ // allowe _ll
  107. ?2 _) ll (A J^
  108. ?2 ll j:
  109. ?2 n_) ll (A dZ
  110. ll l^
  111. .group m
  112. m m
  113. // @) m (_ =m
  114. _) mn (em n
  115. _) mb (A mb
  116. @@) mente (_S5t m'e/nte
  117. .group n
  118. n n
  119. n (L04 m
  120. n (_L04 m
  121. n (L05 N
  122. n (_L05 N
  123. n (j N
  124. ny (A n^ // catalan words
  125. _) nh (A n
  126. .group o
  127. o o
  128. o (CK o
  129. o (r o
  130. o (Ch o
  131. // Ar) o o
  132. oi oI
  133. oy (K oI
  134. oy (_ 'oI
  135. ou ow
  136. .group p
  137. p p
  138. _) p (L01A p // allow pl pr at start of word
  139. p (t p:
  140. _) ph (A f
  141. ph (@ f
  142. ph (K f
  143. _) ps (i s
  144. _) ps (eudo s
  145. _) pt (ero t
  146. _) pt (ol t
  147. .group q
  148. q k
  149. qu (Y k // que, qui
  150. _) qw (A kw // qwerty
  151. .group rr
  152. rr rr
  153. .group r
  154. r r
  155. r (_ r
  156. r (t r
  157. A) r (A r
  158. C) r (A r
  159. _) r (A rr
  160. l) r (A R2
  161. m) r (A R2
  162. n) r (A R2
  163. s) r (A R2
  164. .group s
  165. s s
  166. &) s (_S1 s
  167. _) s (K@ s
  168. ss s:
  169. _) sh (A S
  170. _) sh (L01A S
  171. sh (K S
  172. ?!1 sc (Y s // sce sci for non castilian accent
  173. .group t
  174. t t
  175. _) t (L01A t // all tr at start of word
  176. _) th (@ t
  177. th (K t
  178. _) tx (A tS
  179. tx tS
  180. .group u
  181. u u
  182. u (u u
  183. u (A w
  184. !?3 l) u (A %u
  185. !?3 r) u (A %u
  186. g) u (e
  187. g) u (i
  188. g) u (é
  189. g) u (í
  190. .group v
  191. v b
  192. _) v ($unpr b // phoneme definition may change it to [B]
  193. _) v (L01A b // Only bl, br are allowed at start of word
  194. _) v (A b
  195. v (A B
  196. v (cY B
  197. v (L03 B
  198. m) v b
  199. n) v b
  200. v (iA b
  201. v (uA b
  202. .group w
  203. w w
  204. _) wh (A w
  205. .group x
  206. x ks
  207. _) x ($unpr s // ?
  208. ?!1 xc (Y ks // xce xci for non castilian accent
  209. me) x (ic x // mexicano, mexicana, etc.
  210. .group y
  211. y i
  212. _) y ($unpr J
  213. _m) y (A j
  214. _l) y (A j
  215. y (A j:
  216. _) y (A J^
  217. u) y (K j:
  218. n_) y (A dZ
  219. y (_ i
  220. .group z
  221. z T
  222. zz ts
  223. .group
  224. á ''a
  225. é ''e
  226. í ''i
  227. ó ''o
  228. ú ''u
  229. ü u
  230. ñ n^
  231. $ d'olar
  232. _) - (_D m'Enos
  233. A_) - (_D _
  234. C_) - (_D _
  235. , (D koma