diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-06-17 15:20:15 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-06-17 15:20:15 +0200 |
commit | 0aefecc9f54b3ad26dbbb468619b9adb9da109ba (patch) | |
tree | 83dab78dbc8beca7a43c632830a668c35c87f764 | |
parent | 37f57f3d3ac8412ed7a302affd81041a20a2c18e (diff) | |
download | arabluatex-0aefecc9f54b3ad26dbbb468619b9adb9da109ba.tar.gz |
font information to be applied to romanized Arabic was missing too
-rw-r--r-- | arabluatex.dtx | 2 | ||||
-rw-r--r-- | arabluatex.lua | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index f6f084a..6fb2993 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -3967,7 +3967,7 @@ wa-ya.sIru ta.hta 'l-jild-i | |||
3967 | \NewDocumentCommand{\txarb}{+m}{\bgroup\textdir | 3967 | \NewDocumentCommand{\txarb}{+m}{\bgroup\textdir |
3968 | TRT\arabicfont#1\egroup} | 3968 | TRT\arabicfont#1\egroup} |
3969 | \NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir | 3969 | \NewDocumentCommand{\txtrans}{+m}{\bgroup\textdir |
3970 | TLT\al@trans@font#1\egroup} | 3970 | TLT\al@trans@font\al@trans@style#1\egroup} |
3971 | % \end{macrocode} | 3971 | % \end{macrocode} |
3972 | % \end{macro} | 3972 | % \end{macro} |
3973 | % \end{macro} | 3973 | % \end{macro} |
diff --git a/arabluatex.lua b/arabluatex.lua index 3078490..9ed37c1 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -567,8 +567,7 @@ local function transdmg(str, rules) | |||
567 | for i = 1,#nulltr do | 567 | for i = 1,#nulltr do |
568 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 568 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
569 | end | 569 | end |
570 | -- return string.format("\\txtrans{%s}", inside) | 570 | return string.format("\\txtrans{%s}", inside) |
571 | return string.format("%s", inside) | ||
572 | end) | 571 | end) |
573 | return str | 572 | return str |
574 | end | 573 | end |
@@ -606,8 +605,7 @@ local function transloc(str) | |||
606 | for i = 1,#nulltr do | 605 | for i = 1,#nulltr do |
607 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 606 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
608 | end | 607 | end |
609 | -- return string.format("\\txtrans{%s}", inside) | 608 | return string.format("\\txtrans{%s}", inside) |
610 | return string.format("%s", inside) | ||
611 | end) | 609 | end) |
612 | return str | 610 | return str |
613 | end | 611 | end |
@@ -642,8 +640,7 @@ local function transarabica(str) | |||
642 | for i = 1,#nulltr do | 640 | for i = 1,#nulltr do |
643 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) | 641 | inside = string.gsub(inside, nulltr[i].a, nulltr[i].b) |
644 | end | 642 | end |
645 | -- return string.format("\\txtrans{%s}", inside) | 643 | return string.format("\\txtrans{%s}", inside) |
646 | return string.format("%s", inside) | ||
647 | end) | 644 | end) |
648 | return str | 645 | return str |
649 | end | 646 | end |
@@ -741,7 +738,7 @@ return str | |||
741 | end | 738 | end |
742 | 739 | ||
743 | function newarbmark(abbr, rtlmk, ltrmk) | 740 | function newarbmark(abbr, rtlmk, ltrmk) |
744 | rtlmk = "\\arabicfont "..rtlmk | 741 | rtlmk = "\\arabicfont{}"..rtlmk |
745 | table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) | 742 | table.insert(arbmarks, {a = abbr, b = rtlmk, c = ltrmk}) |
746 | table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) | 743 | table.sort(arbmarks, function(a ,b) return(#a.a > #b.a) end) |
747 | return true | 744 | return true |