[latex3-commits] [latex3/latex2e] gh1102: improve error message for #1102 (e49e7b58)

github at latex-project.org github at latex-project.org
Tue Nov 7 16:40:10 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : gh1102
Link       : https://github.com/latex3/latex2e/commit/e49e7b5896c5d217ea3bb609152b4eb435bc80b4

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

commit e49e7b5896c5d217ea3bb609152b4eb435bc80b4
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Nov 7 16:40:10 2023 +0100

    improve error message for #1102


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

e49e7b5896c5d217ea3bb609152b4eb435bc80b4
 base/changes.txt                  | 7 +++++++
 base/ltoutenc.dtx                 | 9 +++++++--
 base/nfssfont.dtx                 | 6 +++---
 base/testfiles/tlb2054.luatex.tlg | 4 +++-
 base/testfiles/tlb2054.tlg        | 4 +++-
 5 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 812143d3..4180ec2f 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,13 @@ to completeness or accuracy and it contains some references to files that are
 not part of the distribution.
 ================================================================================
 
+2023-11-07  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+	* ltoutenc.dtx (subsection{The fontenc package}):
+	Add more explanation to error message about missing encoding (gh/1102)
+
+	* nfssfont.dtx (section{The code}):
+	Corrected spelling in error message.
+
 ================================================================================
 All changes above are only part of the development branch for the next release.
 ================================================================================
diff --git a/base/ltoutenc.dtx b/base/ltoutenc.dtx
index 1d257805..56f45dea 100644
--- a/base/ltoutenc.dtx
+++ b/base/ltoutenc.dtx
@@ -44,7 +44,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltoutenc.dtx}
-             [2022/05/27 v2.0z LaTeX Kernel (font encodings)]
+             [2023/11/07 v2.1a LaTeX Kernel (font encodings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltoutenc.dtx}
@@ -3677,6 +3677,7 @@
    \if at tempswa
 %    \end{macrocode}
 %
+% \changes{v2.1a}{2023/11/07}{Add more explanation to error message (gh/1102)}
 %    \begin{macrocode}
      \edef\reserved at f{%
        \lowercase{\def\noexpand\reserved at f{\CurrentOption enc.def}}}%
@@ -3685,7 +3686,11 @@
           {}{\PackageError{fontenc}%
            {Encoding file `\reserved at f' not found.%
             \MessageBreak
-             You might have misspelt the name of the encoding}%
+            You might have misspelled the name of the encoding
+            \MessageBreak
+            or a required support package (e.g., cyrillic) is
+            \MessageBreak
+            missing in your installation}%
            {Necessary code for this encoding was not
             loaded.\MessageBreak
             Thus calling the encoding later on will
diff --git a/base/nfssfont.dtx b/base/nfssfont.dtx
index 556ce5f7..2fa4fbcc 100644
--- a/base/nfssfont.dtx
+++ b/base/nfssfont.dtx
@@ -26,8 +26,8 @@
 % extension .ins) which are part of the distribution.
 %
 % \fi
-\def\nfssfontfileversion{v2.2e}
-\def\nfssfontfiledate{2020/11/26}
+\def\nfssfontfileversion{v2.2f}
+\def\nfssfontfiledate{2023/11/07}
 
 %
 % \iffalse
@@ -197,7 +197,7 @@
        {\PackageWarningNoLine{nfssfont}%
         {Encoding file `\next' not found.%
           \MessageBreak
-           You might have misspelt the name of the encoding
+           You might have misspelled the name of the encoding
           \MessageBreak
            or perhaps this encoding is not a text encoding,
          \MessageBreak
diff --git a/base/testfiles/tlb2054.luatex.tlg b/base/testfiles/tlb2054.luatex.tlg
index 9e5a9a16..0782591a 100644
--- a/base/testfiles/tlb2054.luatex.tlg
+++ b/base/testfiles/tlb2054.luatex.tlg
@@ -6,7 +6,9 @@ Package: fontenc
 (fontenc.sty
 Package: fontenc ....-..-.. v... Standard LaTeX package
 ! Package fontenc Error: Encoding file `x1enc.def' not found.
-(fontenc)                You might have misspelt the name of the encoding.
+(fontenc)                You might have misspelled the name of the encoding 
+(fontenc)                or a required support package (e.g., cyrillic) is 
+(fontenc)                missing in your installation.
 See the fontenc package documentation for explanation.
 Type  H <return>  for immediate help.
  ...                                              
diff --git a/base/testfiles/tlb2054.tlg b/base/testfiles/tlb2054.tlg
index 39fe622a..a2695736 100644
--- a/base/testfiles/tlb2054.tlg
+++ b/base/testfiles/tlb2054.tlg
@@ -6,7 +6,9 @@ Package: fontenc
 (fontenc.sty
 Package: fontenc ....-..-.. v... Standard LaTeX package
 ! Package fontenc Error: Encoding file `x1enc.def' not found.
-(fontenc)                You might have misspelt the name of the encoding.
+(fontenc)                You might have misspelled the name of the encoding 
+(fontenc)                or a required support package (e.g., cyrillic) is 
+(fontenc)                missing in your installation.
 See the fontenc package documentation for explanation.
 Type  H <return>  for immediate help.
  ...                                              





More information about the latex3-commits mailing list.