summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex15
1 files changed, 13 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 9372b02b23..113c21f337 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/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 }