aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 9ed37c1..8238236 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -85,8 +85,6 @@ local albrkcmds = {
85 "end", 85 "end",
86 "par", 86 "par",
87 "LRmarginpar", 87 "LRmarginpar",
88 "Footnote",
89 "Marginpar",
90 "arbmark", 88 "arbmark",
91 "abjad" 89 "abjad"
92} 90}
@@ -128,15 +126,6 @@ local function breakcmd(str)
128 bodytext = string.sub(bodytext, 2, -2) 126 bodytext = string.sub(bodytext, 2, -2)
129 return string.format("\\al@brk{\\%s{%s}{\\arb{%s}}}", tag, bodycolor, bodytext) 127 return string.format("\\al@brk{\\%s{%s}{\\arb{%s}}}", tag, bodycolor, bodytext)
130 end) 128 end)
131 -- -- \arbcolor
132 -- str = string.gsub(str, "(.)(\\arbcolor%s?)(%b[])(%b{})(.)",
133 -- function (li, tag, opt, body, lii)
134 -- li = string.gsub(li, "%+", "‍") -- ^^^^200d
135 -- lii = string.gsub(lii, "%+", "‍") -- ^^^^200d
136 -- body = string.sub(body, 2, -2)
137 -- body = string.gsub(body, "%+", "‍") -- ^^^^200d
138 -- return string.format("%s%s%s{%s}%s", li, tag, opt, body, lii)
139 -- end)
140 -- commands set by default in outofarb 129 -- commands set by default in outofarb
141 for i = 1,#outofarb do 130 for i = 1,#outofarb do
142 str = gsub(str, dblbkslash * lpeg.Cs(outofarb[i]) * cmdargs, "}%1%2%3\\arb{") 131 str = gsub(str, dblbkslash * lpeg.Cs(outofarb[i]) * cmdargs, "}%1%2%3\\arb{")
@@ -312,7 +301,6 @@ local function voc(str, rules)
312 inside = string.gsub(inside, null[i].a, null[i].b) 301 inside = string.gsub(inside, null[i].a, null[i].b)
313 end 302 end
314 inside = indnum(inside) 303 inside = indnum(inside)
315-- return string.format("\\txarb{%s}", inside)
316 return string.format("\\arabicfont{}%s", inside) 304 return string.format("\\arabicfont{}%s", inside)
317 end) 305 end)
318return str 306return str
@@ -349,7 +337,6 @@ local function voceasy(str)
349 inside = string.gsub(inside, null[i].a, null[i].b) 337 inside = string.gsub(inside, null[i].a, null[i].b)
350 end 338 end
351 inside = indnum(inside) 339 inside = indnum(inside)
352-- return string.format("\\txarb{%s}", inside)
353 return string.format("\\arabicfont{}%s", inside) 340 return string.format("\\arabicfont{}%s", inside)
354 end) 341 end)
355return str 342return str
@@ -403,7 +390,6 @@ local function fullvoc(str, rules)
403 inside = string.gsub(inside, null[i].a, null[i].b) 390 inside = string.gsub(inside, null[i].a, null[i].b)
404 end 391 end
405 inside = indnum(inside) 392 inside = indnum(inside)
406-- return string.format("\\txarb{%s}", inside)
407 return string.format("\\arabicfont{}%s", inside) 393 return string.format("\\arabicfont{}%s", inside)
408 end) 394 end)
409return str 395return str
@@ -452,7 +438,6 @@ local function fullvoceasy(str, rules)
452 inside = string.gsub(inside, null[i].a, null[i].b) 438 inside = string.gsub(inside, null[i].a, null[i].b)
453 end 439 end
454 inside = indnum(inside) 440 inside = indnum(inside)
455-- return string.format("\\txarb{%s}", inside)
456 return string.format("\\arabicfont{}%s", inside) 441 return string.format("\\arabicfont{}%s", inside)
457 end) 442 end)
458return str 443return str
@@ -489,7 +474,6 @@ local function novoc(str)
489 inside = string.gsub(inside, null[i].a, null[i].b) 474 inside = string.gsub(inside, null[i].a, null[i].b)
490 end 475 end
491 inside = indnum(inside) 476 inside = indnum(inside)
492-- return string.format("\\txarb{%s}", inside)
493 return string.format("\\arabicfont{}%s", inside) 477 return string.format("\\arabicfont{}%s", inside)
494 end) 478 end)
495return str 479return str
@@ -526,7 +510,6 @@ local function novoceasy(str)
526 inside = string.gsub(inside, null[i].a, null[i].b) 510 inside = string.gsub(inside, null[i].a, null[i].b)
527 end 511 end
528 inside = indnum(inside) 512 inside = indnum(inside)
529-- return string.format("\\txarb{%s}", inside)
530 return string.format("\\arabicfont{}%s", inside) 513 return string.format("\\arabicfont{}%s", inside)
531 end) 514 end)
532return str 515return str