aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-06-17 14:35:24 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-06-17 14:35:24 +0200
commit37f57f3d3ac8412ed7a302affd81041a20a2c18e (patch)
treead6da203026e2bcb5cb903a6234abaedf6022ed8
parent0a986331de7585e5440d1890894bd8977d77179d (diff)
downloadarabluatex-37f57f3d3ac8412ed7a302affd81041a20a2c18e.tar.gz
[b92f35e] font information was missing
-rw-r--r--arabluatex.dtx14
-rw-r--r--arabluatex.lua26
2 files changed, 22 insertions, 18 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 7f7a29b..f6f084a 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3513,8 +3513,8 @@ qAla barzawayhi bn-u 'azhar-a, ra's-u 'a.tibbA'-i fAris-a...
3513\begin{arabluaverbatim} 3513\begin{arabluaverbatim}
3514\usepackage{csquotes} 3514\usepackage{csquotes}
3515\DeclareQuoteStyle{arabic} 3515\DeclareQuoteStyle{arabic}
3516{\rmfamily\textquotedblright}{\rmfamily\textquotedblleft} 3516{\textquotedblright}{\textquotedblleft}
3517{\rmfamily\textquoteright}{\rmfamily\textquoteleft} 3517{\textquoteright}{\textquoteleft}
3518\end{arabluaverbatim} 3518\end{arabluaverbatim}
3519% \iffalse 3519% \iffalse
3520%</example> 3520%</example>
@@ -3781,7 +3781,7 @@ wa-ya.sIru ta.hta 'l-jild-i
3781% is actually coded in Lua. 3781% is actually coded in Lua.
3782% \changes{v1.12}{2018/06/11}{TODO} 3782% \changes{v1.12}{2018/06/11}{TODO}
3783% \begin{macrocode} 3783% \begin{macrocode}
3784\DeclareDocumentCommand{\MkArbBreak}{s m}{% 3784\NewDocumentCommand{\MkArbBreak}{s m}{%
3785 \IfBooleanTF{#1} 3785 \IfBooleanTF{#1}
3786 {\luadirect{mkarbbreak(\luastringN{#2}, "out")}} 3786 {\luadirect{mkarbbreak(\luastringN{#2}, "out")}}
3787 {\luadirect{mkarbbreak(\luastringN{#2}, "dflt")}} 3787 {\luadirect{mkarbbreak(\luastringN{#2}, "dflt")}}
@@ -3798,12 +3798,12 @@ wa-ya.sIru ta.hta 'l-jild-i
3798\AtBeginDocument{\ifdef{\aemph}% 3798\AtBeginDocument{\ifdef{\aemph}%
3799 {\RenewDocumentCommand{\aemph}{s m}{% 3799 {\RenewDocumentCommand{\aemph}{s m}{%
3800 \IfBooleanTF{#1}{% 3800 \IfBooleanTF{#1}{%
3801 $\overline{\text{#2}}$} 3801 \luadirect{tex.sprint(aemph(\luastringN{#2}, "over"))}}
3802 {\luadirect{tex.sprint(aemph(\luastringN{#2}))}}}} 3802 {\luadirect{tex.sprint(aemph(\luastringN{#2}, "dflt"))}}}}
3803 {\NewDocumentCommand{\aemph}{s m}{% 3803 {\NewDocumentCommand{\aemph}{s m}{%
3804 \IfBooleanTF{#1}{% 3804 \IfBooleanTF{#1}{%
3805 $\overline{\text{#2}}$} 3805 \luadirect{tex.sprint(aemph(\luastringN{#2}, "over"))}}
3806 {\luadirect{tex.sprint(aemph(\luastringN{#2}))}}}}} 3806 {\luadirect{tex.sprint(aemph(\luastringN{#2}, "dflt"))}}}}}
3807% \end{macrocode} 3807% \end{macrocode}
3808% \end{macro} 3808% \end{macro}
3809% \end{macro} 3809% \end{macro}
diff --git a/arabluatex.lua b/arabluatex.lua
index deffac1..3078490 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -262,8 +262,8 @@ local function takeoutarb(str)
262 end) 262 end)
263 end 263 end
264 str = string.gsub(str, "(\\arb%s?)(%b{})", function(tag, body) 264 str = string.gsub(str, "(\\arb%s?)(%b{})", function(tag, body)
265 body = string.sub(body, 2, -2) 265 body = string.sub(body, 2, -2)
266 return string.format("%s", body) 266 return string.format("%s", body)
267 end) 267 end)
268 str = string.gsub(str, "\\@rb", "\\arb") 268 str = string.gsub(str, "\\@rb", "\\arb")
269 str = "\\arb{"..str.."}" 269 str = "\\arb{"..str.."}"
@@ -313,7 +313,7 @@ local function voc(str, rules)
313 end 313 end
314 inside = indnum(inside) 314 inside = indnum(inside)
315-- return string.format("\\txarb{%s}", inside) 315-- return string.format("\\txarb{%s}", inside)
316 return string.format("%s", inside) 316 return string.format("\\arabicfont{}%s", inside)
317 end) 317 end)
318return str 318return str
319end 319end
@@ -350,7 +350,7 @@ local function voceasy(str)
350 end 350 end
351 inside = indnum(inside) 351 inside = indnum(inside)
352-- return string.format("\\txarb{%s}", inside) 352-- return string.format("\\txarb{%s}", inside)
353 return string.format("%s", inside) 353 return string.format("\\arabicfont{}%s", inside)
354 end) 354 end)
355return str 355return str
356end 356end
@@ -404,7 +404,7 @@ local function fullvoc(str, rules)
404 end 404 end
405 inside = indnum(inside) 405 inside = indnum(inside)
406-- return string.format("\\txarb{%s}", inside) 406-- return string.format("\\txarb{%s}", inside)
407 return string.format("%s", inside) 407 return string.format("\\arabicfont{}%s", inside)
408 end) 408 end)
409return str 409return str
410end 410end
@@ -453,7 +453,7 @@ local function fullvoceasy(str, rules)
453 end 453 end
454 inside = indnum(inside) 454 inside = indnum(inside)
455-- return string.format("\\txarb{%s}", inside) 455-- return string.format("\\txarb{%s}", inside)
456 return string.format("%s", inside) 456 return string.format("\\arabicfont{}%s", inside)
457 end) 457 end)
458return str 458return str
459end 459end
@@ -490,7 +490,7 @@ local function novoc(str)
490 end 490 end
491 inside = indnum(inside) 491 inside = indnum(inside)
492-- return string.format("\\txarb{%s}", inside) 492-- return string.format("\\txarb{%s}", inside)
493 return string.format("%s", inside) 493 return string.format("\\arabicfont{}%s", inside)
494 end) 494 end)
495return str 495return str
496end 496end
@@ -527,7 +527,7 @@ local function novoceasy(str)
527 end 527 end
528 inside = indnum(inside) 528 inside = indnum(inside)
529-- return string.format("\\txarb{%s}", inside) 529-- return string.format("\\txarb{%s}", inside)
530 return string.format("%s", inside) 530 return string.format("\\arabicfont{}%s", inside)
531 end) 531 end)
532return str 532return str
533end 533end
@@ -862,11 +862,15 @@ function abraces(str)
862 return str 862 return str
863end 863end
864 864
865function aemph(str) 865function aemph(str, opt)
866 if tex.textdir == "TRT" then 866 if tex.textdir == "TRT" then
867 str = "$\\overline{\\text{"..str.."}}$" 867 str = "$\\overline{\\text{\\textdir TRT{}"..str.."}}$"
868 elseif tex.textdir == "TLT" then 868 elseif tex.textdir == "TLT" then
869 str = "$\\underline{\\text{"..str.."}}$" 869 if opt == "over" then
870 str = "$\\overline{\\text{"..str.."}}$"
871 else
872 str = "$\\underline{\\text{"..str.."}}$"
873 end
870 end 874 end
871 return str 875 return str
872end 876end