diff options
Diffstat (limited to 'macros/latex-dev/base/ltluatex.dtx')
-rw-r--r-- | macros/latex-dev/base/ltluatex.dtx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/macros/latex-dev/base/ltluatex.dtx b/macros/latex-dev/base/ltluatex.dtx index a15019dcd5..315b62cc9e 100644 --- a/macros/latex-dev/base/ltluatex.dtx +++ b/macros/latex-dev/base/ltluatex.dtx @@ -30,7 +30,7 @@ %<*plain> % \fi % \ProvidesFile{ltluatex.dtx} -[2024/02/11 v1.2c +[2024/08/16 v1.2e % LaTeX Kernel (LuaTeX support)^^A %\iffalse %<plain> LuaTeX support for plain TeX (core)% @@ -330,6 +330,8 @@ % field |date| in the usual \LaTeX{} format |yyyy/mm/dd|. Optional fields % |version| (a string) and |description| may be used if present. This % information will be recorded in the log. Other fields are ignored. +% If the |version| begins with a digit, a \texttt{v} will be added at the +% start in the log. % % \noindent % \DescribeMacro{module_info} @@ -420,7 +422,7 @@ % same callback and descriptions. % % The callback functions do not have to be registered yet when the functions is called. -% Ony the constraints for which both callback descriptions refer to callbacks +% Only the constraints for which both callback descriptions refer to callbacks % registered at the time the callback is called will have an effect. % % \endgroup @@ -1004,6 +1006,8 @@ local modules = modules or { } % \begin{macro}{provides_module} % \changes{v1.0a}{2015/09/24}{Function added} % \changes{v1.0f}{2015/10/03}{use luatexbase\_log} +% \changes{v1.2d}{2024/06/04}{Add \texttt{v} to version string if required (gh/1364)} +% \changes{v1.2e}{2024/08/16}{Support missing version string (gh/1443)} % Local function to write to the log. % \begin{macrocode} local function luatexbase_log(text) @@ -1024,7 +1028,7 @@ local function provides_module(info) luatexbase_log( "Lua module: " .. info.name .. spaced(info.date) - .. spaced(info.version) + .. spaced(info.version and string_gsub(info.version or "","^(%d)","v%1")) .. spaced(info.description) ) modules[info.name] = info @@ -1336,7 +1340,7 @@ luatexbase.new_luafunction = new_luafunction % Additionally |callbackrules| describes the ordering constraints: It contains two % element tables with the descriptions of the constrained callback implementations. % It can additionally contain a |type| entry indicating the kind of rule. A missing -% value indicates a normal ordering contraint. +% value indicates a normal ordering constraint. % % \changes{v1.2a}{2022/10/03}{Add rules for callback ordering} % \begin{macrocode} @@ -1398,7 +1402,7 @@ local callbacklist = setmetatable({}, { end list[i] = current.value else - -- Cycle occured. TODO: Show cycle for debugging + -- Cycle occurred. TODO: Show cycle for debugging -- list[i] = ... local remaining = {} for name, entry in next, meta do @@ -1432,7 +1436,7 @@ local callbacklist = setmetatable({}, { for i=2, length//2 do cycle[i], cycle[length + 1 - i] = cycle[length + 1 - i], cycle[i] end - error('Cycle occured at ' .. table.concat(cycle, ' -> ', 1, length)) + error('Cycle occurred at ' .. table.concat(cycle, ' -> ', 1, length)) end end end |