aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-07-03 19:24:23 +0200
committerRobert Alessi <alessi@robertalessi.net>2016-07-03 19:24:23 +0200
commitd4e5c239b0d5cd9e974e172efc304c64446d8011 (patch)
tree734d6399be1c6b1795dd1e9bc68d0142459faed0 /arabluatex.lua
parentb80180736198d014be61e67844ce744bf003ef41 (diff)
downloadarabluatex-d4e5c239b0d5cd9e974e172efc304c64446d8011.tar.gz
arabluatex.sty now accepts Buckwalter scheme
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua10
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)
485return str 485return str
486end 486end
487 487
488function processfullvoc(str, rules) 488function 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)
500return str 503return str
501end 504end
502 505
503function processnovoc(str, rules) 506function 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