diff options
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 |