texlive[63994] Master/texmf-dist: lua-widow-control (28jul22)
commits+karl at tug.org
commits+karl at tug.org
Thu Jul 28 22:06:23 CEST 2022
Revision: 63994
http://tug.org/svn/texlive?view=revision&revision=63994
Author: karl
Date: 2022-07-28 22:06:23 +0200 (Thu, 28 Jul 2022)
Log Message:
-----------
lua-widow-control (28jul22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md
trunk/Master/texmf-dist/doc/luatex/lua-widow-control/lua-widow-control.pdf
trunk/Master/texmf-dist/doc/luatex/lua-widow-control/tb133chernoff-widows.pdf
trunk/Master/texmf-dist/source/luatex/lua-widow-control/CHANGELOG.md
trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-manual.tex
trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl
trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty
trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex
trunk/Master/texmf-dist/tex/optex/lua-widow-control/lua-widow-control.opm
Modified: trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md 2022-07-28 20:06:23 UTC (rev 63994)
@@ -48,4 +48,4 @@
Please note that a compiled document is absolutely **not** considered to be an "Executable Form" as defined by the MPL. The use of lua-widow-control in a document does not place **any** obligations on the document's author or distributors. The MPL and CC-BY-SA licenses **only** apply to you if you distribute the lua-widow-control source code or documentation.
---
-_v2.2.0 (2022-06-17)_ <!--%%version %%dashdate-->
+_v2.2.1 (2022-07-28)_ <!--%%version %%dashdate-->
Modified: trunk/Master/texmf-dist/doc/luatex/lua-widow-control/lua-widow-control.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/luatex/lua-widow-control/tb133chernoff-widows.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/luatex/lua-widow-control/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/source/luatex/lua-widow-control/CHANGELOG.md 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/source/luatex/lua-widow-control/CHANGELOG.md 2022-07-28 20:06:23 UTC (rev 63994)
@@ -9,8 +9,13 @@
All notable changes to lua-widow-control will be listed here, in reverse chronological order. **Changes listed in bold** are important changes: they either remove options or commands, or may change the location of page breaks.
-## v2.2.0 (2022-06-17)
+## v2.2.1 (2022-07-28)
+- Fix crashes with recent LuaMetaTeX (ConTeXt MkXL)
+- No longer show "left parfill skip" warnings with ConTeXt LMTX/MkXL ([#7](https://github.com/gucci-on-fleek/lua-widow-control/issues/7))
+
+## [v2.2.0 (2022-06-17)](https://github.com/gucci-on-fleek/lua-widow-control/releases/tag/release-9a5deba53545adc5ab25a5caa0b8ebf4104843f9)
+
- Fix paragraphs not being properly saved for potential expansion. **May affect page breaks.**
- Add a new `draft` option ([#36](https://github.com/gucci-on-fleek/lua-widow-control/issues/36)).
- Fix a node memory leak ([#29](https://github.com/gucci-on-fleek/lua-widow-control/issues/29)). You should now be able to use lua-widow-control on documents with > 10 000 pages.
Modified: trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-manual.tex
===================================================================
--- trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-manual.tex 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-manual.tex 2022-07-28 20:06:23 UTC (rev 63994)
@@ -64,7 +64,7 @@
\startdocument[
title=lua-widow-control,
author=Max Chernoff,
- version=2.2.0, %%version
+ version=2.2.1, %%version
github=https://github.com/gucci-on-fleek/lua-widow-control,
ctan=https://www.ctan.org/pkg/lua-widow-control,
]
@@ -390,7 +390,7 @@
\NC\NR
\stopTABLE
-The Plain~\TeX{}, \OpTeX, and \ConTeXt commands \emph{append} to the list of patched commands: they simply patch the provided commands while leaving the original patches in place. The \LaTeX{} option \emph{sets} the list of patched commands: it replaces the default list with the provided list.
+The Plain~\TeX{}, \OpTeX{}, and \ConTeXt{} commands \emph{append} to the list of patched commands: they simply patch the provided commands while leaving the original patches in place. The \LaTeX{} option \emph{sets} the list of patched commands: it replaces the default list with the provided list.
\subsection{\estretch/}
Modified: trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl 2022-07-28 20:06:23 UTC (rev 63994)
@@ -1,10 +1,10 @@
%D \module
%D [ file=t-lua-widow-control,
-%D version=2.2.0, %%version
+%D version=2.2.1, %%version
%D title=lua-widow-control,
%D subtitle=\ConTeXt module for lua-widow-control,
%D author=Max Chernoff,
-%D date=2022-06-17, %%dashdate
+%D date=2022-07-28, %%dashdate
%D copyright=Max Chernoff,
%D license=MPL-2.0+,
%D url=https://github.com/gucci-on-fleek/lua-widow-control]
Modified: trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty 2022-07-28 20:06:23 UTC (rev 63994)
@@ -12,8 +12,8 @@
% report a real version number here for debugging.
\PackageInfo{lua-widow-control}{%
Real version:
- 2022/06/17 %%slashdate
- v2.2.0 %%version
+ 2022/07/28 %%slashdate
+ v2.2.1 %%version
}
\PackageWarning{lua-widow-control}{%
Modified: trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty 2022-07-28 20:06:23 UTC (rev 63994)
@@ -13,7 +13,7 @@
\DeclareRelease{}{0000-00-00}{lua-widow-control-2022-02-22.sty}
\DeclareRelease{v1.1.6}{2022-02-22}{lua-widow-control-2022-02-22.sty}
-\DeclareCurrentRelease{v2.2.0}{2022-06-17} %%version %%dashdate
+\DeclareCurrentRelease{v2.2.1}{2022-07-28} %%version %%dashdate
% If this version of LaTeX doesn't support command hooks, then we load
% the last v1.1.X version of the package.
@@ -23,8 +23,8 @@
\ProvidesExplPackage
{lua-widow-control}
- {2022/06/17} %%slashdate
- {v2.2.0} %%version
+ {2022/07/28} %%slashdate
+ {v2.2.1} %%version
{Use Lua to remove widows and orphans}
% Unconditional Package Loads
Modified: trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua 2022-07-28 20:06:23 UTC (rev 63994)
@@ -194,8 +194,8 @@
debug("Plain/LaTeX")
luatexbase.provides_module {
name = lwc.name,
- date = "2022/06/17", --%%slashdate
- version = "2.2.0", --%%version
+ date = "2022/07/28", --%%slashdate
+ version = "2.2.1", --%%version
description = [[
This module provides a LuaTeX-based solution to prevent
@@ -344,15 +344,13 @@
-- We can't modify the original paragraph
head = copy_list(head)
+ if lmtx then
+ tex.preparelinebreak(head)
+ end
+
-- Prevent ultra-short last lines (\TeX{}Book p. 104), except with narrow columns
-- Equivalent to \\parfillskip=0pt plus 0.8\\hsize
- local parfillskip
- if lmtx or last(head).id ~= glue_id then
- -- LMTX does not automatically add the \\parfillskip glue
- parfillskip = new_node("glue", "parfillskip")
- else
- parfillskip = last(head)
- end
+ local parfillskip = last(head)
if tex.hsize > min_col_width then
parfillskip[stretch_order] = 0
@@ -359,10 +357,6 @@
parfillskip.stretch = 0.8 * tex.hsize -- Last line must be at least 20% long
end
- if lmtx or last(head).id ~= glue_id then
- last(head).next = parfillskip
- end
-
-- Break the paragraph 1 line longer than natural
return linebreak(head, {
looseness = 1,
@@ -379,15 +373,8 @@
-- We can't modify the original paragraph
head = copy_list(head)
- --[[ Contrary to the documentation, LMTX does not automatically add
- the \\parfillskip glue before `pre_linebreak_filter`, so we need
- to add it here so that our \\prevgraf comparisons are correct.
- ]]
if lmtx then
- parfillskip = new_node("glue", "parfillskip")
- parfillskip[stretch_order] = 1
- parfillskip.stretch = 1 -- 0pt plus 1fil
- last(head).next = parfillskip
+ tex.preparelinebreak(head)
end
-- Break the paragraph naturally to get \\prevgraf
Modified: trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex 2022-07-28 20:06:23 UTC (rev 63994)
@@ -3,7 +3,7 @@
% SPDX-License-Identifier: MPL-2.0+
% SPDX-FileCopyrightText: 2022 Max Chernoff
-\wlog{lua-widow-control v2.2.0} %%version
+\wlog{lua-widow-control v2.2.1} %%version
\ifx\directlua\undefined
\errmessage{%
Modified: trunk/Master/texmf-dist/tex/optex/lua-widow-control/lua-widow-control.opm
===================================================================
--- trunk/Master/texmf-dist/tex/optex/lua-widow-control/lua-widow-control.opm 2022-07-28 20:06:07 UTC (rev 63993)
+++ trunk/Master/texmf-dist/tex/optex/lua-widow-control/lua-widow-control.opm 2022-07-28 20:06:23 UTC (rev 63994)
@@ -3,7 +3,7 @@
% SPDX-License-Identifier: MPL-2.0+
% SPDX-FileCopyrightText: 2022 Max Chernoff
-\_codedecl\lwcenable{lua-widow-control <v2.2.0>} %%version
+\_codedecl\lwcenable{lua-widow-control <v2.2.1>} %%version
\_namespace{lwc}
\_clubpenalty=1
More information about the tex-live-commits
mailing list.