diff options
author | Robert Alessi <alessi@robertalessi.net> | 2017-03-29 19:00:46 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2017-03-29 19:00:46 +0200 |
commit | d6da69f0a4cbefd1ccb2576fa56892852bb6aec5 (patch) | |
tree | f090a60431614998c192b55e052c46e9f632c515 | |
parent | d8abc9adb943adb7e3e2c8cac80345d7675e3b58 (diff) | |
download | arabluatex-d6da69f0a4cbefd1ccb2576fa56892852bb6aec5.tar.gz |
a few rules have been improved in dmg and loc transliterations (forms without final inflections)
-rw-r--r-- | arabluatex_trans.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 5e7dbe5..275e235 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -329,8 +329,11 @@ digraphstrdmg = { | |||
329 | {a="([%_]?[Ii])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="i%2%3"}, | 329 | {a="([%_]?[Ii])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="i%2%3"}, |
330 | {a="%-%-", b=""}, | 330 | {a="%-%-", b=""}, |
331 | -- {a="T([^uai])", b="%1"}, | 331 | -- {a="T([^uai])", b="%1"}, |
332 | {a="([a%'][%_%^%.]?[tdrzsln]%-)(.-)T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="%1%2h%3%4"}, --p | ||
333 | {a="T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="t%1%2"}, --p | ||
332 | {a="T(%p?%s)", b="h%1"}, | 334 | {a="T(%p?%s)", b="h%1"}, |
333 | {a="T(%p?)$", b="h%1"}, | 335 | {a="T(%p?)$", b="h%1"}, |
336 | {a="T(%p?)(%W)", b="h%1%2"}, | ||
334 | {a="_t", b="ṯ"}, | 337 | {a="_t", b="ṯ"}, |
335 | {a="%^g", b="ğ"}, | 338 | {a="%^g", b="ğ"}, |
336 | {a="%.h", b="ḥ"}, | 339 | {a="%.h", b="ḥ"}, |
@@ -479,7 +482,7 @@ tanwintrloc = { | |||
479 | trigraphstrloc = { -- trigraphs or more | 482 | trigraphstrloc = { -- trigraphs or more |
480 | -- 'llatI / 'llad_I | 483 | -- 'llatI / 'llad_I |
481 | {a="^'ll(a)([%_]?[dt])", b="all%1%2"}, | 484 | {a="^'ll(a)([%_]?[dt])", b="all%1%2"}, |
482 | {a="(%s)'ll(a)([%_]?[dt])", b="%1all%2%3"}, | 485 | {a="([%(%[%|%<%s])'ll(a)([%_]?[dt])", b="%1all%2%3"}, --p |
483 | -- al- + lām | 486 | -- al- + lām |
484 | {a="^(a)l%-(l)", b="%1l-%2"}, | 487 | {a="^(a)l%-(l)", b="%1l-%2"}, |
485 | {a="(%s)(a)l%-(l)", b="%1%2l-%3"}, | 488 | {a="(%s)(a)l%-(l)", b="%1%2l-%3"}, |
@@ -544,9 +547,13 @@ digraphstrloc = { | |||
544 | {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza | 547 | {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza |
545 | {a="%-%-", b=""}, | 548 | {a="%-%-", b=""}, |
546 | {a="uww", b="ūw"}, | 549 | {a="uww", b="ūw"}, |
550 | {a="iyy$", b="ī"}, | ||
551 | {a="iyy(%W)", b="ī%1"}, | ||
547 | {a="iyy", b="īy"}, | 552 | {a="iyy", b="īy"}, |
548 | {a="([tkdsg])(h)", b="%1'%2"}, | 553 | {a="([tkdsg])(h)", b="%1'%2"}, |
549 | -- {a="T([^uai])", b="h%1"}, | 554 | -- {a="T([^uai])", b="h%1"}, |
555 | {a="([a%']l%-)(.-)T([%(%[%|%<%s])(al%-)", b="%1%2h%3%4"}, --p | ||
556 | {a="T([%(%[%|%<%s])(al%-)", b="t%1%2"}, --p | ||
550 | {a="T$", b="h"}, | 557 | {a="T$", b="h"}, |
551 | {a="T(%W)", b="h%1"}, | 558 | {a="T(%W)", b="h%1"}, |
552 | {a="_t", b="th"}, | 559 | {a="_t", b="th"}, |