texlive[69867] branches/branch2023.final/Master/texmf-dist:
commits+karl at tug.org
commits+karl at tug.org
Wed Feb 14 22:34:03 CET 2024
Revision: 69867
https://tug.org/svn/texlive?view=revision&revision=69867
Author: karl
Date: 2024-02-14 22:34:03 +0100 (Wed, 14 Feb 2024)
Log Message:
-----------
lt3luabridge (branch) (14feb24)
Modified Paths:
--------------
branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg
branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf
branches/branch2023.final/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx
branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty
branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex
branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex
Modified: branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg 2024-02-14 21:33:53 UTC (rev 69866)
+++ branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/docstrip.cfg 2024-02-14 21:34:03 UTC (rev 69867)
@@ -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
Modified: branches/branch2023.final/Master/texmf-dist/doc/generic/lt3luabridge/lt3luabridge.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx 2024-02-14 21:33:53 UTC (rev 69866)
+++ branches/branch2023.final/Master/texmf-dist/source/generic/lt3luabridge/lt3luabridge.dtx 2024-02-14 21:34:03 UTC (rev 69867)
@@ -39,7 +39,7 @@
% }
%
% \author{^^A
-% Vít Novotný\thanks
+% Vít Starý Novotný\thanks
% {^^A
% E-mail:
% \href{mailto:witiko at 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
Modified: branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty 2024-02-14 21:33:53 UTC (rev 69866)
+++ branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.sty 2024-02-14 21:34:03 UTC (rev 69867)
@@ -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
Modified: branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex 2024-02-14 21:33:53 UTC (rev 69866)
+++ branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/lt3luabridge.tex 2024-02-14 21:34:03 UTC (rev 69867)
@@ -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
Modified: branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex 2024-02-14 21:33:53 UTC (rev 69866)
+++ branches/branch2023.final/Master/texmf-dist/tex/generic/lt3luabridge/t-lt3luabridge.tex 2024-02-14 21:34:03 UTC (rev 69867)
@@ -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
More information about the tex-live-commits
mailing list.