summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-14 21:27:26 +0000
committerKarl Berry <karl@freefriends.org>2024-02-14 21:27:26 +0000
commitab29c2d5bbd39ba5d246a6260bc83acd7f5eca64 (patch)
treedda42be5857fbe3acdcc4f46dcf7dde9731d32b5
parentbf10c9df91f9956204ce8b9cfa145956024fe37f (diff)
lt3luabridge (14feb24)
git-svn-id: svn://tug.org/texlive/trunk@69856 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg2
-rw-r--r--Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdfbin494475 -> 497075 bytes
-rw-r--r--Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx44
-rw-r--r--Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty6
-rw-r--r--Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex30
-rw-r--r--Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex2
6 files changed, 58 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg b/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg
index 4e131f18492..e562506f72c 100644
--- a/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg
+++ b/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg
@@ -1,6 +1,6 @@
\preamble
-Copyright (C) 2016-2022 Vít Novotný
+Copyright (C) 2016-2024 Vít Novotný
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
diff --git a/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf b/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf
index 79d59210e7a..2972fad79fa 100644
--- a/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf
+++ b/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx b/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx
index 3b9c483ba8f..67cc73c7387 100644
--- a/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx
+++ b/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx
@@ -39,7 +39,7 @@
% }
%
% \author{^^A
-% Vít Novotný\thanks
+% Vít Starý Novotný\thanks
% {^^A
% E-mail:
% \href{mailto:witiko@mail.muni.cz}
@@ -47,7 +47,7 @@
% }^^A
% }
%
-% \date{Released 2022-10-24}
+% \date{Released 2024-02-14}
%
% \maketitle
%
@@ -108,6 +108,14 @@
% the \cs{luabridge_now:e} function.
% \end{function}
%
+% \begin{function}[added = 2024-02-14]{\luabridge_tl_set:Nn}
+% \begin{syntax}
+% \cs{luabridge_tl_set:Nn} \meta{tl var} \Arg{token list}
+% \end{syntax}
+% Like \cs{lua_now:n} but the result of executing the Lua code is stored in
+% \meta{tl var} instead of being inserted into \TeX's input stream.
+% \end{function}
+%
% \section{Setting and getting the method to execute \Lua{} code}
%
% There are several methods that can be used to execute \Lua{} code. This
@@ -286,7 +294,7 @@
\c_luabridge_default_error_output_filename_str
}
\cs_new:Nn
- \luabridge_now:n
+ \luabridge_tl_set:Nn
{
\iow_open:NV
\g_tmpa_iow
@@ -304,7 +312,7 @@
% \begin{macrocode}
\tl_set:Nx
\l_tmpa_tl
- { \tl_to_str:n { #1 } }
+ { \tl_to_str:n { #2 } }
\regex_replace_all:nnN
{ [\\"] }
{ \\\0 }
@@ -355,9 +363,8 @@
\g_luabridge_helper_script_filename_str
}
{ }
- \l_tmpa_tl
+ #1
{
- \l_tmpa_tl
}
{
\msg_error:nn
@@ -420,11 +427,11 @@
{ \c_luabridge_method_directlua_int }
{
\cs_new:Nn
- \luabridge_now:n
+ \luabridge_tl_set:Nn
{
\tl_set:Nn
\l_tmpa_tl
- { #1 }
+ { #2 }
\tl_set:Nx
\l_tmpa_tl
{
@@ -442,13 +449,26 @@
end~
\exp_not:V \l_tmpa_tl
}
- \lua_now:V
- \l_tmpa_tl
+ \tl_set:Nf
+ #1
+ {
+ \lua_now:V
+ \l_tmpa_tl
+ }
}
\cs_generate_variant:Nn
\lua_now:n
{ V }
}
+\cs_new:Nn
+ \luabridge_now:n
+ {
+ \luabridge_tl_set:Nn
+ \l_tmpb_tl
+ { #1 }
+ \tl_use:N
+ \l_tmpb_tl
+ }
\cs_new_protected:Npn
\luabridgeExecute
#1
@@ -472,8 +492,8 @@
\RequirePackage{expl3}
\ProvidesExplPackage
{lt3luabridge}%
- {2022-10-24}%
- {2.0.2}%
+ {2024-02-14}%
+ {2.1.0}%
{An expl3 package that allows you to execute Lua code in LuaTeX or any other
TeX engine that exposes the shell}
\input lt3luabridge\relax
diff --git a/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty b/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty
index 0d64a58a9be..7f3827b207b 100644
--- a/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty
+++ b/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty
@@ -6,7 +6,7 @@
%%
%% lt3luabridge.dtx (with options: `latex-package')
%%
-%% Copyright (C) 2016-2022 Vít Novotný
+%% Copyright (C) 2016-2024 Vít Novotný
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -45,8 +45,8 @@
\RequirePackage{expl3}
\ProvidesExplPackage
{lt3luabridge}%
- {2022-10-24}%
- {2.0.2}%
+ {2024-02-14}%
+ {2.1.0}%
{An expl3 package that allows you to execute Lua code in LuaTeX or any other
TeX engine that exposes the shell}
\input lt3luabridge\relax
diff --git a/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex b/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex
index f9867e41cd6..256456220e0 100644
--- a/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex
+++ b/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex
@@ -6,7 +6,7 @@
%%
%% lt3luabridge.dtx (with options: `generic-package')
%%
-%% Copyright (C) 2016-2022 Vít Novotný
+%% Copyright (C) 2016-2024 Vít Novotný
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -150,7 +150,7 @@
\c_luabridge_default_error_output_filename_str
}
\cs_new:Nn
- \luabridge_now:n
+ \luabridge_tl_set:Nn
{
\iow_open:NV
\g_tmpa_iow
@@ -161,7 +161,7 @@
\g_luabridge_helper_script_filename_str
\tl_set:Nx
\l_tmpa_tl
- { \tl_to_str:n { #1 } }
+ { \tl_to_str:n { #2 } }
\regex_replace_all:nnN
{ [\\"] }
{ \\\0 }
@@ -212,9 +212,8 @@
\g_luabridge_helper_script_filename_str
}
{ }
- \l_tmpa_tl
+ #1
{
- \l_tmpa_tl
}
{
\msg_error:nn
@@ -277,11 +276,11 @@
{ \c_luabridge_method_directlua_int }
{
\cs_new:Nn
- \luabridge_now:n
+ \luabridge_tl_set:Nn
{
\tl_set:Nn
\l_tmpa_tl
- { #1 }
+ { #2 }
\tl_set:Nx
\l_tmpa_tl
{
@@ -299,13 +298,26 @@
end~
\exp_not:V \l_tmpa_tl
}
- \lua_now:V
- \l_tmpa_tl
+ \tl_set:Nf
+ #1
+ {
+ \lua_now:V
+ \l_tmpa_tl
+ }
}
\cs_generate_variant:Nn
\lua_now:n
{ V }
}
+\cs_new:Nn
+ \luabridge_now:n
+ {
+ \luabridge_tl_set:Nn
+ \l_tmpb_tl
+ { #1 }
+ \tl_use:N
+ \l_tmpb_tl
+ }
\cs_new_protected:Npn
\luabridgeExecute
#1
diff --git a/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex b/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex
index f142d0965f5..ac4eed7372b 100644
--- a/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex
+++ b/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex
@@ -6,7 +6,7 @@
%%
%% lt3luabridge.dtx (with options: `context-package')
%%
-%% Copyright (C) 2016-2022 Vít Novotný
+%% Copyright (C) 2016-2024 Vít Novotný
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c