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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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. //all vowels
  49. .L01 ا ي و َ ُ ِ ً ٌ ٍ ّ ى
  50. //short vowels (commonly unwritten )
  51. .L02
  52. //list of consonants
  53. .L03 ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه
  54. // all Arabic characters without ا آ
  55. .L04 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ت ن م ك َ ُ ِ ّ ـ « » ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  56. // all Arabic characters without short vowels and A
  57. .L05 ض ص ث ق ف غ ع ه خ ح ج ش س ي ب ل ت ن م ك ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
  58. // group of digits
  59. .L06 0 1 2 3 4 5 6 7 8 9
  60. // all Arabic characters
  61. .L09 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ا ت ن م ك َ ُ ِ ّ آ ـ « » ظ ط ز ر ذ د ئ و ة ي ژ ؤ إ أ ء ؟ پ گ
  62. // Arabic Sun characters
  63. .L10 ض ص ث ش س ل ت ن ظ ط ز ر ذ د
  64. // Arabic Moon characters
  65. .L11 ق ف غ ع ه خ ح ج ي ب م ك و إ أ ء
  66. // Arabic diacritics
  67. .L20 ۡ ـ ً ٌ ٍ َ ُ ِ ّ ْ
  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. _) ال (L10P2 ?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. أ a
  96. .group إ
  97. إ ?i
  98. .group ب
  99. ب b
  100. بّ Bb
  101. _) بال (L10P3 bi //بالشمس
  102. _) بال (L11P3 bil //بالقمر
  103. _) بال (تP3 bit
  104. _) بال (ثP3 biT
  105. _) بال (دP3 bid
  106. _) بال (ذP3 biD
  107. _) بال (رP3 bir
  108. _) بال (زP3 biz
  109. _) بال (سP3 bis
  110. _) بال (شP3 biS
  111. _) بال (صP3 bis[
  112. _) بال (ضP3 bidH
  113. _) بال (طP3 bit[
  114. _) بال (ظP3 biZ
  115. _) بال (لP3 bil
  116. _) بال (نP3 bin
  117. .group پ
  118. پ p
  119. .group ت
  120. ت t
  121. ت (ّ t:
  122. ت (L20ّ t:
  123. _) ت (َP1 t
  124. _) ت (P1 ta //تسأل
  125. _َ) ت (P2 t
  126. ت (_S1 at //سألت
  127. تّ t:
  128. .group ث
  129. ث T
  130. .group ج
  131. ج dZ
  132. جّ dZdZ
  133. .group ح
  134. ح H
  135. .group خ
  136. خ X
  137. .group د
  138. د d
  139. د (ّ d:
  140. د (L20ّ d:
  141. .group ذ
  142. ذ D
  143. .group ر
  144. ر r
  145. .group ز
  146. ز z
  147. .group س
  148. س s
  149. س (ّ s:
  150. س (L20ّ s:
  151. .group ش
  152. ش S
  153. ش (ّ S:
  154. ش (L20ّ S:
  155. .group ص
  156. ص s[
  157. صّ s[s[
  158. .group ض
  159. ض dH
  160. .group ط
  161. ط t[
  162. .group ظ
  163. ظ Z
  164. .group ع
  165. ع A
  166. .group غ
  167. غ gH
  168. .group ف
  169. ف f
  170. _) فال (L10P3 fa //فالشمس
  171. _) فَال (L10P4 fa
  172. _) فَالْ (L10P4 fa
  173. _) فال (L11P3 fal //فالقمر
  174. _) فَال (L11P4 fa
  175. _) فَالْ (L11P4 fal
  176. _) فال (تP3 fat
  177. _) فال (ثP3 faT
  178. _) فال (دP3 fad
  179. _) فال (ذP3 faD
  180. _) فال (رP3 far
  181. _) فال (زP3 faz
  182. _) فال (سP3 fas
  183. _) فال (شP3 faS
  184. _) فال (صP3 fas[
  185. _) فال (ضP3 fadH
  186. _) فال (طP3 fat[
  187. _) فال (ظP3 faZ
  188. _) فال (لP3 fal
  189. _) فال (نP3 fan
  190. .group ق
  191. ق q
  192. .group ك
  193. ك k
  194. ك (_S1 ka // الضمير المتصل
  195. ك (ّ k:
  196. ك (L20ّ k:
  197. _) كال (L10P3 ka //كالشمس
  198. _) كَال (L10P4 ka
  199. _) كَالْ (L10P4 ka
  200. _) كال (L11P3 kal //كالقمر
  201. _) كَالْ (L11P4 kal
  202. _) كال (تP3 kat
  203. _) كال (ثP3 kaT
  204. _) كال (دP3 kad
  205. _) كال (ذP3 kaD
  206. _) كال (رP3 kar
  207. _) كال (زP3 kaz
  208. _) كال (سP3 kas
  209. _) كال (شP3 kaS
  210. _) كال (صP3 kas[
  211. _) كال (ضP3 kadH
  212. _) كال (طP3 kat[
  213. _) كال (ظP3 kaZ
  214. _) كال (لP3 kal
  215. _) كال (نP3 kan
  216. كم (_S2 kum //الضمير المتصل
  217. كما (_S3 kuma: //الضمير المتصل
  218. كن (_S2 kun:a //الضمير المتصل
  219. .group گ
  220. گ g
  221. .group ل
  222. ل l
  223. _ا) ل (L10 ' // Sun letters
  224. _بِا) ل (L10 ' // Sun letters
  225. _فَا) ل (L10 ' // Sun letters
  226. _كَا) ل (L10 ' // Sun letters
  227. ل (ّ l:
  228. ل (L20ّ l:
  229. _لِ) ل (L10 ' // Sun letters
  230. _وَا) ل (L10 ' // Sun letters
  231. .group م
  232. م m
  233. .group ن
  234. ن n
  235. ن (ب m
  236. ن (ْب m
  237. .group ه
  238. ه h
  239. ه (_S1 h // الضمير المتصل
  240. ها (_S2 ha: //الضمير المتصل
  241. هم (_S2 hum //الضمير المتصل
  242. هما (_S3 huma: //الضمير المتصل
  243. هن (_S2 hun:a //الضمير المتصل
  244. .group و
  245. L03) و u: //واو بعد صامت دون تشكيل
  246. ا) و w //واو بعد الألف
  247. و (L01 w //واو بعدها حرف علة
  248. ْ) و w // واو بعد سكون
  249. َ) و w //واو بعد فتحة
  250. ِ) و w //واو بعد كسرة
  251. _) و w //واو في أول الكلمة
  252. وا (_S2 u
  253. وا (_S2 u: // فعل مع ضمائر الجمع المذكرة درسوا
  254. _) وال (L10P3 wa //والشمس
  255. _) وَال (L10P4 wa
  256. _) وَالْ (L10P4 wa
  257. _) وال (L11P3 wal //والقمر
  258. _) وَال (L11P4 wal
  259. _) وَالْ (L11P4 wal
  260. _) وال (تP3 wat
  261. _) وال (ثP3 waT
  262. _) وال (دP3 wad
  263. _) وال (ذP3 waD
  264. _) وال (رP3 war
  265. _) وال (زP3 waz
  266. _) وال (سP3 was
  267. _) وال (شP3 waS
  268. _) وال (صP3 was[
  269. _) وال (ضP3 wadH
  270. _) وال (طP3 wat[
  271. _) وال (ظP3 waZ
  272. _) وال (لP3 wal
  273. _) وال (نP3 wan
  274. ون (_S2 u:na //جمع مذكر سالم فلاحون
  275. .group ي
  276. L03) ي i: // ياء بعد صامت دون تشكيل
  277. ا) ي j // ياء بعد ألف
  278. يِ ji:
  279. ْ) ي j //ياء بعد سكون
  280. ُ) ي j //ياء بعد ضمّة
  281. َ) ي j // ياء بعد فتحة
  282. _) ي j // ياء في أول الكلمة
  283. ي (L01 j //يا بعدها حروف علة
  284. ي (_S1 i
  285. يات (_S3 ij:aat //يّة النسبة في جمع المؤنث جزائريات
  286. ية (_S2 ij:ah //يّة النسبة
  287. ين (_S2 i:na //جمع مذكر سالم منصوب أو مجرور
  288. يون (_S3 ij:u:n //kجمع مذكر سالم منسوب جزائريون
  289. يين (_S3 ij:i:n //kجمع مذكر سالم منسوب جزائريين
  290. .group ى //ألف مقصورة
  291. ى a
  292. L03) ى (_ a:
  293. .group ء
  294. ء ?
  295. ء (ً ?an
  296. .group ئ
  297. ئ j?
  298. _) ئ ?j
  299. .group ؤ
  300. ؤ w?
  301. _) ؤ ?w
  302. .group ة
  303. ة t
  304. ةً tan
  305. // Other diacritics
  306. .group
  307. ٍ (_S1 in // kasratan at the end of word
  308. ٌ (_S1 un // dammatan at the end of word
  309. ُ u // damma
  310. ُو u:
  311. َا a:
  312. ًا (_S2 an
  313. َى a:
  314. ٰ a: // superscript alef
  315. ِ i // kasra
  316. َ %a // fatha
  317. // Following are default rules for other diacritics and they are just silence.
  318. // Diacritics should be consumed together with leading letters in rules above.
  319. ٌ // dammatan
  320. ً // fathatan
  321. ٍ // kasratan
  322. ـ // tatweel
  323. ۡ // small high dotless head of khan
  324. ْ // sukun
  325. ّ // shadda
  326. // non-ascii characters with specified pronunciations
  327. // List the accented characters in en_list with the $accent attribute