aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx18
-rw-r--r--arabluatex.lua6
2 files changed, 15 insertions, 9 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index a2a61cd..0142c1e 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4640,7 +4640,7 @@ wa-ya.sIru ta.hta 'l-jild-i
4640% \end{macrocode} 4640% \end{macrocode}
4641% \end{macro} 4641% \end{macro}
4642% 4642%
4643% \paragraph{Exporting Unicode Arabic to external file} 4643% \paragraph*{Exporting Unicode Arabic to external file}
4644% \begin{macro}{\SetArbOutSuffix} 4644% \begin{macro}{\SetArbOutSuffix}
4645% \changes{v1.13}{2018/08/13}{Sets a suffix to be appended to the 4645% \changes{v1.13}{2018/08/13}{Sets a suffix to be appended to the
4646% filename of the external Unicode file.}By default, |_out| is the 4646% filename of the external Unicode file.}By default, |_out| is the
@@ -4654,11 +4654,16 @@ wa-ya.sIru ta.hta 'l-jild-i
4654% \end{macrocode} 4654% \end{macrocode}
4655% \end{macro} 4655% \end{macro}
4656% \begin{macro}{\ArbOutFile} 4656% \begin{macro}{\ArbOutFile}
4657% \changes{v1.13}{2018/08/13}{Silently exports its argument in the selected 4657% \changes{v1.13}{2018/08/13}{Silently exports its argument in the
4658% external file.} \cs{ArbOutFile}\oarg{newline}\marg{string} silently 4658% selected external file.}
4659% exports \meta{string} to the external selected file. It may take 4659% \cs{ArbOutFile}\oarg{newline}\marg{string} silently exports
4660% |newline| as an optional argument in which case a carriage return is 4660% \meta{string} to the external selected file. It may take |newline|
4661% appended to |string|. 4661% as an optional argument in which case a carriage return is
4662% appended to |string|.
4663% \begin{macro}{\ArbOutFile*}
4664% \cs{ArbOutFile*}\oarg{newline}\marg{string} does the same as
4665% \cs{ArbOutFile} but also inserts \meta{string} in the current
4666% |.tex| source file.
4662% \begin{macrocode} 4667% \begin{macrocode}
4663\NewDocumentCommand{\ArbOutFile}{s O{no} +m}{% 4668\NewDocumentCommand{\ArbOutFile}{s O{no} +m}{%
4664 \if@pkg@export% 4669 \if@pkg@export%
@@ -4668,6 +4673,7 @@ wa-ya.sIru ta.hta 'l-jild-i
4668 \else\IfBooleanTF{#1}{#3}{}\fi} 4673 \else\IfBooleanTF{#1}{#3}{}\fi}
4669% \end{macrocode} 4674% \end{macrocode}
4670% \end{macro} 4675% \end{macro}
4676% \end{macro}
4671% \begin{environment}{arabexport} 4677% \begin{environment}{arabexport}
4672% \changes{v1.13}{2018/08/13}{Processes and print its argument in 4678% \changes{v1.13}{2018/08/13}{Processes and print its argument in
4673% the current file and exports it in full Unicode in the external 4679% the current file and exports it in full Unicode in the external
diff --git a/arabluatex.lua b/arabluatex.lua
index 3bb9211..67c6cec 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -805,7 +805,7 @@ function processvoc(str, rules, scheme)
805 tofile = "\\txarb{"..str.."}" 805 tofile = "\\txarb{"..str.."}"
806 tooutfile(tofile) 806 tooutfile(tofile)
807 elseif export_utf == "arabverse" then 807 elseif export_utf == "arabverse" then
808 tofile = "\\txarb{"..str.."}" 808 tofile = str
809 tooutfile(tofile) 809 tooutfile(tofile)
810 return str 810 return str
811 else 811 else
@@ -836,7 +836,7 @@ function processfullvoc(str, rules, scheme)
836 tofile = "\\txarb{"..str.."}" 836 tofile = "\\txarb{"..str.."}"
837 tooutfile(tofile) 837 tooutfile(tofile)
838 elseif export_utf == "arabverse" then 838 elseif export_utf == "arabverse" then
839 tofile = "\\txarb{"..str.."}" 839 tofile = str
840 tooutfile(tofile) 840 tooutfile(tofile)
841 return str 841 return str
842 else 842 else
@@ -865,7 +865,7 @@ function processnovoc(str, rules, scheme)
865 tofile = "\\txarb{"..str.."}" 865 tofile = "\\txarb{"..str.."}"
866 tooutfile(tofile) 866 tooutfile(tofile)
867 elseif export_utf == "arabverse" then 867 elseif export_utf == "arabverse" then
868 tofile = "\\txarb{"..str.."}" 868 tofile = str
869 tooutfile(tofile) 869 tooutfile(tofile)
870 return str 870 return str
871 else 871 else