diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 19:24:23 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-07-03 19:24:23 +0200 |
commit | d4e5c239b0d5cd9e974e172efc304c64446d8011 (patch) | |
tree | 734d6399be1c6b1795dd1e9bc68d0142459faed0 /arabluatex.lua | |
parent | b80180736198d014be61e67844ce744bf003ef41 (diff) | |
download | arabluatex-d4e5c239b0d5cd9e974e172efc304c64446d8011.tar.gz |
arabluatex.sty now accepts Buckwalter scheme
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 5400a62..b21ee63 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -485,12 +485,15 @@ function processvoc(str, rules, scheme) | |||
485 | return str | 485 | return str |
486 | end | 486 | end |
487 | 487 | ||
488 | function processfullvoc(str, rules) | 488 | function processfullvoc(str, rules, scheme) |
489 | str = "\\arb{".. str.."}" | 489 | str = "\\arb{".. str.."}" |
490 | str = takeoutcapetc(str) | 490 | str = takeoutcapetc(str) |
491 | str = protectarb(str) | 491 | str = protectarb(str) |
492 | str = breakcmd(str) | 492 | str = breakcmd(str) |
493 | str = holdcmd(str) | 493 | str = holdcmd(str) |
494 | if scheme == "buckwalter" then | ||
495 | str = processbuckw(str) | ||
496 | else end | ||
494 | if rules == "easy" then | 497 | if rules == "easy" then |
495 | str = fullvoceasy(str) | 498 | str = fullvoceasy(str) |
496 | elseif rules == "dflt" then | 499 | elseif rules == "dflt" then |
@@ -500,12 +503,15 @@ function processfullvoc(str, rules) | |||
500 | return str | 503 | return str |
501 | end | 504 | end |
502 | 505 | ||
503 | function processnovoc(str, rules) | 506 | function processnovoc(str, rules, scheme) |
504 | str = "\\arb{".. str.."}" | 507 | str = "\\arb{".. str.."}" |
505 | str = takeoutcapetc(str) | 508 | str = takeoutcapetc(str) |
506 | str = protectarb(str) | 509 | str = protectarb(str) |
507 | str = breakcmd(str) | 510 | str = breakcmd(str) |
508 | str = holdcmd(str) | 511 | str = holdcmd(str) |
512 | if scheme == "buckwalter" then | ||
513 | str = processbuckw(str) | ||
514 | else end | ||
509 | if rules == "easy" then | 515 | if rules == "easy" then |
510 | str = novoceasy(str) | 516 | str = novoceasy(str) |
511 | elseif rules == "dflt" then | 517 | elseif rules == "dflt" then |