[latex3-commits] [git/LaTeX3-latex3-hyperref] lang-extract: remove babel patches, no longer needed (df1aed5)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sat Oct 10 14:39:50 CEST 2020
Repository : https://github.com/latex3/hyperref
On branch : lang-extract
Link : https://github.com/latex3/hyperref/commit/df1aed54e6651d839a44faf88cbad5556ed4d3f9
>---------------------------------------------------------------
commit df1aed54e6651d839a44faf88cbad5556ed4d3f9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat Oct 10 14:39:50 2020 +0200
remove babel patches, no longer needed
>---------------------------------------------------------------
df1aed54e6651d839a44faf88cbad5556ed4d3f9
ChangeLog.txt | 2 ++
hyperref.dtx | 45 ++++-----------------------------------------
2 files changed, 6 insertions(+), 41 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 22566e8..a39e934 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,4 +1,6 @@
2020-10-01 Ulrike Fischer
+ * removed \HyPsd at BabelPatch and the related code as no longer
+ needed with a current babel.
* added Euro to encoding of form field font (issue 145)
* removed patches for ngerman/german: these are now in babel-german
* removed patches for french, unneeded according the
diff --git a/hyperref.dtx b/hyperref.dtx
index cd3fd1c..aec492c 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -1346,9 +1346,6 @@
\HyPsd at SpanishPatch
\HyPsd at RussianPatch
% \end{macrocode}
-% \begin{macrocode}
- \HyPsd at BabelPatch
-% \end{macrocode}
%
% \begin{macrocode}
\let\@safe at activestrue\relax
@@ -2216,7 +2213,7 @@
%
% \subsubsection{Babel languages}
%
-% Since version 2008/03/16 v3.8j babel uses inside \cs{AtBeginDocument}:
+% Since version 2008/03/16 v3.8j babel used inside \cs{AtBeginDocument}:
%\begin{quote}
%\begin{verbatim}
%\pdfstringdefDisableCommands{%
@@ -2224,43 +2221,9 @@
%}
%\end{verbatim}
%\end{quote}
-% As consequence the shorthands are shown in the bookmarks,
-% not its result. Therefore \cs{languageshorthands} is
-% disabled before the user hook. If there is a need to
-% use the command, then \cs{HyOrg at languageshorthands}
-% can be used inside \cs{pdfstringdefDisableCommands}.
-% \begin{macrocode}
-\def\HyPsd at BabelPatch{%
- \let\HyOrg at languageshorthands\languageshorthands
- \let\languageshorthands\HyPsd at LanguageShorthands
-}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdf at strcmp\endcsname\relax
- \let\HyPsd at langshort@system\@empty
- \def\HyPsd at LanguageShorthands#1{%
- \expandafter\ifx\csname HyPsd at langshort@#1\endcsname
- \HyPsd at langshort@system
- \expandafter\@gobble
- \else
- \expandafter\@firstofone
- \fi
- {%
- \HyOrg at languageshorthands{#1}%
- }%
- }%
-\else
- \def\HyPsd at LanguageShorthands#1{%
- \ifnum\pdf at strcmp{#1}{system}=\z@
- \expandafter\@gobble
- \else
- \expandafter\@firstofone
- \fi
- {%
- \HyOrg at languageshorthands{#1}%
- }%
- }%
-\fi
-% \end{macrocode}
+% As consequence the shorthands were shown in the bookmarks, and required
+% a hyperref patch. In version 3.48 babel removed this unneeded code
+% and so the patch could be removed.
%
% \begin{macrocode}
\newif\ifHy at next
More information about the latex3-commits
mailing list.