sr_rules 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. 
  2. // "hbs" is the ISO 639-3 code for Serbian/Croatian/Bosnian macrolanguage
  3. // This file is UTF-8 encoded
  4. //The next line gives a voice which is used to find a phoneme table to use to compile this dictionary
  5. //voice=hr
  6. // Conditional rules:
  7. // ?1 Croatian
  8. // ?2 Serbian
  9. // ?3 Bosnian (Bosna and Hercegovina)
  10. // ?4 Serbian & Bosnian
  11. .group a
  12. a a
  13. X) a ($w_alt1 a:
  14. a (j A
  15. a (r A // don't reduce to [&]
  16. _hrv) a (t a:
  17. .group b
  18. b b
  19. .group c
  20. c ts
  21. .group č
  22. č tS
  23. .group ć
  24. ć tS;
  25. .group d
  26. d d
  27. dz dz
  28. _) dz (_ dz@
  29. dž dZ
  30. _) dž (_ dZ@
  31. .group đ
  32. đ dZ;
  33. .group e
  34. e E
  35. X) e ($w_alt1 E:
  36. j) e e
  37. e (j e
  38. _) exe %ekse // filetype
  39. ?2 _) exe %eikse // filetype
  40. .group f
  41. f f
  42. .group g
  43. g g
  44. .group h
  45. h h
  46. _) h x
  47. .group i
  48. i i
  49. X) i ($w_alt1 i:
  50. ._) ini %ini // filetype
  51. .group j
  52. j j
  53. XA) j (_ j_ // short pause after final [j] in one-syllable words
  54. .group k
  55. k k
  56. .group l
  57. l l
  58. K) l (K l-
  59. _) lj (_ l^@
  60. lj (+ l^
  61. v) lj lj
  62. .group m
  63. m m
  64. .group n
  65. n n
  66. n (g N
  67. n (k N
  68. nj n^
  69. _) nj (_ n^@
  70. .group o
  71. o o
  72. X) o ($w_alt1 o:
  73. ou oU
  74. .group p
  75. p p
  76. .group q
  77. q k
  78. qu kv
  79. ?2 qu ku
  80. .group r
  81. r R
  82. A) r (A R
  83. K) r (A r* // this phoneme expands to [@-*]
  84. rr R
  85. r (_ R
  86. K) r (K R2
  87. .group s
  88. s s
  89. .group š
  90. š S
  91. .group t
  92. t t
  93. .group u
  94. u u
  95. X) u ($w_alt1 u:
  96. .group v
  97. v v
  98. .group w
  99. w v
  100. .group x
  101. x ks
  102. .group y
  103. y j
  104. K) y (K i
  105. .group z
  106. z z
  107. .group ž
  108. ž Z
  109. .group
  110. á a:
  111. é e:
  112. í i:
  113. ó o:
  114. ú u:
  115. ä _^_DE // use German voice
  116. ö _^_DE
  117. ü _^_DE
  118. ß _^_DE
  119. $ d'ol&R
  120. __) - (_D minus
  121. A_) - (_D _
  122. C_) - (_D _
  123. .group 0xce // Greek letters
  124. α 'alf&
  125. ά 'alf&||t'onos
  126. β b'et&
  127. γ g'am&
  128. δ d'elt&
  129. ε 'epsIlon
  130. έ 'epsIlon||t'onos
  131. ζ z'et&
  132. η 'et&
  133. ή 'et&||t'onos
  134. θ tx'et&
  135. ι j'ot&
  136. ί j'ot&||t'onos
  137. κ k'ap&
  138. λ l'amd&
  139. μ m'i
  140. ν n'i
  141. ξ ks'i
  142. ο 'omIkr*on_
  143. .group 0xcf // Greek letters
  144. π p'i
  145. ρ R'o
  146. σ s'igm&
  147. ς gr-tSko_||z'avr-Sno_||s'igm&
  148. τ t'au
  149. υ gr-tSki_||'ipsIlon
  150. ύ gr-tSki||'ipsIlon||t'onos
  151. φ f'i
  152. χ x'i
  153. ψ ps'i
  154. ω 'omeg&
  155. ώ 'omeg&||t'onos
  156. ό 'omIkr*on||t'onos