texlive[69463] Master/texmf-dist: fix ] in \href, tex4ht r1443;

commits+karl at tug.org commits+karl at tug.org
Tue Jan 16 22:58:36 CET 2024


Revision: 69463
          https://tug.org/svn/texlive?view=revision&revision=69463
Author:   karl
Date:     2024-01-16 22:58:36 +0100 (Tue, 16 Jan 2024)
Log Message:
-----------
fix ] in \href, tex4ht r1443; unicode-math primes, tex4ht r1444

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1443
    https://tug.org/svn/texlive?view=revision&revision=1444

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-01-16 21:29:25 UTC (rev 69462)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-01-16 21:58:36 UTC (rev 69463)
@@ -1,3 +1,12 @@
+2024-01-16  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (unicode-math-hooks.4ht): added support for various
+	Unicode prime and back-prime symbols.
+
+	* tex4ht-4ht.tex (hyperref.4ht): fixed support for the `]`
+	characters in URLs in the \href command.
+	https://tex.stackexchange.com/a/707193/2891
+
 2024-01-15  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (tcolorbox.4ht): don't use \RecallEndP in

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-01-16 21:29:25 UTC (rev 69462)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-01-16 21:58:36 UTC (rev 69463)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1442 2024-01-15 22:00:31Z karl $
+% $Id: tex4ht-4ht.tex 1444 2024-01-16 16:58:10Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2024 TeX Users Group    
@@ -4374,6 +4374,14 @@
 \DeclareDocumentCommand \setmathfont { O{} m O{} }{}
 \DeclareDocumentCommand \unimathsetup {m} {} 
 \catcode`\:=11\makeatletter
+% declare prime and backprime Unicode symbols. they shouldn't be used with
+% explicit superscripts
+\DeclareDocumentCommand\dprime{}{\sp{\ht:special{t4ht at +\string&{35}x2033;}x}}
+\DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht at +\string&{35}x2034;}x}}
+\DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht at +\string&{35}x2057;}x}}
+\DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht at +\string&{35}x2035;}x}}
+\DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht at +\string&{35}x2036;}x}}
+\DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht at +\string&{35}x2037;}x}}
 \endinput
 >>> \AddFile{9}{unicode-math-hooks}
 
@@ -5547,7 +5555,10 @@
       \let\HyRef at currentHtag\empty
       \Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink
     \else      
-      \Link[#2]{}{}\Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink\EndLink
+      % we use this trick to hide possible ] characters in the URL
+      % https://tex.stackexchange.com/a/707193/2891
+      \def\:currentlink{#2}
+      \Link[\noexpand\:currentlink]{}{}\Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink\EndLink
       \global\let\hyper:normalise|=\:UnDef
     \fi
   \endgroup }

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht	2024-01-16 21:29:25 UTC (rev 69462)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht	2024-01-16 21:58:36 UTC (rev 69463)
@@ -1,6 +1,6 @@
-% hyperref.4ht (2023-10-16-13:09), generated from tex4ht-4ht.tex
+% hyperref.4ht (2024-01-16-13:47), generated from tex4ht-4ht.tex
 % Copyright 1999-2009 Eitan M. Gurari
-% Copyright 2009-2023 TeX Users Group
+% Copyright 2009-2024 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-10-16-13:09}
+\immediate\write-1{version 2024-01-16-13:47}
 
 \csname end:hyperref\endcsname
 
@@ -351,7 +351,10 @@
       \let\HyRef at currentHtag\empty
       \Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink
     \else
-      \Link[#2]{}{}\Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink\EndLink
+      % we use this trick to hide possible ] characters in the URL
+      % https://tex.stackexchange.com/a/707193/2891
+      \def\:currentlink{#2}
+      \Link[\noexpand\:currentlink]{}{}\Hy at colorlink{\@urlcolor}#1\Hy at endcolorlink\EndLink
       \global\let\hyper:normalise\:UnDef
     \fi
   \endgroup }

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht	2024-01-16 21:29:25 UTC (rev 69462)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht	2024-01-16 21:58:36 UTC (rev 69463)
@@ -1,4 +1,4 @@
-% unicode-math-hooks.4ht (2024-01-05-14:29), generated from tex4ht-4ht.tex
+% unicode-math-hooks.4ht (2024-01-16-13:47), generated from tex4ht-4ht.tex
 % Copyright 2021-2024 TeX Users Group
 %
 % This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2024-01-05-14:29}
+\immediate\write-1{version 2024-01-16-13:47}
 
 \:dontusepackage{unicode-math}
 \TivhTcats% we need to reset catcodes for : and @ before \RequirePackage
@@ -26,5 +26,13 @@
 \DeclareDocumentCommand \setmathfont { O{} m O{} }{}
 \DeclareDocumentCommand \unimathsetup {m} {}
 \catcode`\:=11\makeatletter
+% declare prime and backprime Unicode symbols. they shouldn't be used with
+% explicit superscripts
+\DeclareDocumentCommand\dprime{}{\sp{\ht:special{t4ht at +\string&{35}x2033;}x}}
+\DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht at +\string&{35}x2034;}x}}
+\DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht at +\string&{35}x2057;}x}}
+\DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht at +\string&{35}x2035;}x}}
+\DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht at +\string&{35}x2036;}x}}
+\DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht at +\string&{35}x2037;}x}}
 \endinput
 



More information about the tex-live-commits mailing list.