[latex3-commits] [git/LaTeX3-latex3-hyperref] removexetexbigchars: remove xetex specific big chars code (bc3a635)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed May 13 13:26:40 CEST 2020


Repository : https://github.com/latex3/hyperref
On branch  : removexetexbigchars
Link       : https://github.com/latex3/hyperref/commit/bc3a635863775619f5c2b5dca88b7a6855d7dea8

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

commit bc3a635863775619f5c2b5dca88b7a6855d7dea8
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed May 13 13:26:40 2020 +0200

    remove xetex specific big chars code


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

bc3a635863775619f5c2b5dca88b7a6855d7dea8
 hyperref.dtx | 90 ++----------------------------------------------------------
 1 file changed, 2 insertions(+), 88 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 67860c9..28fc81b 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -1911,7 +1911,6 @@
               \HyPsd at EscapeTeX#1%
               \Hy at unicodefalse
             }{%
-              \HyPsd at ToBigChars#1%
               \HyPsd at EscapeTeX#1%
             }%
           \else
@@ -1926,7 +1925,6 @@
         }%
       \fi
     \fi
-    \HyPsd at XeTeXBigCharsfalse
 %    \end{macrocode}
 %
 % \paragraph{User hook.}
@@ -1951,82 +1949,8 @@
 % \subsection{Encodings}
 %
 % \subsubsection{Xe\TeX}
-%
-%    \begin{macrocode}
-\edef\Hy at temp{\catcode0=\the\catcode0\relax}
-\catcode\z@=12 %
-\ifxetex
-  \expandafter\@firstofone
-\else
-  \let\HyPsd at XeTeXBigCharstrue\@empty
-  \let\HyPsd at XeTeXBigCharsfalse\@empty
-  \expandafter\@gobble
-\fi
-{%
-  \newif\ifHyPsd at XeTeXBigChars
-  \def\HyPsd at XeTeXBigCharsfalse{%
-    \global\let\ifHyPsd at XeTeXBigChars\iffalse
-  }%
-  \def\HyPsd at XeTeXBigCharstrue{%
-    \global\let\ifHyPsd at XeTeXBigChars\iftrue
-  }%
-  \def\HyPsd at ToBigChars#1{%
-    \ifHyPsd at XeTeXBigChars
-      \EdefEscapeHex\HyPsd at UnescapedString{%
-        \expandafter\@gobbletwo\HyPsd at UnescapedString
-      }%
-      \begingroup
-        \toks@{}%
-        \escapechar=92\relax
-        \let\x\HyPsd at ToBigChar
-        \expandafter\HyPsd at ToBigChar\HyPsd at UnescapedString
-        \relax\relax\relax\relax\relax\relax\relax
-      \edef\x{%
-        \endgroup
-        \gdef\noexpand#1{\the\toks@}%
-      }%
-      \x
-    \fi
-  }%
-  \def\HyPsd at ToBigChar#1#2#3#4{%
-    \ifx\relax#1\relax
-      \let\x\relax
-    \else
-      \count@="#1#2#3#4\relax
-      \let\y\@empty
-      \lccode\z@=\count@
-      \ifnum\count@=40 % (
-        \let\y\@backslashchar
-      \else
-        \ifnum\count@=41 % )
-          \let\y\@backslashchar
-        \else
-          \ifnum\count@=92 % backslash
-            \let\y\@backslashchar
-          \else
-            \ifnum\count@=10 % newline
-              \edef\y##1{\string\n}%
-            \else
-              \ifnum\count@=13 % carriage return
-                \edef\y##1{\string\r}%
-              \fi
-            \fi
-          \fi
-        \fi
-      \fi
-      \lowercase{%
-        \toks@\expandafter{%
-          \the\expandafter\toks@
-          \y
-          ^^@%
-        }%
-      }%
-    \fi
-    \x
-  }%
-}
-\Hy at temp
-%    \end{macrocode}
+% change 2020-05-13: the special code for XeTeX big chars has been removed as no
+% longer needed.
 %
 % \subsubsection{Workaround for package linguex}
 %
@@ -6598,31 +6522,26 @@
 }
 \define at key{Hyp}{pdftitle}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdftitle{#1}%
 }
 \define at key{Hyp}{pdfauthor}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdfauthor{#1}%
 }
 \define at key{Hyp}{pdfproducer}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdfproducer{#1}%
 }
 \define at key{Hyp}{pdfcreator}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdfcreator{#1}%
 }
 \define at key{Hyp}{addtopdfcreator}{%
  \HyXeTeX at CheckUnicode
- \HyPsd at XeTeXBigCharstrue
  \HyPsd at PrerenderUnicode{#1}%
  \pdfstringdef\@pdfcreator{\@pdfcreator, #1}%
 }
@@ -6640,13 +6559,11 @@
 }
 \define at key{Hyp}{pdfsubject}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdfsubject{#1}%
 }
 \define at key{Hyp}{pdfkeywords}{%
   \HyXeTeX at CheckUnicode
-  \HyPsd at XeTeXBigCharstrue
   \HyPsd at PrerenderUnicode{#1}%
   \pdfstringdef\@pdfkeywords{#1}%
 }
@@ -6727,7 +6644,6 @@
         \def\HyInfo at tmp##1{%
           \kv at define@key{pdfinfo}{##1}{%
             \HyXeTeX at CheckUnicode
-            \HyPsd at XeTeXBigCharstrue
             \HyPsd at PrerenderUnicode{####1}%
             \pdfstringdef\HyInfo at Value{####1}%
             \global\expandafter
@@ -19832,7 +19748,6 @@
         \Hy at unicodefalse
       \fi
     \fi
-    \HyPsd at XeTeXBigCharstrue
     \pdfstringdef\Hy at gtemp#1%
   \endgroup
   \let#1\Hy at gtemp
@@ -20324,7 +20239,6 @@
         \let\partnumberline\@gobble
         \let\chapternumberline\@gobble
       \fi
-      \HyPsd at XeTeXBigCharstrue
       \pdfstringdef\Hy at tempa{#2}%
       \HyPsd at SanitizeForOutFile\Hy at tempa
       \if at filesw





More information about the latex3-commits mailing list.