diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 18:40:44 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 18:40:44 +0200 |
commit | a36c4ec7d70bc170204099224928cf1ccc9e222b (patch) | |
tree | b42ec4fe93a634267dfff50747319b1a0e33f770 /arabluatex_voc.lua | |
parent | 66827ccf15a7b86dcc2f7218b4b5e683fe1b72f3 (diff) | |
download | arabluatex-a36c4ec7d70bc170204099224928cf1ccc9e222b.tar.gz |
done implementing Buckwalter scheme; new rules for quoted initial waṣla after hyphen (article)
Diffstat (limited to 'arabluatex_voc.lua')
-rw-r--r-- | arabluatex_voc.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua index 836ee4b..a573f07 100644 --- a/arabluatex_voc.lua +++ b/arabluatex_voc.lua | |||
@@ -102,11 +102,13 @@ buckwalter = { | |||
102 | {a="ww", b="w|w"}, | 102 | {a="ww", b="w|w"}, |
103 | {a="yy", b="y|y"}, | 103 | {a="yy", b="y|y"}, |
104 | -- hamza begin | 104 | -- hamza begin |
105 | {a="A\'", b="@@"}, -- hold this (classic madda) | ||
105 | {a="\'", b="|\"\'"}, | 106 | {a="\'", b="|\"\'"}, |
106 | {a="%>", b="a\"\'"}, | 107 | {a="%>", b="a\"\'"}, |
107 | {a="%&", b="w\"\'"}, | 108 | {a="%&", b="w\"\'"}, |
108 | {a="%<", b="i\"\'"}, | 109 | {a="%<", b="i\"\'"}, |
109 | {a="%]", b="y\"\'"}, | 110 | {a="%]", b="y\"\'"}, |
111 | {a="@@", b="A\'"}, -- give back classic madda | ||
110 | -- hamza end | 112 | -- hamza end |
111 | -- trigraphs | 113 | -- trigraphs |
112 | {a="^Aal%-?", b="al-"}, | 114 | {a="^Aal%-?", b="al-"}, |
@@ -130,6 +132,7 @@ buckwalter = { | |||
130 | {a="%@", b="A\"\'"}, | 132 | {a="%@", b="A\"\'"}, |
131 | -- šadda: | 133 | -- šadda: |
132 | {a="([%g])(%~)", b="%1%1"}, | 134 | {a="([%g])(%~)", b="%1%1"}, |
135 | {a="%`", b="_a"}, | ||
133 | {a="v", b="_t"}, | 136 | {a="v", b="_t"}, |
134 | {a="H", b=".h"}, | 137 | {a="H", b=".h"}, |
135 | {a="%*", b="_d"}, | 138 | {a="%*", b="_d"}, |
@@ -401,23 +404,29 @@ trigraphs = { -- trigraphs or more | |||
401 | {a="^'ll(a)([%_]?[dt])", b="الّ%1%2"}, | 404 | {a="^'ll(a)([%_]?[dt])", b="الّ%1%2"}, |
402 | {a="([%s%-])'ll(a)([%_]?[dt])", b="%1الّ%2%3"}, | 405 | {a="([%s%-])'ll(a)([%_]?[dt])", b="%1الّ%2%3"}, |
403 | -- al- + lām | 406 | -- al- + lām |
407 | {a="([%s%-])(\"a)l%-(l)", b="%1ٱ%2ل%3%3"}, | ||
404 | {a="^(a)l%-(l)", b="ا%1ل%2%2"}, | 408 | {a="^(a)l%-(l)", b="ا%1ل%2%2"}, |
405 | {a="([%s%-])(a)l%-(l)", b="%1ا%2ل%3%3"}, | 409 | {a="([%s%-])(a)l%-(l)", b="%1ا%2ل%3%3"}, |
406 | -- al- + solar consonant | 410 | -- al- + solar consonant |
411 | {a="([%s%-])(\"a)l%-([%_%^%.]?[tdrzsn])", b="%1ٱ%2ل%3%3"}, | ||
407 | {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2%2"}, | 412 | {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2%2"}, |
408 | {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3%3"}, | 413 | {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3%3"}, |
409 | -- assim. art. + solar consonant | 414 | -- assim. art. + solar consonant |
415 | {a="([%s%-])(\"a)([%_%^%.]?[tdrzsn])%-", b="%1ٱ%2ل%3"}, | ||
410 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل%2"}, | 416 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل%2"}, |
411 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل%3"}, | 417 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل%3"}, |
412 | -- al- + initial unstable hamza | 418 | -- al- + initial unstable hamza |
419 | {a="([%s%-])(\"a)l%-(\")([uai])", b="%1ٱ%2ل%4ٱ"}, | ||
413 | {a="^(a)l%-(\")([uai])", b="ا%1ل%3ٱ"}, | 420 | {a="^(a)l%-(\")([uai])", b="ا%1ل%3ٱ"}, |
414 | {a="([%s%-])(a)l%-(\")([uai])", b="%1ا%2ل%4ٱ"}, | 421 | {a="([%s%-])(a)l%-(\")([uai])", b="%1ا%2ل%4ٱ"}, |
422 | {a="([%s%-])(\"a)l%-([uai])", b="%1ٱ%2ل%3ا"}, | ||
415 | {a="^(a)l%-([uai])", b="ا%1ل%2ا"}, | 423 | {a="^(a)l%-([uai])", b="ا%1ل%2ا"}, |
416 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2ل%3ا"}, | 424 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2ل%3ا"}, |
417 | -- li-/la- + art. + initial unstable hamza is a special orthography | 425 | -- li-/la- + art. + initial unstable hamza is a special orthography |
418 | {a="l([ai])%-l%-(\")([uai])", b="ل%1ل%3ٱ"}, | 426 | {a="l([ai])%-l%-(\")([uai])", b="ل%1ل%3ٱ"}, |
419 | {a="l([ai])%-l%-([uai])", b="ل%1ل%2ا"}, | 427 | {a="l([ai])%-l%-([uai])", b="ل%1ل%2ا"}, |
420 | -- al- + lunar consonant (i.e. what remains) | 428 | -- al- + lunar consonant (i.e. what remains) |
429 | {a="([%s%-])(\"a)l%-", b="%1ٱ%2ل"}, | ||
421 | {a="^(a)l%-", b="ا%1ل"}, | 430 | {a="^(a)l%-", b="ا%1ل"}, |
422 | {a="([%s%-])(a)l%-", b="%1ا%2ل"}, | 431 | {a="([%s%-])(a)l%-", b="%1ا%2ل"}, |
423 | -- diphthongs to be resolved before ʾalif conjunctionis | 432 | -- diphthongs to be resolved before ʾalif conjunctionis |
@@ -461,23 +470,29 @@ trigraphseasy = { -- differences marked below with 'easy' | |||
461 | {a="^'ll(a)([%_]?[dt])", b="الّ%1%2"}, | 470 | {a="^'ll(a)([%_]?[dt])", b="الّ%1%2"}, |
462 | {a="([%s%-])'ll(a)([%_]?[dt])", b="%1الّ%2%3"}, | 471 | {a="([%s%-])'ll(a)([%_]?[dt])", b="%1الّ%2%3"}, |
463 | -- al- + lām (easy) | 472 | -- al- + lām (easy) |
473 | {a="([%s%-])(\"a)l%-(l)", b="%1ٱ%2ل%3"}, | ||
464 | {a="^(a)l%-(l)", b="ا%1ل%2"}, | 474 | {a="^(a)l%-(l)", b="ا%1ل%2"}, |
465 | {a="([%s%-])(a)l%-(l)", b="%1ا%2ل%3"}, | 475 | {a="([%s%-])(a)l%-(l)", b="%1ا%2ل%3"}, |
466 | -- al- + solar consonant (easy) | 476 | -- al- + solar consonant (easy) |
477 | {a="([%s%-])(\"a)l%-([%_%^%.]?[tdrzsn])", b="%1ٱ%2ل%3"}, | ||
467 | {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2"}, | 478 | {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2"}, |
468 | {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3"}, | 479 | {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3"}, |
469 | -- assim. art. + solar consonant (easy) | 480 | -- assim. art. + solar consonant (easy) |
481 | {a="([%s%-])(\"a)([%_%^%.]?[tdrzsn])%-", b="%1ٱ%2ل"}, | ||
470 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل"}, | 482 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل"}, |
471 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل"}, | 483 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل"}, |
472 | -- al- + initial unstable hamza | 484 | -- al- + initial unstable hamza |
485 | {a="([%s%-])(\"a)l%-(\")([uai])", b="%1ٱ%2ل%4ٱ"}, | ||
473 | {a="^(a)l%-(\")([uai])", b="ا%1ل%3ٱ"}, | 486 | {a="^(a)l%-(\")([uai])", b="ا%1ل%3ٱ"}, |
474 | {a="([%s%-])(a)l%-(\")([uai])", b="%1ا%2ل%4ٱ"}, | 487 | {a="([%s%-])(a)l%-(\")([uai])", b="%1ا%2ل%4ٱ"}, |
488 | {a="([%s%-])(\"a)l%-([uai])", b="%1ٱ%2ل%3ا"}, | ||
475 | {a="^(a)l%-([uai])", b="ا%1ل%2ا"}, | 489 | {a="^(a)l%-([uai])", b="ا%1ل%2ا"}, |
476 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2ل%3ا"}, | 490 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2ل%3ا"}, |
477 | -- li-/la- + art. + initial unstable hamza is a special orthography | 491 | -- li-/la- + art. + initial unstable hamza is a special orthography |
478 | {a="l([ai])%-l%-(\")([uai])", b="ل%1ل%3ٱ"}, | 492 | {a="l([ai])%-l%-(\")([uai])", b="ل%1ل%3ٱ"}, |
479 | {a="l([ai])%-l%-([uai])", b="ل%1ل%2ا"}, | 493 | {a="l([ai])%-l%-([uai])", b="ل%1ل%2ا"}, |
480 | -- al- + lunar consonant (i.e. what remains) | 494 | -- al- + lunar consonant (i.e. what remains) |
495 | {a="([%s%-])(\"a)l%-", b="%1ٱ%2ل"}, | ||
481 | {a="^(a)l%-", b="ا%1ل"}, | 496 | {a="^(a)l%-", b="ا%1ل"}, |
482 | {a="([%s%-])(a)l%-", b="%1ا%2ل"}, | 497 | {a="([%s%-])(a)l%-", b="%1ا%2ل"}, |
483 | -- diphthongs to be resolved before ʾalif conjunctionis | 498 | -- diphthongs to be resolved before ʾalif conjunctionis |