summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-01-16 21:58:36 +0000
committerKarl Berry <karl@freefriends.org>2024-01-16 21:58:36 +0000
commit734e896514a099f45ddaf3855008e2422a8573f9 (patch)
tree0c8a67bb5c5fa75618303b52cf1f6f80e9345919
parentf22515f62c0fd162cedaac75f5ad5844bdb13b9b (diff)
fix ] in \href, tex4ht r1443; unicode-math primes, tex4ht r1444
git-svn-id: svn://tug.org/texlive/trunk@69463 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog9
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex15
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht11
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht12
4 files changed, 39 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 8371f083c7f..319d184bf67 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,3 +1,12 @@
+2024-01-16 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-4ht.tex (tcolorbox.4ht): don't use \RecallEndP in
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index 9372b02b23a..113c21f3373 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -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 @@ document.
\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@+\string&{35}x2033;}x}}
+\DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht@+\string&{35}x2034;}x}}
+\DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht@+\string&{35}x2057;}x}}
+\DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht@+\string&{35}x2035;}x}}
+\DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht@+\string&{35}x2036;}x}}
+\DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht@+\string&{35}x2037;}x}}
\endinput
>>> \AddFile{9}{unicode-math-hooks}
@@ -5547,7 +5555,10 @@ be removed safely.
\let\HyRef@currentHtag\empty
\Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink
\else
- \Link[#2]{}{}\Hy@colorlink{\@urlcolor}#1\Hy@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@colorlink{\@urlcolor}#1\Hy@endcolorlink\EndLink
\global\let\hyper:normalise|=\:UnDef
\fi
\endgroup }
diff --git a/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
index d4bf921f35f..4f9d506c276 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
@@ -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@currentHtag\empty
\Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink
\else
- \Link[#2]{}{}\Hy@colorlink{\@urlcolor}#1\Hy@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@colorlink{\@urlcolor}#1\Hy@endcolorlink\EndLink
\global\let\hyper:normalise\:UnDef
\fi
\endgroup }
diff --git a/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
index d87e031eadb..0ede546aaa8 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
@@ -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@+\string&{35}x2033;}x}}
+\DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht@+\string&{35}x2034;}x}}
+\DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht@+\string&{35}x2057;}x}}
+\DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht@+\string&{35}x2035;}x}}
+\DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht@+\string&{35}x2036;}x}}
+\DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht@+\string&{35}x2037;}x}}
\endinput