aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-07-03 12:02:49 +0200
committerRobert Alessi <alessi@robertalessi.net>2016-07-03 12:02:49 +0200
commit66827ccf15a7b86dcc2f7218b4b5e683fe1b72f3 (patch)
treecd8d5e9677e5b70d1e8e92537a7f0d96740a7169 /arabluatex.lua
parent191f92d3468bfd167d057c9db80ca650017283ac (diff)
downloadarabluatex-66827ccf15a7b86dcc2f7218b4b5e683fe1b72f3.tar.gz
almost done implementing Buckwalter scheme; testing romanization
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 9134ce5..5400a62 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -515,12 +515,15 @@ function processnovoc(str, rules)
515return str 515return str
516end 516end
517 517
518function processtrans(str, mode, rules) 518function processtrans(str, mode, rules, scheme)
519 str = "\\arb{".. str.."}" 519 str = "\\arb{".. str.."}"
520 str = takeoutabjad(str) 520 str = takeoutabjad(str)
521 str = protectarb(str) 521 str = protectarb(str)
522 str = breakcmd(str) 522 str = breakcmd(str)
523 str = holdcmd(str) 523 str = holdcmd(str)
524 if scheme == "buckwalter" then
525 str = processbuckw(str)
526 else end
524 if mode == "dmg" then 527 if mode == "dmg" then
525 if rules == "easy" then 528 if rules == "easy" then
526 str = transdmgeasy(str) 529 str = transdmgeasy(str)