[latex3-commits] [git/LaTeX3-latex3-hyperref] master: write language code to extra file (c0e32f2)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Feb 4 11:53:16 CET 2021


Repository : https://github.com/latex3/hyperref
On branch  : master
Link       : https://github.com/latex3/hyperref/commit/c0e32f261c34c6a2fbc6ab2b8fc2126adb734892

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

commit c0e32f261c34c6a2fbc6ab2b8fc2126adb734892
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Oct 10 19:36:33 2020 +0200

    write language code to extra file


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

c0e32f261c34c6a2fbc6ab2b8fc2126adb734892
 hyperref.dtx | 19 ++++++++++++++-----
 hyperref.ins |  1 +
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index aec492c..4c80887 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -50,6 +50,7 @@
 %<puvnenc>\ProvidesFile{puvnenc.def}
 %<puarenc>\ProvidesFile{puarenc.def}
 %<psdextra>\ProvidesFile{psdextra.def}
+%<lang>\ProvidesFile{hyperref-langpatches.def}
 %<!none>  [2020-08-14 v7.00f %
 %<package>  Hypertext links for LaTeX]
 %<nohyperref>  Dummy hyperref (SR)]
@@ -89,6 +90,7 @@
 %<puvnenc>  Hyperref: Additions to puenc.def for VnTeX]
 %<puarenc>  Hyperref: Additions to puenc.def for Arabi]
 %<psdextra>  Hyperref: Additions to PDF string support]
+%<lang> Hyperref: patches for babel languages]
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage{array,iftex}
@@ -2210,8 +2212,15 @@
 \x
 %    \end{macrocode}
 %    \end{macro}
-%
 % \subsubsection{Babel languages}
+% change 2020-10-10: moved language patches to its own file as a first step
+% toward removing them completly.
+%    \begin{macrocode}
+\newif\ifHy at next
+\input{hyperref-langpatches.def}
+%</package>
+%<*lang>
+%    \end{macrocode}
 %
 % Since version 2008/03/16 v3.8j babel used inside \cs{AtBeginDocument}:
 %\begin{quote}
@@ -2225,10 +2234,6 @@
 %    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
-%    \end{macrocode}
-%
 %    Nothing to do for english.
 %    change 2020/07/16: removed patch for french. No longer needed.
 %    change 2020/07/21: removed patches for german, ngerman. Will be done by
@@ -2463,6 +2468,10 @@
   }%
 }
 %    \end{macrocode}
+%    \begin{macrocode}
+%</lang>
+%<*package>
+%    \end{macrocode}
 %
 % \subsubsection{CJK patch}
 %
diff --git a/hyperref.ins b/hyperref.ins
index e313a86..1a0388d 100644
--- a/hyperref.ins
+++ b/hyperref.ins
@@ -87,6 +87,7 @@
   \file{puarenc.def}{\from{hyperref.dtx}{puarenc}}
   \file{psdextra.def}{\from{hyperref.dtx}{psdextra}}
   \file{nohyperref.sty}{\from{hyperref.dtx}{nohyperref}}
+  \file{hyperref-langpatches.def}{\from{hyperref.dtx}{lang}}
 }
 
 \Msg{***************************************************************}





More information about the latex3-commits mailing list.