[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh65: set general defaults for guillement characters (26bbc95a)

Frank Mittelbach frank.mittelbach at latex-project.org
Sat Jun 11 11:37:02 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh65
Link       : https://github.com/latex3/latex2e/commit/26bbc95adaba08e90021f04fc9f81aaaf0e48969

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

commit 26bbc95adaba08e90021f04fc9f81aaaf0e48969
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Jun 11 11:37:02 2022 +0200

    set general defaults for guillement characters


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

26bbc95adaba08e90021f04fc9f81aaaf0e48969
 base/changes.txt  |  9 +++++++++
 base/ltoutenc.dtx | 24 +++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index f880f43d..1f374a2f 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,6 +10,15 @@ are not part of the distribution.
 All changes above are only part of the development branch for the next release.
 ================================================================================
 
+#########################
+# 2022-06-01 PL1 Release
+#########################
+
+2022-06-11  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltoutenc.dtx (subsubsection{Default encodings}):
+	Provide a general default for \guillemetleft and \guillemetright (gh/65)
+
 #########################
 # 2022-06-01 Release
 #########################
diff --git a/base/ltoutenc.dtx b/base/ltoutenc.dtx
index 4dac4e15..48b3eafd 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)]
+             [2022/06/11 v2.1a LaTeX Kernel (font encodings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltoutenc.dtx}
@@ -1512,6 +1512,16 @@
 \DeclareTextCommandDefault{\textordmasculine}{\textsuperscript{o}}
 %    \end{macrocode}
 %
+%
+%    Fall back to incorrect (old) Adobe glyph name if the correct one
+%    not available in the font encoding and hope for the best.
+% \changes{v2.1a}{2022/06/11}{Provide a general default for
+%            \cs{guillemetleft} and \cs{guillemetright} (gh/65)}
+%    \begin{macrocode}
+\DeclareTextCommandDefault{\guillemetleft}{\guillemotleft}
+\DeclareTextCommandDefault{\guillemetright}{\guillemotright}
+%    \end{macrocode}
+%
 % \subsubsection{Math material}
 %
 %    Some commands can be used in both text and math mode:
@@ -1846,6 +1856,18 @@
 \fi
 %    \end{macrocode}
 %
+%    Explicitly state that these two symbols are not available
+%    (otherwise the default kicks and and we get the error that the
+%    Adobe names aren't available, even though the ask was for the
+%    correct names.
+% \changes{v2.1a}{2022/06/11}{Explicitly make
+%            \cs{guillemetleft} and \cs{guillemetright} unavailable in
+%            OT1 to get the right error message (gh/65)}
+%    \begin{macrocode}
+\DeclareTextCommand{\guillemetleft}{OT1}{\TextSymbolUnavailable\guillemetleft}
+\DeclareTextCommand{\guillemetright}{OT1}{\TextSymbolUnavailable\guillemetright}
+%    \end{macrocode}
+%
 %    \begin{macrocode}
 %</OT1>
 %    \end{macrocode}





More information about the latex3-commits mailing list.