eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ar_rules 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. // * Arabic Language ar ar_rules
  2. // * This file writen by Taha Zerrouki 2012
  3. // ***************************************************************************
  4. // * This program is free software; you can redistribute it and/or modify *
  5. // * it under the terms of the GNU General Public License as published by *
  6. // * the Free Software Foundation; either version 3 of the License, or *
  7. // * (at your option) any later version. *
  8. // * *
  9. // * This program is distributed in the hope that it will be useful, *
  10. // * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  11. // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  12. // * GNU General Public License for more details. *
  13. // * *
  14. // * You should have received a copy of the GNU General Public License *
  15. // * along with this program; if not, see: *
  16. // * <http://www.gnu.org/licenses/>. *
  17. // ***************************************************************************/
  18. //
  19. // This file is UTF-8 encoded
  20. // all words must be LOWER CASE (although the initial letter will be automatically
  21. // converted if it's a 7bit ascii character)
  22. // Text to phoneme rules for Arabic
  23. //
  24. // replace Arabic eastern character numbers with Arabic western character numbers
  25. .replace
  26. ٠ 0
  27. ۰ 0
  28. ۱ 1
  29. ١ 1
  30. ٢ 2
  31. ۲ 2
  32. ٣ 3
  33. ۳ 3
  34. ٤ 4
  35. ۴ 4
  36. ٥ 5
  37. ۵ 5
  38. ٦ 6
  39. ۶ 6
  40. ٧ 7
  41. ۷ 7
  42. ٨ 8
  43. ۸ 8
  44. ٩ 9
  45. ۹ 9
  46. //all vowels
  47. .L01 ا ي و َ ُ ِ ً ٌ ٍ ّ ى
  48. //short vowels (commonly unwritten )
  49. .L02
  50. //list of consonants
  51. .L03 ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه
  52. // all Arabic characters without ا آ
  53. .L04 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ت ن م ك َ ُ ِ ّ ـ « » ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  54. // all Arabic characters without short vowels and A
  55. .L05 ض ص ث ق ف غ ع ه خ ح ج ش س ي ب ل ت ن م ك ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  56. // group of digits
  57. .L06 0 1 2 3 4 5 6 7 8 9
  58. // all Arabic characters
  59. .L09 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ا ت ن م ك َ ُ ِ ّ آ ـ « » ظ ط ز ر ذ د ئ و ة ي ژ ؤ إ أ ء ؟ پ گ
  60. // Arabic Sun characters
  61. .L10 ض ص ث ش س ل ت ن ظ ط ز ر ذ د
  62. // Arabic Moon characters
  63. .L11 ق ف غ ع ه خ ح ج ي ب م ك و إ أ ء
  64. .group آ
  65. آ ?aa
  66. .group ا
  67. L03) ا aa // if a consonant is before it, make the fatha long
  68. L03) ا (L03 aa
  69. ا (َ ?
  70. ا (ُ ?
  71. ا (ِ ?
  72. _) ا a // make the previous fatha long
  73. _) ال (L10P2 ?a //الشمس
  74. _) ال (L11P2 ?al //القمر
  75. _) ال (تP2 ?at
  76. _) ال (ثP2 ?aT
  77. _) ال (دP2 ?ad
  78. _) ال (ذP2 ?aD
  79. _) ال (رP2 ?ar
  80. _) ال (زP2 ?az
  81. _) ال (سP2 ?as
  82. _) ال (شّP2 ?a
  83. _) ال (شP2 ?aS
  84. _) ال (صP2 ?as[
  85. _) ال (ضP2 ?adH
  86. _) ال (ظP2 ?aZ
  87. _) ال (لP2 ?al
  88. _) ال (نP2 ?an
  89. _ب) ا (ل i
  90. .group ب
  91. ب b
  92. بّ Bb
  93. _) بال (L10P3 bi //بالشمس
  94. _) بال (L11P3 bil //بالقمر
  95. _) بال (تP3 bit
  96. _) بال (ثP3 biT
  97. _) بال (دP3 bid
  98. _) بال (ذP3 biD
  99. _) بال (رP3 bir
  100. _) بال (زP3 biz
  101. _) بال (سP3 bis
  102. _) بال (شP3 biS
  103. _) بال (صP3 bis[
  104. _) بال (ضP3 bidH
  105. _) بال (طP3 bit[
  106. _) بال (ظP3 biZ
  107. _) بال (لP3 bil
  108. _) بال (نP3 bin
  109. .group پ
  110. پ p
  111. .group ت
  112. ت t
  113. _) ت (َP1 t
  114. _) ت (P1 ta //تسأل
  115. _َ) ت (P2 t
  116. ت (_S1 at //سألت
  117. تّ tt
  118. .group ث
  119. ث T
  120. .group ج
  121. ج dZ
  122. جّ dZdZ
  123. .group ح
  124. ح H
  125. .group خ
  126. خ X
  127. .group د
  128. د d
  129. دّ dd
  130. .group ذ
  131. ذ D
  132. .group ر
  133. ر r
  134. .group ز
  135. ز z
  136. .group س
  137. س s
  138. سّ ss
  139. .group ش
  140. ش S
  141. شّ SS
  142. .group ص
  143. ص s[
  144. صّ s[s[
  145. .group ض
  146. ض dH
  147. .group ط
  148. ط t[
  149. .group ظ
  150. ظ Z
  151. .group ع
  152. ع A
  153. .group غ
  154. غ gH
  155. .group ف
  156. ف f
  157. _) فال (L10P3 fa //فالشمس
  158. _) فَال (L10P4 fa
  159. _) فَالْ (L10P4 fa
  160. _) فال (L11P3 fal //فالقمر
  161. _) فَال (L11P4 fa
  162. _) فَالْ (L11P4 fal
  163. _) فال (تP3 fat
  164. _) فال (ثP3 faT
  165. _) فال (دP3 fad
  166. _) فال (ذP3 faD
  167. _) فال (رP3 far
  168. _) فال (زP3 faz
  169. _) فال (سP3 fas
  170. _) فال (شP3 faS
  171. _) فال (صP3 fas[
  172. _) فال (ضP3 fadH
  173. _) فال (طP3 fat[
  174. _) فال (ظP3 faZ
  175. _) فال (لP3 fal
  176. _) فال (نP3 fan
  177. .group ق
  178. ق q
  179. .group ك
  180. ك k
  181. ك (_S1 ka // الضمير المتصل
  182. _) كال (L10P3 ka //كالشمس
  183. _) كَال (L10P4 ka
  184. _) كَالْ (L10P4 ka
  185. _) كال (L11P3 kal //كالقمر
  186. _) كَالْ (L11P4 kal
  187. _) كال (تP3 kat
  188. _) كال (ثP3 kaT
  189. _) كال (دP3 kad
  190. _) كال (ذP3 kaD
  191. _) كال (رP3 kar
  192. _) كال (زP3 kaz
  193. _) كال (سP3 kas
  194. _) كال (شP3 kaS
  195. _) كال (صP3 kas[
  196. _) كال (ضP3 kadH
  197. _) كال (طP3 kat[
  198. _) كال (ظP3 kaZ
  199. _) كال (لP3 kal
  200. _) كال (نP3 kan
  201. كم (_S2 kum //الضمير المتصل
  202. كما (_S3 kumaa //الضمير المتصل
  203. كن (_S2 kunna //الضمير المتصل
  204. .group گ
  205. گ g
  206. .group ل
  207. ل l
  208. _ا) ل (L10 ' // Sun letters
  209. _بِا) ل (L10 ' // Sun letters
  210. _فَا) ل (L10 ' // Sun letters
  211. _كَا) ل (L10 ' // Sun letters
  212. لّ ll
  213. _لِ) ل (L10 ' // Sun letters
  214. _وَا) ل (L10 ' // Sun letters
  215. .group م
  216. م m
  217. .group ن
  218. ن n
  219. ن (ب m
  220. ن (ْب m
  221. .group ه
  222. ه h
  223. ه (_S1 h // الضمير المتصل
  224. ها (_S2 haa //الضمير المتصل
  225. هم (_S2 hum //الضمير المتصل
  226. هما (_S3 humaa //الضمير المتصل
  227. هن (_S2 hunna //الضمير المتصل
  228. .group و
  229. L03) و uu //واو بعد صامت دون تشكيل
  230. ا) و w //واو بعد الألف
  231. و (L01 w //واو بعدها حرف علة
  232. ْ) و w // واو بعد سكون
  233. َ) و w //واو بعد فتحة
  234. ِ) و w //واو بعد كسرة
  235. _) و w //واو في أول الكلمة
  236. وا (_S2 u
  237. وا (_S2 uu // فعل مع ضمائر الجمع المذكرة درسوا
  238. _) وال (L10P3 wa //والشمس
  239. _) وَال (L10P4 wa
  240. _) وَالْ (L10P4 wa
  241. _) وال (L11P3 wal //والقمر
  242. _) وَال (L11P4 wal
  243. _) وَالْ (L11P4 wal
  244. _) وال (تP3 wat
  245. _) وال (ثP3 waT
  246. _) وال (دP3 wad
  247. _) وال (ذP3 waD
  248. _) وال (رP3 war
  249. _) وال (زP3 waz
  250. _) وال (سP3 was
  251. _) وال (شP3 waS
  252. _) وال (صP3 was[
  253. _) وال (ضP3 wadH
  254. _) وال (طP3 wat[
  255. _) وال (ظP3 waZ
  256. _) وال (لP3 wal
  257. _) وال (نP3 wan
  258. ون (_S2 uuna //جمع مذكر سالم فلاحون
  259. .group ي
  260. L03) ي ii // ياء بعد صامت دون تشكيل
  261. ا) ي j // ياء بعد ألف
  262. ْ) ي j //ياء بعد سكون
  263. ُ) ي j //ياء بعد ضمّة
  264. َ) ي j // ياء بعد فتحة
  265. _) ي j // ياء في أول الكلمة
  266. ي (L01 j //يا بعدها حروف علة
  267. ي (_S1 i
  268. ي (_S1 ii //ياء النسبة
  269. يات (_S3 ijjaat //يّة النسبة في جمع المؤنث جزائريات
  270. ية (_S2 ijjah //يّة النسبة
  271. ين (_S2 iina //جمع مذكر سالم منصوب أو مجرور
  272. يون (_S3 ijjuun //kجمع مذكر سالم منسوب جزائريون
  273. يين (_S3 ijjiin //kجمع مذكر سالم منسوب جزائريين
  274. .group ى //ألف مقصورة
  275. ى a
  276. L03) ى (_ aa
  277. .group ء
  278. ء ?
  279. ء (ً ?an
  280. .group ئ
  281. ئ ?
  282. .group ؤ
  283. ؤ ?
  284. .group ة
  285. ة t
  286. ةً tan
  287. .group
  288. َ %a
  289. // (ا aa // make the previous fatha long
  290. .group
  291. ِ i
  292. // (ي ii // make the previous kassra long
  293. .group
  294. ُ u
  295. // (و uu // make the previous kassra long
  296. .group ٌ // dammatan
  297. ٌ (_S1 un
  298. ٌ '
  299. .group ً // fatahatan
  300. ًا (S1 an
  301. .group ٍ // kasratan
  302. ٍ (_S1 in
  303. ٍ '
  304. .group أ
  305. أ a
  306. .group إ
  307. إ ?i
  308. .group ـ
  309. ـ '
  310. .group ،
  311. ، ||
  312. .group ؛
  313. ؛
  314. .group
  315. // non-ascii characters with specified pronunciations
  316. // List the accented characters in en_list with the $accent attribute