diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 12:02:49 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 12:02:49 +0200 |
commit | 66827ccf15a7b86dcc2f7218b4b5e683fe1b72f3 (patch) | |
tree | cd8d5e9677e5b70d1e8e92537a7f0d96740a7169 /arabluatex.lua | |
parent | 191f92d3468bfd167d057c9db80ca650017283ac (diff) | |
download | arabluatex-66827ccf15a7b86dcc2f7218b4b5e683fe1b72f3.tar.gz |
almost done implementing Buckwalter scheme; testing romanization
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 5 |
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) | |||
515 | return str | 515 | return str |
516 | end | 516 | end |
517 | 517 | ||
518 | function processtrans(str, mode, rules) | 518 | function 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) |