[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: expand utf8 even if protected (fd13594)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Feb 21 12:55:34 CET 2022
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/fd135943ec69a6e9a4842a9a47ee9536d01b9584
>---------------------------------------------------------------
commit fd135943ec69a6e9a4842a9a47ee9536d01b9584
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Feb 21 12:55:34 2022 +0100
expand utf8 even if protected
>---------------------------------------------------------------
fd135943ec69a6e9a4842a9a47ee9536d01b9584
ChangeLog.txt | 1 +
hyperref.dtx | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 53890bb..1dc020c 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,4 +1,5 @@
XXXX-XX-XX Ulrike Fischer/David Carlisle
+ * expand utf8 chars even if they are protected
* moved patches for revtex.cls to an external package
* added a key next-anchor to set the next anchor name.
* added a command \hyperget to retrieve anchor names.
diff --git a/hyperref.dtx b/hyperref.dtx
index 709c302..74d07c4 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -3798,6 +3798,22 @@
}%
\fi
% \end{macrocode}
+% change 2022-02-21
+% For the case that utf8 chars are protected we need to expand them.
+% This works only is |\UTFviii at loop| is not defined in a group, which will be the
+% case in the new latex code, so we test for it.
+% \begin{macrocode}
+\ifcsname UTFviii at loop\endcsname
+ \def\HyPsd at expand@utfvii{%
+ \count@"C2
+ \@tempcnta"F5
+ \def\UTFviii at tmp{\expandafter\def\expandafter~\expandafter{~}}%
+ \UTFviii at loop
+ }
+\else
+ \def\HyPsd at expand@utfvii{}
+\fi
+% \end{macrocode}
% \end{macro}
%
% \subsubsection{Support for UTF-8 input encoding}
@@ -3825,6 +3841,7 @@
\lccode`\~=`^^f4\relax
\lowercase{\endgroup
\def\HyPsd at UTFviii{%
+ \HyPsd at expand@utfvii
\let\UTFviii at two@octets\HyPsd at UTFviii@two
\let\UTFviii at three@octets\HyPsd at UTFviii@three
\let\UTFviii at four@octets\HyPsd at UTFviii@four
More information about the latex3-commits
mailing list.