aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_fullvoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_fullvoc.lua')
-rw-r--r--arabluatex_fullvoc.lua119
1 files changed, 111 insertions, 8 deletions
diff --git a/arabluatex_fullvoc.lua b/arabluatex_fullvoc.lua
index ff2ef35..898aecd 100644
--- a/arabluatex_fullvoc.lua
+++ b/arabluatex_fullvoc.lua
@@ -341,11 +341,12 @@ trigraphsfv = { -- trigraphs or more
341 -- words ending in -āT with silent wāw/yāʾ 341 -- words ending in -āT with silent wāw/yāʾ
342 {a="(_a)UA", b="%1وا"}, 342 {a="(_a)UA", b="%1وا"},
343 {a="(_a)U", b="%1و"}, 343 {a="(_a)U", b="%1و"},
344 {a="(_a)I", b="%1ي"}, 344 {a="(_a)I", b="%1ي"}
345 -- assimilations
346 {a="(n)(%s)([rlmnwy])", b="%1%2%3%3"}
347} 345}
348 346
347-- idgham/assimilation rules for trigraphs apply here : see voc lua
348-- file.
349
349trigraphsfveasy = { -- trigraphs or more (see 'easy' tag below for the diffs) 350trigraphsfveasy = { -- trigraphs or more (see 'easy' tag below for the diffs)
350 -- 'llatI / 'llad_I 351 -- 'llatI / 'llad_I
351 {a="^'ll(a)([%_]?[dt])", b="ٱلّ%1%2"}, 352 {a="^'ll(a)([%_]?[dt])", b="ٱلّ%1%2"},
@@ -397,12 +398,10 @@ trigraphsfveasy = { -- trigraphs or more (see 'easy' tag below for the diffs)
397 -- words ending in -āT with silent wāw/yāʾ 398 -- words ending in -āT with silent wāw/yāʾ
398 {a="(_a)UA", b="%1وا"}, 399 {a="(_a)UA", b="%1وا"},
399 {a="(_a)U", b="%1و"}, 400 {a="(_a)U", b="%1و"},
400 {a="(_a)I", b="%1ي"}, 401 {a="(_a)I", b="%1ي"}
401 -- assimilations
402--easy {a="(n)(%s)([rlmnwy])", b="%1%2%3%3"}
403} 402}
404 403
405digraphsfv = { 404digraphsfvidgham = {
406 -- iʿrāb: straight double quote must be discarded 405 -- iʿrāb: straight double quote must be discarded
407 {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"}, 406 {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"},
408 {a="(%-)(\"?[UI]na)(%p?)$", b="%2%3"}, 407 {a="(%-)(\"?[UI]na)(%p?)$", b="%2%3"},
@@ -504,6 +503,108 @@ digraphsfv = {
504 {a="%^d", b="ڊ"} 503 {a="%^d", b="ڊ"}
505} 504}
506 505
506digraphsfv = {
507 -- iʿrāb: straight double quote must be discarded
508 {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"},
509 {a="(%-)(\"?[UI]na)(%p?)$", b="%2%3"},
510 {a="(%-)(\"?At[ui])(%p?%s)", b="%2%3"},
511 {a="(%-)(\"?At[ui])(%p?)$", b="%2%3"},
512 {a="(%-)(\"?Ani)(%p?%s)", b="%2%3"},
513 {a="(%-)(\"?Ani)(%p?)$", b="%2%3"},
514 {a="(%-)(\"?ayni)(%p?%s)", b="%2%3"},
515 {a="(%-)(\"?ayni)(%p?)$", b="%2%3"},
516 {a="(%-)(\"?[uai])(%p?%s)", b="%2%3"},
517 {a="(%-)(\"?[uai])(%p?)$", b="%2%3"},
518 -- ʾiʿrāb (end)
519 -- initial straight double quote gives a connective ʾalif
520 {a="^\"[uai]", b="ٱ"},
521 {a="([%s%-])\"[uai]", b="%1ٱ"},
522 -- diphthongs to be resolved before ʾalif conjunctionis
523 {a="(aW)(%s)(\"?[uai])", b="awuا%2ٱ"},
524 {a="(aw)(%s)(\"?[uai])", b="%1u%2ٱ"},
525 {a="(ay)(%s)(\"?[uai])", b="%1i%2ٱ"},
526 {a="([uai]%-)(\"?[uai])", b="%1ٱ"}, -- hyphen + initial alif without hamza
527 -- initial alif without hamza
528 {a="([%_]?[uaiUAIY])(%s)(\"?[uai])", b="%1%2ٱ"},
529 {a="^([uai])", b="ا%1"}, -- initial alif without hamza
530 {a="(%s)([uai])", b="%1ا%2"}, -- initial alif without hamza
531 {a="%-%-", b="ـ"},
532 {a="ؤؤ", b="ؤّ"},
533 {a="أأ", b="أّ"},
534 {a="ئئ", b="ئّ"},
535 {a="bb", b="بّ"},
536 {a="BB", b="ـّ"},
537 {a="(%_)([thd])([thd])", b="%1%2|%3"},
538 {a="tt", b="تّ"},
539 {a="%_t%_t", b="ثّ"},
540 {a="jj", b="جّ"},
541 {a="%^g%^g", b="جّ"},
542 {a="%.h%.h", b="حّ"},
543 {a="xx", b="خّ"},
544 {a="%_h%_h", b="خّ"},
545 {a="dd", b="دّ"},
546 {a="%_d%_d", b="ذّ"},
547 {a="rr", b="رّ"},
548 {a="zz", b="زّ"},
549 {a="ss", b="سّ"},
550 {a="%^s%^s", b="شّ"},
551 {a="%.s%.s", b="صّ"},
552 {a="%.d%.d", b="ضّ"},
553 {a="%.t%.t", b="طّ"},
554 {a="%.z%.z", b="ظّ"},
555 {a="%`%`", b="عّ"},
556 {a="%.g%.g", b="غّ"},
557 {a="ff", b="فّ"},
558 {a="qq", b="قّ"},
559 {a="kk", b="كّ"},
560 {a="ll", b="لّ"},
561 {a="mm", b="مّ"},
562 {a="nn", b="نّ"},
563 {a="hh", b="هّ"},
564 {a="ww", b="وّ"},
565 {a="yy", b="يّ"},
566 -- sukūn begin
567 -- first, take out hyphen if any:
568 {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])%-([uaiUAI])", b="%1%2"},
569 {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])$", b="%1ْ"},
570 {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%s])", b="%1ْ%2"},
571 {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%_]?[^%_uaiUAIYًٌٍ])", b="%1ْ%2"},
572 -- take out sukūn in cases of assimilation
573-- {a="(n)(ْ)(%s)(ر)", b="%1%3%4"},
574-- {a="(n)(ْ)(%s)(و)", b="%1%3%4"},
575-- {a="(n)(ْ)(%s)(ي)", b="%1%3%4"},
576-- {a="(n)(ْ)(%s)(ل)", b="%1%3%4"},
577-- {a="(n)(ْ)(%s)(م)", b="%1%3%4"},
578-- {a="(n)(ْ)(%s)(ن)", b="%1%3%4"},
579-- {a="ْ\"", b="\""},
580 -- sukūn end
581 {a="_t", b="ث"},
582 {a="%^g", b="ج"},
583 {a="%.h", b="ح"},
584 {a="_h", b="خ"},
585 {a="_d", b="ذ"},
586 {a="%^s", b="ش"},
587 {a="%.s", b="ص"},
588 {a="%.d", b="ض"},
589 {a="%.t", b="ط"},
590 {a="%.z", b="ظ"},
591 {a="%.g", b="غ"},
592 {a="(U)(A)", b="%1ا"},
593 {a="WA", b="وْا"},
594 {a="(a)W\"", b="%1وا"},
595 {a="(a)W", b="%1وْا"},
596 {a="_A", b="aى"},
597 {a="_u", b="ٗ"},
598 {a="_a", b="ٰ"},
599 {a="_i", b="ٖ"},
600 {a="%.b", b="ٮ"},
601 {a="%.f", b="ڡ"},
602 {a="%.q", b="ٯ"},
603 {a="%.k", b="ک"},
604 {a="%.n", b="ں"},
605 {a="%^d", b="ڊ"}
606}
607
507digraphsfveasy = { -- see the differences under 'easy' marker below 608digraphsfveasy = { -- see the differences under 'easy' marker below
508 -- iʿrāb: straight double quote must be discarded 609 -- iʿrāb: straight double quote must be discarded
509 {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"}, 610 {a="(%-)(\"?[UI]na)(%p?%s)", b="%2%3"},
@@ -574,7 +675,9 @@ digraphsfveasy = { -- see the differences under 'easy' marker below
574-- {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%s])", b="%1ْ%2"}, 675-- {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%s])", b="%1ْ%2"},
575-- {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%_]?[^%_uaiUAIًٌٍ])", b="%1ْ%2"}, 676-- {a="([%_%^%.]?[Bbtjghxdrzs%`fqklmnwy])([%_]?[^%_uaiUAIًٌٍ])", b="%1ْ%2"},
576 -- take out sukūn in cases of assimilation 677 -- take out sukūn in cases of assimilation
577-- {a="(n)(ْ)(%s)([روي])", b="%1%3%4"}, 678-- {a="(n)(ْ)(%s)(ر)", b="%1%3%4"},
679-- {a="(n)(ْ)(%s)(و)", b="%1%3%4"},
680-- {a="(n)(ْ)(%s)(ي)", b="%1%3%4"},
578-- {a="(n)(ْ)(%s)([ل])", b="%1%3%4"}, 681-- {a="(n)(ْ)(%s)([ل])", b="%1%3%4"},
579-- {a="(n)(ْ)(%s)([م])", b="%1%3%4"}, 682-- {a="(n)(ْ)(%s)([م])", b="%1%3%4"},
580-- {a="(n)(ْ)(%s)([ن])", b="%1%3%4"}, 683-- {a="(n)(ْ)(%s)([ن])", b="%1%3%4"},