[latex3-commits] [latex3/latex2e] UF-latexlab-toc, defaultT1, develop, gh-1265, gh1183, main, tlc3-errata, update-UseTaggingSocket: set tracinglostchars for #1380 (#1381) (82af2e8b4)

github at latex-project.org github at latex-project.org
Sat Jul 13 18:02:11 CEST 2024


Repository : https://github.com/latex3/latex2e
On branches: UF-latexlab-toc,defaultT1,develop,gh-1265,gh1183,main,tlc3-errata,update-UseTaggingSocket
Link       : https://github.com/latex3/latex2e/commit/82af2e8b4a4bf0412f307686688c86e21f0aada9

>---------------------------------------------------------------

commit 82af2e8b4a4bf0412f307686688c86e21f0aada9
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Mon Jun 17 23:44:57 2024 +0100

    set tracinglostchars for #1380 (#1381)
    
    * set tracinglostchars for #1380
    
    * change log
    
    * avoid luaotfload message in tlg log


>---------------------------------------------------------------

82af2e8b4a4bf0412f307686688c86e21f0aada9
 base/changes.txt                         |  4 ++++
 base/doc/ltnews40.tex                    |  6 ++++++
 base/ltfssbas.dtx                        | 11 +++++++----
 base/testfiles-TU/github-1380.luatex.tlg |  5 +++++
 base/testfiles-TU/github-1380.lvt        |  6 ++++++
 base/testfiles-TU/github-1380.tlg        |  5 +++++
 6 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index bfcd48ff0..bb8de61fa 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
 not part of the distribution.
 ================================================================================
 
+2024-06-17  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltfssbas.dtx: set \tracinglostchars in \showhyphens. gh/1380
+
 2024-06-13  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* lthooks.dtx:
diff --git a/base/doc/ltnews40.tex b/base/doc/ltnews40.tex
index e6d97757e..f9755ed81 100644
--- a/base/doc/ltnews40.tex
+++ b/base/doc/ltnews40.tex
@@ -180,6 +180,12 @@ preamble are possible again.
 \githubissue{1000}
 
 
+\section{Improvement to \XeTeX\ \cs{showhyphens}}
+When using \cs{showhyphens} with \XeTeX, missing character warnings
+would be generated for any character not in Latin Modern. This has been
+corrected and the warnings are suppressed.
+%
+\githubissue{1380}
 
 %\section{Changes to packages in the \pkg{amsmath} category}
 
diff --git a/base/ltfssbas.dtx b/base/ltfssbas.dtx
index df02a5749..387214e94 100644
--- a/base/ltfssbas.dtx
+++ b/base/ltfssbas.dtx
@@ -35,7 +35,7 @@
 %
 %
 \ProvidesFile{ltfssbas.dtx}
-             [2024/02/08 v3.2l LaTeX Kernel (NFSS Basic Macros)]
+             [2024/06/17 v3.2m LaTeX Kernel (NFSS Basic Macros)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -2111,6 +2111,8 @@
 %    {Suppress unnecessary error when used in preamble}
 % \changes{v3.2a}{2017/01/10}
 %    {Add version of \cs{showhyphens} that works with Xe\TeX.}
+% \changes{v3.2m}{2024/06/17}
+%    {set \cs{tracinglostchars} to 0 in \cs{showhyphens}}
 %    The |\showhyphens| command must be redefined since the version in
 %    \texttt{plain.tex} uses |\tenrm|.  We have also made some further
 %    adjustments for its use in \LaTeX.
@@ -2142,10 +2144,10 @@
 % horizontal list with explicit hyphens to generate the display. Note
 % that the |lmr| OpenType font is forced, this works even if the
 % characters are not in the font as hyphenation is attempted due to
-% the width of the space and hyphen character. It may generate
+% the width of the space and hyphen character. It would generate
 % spurious Missing Character warnings in the log, these are however
-% suppressed from the terminal output by ensuring that
-% |\tracingonline| is locally zero.
+% suppressed from the terminal and log output by ensuring that
+% |\tracinglostchars| is locally zero.
 %    \begin{macrocode}
 \DeclareRobustCommand\showhyphens[1]{%
   \setbox0\vbox{%
@@ -2154,6 +2156,7 @@
     \hbadness\@M
     \hfuzz\maxdimen
     \tracingonline\z@
+    \tracinglostchars\z@
     \everypar={}%
     \leftskip\z at skip
     \rightskip\z at skip
diff --git a/base/testfiles-TU/github-1380.luatex.tlg b/base/testfiles-TU/github-1380.luatex.tlg
new file mode 100644
index 000000000..e52a5d6ea
--- /dev/null
+++ b/base/testfiles-TU/github-1380.luatex.tlg
@@ -0,0 +1,5 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Underfull \hbox (badness 10000) in paragraph at lines 5--5
+[] \TU/lmr/m/n/10 ի󰀀ն󰀀չ󰀀ո󰀀ւ󰀀 ի󰀀ն󰀀չ󰀀պ󰀀ե󰀀ս󰀀
+\hbox(0.0+0.0)x16383.99998, glue set 4902.88477, direction TLT []
diff --git a/base/testfiles-TU/github-1380.lvt b/base/testfiles-TU/github-1380.lvt
new file mode 100644
index 000000000..27b770c13
--- /dev/null
+++ b/base/testfiles-TU/github-1380.lvt
@@ -0,0 +1,6 @@
+\input{test2e}
+% should not get missing character warnings
+\showhyphens{ինչու ինչպես}
+\START
+\showhyphens{ինչու ինչպես}
+\END
diff --git a/base/testfiles-TU/github-1380.tlg b/base/testfiles-TU/github-1380.tlg
new file mode 100644
index 000000000..0c185ae10
--- /dev/null
+++ b/base/testfiles-TU/github-1380.tlg
@@ -0,0 +1,5 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Underfull \hbox (badness 10000) in paragraph at lines 5--5
+\TU/lmr/m/n/10 ինչու ինչպես
+\hbox(0.0+0.0)x16383.99998, glue set 9819.78133 []





More information about the latex3-commits mailing list.