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

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