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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. .A ا ي و َ ُ ِ ً ٌ ٍ ّ ى
  48. //list of consonants
  49. .C ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه
  50. //all vowels
  51. .L01 ا ي و َ ُ ِ ً ٌ ٍ ّ ى
  52. //short vowels (commonly unwritten )
  53. .L02
  54. //list of consonants
  55. .L03 ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه
  56. // all Arabic characters without ا آ
  57. .L04 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ت ن م ك َ ُ ِ ّ ـ « » ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  58. // all Arabic characters without short vowels and A
  59. .L05 ض ص ث ق ف غ ع ه خ ح ج ش س ي ب ل ت ن م ك ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  60. // group of digits
  61. .L06 0 1 2 3 4 5 6 7 8 9
  62. // all Arabic characters
  63. .L09 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ا ت ن م ك َ ُ ِ ّ آ ـ « » ظ ط ز ر ذ د ئ و ة ي ژ ؤ إ أ ء ؟ پ گ
  64. // Arabic Sun characters
  65. .L10 ض ص ث ش س ل ت ن ظ ط ز ر ذ د
  66. // Arabic Moon characters
  67. .L11 ق ف غ ع ه خ ح ج ي ب م ك و إ أ ء
  68. .group آ
  69. آ ?aa
  70. .group ا
  71. L03) ا aa // if a consonant is before it, make the fatha long
  72. L03) ا (L03 aa
  73. ا (َ ?
  74. ا (ُ ?
  75. ا (ِ ?
  76. _) ا a // make the previous fatha long
  77. _) ال (L10ّP2 ?a //الشمس
  78. _) ال (L11P2 ?al //القمر
  79. _) ال (تP2 ?at
  80. _) ال (ثP2 ?aT
  81. _) ال (دP2 ?ad
  82. _) ال (ذP2 ?aD
  83. _) ال (رP2 ?ar
  84. _) ال (زP2 ?az
  85. _) ال (سP2 ?as
  86. _) ال (شّP2 ?a
  87. _) ال (شP2 ?aS
  88. _) ال (صP2 ?as[
  89. _) ال (ضP2 ?adH
  90. _) ال (ظP2 ?aZ
  91. _) ال (لP2 ?al
  92. _) ال (نP2 ?an
  93. _ب) ا (ل i
  94. .group ب
  95. ب b
  96. ب (ّ Bb
  97. _) بال (L10P3 bi //بالشمس
  98. _) بال (L11P3 bil //بالقمر
  99. _) بال (تP3 bit
  100. _) بال (ثP3 biT
  101. _) بال (دP3 bid
  102. _) بال (ذP3 biD
  103. _) بال (رP3 bir
  104. _) بال (زP3 biz
  105. _) بال (سP3 bis
  106. _) بال (شP3 biS
  107. _) بال (صP3 bis[
  108. _) بال (ضP3 bidH
  109. _) بال (طP3 bit[
  110. _) بال (ظP3 biZ
  111. _) بال (لP3 bil
  112. _) بال (نP3 bin
  113. .group پ
  114. پ p
  115. .group ت
  116. ت t
  117. _) ت (َP1 t
  118. _) ت (P1 ta //تسأل
  119. _َ) ت (P2 t
  120. ت (_S1 at //سألت
  121. ت (ّ tt
  122. .group ث
  123. ث T
  124. .group ج
  125. ج dZ
  126. ج (ّ dZdZ
  127. .group ح
  128. ح H
  129. .group خ
  130. خ X
  131. .group د
  132. د d
  133. د (ّ dd
  134. .group ذ
  135. ذ D
  136. .group ر
  137. ر r
  138. .group ز
  139. ز z
  140. .group س
  141. س s
  142. س (ّ ss
  143. .group ش
  144. ش S
  145. ش (ّ SS
  146. .group ص
  147. ص s[
  148. ص (ّ s[s[
  149. .group ض
  150. ض dH
  151. .group ط
  152. ط t[
  153. .group ظ
  154. ظ Z
  155. .group ع
  156. ع A
  157. .group غ
  158. غ gH
  159. .group ف
  160. ف f
  161. _) فال (L10P3 fa //فالشمس
  162. _) فَال (L10P4 fa
  163. _) فَالْ (L10P4 fa
  164. _) فال (L11P3 fal //فالقمر
  165. _) فَال (L11P4 fa
  166. _) فَالْ (L11P4 fal
  167. _) فال (تP3 fat
  168. _) فال (ثP3 faT
  169. _) فال (دP3 fad
  170. _) فال (ذP3 faD
  171. _) فال (رP3 far
  172. _) فال (زP3 faz
  173. _) فال (سP3 fas
  174. _) فال (شP3 faS
  175. _) فال (صP3 fas[
  176. _) فال (ضP3 fadH
  177. _) فال (طP3 fat[
  178. _) فال (ظP3 faZ
  179. _) فال (لP3 fal
  180. _) فال (نP3 fan
  181. .group ق
  182. ق q
  183. .group ك
  184. ك k
  185. ك (_S1 ka // الضمير المتصل
  186. _) كال (L10P3 ka //كالشمس
  187. _) كَال (L10P4 ka
  188. _) كَالْ (L10P4 ka
  189. _) كال (L11P3 kal //كالقمر
  190. _) كَالْ (L11P4 kal
  191. _) كال (تP3 kat
  192. _) كال (ثP3 kaT
  193. _) كال (دP3 kad
  194. _) كال (ذP3 kaD
  195. _) كال (رP3 kar
  196. _) كال (زP3 kaz
  197. _) كال (سP3 kas
  198. _) كال (شP3 kaS
  199. _) كال (صP3 kas[
  200. _) كال (ضP3 kadH
  201. _) كال (طP3 kat[
  202. _) كال (ظP3 kaZ
  203. _) كال (لP3 kal
  204. _) كال (نP3 kan
  205. كم (_S2 kum //الضمير المتصل
  206. كما (_S3 kumaa //الضمير المتصل
  207. كن (_S2 kunna //الضمير المتصل
  208. .group گ
  209. گ g
  210. .group ل
  211. ل l
  212. _ا) ل (L10 ' // Sun letters
  213. _بِا) ل (L10 ' // Sun letters
  214. _فَا) ل (L10 ' // Sun letters
  215. _كَا) ل (L10 ' // Sun letters
  216. ل (ّ ll
  217. _لِ) ل (L10 ' // Sun letters
  218. _وَا) ل (L10 ' // Sun letters
  219. .group م
  220. م m
  221. .group ن
  222. ن n
  223. ن (ب m
  224. ن (ْب m
  225. .group ه
  226. ه h
  227. ه (_S1 h // الضمير المتصل
  228. ها (_S2 haa //الضمير المتصل
  229. هم (_S2 hum //الضمير المتصل
  230. هما (_S3 humaa //الضمير المتصل
  231. هن (_S2 hunna //الضمير المتصل
  232. .group و
  233. L03) و uu //واو بعد صامت دون تشكيل
  234. ا) و w //واو بعد الألف
  235. و (L01 w //واو بعدها حرف علة
  236. ْ) و w // واو بعد سكون
  237. َ) و w //واو بعد فتحة
  238. ِ) و w //واو بعد كسرة
  239. _) و w //واو في أول الكلمة
  240. وا (_S2 u
  241. وا (_S2 uu // فعل مع ضمائر الجمع المذكرة درسوا
  242. _) وال (L10P3 wa //والشمس
  243. _) وَال (L10P4 wa
  244. _) وَالْ (L10P4 wa
  245. _) وال (L11P3 wal //والقمر
  246. _) وَال (L11P4 wal
  247. _) وَالْ (L11P4 wal
  248. _) وال (تP3 wat
  249. _) وال (ثP3 waT
  250. _) وال (دP3 wad
  251. _) وال (ذP3 waD
  252. _) وال (رP3 war
  253. _) وال (زP3 waz
  254. _) وال (سP3 was
  255. _) وال (شP3 waS
  256. _) وال (صP3 was[
  257. _) وال (ضP3 wadH
  258. _) وال (طP3 wat[
  259. _) وال (ظP3 waZ
  260. _) وال (لP3 wal
  261. _) وال (نP3 wan
  262. ون (_S2 uuna //جمع مذكر سالم فلاحون
  263. .group ي
  264. L03) ي ii // ياء بعد صامت دون تشكيل
  265. ا) ي j // ياء بعد ألف
  266. ْ) ي j //ياء بعد سكون
  267. ُ) ي j //ياء بعد ضمّة
  268. َ) ي j // ياء بعد فتحة
  269. _) ي j // ياء في أول الكلمة
  270. ي (L01 j //يا بعدها حروف علة
  271. ي (_S1 i
  272. ي (_S1 ii //ياء النسبة
  273. يات (_S3 ijjaat //يّة النسبة في جمع المؤنث جزائريات
  274. ية (_S2 ijjah //يّة النسبة
  275. ين (_S2 iina //جمع مذكر سالم منصوب أو مجرور
  276. يون (_S3 ijjuun //kجمع مذكر سالم منسوب جزائريون
  277. يين (_S3 ijjiin //kجمع مذكر سالم منسوب جزائريين
  278. .group ى //ألف مقصورة
  279. ى a
  280. L03) ى (_ aa
  281. .group ء
  282. ء ?
  283. ء (ً ?an
  284. .group ئ
  285. ئ ?
  286. .group ؤ
  287. ؤ ?
  288. .group ة
  289. ة t
  290. ةً tan
  291. .group
  292. َ %a
  293. // (ا aa // make the previous fatha long
  294. .group
  295. ِ i
  296. // (ي ii // make the previous kassra long
  297. .group
  298. ُ u
  299. // (و uu // make the previous kassra long
  300. .group ٌ // dammatan
  301. ٌ (_S1 un
  302. ٌ '
  303. .group ً // fatahatan
  304. ًا (S1 an
  305. .group ٍ // kasratan
  306. ٍ (_S1 in
  307. ٍ '
  308. .group أ
  309. أ a
  310. .group إ
  311. إ ?i
  312. .group ـ
  313. ـ '
  314. .group ،
  315. ، ||
  316. .group ؛
  317. ؛
  318. .group
  319. // non-ascii characters with specified pronunciations
  320. // List the accented characters in en_list with the $accent attribute