diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-06-18 17:05:37 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-06-18 17:05:37 +0200 |
commit | a675da7e9136e376f1ae95e1fa3cab87041372d1 (patch) | |
tree | eb7cc24109e99c703554708603ba991edafde91e | |
parent | 0aefecc9f54b3ad26dbbb468619b9adb9da109ba (diff) | |
download | arabluatex-a675da7e9136e376f1ae95e1fa3cab87041372d1.tar.gz |
color support: added new rules
-rw-r--r-- | arabluatex_fullvoc.lua | 14 | ||||
-rw-r--r-- | arabluatex_novoc.lua | 7 | ||||
-rw-r--r-- | arabluatex_trans.lua | 13 | ||||
-rw-r--r-- | arabluatex_voc.lua | 14 |
4 files changed, 48 insertions, 0 deletions
diff --git a/arabluatex_fullvoc.lua b/arabluatex_fullvoc.lua index d327479..6353f30 100644 --- a/arabluatex_fullvoc.lua +++ b/arabluatex_fullvoc.lua | |||
@@ -325,6 +325,13 @@ tanwinfv = { -- with assimilations (\SetArbDflt*) | |||
325 | -- quoted tanwīn (end) | 325 | -- quoted tanwīn (end) |
326 | {a="%-?(uN)", b="ٌ"}, | 326 | {a="%-?(uN)", b="ٌ"}, |
327 | {a="(B)%-?(aN)", b="%1ً"}, | 327 | {a="(B)%-?(aN)", b="%1ً"}, |
328 | -- *** | ||
329 | {a="%-?(aN)(O[%S]-%_AO)", b="ً"}, | ||
330 | {a="%-?(aN)(O[%S]-YO)", b="ً"}, | ||
331 | {a="(O[%S]-TO)%-?(aN)", b="ً"}, | ||
332 | {a="(O[%S]-)([اآ])(ء)(O)%-?(aN)", b="ً"}, --new | ||
333 | {a="(O[%S]-[^TA]O)%-?(aN)", b="ًا"}, | ||
334 | -- | ||
328 | {a="%-?(aN)(_A)", b="ًى"}, | 335 | {a="%-?(aN)(_A)", b="ًى"}, |
329 | {a="%-?(aN)(Y)", b="ًى"}, | 336 | {a="%-?(aN)(Y)", b="ًى"}, |
330 | {a="(T)%-?(aN)", b="%1ً"}, | 337 | {a="(T)%-?(aN)", b="%1ً"}, |
@@ -372,6 +379,13 @@ tanwinfveasy = { -- no assimilations (see below) | |||
372 | -- quoted tanwīn (end) | 379 | -- quoted tanwīn (end) |
373 | {a="%-?(uN)", b="ٌ"}, | 380 | {a="%-?(uN)", b="ٌ"}, |
374 | {a="(B)%-?(aN)", b="%1ً"}, | 381 | {a="(B)%-?(aN)", b="%1ً"}, |
382 | -- *** | ||
383 | {a="%-?(aN)(O[%S]-%_AO)", b="ً"}, | ||
384 | {a="%-?(aN)(O[%S]-YO)", b="ً"}, | ||
385 | {a="(O[%S]-TO)%-?(aN)", b="ً"}, | ||
386 | {a="(O[%S]-)([اآ])(ء)(O)%-?(aN)", b="ً"}, --new | ||
387 | {a="(O[%S]-[^TA]O)%-?(aN)", b="ًا"}, | ||
388 | -- | ||
375 | {a="%-?(aN)(_A)", b="ًى"}, | 389 | {a="%-?(aN)(_A)", b="ًى"}, |
376 | {a="%-?(aN)(Y)", b="ًى"}, | 390 | {a="%-?(aN)(Y)", b="ًى"}, |
377 | {a="(T)%-?(aN)", b="%1ً"}, | 391 | {a="(T)%-?(aN)", b="%1ً"}, |
diff --git a/arabluatex_novoc.lua b/arabluatex_novoc.lua index c2ee6f6..cc29371 100644 --- a/arabluatex_novoc.lua +++ b/arabluatex_novoc.lua | |||
@@ -53,6 +53,13 @@ tanwinnv = { | |||
53 | -- "quoted" tanwīn (end) | 53 | -- "quoted" tanwīn (end) |
54 | {a="%-?(uN)", b=""}, | 54 | {a="%-?(uN)", b=""}, |
55 | {a="(B)%-?(aN)", b="%1"}, | 55 | {a="(B)%-?(aN)", b="%1"}, |
56 | -- *** | ||
57 | {a="%-?(aN)(O[%S]-%_AO)", b=""}, | ||
58 | {a="%-?(aN)(O[%S]-YO)", b=""}, | ||
59 | {a="(O[%S]-TO)%-?(aN)", b=""}, | ||
60 | {a="(O[%S]-)([اآ])(ء)(O)%-?(aN)", b=""}, --new | ||
61 | {a="(O[%S]-[^TA]O)%-?(aN)", b=""}, | ||
62 | -- | ||
56 | {a="%-?(aN)(_A)", b="ى"}, | 63 | {a="%-?(aN)(_A)", b="ى"}, |
57 | {a="%-?(aN)(Y)", b="ى"}, | 64 | {a="%-?(aN)(Y)", b="ى"}, |
58 | {a="(T)%-?(aN)", b="%1"}, | 65 | {a="(T)%-?(aN)", b="%1"}, |
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 0adb69e..87f0c47 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -31,6 +31,7 @@ punctuationtr = { | |||
31 | 31 | ||
32 | nulltr = { | 32 | nulltr = { |
33 | {a="%|", b=""}, | 33 | {a="%|", b=""}, |
34 | {a="o", b=""}, | ||
34 | {a="O[%S]-O", b=""}, | 35 | {a="O[%S]-O", b=""}, |
35 | {a="[%^%_](.)", b="<??>%1"} | 36 | {a="[%^%_](.)", b="<??>%1"} |
36 | } | 37 | } |
@@ -254,6 +255,12 @@ tanwintrdmg = { | |||
254 | -- | 255 | -- |
255 | -- {a="uN", b="\\arbup{un}"}, (now included in the last line of this table) | 256 | -- {a="uN", b="\\arbup{un}"}, (now included in the last line of this table) |
256 | {a="%-?(\"?At)%-?([ui])N", b="\\arbup{%1%2n}"}, | 257 | {a="%-?(\"?At)%-?([ui])N", b="\\arbup{%1%2n}"}, |
258 | -- *** | ||
259 | {a="%-?(aN)(O[%S]-%_AO)", b="ạ\\arbup{n}"}, | ||
260 | {a="%-?(aN)(O[%S]-YO)", b="ạ\\arbup{n}"}, | ||
261 | {a="(O[%S]-TO)%-?(\"?aN)", b="\\arbup{an}"}, | ||
262 | {a="(O[%S]-[^TA]O)%-?(\"?aN)", b="\\arbup{an}"}, | ||
263 | -- | ||
257 | {a="%-?(aN)(_A)", b="ạ\\arbup{n}"}, | 264 | {a="%-?(aN)(_A)", b="ạ\\arbup{n}"}, |
258 | {a="%-?(aN)(Y)", b="ạ\\arbup{n}"}, | 265 | {a="%-?(aN)(Y)", b="ạ\\arbup{n}"}, |
259 | {a="(T)%-?(\"?aN)", b="t\\arbup{an}"}, | 266 | {a="(T)%-?(\"?aN)", b="t\\arbup{an}"}, |
@@ -584,6 +591,12 @@ tanwintrloc = { | |||
584 | {a="%-?iNI", b="in"}, | 591 | {a="%-?iNI", b="in"}, |
585 | {a="%-?(\"?At)%-?([ui])N", b="%1%2n"}, | 592 | {a="%-?(\"?At)%-?([ui])N", b="%1%2n"}, |
586 | {a="%-?([ui])N", b="%1n"}, | 593 | {a="%-?([ui])N", b="%1n"}, |
594 | -- *** | ||
595 | {a="%-?(aN)(O[%S]-%_AO)", b="an"}, | ||
596 | {a="%-?(aN)(O[%S]-YO)", b="an"}, | ||
597 | {a="(O[%S]-TO)%-?(\"?aN)", b="an"}, | ||
598 | {a="(O[%S]-[^TA]O)%-?(\"?aN)", b="an"}, | ||
599 | -- | ||
587 | {a="%-?(aN)(_A)", b="an"}, | 600 | {a="%-?(aN)(_A)", b="an"}, |
588 | {a="%-?(aN)(Y)", b="an"}, | 601 | {a="%-?(aN)(Y)", b="an"}, |
589 | {a="(T)%-?(\"?aN)", b="tan"}, | 602 | {a="(T)%-?(\"?aN)", b="tan"}, |
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua index 3155f91..e547f6b 100644 --- a/arabluatex_voc.lua +++ b/arabluatex_voc.lua | |||
@@ -454,6 +454,13 @@ tanwin = { | |||
454 | -- quoted tanwīn (end) | 454 | -- quoted tanwīn (end) |
455 | {a="%-?(uN)", b="ٌ"}, | 455 | {a="%-?(uN)", b="ٌ"}, |
456 | {a="(B)%-?(aN)", b="%1ً"}, | 456 | {a="(B)%-?(aN)", b="%1ً"}, |
457 | -- *** | ||
458 | {a="%-?(aN)(O[%S]-%_AO)", b="ً"}, | ||
459 | {a="%-?(aN)(O[%S]-YO)", b="ً"}, | ||
460 | {a="(O[%S]-TO)%-?(aN)", b="ً"}, | ||
461 | {a="(O[%S]-)([اآ])(ء)(O)%-?(aN)", b="ً"}, --new | ||
462 | {a="(O[%S]-[^TA]O)%-?(aN)", b="ًا"}, | ||
463 | -- | ||
457 | {a="%-?(aN)(_A)", b="ًى"}, | 464 | {a="%-?(aN)(_A)", b="ًى"}, |
458 | {a="%-?(aN)(Y)", b="ًى"}, | 465 | {a="%-?(aN)(Y)", b="ًى"}, |
459 | {a="(T)%-?(aN)", b="%1ً"}, | 466 | {a="(T)%-?(aN)", b="%1ً"}, |
@@ -496,6 +503,13 @@ tanwineasy = { -- 'easy' requires some lines to be taken out: | |||
496 | -- quoted tanwīn (end) | 503 | -- quoted tanwīn (end) |
497 | {a="%-?(uN)", b="ٌ"}, | 504 | {a="%-?(uN)", b="ٌ"}, |
498 | {a="(B)%-?(aN)", b="%1ً"}, | 505 | {a="(B)%-?(aN)", b="%1ً"}, |
506 | -- *** | ||
507 | {a="%-?(aN)(O[%S]-%_AO)", b="ً"}, | ||
508 | {a="%-?(aN)(O[%S]-YO)", b="ً"}, | ||
509 | {a="(O[%S]-TO)%-?(aN)", b="ً"}, | ||
510 | {a="(O[%S]-)([اآ])(ء)(O)%-?(aN)", b="ً"}, --new | ||
511 | {a="(O[%S]-[^TA]O)%-?(aN)", b="ًا"}, | ||
512 | -- | ||
499 | {a="%-?(aN)(_A)", b="ًى"}, | 513 | {a="%-?(aN)(_A)", b="ًى"}, |
500 | {a="%-?(aN)(Y)", b="ًى"}, | 514 | {a="%-?(aN)(Y)", b="ًى"}, |
501 | {a="(T)%-?(aN)", b="%1ً"}, | 515 | {a="(T)%-?(aN)", b="%1ً"}, |