Debian Codegraph @

dictsource/ar_rules

raw
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 // Multicharacters into single characters
50
51 ٰٔ أ // Superscript alef with Hamza above > Alef with hamza above
52
53 // Reorder diacritics in "canonical order"
54
55 َّ َّ // Fatha Shadda > Shadda Fatha
56 ِّ ِّ // Kasra Shadda > Shadda Kasra
57 ّْ ّْ // Sukun Shadda > Shadda Sukun
58
59 // Specific glyphs into standard symbols
60 ٔ ء // Hamza above > Hamza
61 ٕ ء // Hamza below > Hamza
62
63 // Named letter groups:
64 // list of short vowels
65 // A: َ ُ ِ
66 // list of consonants
67 // C: ب پ ت ة ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ئ ؤ ء أ آ إ ه
68 // Consonant/vowel letters
69 // B: ا و ي
70 // "Thick" letters
71 // F: ص ض ط ظ
72 // Shadda
73 // G: ّ
74 // Hamza
75 // H: ء
76 // Sukun
77 // Y: ْ
78
79 // all vowels/diphthongs in vocalized text
80 // (fatha, damma, kasra, fatha+alef, fatha+alef_maksura, damma+waw, kasra+yeh, yeh+fatha, waw+fatha, superscript alef)
81 .L01 َ ُ ِ َا َى ُو ِي يَ وَ ٰ
82
83 // Long vowels and diphthongs in vocalized text
84 // (fatha+alef, fatha+alef_maksura, damma+waw, kasra+yeh, yeh+fatha, waw+fatha, superscript alef)
85 .L03 َا َى ُو ِي يَ وَ ٰ
86
87 // Implicit long vowels in UNvocalized text (alef, alef maksura, waw, yeh)
88 .L04 ا ى و ي
89
90 // all Arabic characters without short vowels and A
91 .L05 ض ص ث ق ف غ ع ه خ ح ج ش س ي ب ل ت ن م ك ظ ط ز ر ذ د ئ و ة ي ؤ إ أ ء پ گ
92
93 // group of digits
94 .L06 0 1 2 3 4 5 6 7 8 9
95
96 // all Arabic characters
97 .L09 ض ص ث ق ف غ ع ه خ ح ج ً ٌ ٍ ، ؛ ش س ي ب ل ا ت ن م ك َ ُ ِ ّ آ ـ « » ظ ط ز ر ذ د ئ و ة ي ژ ؤ إ أ ء ؟ پ گ
98
99 // Arabic Sun characters
100 .L10 ض ص ث ش س ل ت ن ظ ط ز ر ذ د
101
102 // Arabic Moon characters
103 .L11 ق ف غ ع ه خ ح ج ي ب م ك و إ أ ء
104
105 // Arabic diacritics
106 .L20 ۡ ـ ً ٌ ٍ َ ُ ِ ّ ْ
107
108 // Non-thick consonants
109 .L30 ب پ ت ة ث ج ح خ د ذ ر ز س ش ع غ ف ك ل م ن ئ ؤ ء أ آ إ ه
110
111 .group آ
112 آ ?a:
113
114 .group ا
115 ا a:
116 L30) ا a:
117 F) ا a.:
118 FG) ا a.:
119 L30) ا (C a:
120 F) ا (C a.:
121 FG) ا (C a.:
122 ا (َ ?
123 ا (ُ ?
124 ا (ِ ?
125 _) ال (P2 %al
126 _) ا a // make the previous fatha long
127 اء ? // Carried Hamza
128 _) ال (L10P2 ?a //الشمس
129 _) ال (L11P2 ?al //القمر
130 _) ال (تP2 ?at
131 _) ال (ثP2 ?aT
132 _) ال (دP2 ?ad
133 _) ال (ذP2 ?aD
134 _) ال (رP2 ?ar
135 _) ال (زP2 ?az
136 _) ال (سP2 ?as
137 _) ال (شّP2 ?a
138 _) ال (شP2 ?aS
139 _) ال (صP2 ?as[
140 _) ال (ضP2 ?adH
141 _) ال (ظP2 ?aZ
142 _) ال (لP2 ?al
143 _) ال (نP2 ?an
144 _ب) ا (ل i
145
146 .group أ
147 أ ? // Carried Hamza
148
149 .group إ
150 إ ? // Carried Hamza
151
152 .group ب
153 ب b
154 ب (_ b
155 بّ b:
156 بّْ b:
157 بْ b
158 _) ب b%
159 _) بال (L10P3 bi //بالشمس
160 _) بال (L11P3 bil //بالقمر
161 _) بال (تP3 bit
162 _) بال (ثP3 biT
163 _) بال (دP3 bid
164 _) بال (ذP3 biD
165 _) بال (رP3 bir
166 _) بال (زP3 biz
167 _) بال (سP3 bis
168 _) بال (شP3 biS
169 _) بال (صP3 bis[
170 _) بال (ضP3 bidH
171 _) بال (طP3 bit[
172 _) بال (ظP3 biZ
173 _) بال (لP3 bil
174 _) بال (نP3 bin
175
176 .group پ
177 پ p
178 پ (_ p
179 پّْ p:
180 پْ p
181
182 .group ت
183 ت t
184 _) ت (َP1 t
185 ت (_ t
186 تّ t:
187 تّْ t:
188 تْ t
189
190 .group ث
191 ث T
192 ث (_ T
193 ثّ T:
194 ثّْ T:
195 ثْ T
196
197 .group ج
198 ج dZ
199 ج (_ dZ
200 جّ dZ:
201 جّْ dZ:
202 جْ dZ
203
204 .group ح
205 ح H
206 ح (_ H
207 حّ H:
208 حّْ H:
209 حْ H
210
211 .group خ
212 خ X
213 خ (_ X
214 خّ X:
215 خّْ X:
216 خْ X
217
218 .group د
219 د d
220 د (_ d
221 دّ d:
222 دّْ d:
223 دْ d
224
225 .group ذ
226 ذ D
227 ذ (_ D
228 ذّ D:
229 ذّْ D:
230 ذْ D
231
232 .group ر
233 ر R
234 ر (_ R
235 رّ R:
236 رّْ R:
237 رْ R
238
239 .group ز
240 ز z
241 ز (_ z
242 زّ z:
243 زّْ z:
244 زْ z
245
246 .group س
247 س s
248 _) س s%
249 س (_ s
250 سّ s:
251 سّْ s:
252 سْ s
253
254 .group ش
255 ش S
256 ش (_ S
257 شّ S:
258 شّْ S:
259 شْ S
260
261 .group ص
262 ص s[
263 ص (_ s[
264 صّ s[:
265 صّْ s[:
266 صْ s[
267
268 .group ض
269 ض dH
270 ض (_ dH
271 ضّ dH:
272 ضّْ dH:
273 ضْ dH
274
275 .group ط
276 ط t[
277 ط (_ t[
278 طّ t[:
279 طّْ t[:
280 طْ t[
281
282 .group ظ
283 ظ Z
284 ظ (_ Z
285 ظّ Z:
286 ظّْ Z:
287 ظْ Z
288
289 .group ع
290 ع A
291 ع (_ A
292 عّ A:
293 عّْ A:
294 عْ A
295
296 .group غ
297 غ Q
298 غ (_ Q
299 غّ Q:
300 غّْ Q:
301 غْ Q
302
303 .group ف
304 ف f
305 ف (_ f
306 فّ f:
307 فّْ f:
308 فْ f
309 _) ف f%
310 _) فال (L10P3 fa //فالشمس
311 _) فَال (L10P4 fa
312 _) فَالْ (L10P4 fa
313 _) فال (L11P3 fal //فالقمر
314 _) فَال (L11P4 fa
315 _) فَالْ (L11P4 fal
316 _) فال (تP3 fat
317 _) فال (ثP3 faT
318 _) فال (دP3 fad
319 _) فال (ذP3 faD
320 _) فال (رP3 far
321 _) فال (زP3 faz
322 _) فال (سP3 fas
323 _) فال (شP3 faS
324 _) فال (صP3 fas[
325 _) فال (ضP3 fadH
326 _) فال (طP3 fat[
327 _) فال (ظP3 faZ
328 _) فال (لP3 fal
329 _) فال (نP3 fan
330
331 .group ق
332 ق q
333 ق (_ q
334 قّ q:
335 قّْ q:
336 قْ q
337
338 .group ك
339 ك k
340 ك (_ k
341 كّ k:
342 كّْ k:
343 كْ k
344 ك (_S1 ka // الضمير المتصل
345 _) ك k%
346 _) كال (L10P3 ka //كالشمس
347 _) كَال (L10P4 ka
348 _) كَالْ (L10P4 ka
349 _) كال (L11P3 kal //كالقمر
350 _) كَالْ (L11P4 kal
351 _) كال (تP3 kat
352 _) كال (ثP3 kaT
353 _) كال (دP3 kad
354 _) كال (ذP3 kaD
355 _) كال (رP3 kar
356 _) كال (زP3 kaz
357 _) كال (سP3 kas
358 _) كال (شP3 kaS
359 _) كال (صP3 kas[
360 _) كال (ضP3 kadH
361 _) كال (طP3 kat[
362 _) كال (ظP3 kaZ
363 _) كال (لP3 kal
364 _) كال (نP3 kan
365 كما (_S3 k'uma: //الضمير المتصل
366 كن (_S2 k'un:a //الضمير المتصل
367
368 .group گ
369 گ g
370 گ (_ g
371 گّ g:
372 گّْ g:
373 گْ g
374
375 .group ل
376 ل l
377 _) ل l%
378 _ا) ل (L10 ' // Sun letters
379 _بِا) ل (L10 ' // Sun letters
380 _فَا) ل (L10 ' // Sun letters
381 _كَا) ل (L10 ' // Sun letters
382 ل (_ l
383 لّ l:
384 لّْ l:
385 لْ l
386 _لِ) ل (L10 ' // Sun letters
387 _وَا) ل (L10 ' // Sun letters
388
389 .group م
390 م m
391 م (_ m
392 مّ m:
393 مّْ m:
394 مْ m
395
396 .group ن
397 ن n
398 ن (_ n
399 نّ n:
400 نّْ n:
401 نْ n
402 ن (ب m
403 نْ (ب m
404
405 .group ه
406 ه h
407 ه (_ h
408 هّ h:
409 هّْ h:
410 هْ h
411 ه (_S1 h // الضمير المتصل
412 ها (_S2 ha: //الضمير المتصل
413 هم (_S2 hum //الضمير المتصل
414 هما (_S3 h'uma: //الضمير المتصل
415 هن (_S2 h'un:a //الضمير المتصل
416
417 .group و
418 و w
419 L30) و u:
420 F) و u.:
421 FG) و u.:
422 ا) و w //واو بعد الألف
423 و (A w //واو بعدها حرف علة
424 و (_ w
425 وّ w:
426 وّْ w
427 وْ w
428 ْ) و w // واو بعد سكون
429 َ) و w //واو بعد فتحة
430 _) و w%
431 _) و w //واو في أول الكلمة
432 وء ? // Carried Hamza
433 وا (_S2 u
434 وا (_S2 u: // فعل مع ضمائر الجمع المذكرة درسوا
435 _) وال (L10P3 wa //والشمس
436 _) وَال (L10P4 wa
437 _) وَالْ (L10P4 wa
438 _) وال (L11P3 wal //والقمر
439 _) وَال (L11P4 wal
440 _) وَالْ (L11P4 wal
441 _) وال (تP3 wat
442 _) وال (ثP3 waT
443 _) وال (دP3 wad
444 _) وال (ذP3 waD
445 _) وال (رP3 war
446 _) وال (زP3 waz
447 _) وال (سP3 was
448 _) وال (شP3 waS
449 _) وال (صP3 was[
450 _) وال (ضP3 wadH
451 _) وال (طP3 wat[
452 _) وال (ظP3 waZ
453 _) وال (لP3 wal
454 _) وال (نP3 wan
455 ون (_S2 'u:na //جمع مذكر سالم فلاحون
456
457 .group ي
458 ي i
459 L30) ي i:
460 F) ي i.:
461 FG) ي i.:
462 ا) ي j // ياء بعد ألف
463 يّ i:
464 يْ j
465 يِ ji:
466 ْ) ي j //ياء بعد سكون
467 َ) ي j // ياء بعد فتحة
468 _) ي j // ياء في أول الكلمة
469 ي (L01 j //يا بعدها حروف علة
470 ي (_S1 i
471 يء ? // Carried Hamza
472 يات (_S3 'ij:a:t //يّة النسبة في جمع المؤنث جزائريات
473 ية (_S2 'ij:ah //يّة النسبة
474 ين (_S2 'i:na //جمع مذكر سالم منصوب أو مجرور
475 يون (_S3 'ij:u:n //kجمع مذكر سالم منسوب جزائريون
476 يين (_S3 'ij:i:n //kجمع مذكر سالم منسوب جزائريين
477
478 .group ى //ألف مقصورة
479 ى a
480 L30) ى (_ a:
481 F) ى (_ a.:
482 FG) ى (_ a.:
483 ىّ a:
484 ىْ a
485
486 .group ء
487 ء ?
488 ء (ً ?an
489
490 .group ئ
491 ئ ? // Carried Hamza
492
493 .group ؤ
494 ؤ ? // Carried Hamza
495
496 .group ة
497 ة t
498 ة (_ t
499 ةّ t:
500 ةْ t
501 ةً tan
502
503 // Other diacritics
504 .group
505 َ a // fatha
506 F) َ a. // fatha after thick consonant
507 FG) َ a. // fatha after thick consonant and shadda
508 َ (C_ =a // fatha in closed syllable
509 F) َ (C_ =a.
510 FG) َ (C_ =a.
511 َ (CC_ =a
512 F) َ (CC_ =a.
513 FG) َ (CC_ =a.
514 C) ٓ ? // madda after consonant
515 ِ i // kasra
516 F) ِ i. // kasra after thick consonant
517 FG) ِ i. // kasra after thick consonant and shadda
518 ِ (C_ =i // kasra in closed syllable
519 F) ِ (C_ =i.
520 FG) ِ (C_ =i.
521 ِ (CC_ =i
522 F) ِ (CC_ =i.
523 FG) ِ (CC_ =i.
524 ٍ (_S1 in // kasratan at the end of word
525 ٌ (_S1 un // dammatan at the end of word
526 ُ u // damma
527 F) ُ u. // damma after thick consonant
528 FG) ُ u. // damma after thick consonant and shadda
529 ُ (C_ =u // damma in closed syllable
530 F) ُ (C_ =u.
531 FG) ُ (C_ =u.
532 ُ (CC_ =u
533 F) ُ (CC_ =u.
534 FG) ُ (CC_ =u.
535 ٰ a: // superscript alef
536 F) ٰ a.: // superscript alef after thick consonant
537 FG) ٰ a.: // superscript alef after thick consonant and shadda
538 َا a: // fatha+alef
539 F) َا a.: // fatha+alef after thick consonant
540 FG) َا a.: // fatha+alef after thick consonant and shadda
541 ًا (_S2 an // fathatan+alef at the end of word
542 F) ًا (_S2 a.n // fathatan+alef at the end of word after thick consonant
543 َو au // fatha+waw
544 F) َو a.u. // fatha+waw after thick consonant
545 FG) َو a.u. // fatha+waw after thick consonant and shadda
546 ِو iw // kasra+waw
547 F) ِو i.w // kasra+waw after thick consonant
548 FG) ِو i.w // kasra+waw after thick consonant and shadda
549 ُو u: // damma+waw
550 F) ُو u.: // damma+waw after thick consonant
551 FG) ُو u.: // damma+waw after thick consonant and shadda
552 َى a: // fatha+alef maksura
553 F) َى a.: // fatha+alef maksura after thick consonant
554 FG) َى a.: // fatha+alef maksura after thick consonant and shadda
555 َي ai // fatha+yeh
556 F) َي a.i. // fatha+yeh after thick consonant
557 FG) َي a.i. // fatha+yeh after thick consonant and shadda
558 ِي i: // kasra+yeh
559 F) ِي i.: // kasra+yeh after thick consonant
560 FG) ِي i.: // kasra+yeh after thick consonant and shadda
561 ُي ui // damma+yeh
562 F) ُي u.i. // damma+yeh after thick consonant
563 FG) ُي u.i. // damma+yeh after thick consonant and shadda
564 ّ : // shadda
565
566 // Following are default rules for other diacritics and they are just silence.
567 // Diacritics should be consumed together with leading letters in rules above.
568
569 ٱ // alef wasla
570 ٌ // dammatan
571 ً // fathatan
572 ٍ // kasratan
573 ـ // tatweel
574 ۡ // small high dotless head of khan
575 ْ // sukun
576
577 // non-ascii characters with specified pronunciations
578 // List the accented characters in en_list with the $accent attribute