| 1 |
% url.4ht (2025-07-11-09:25), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 1997-2023 TeX Users Group |
| 3 |
% Copyright 2009-2025 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% https://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <https://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2025-07-11-09:25} |
| 21 |
|
| 22 |
\protected\def\:temp{\leavevmode \begingroup\ht:special{t4ht@(}% |
| 23 |
\def\UrlLeft##1\UrlRight{\ifmmode \else \UrlFont\fi \Url:use{##1}}% |
| 24 |
\def\Url@use##1 ##2{\ifmmode \else \UrlFont\fi |
| 25 |
\Url:use{##1}}\let\,\empty \Configure{$}{}{}{}\ht:special{t4ht@)}\Url} |
| 26 |
\HLet\url\:temp |
| 27 |
|
| 28 |
\expandafter\ifx\csname Url@OT1encSpecials\endcsname\relax |
| 29 |
|
| 30 |
|
| 31 |
\else |
| 32 |
\pend:defI\Url@z{% |
| 33 |
\ht:special{t4ht@[}% |
| 34 |
\Configure{$}{}{}{}% |
| 35 |
\let\,\empty |
| 36 |
\let\Url:HyperHook=\Url@HyperHook |
| 37 |
\def\Url@HyperHook{\ifmmode \else \UrlFont\fi |
| 38 |
\ht:special{t4ht@]}% |
| 39 |
\Url:HyperHook}% |
| 40 |
} |
| 41 |
\pend:def\Url{\Configure{obeylines}{}{}{}} |
| 42 |
\def\:temp{\begingroup \urlstyle {tt}\Url} |
| 43 |
\ifx \:temp\path |
| 44 |
\def\:tempc{\a:path\begingroup\aftergroup\b:path |
| 45 |
\Configure{url}{\ifmmode \else \UrlFont\fi ##1}\urlstyle {tt}\Url} |
| 46 |
\HLet\path\:tempc |
| 47 |
\else |
| 48 |
\def\:temp{\leavevmode \begingroup \urlstyle {tt}\Url} |
| 49 |
\ifx \:temp\path |
| 50 |
\def\:tempc{\leavevmode\a:path\begingroup\aftergroup\b:path |
| 51 |
\Configure{url}{\ifmmode \else \UrlFont\fi ##1}\urlstyle {tt}\Url} |
| 52 |
\HLet\path\:tempc |
| 53 |
\fi |
| 54 |
\fi |
| 55 |
|
| 56 |
\fi |
| 57 |
\def\c:url:{\def\Url:use##1} |
| 58 |
\Configure{url}{#1} |
| 59 |
\NewConfigure{path}{2} |
| 60 |
|
| 61 |
\def\set@mathnolig#1{\ifnum\mathcode`#1<32768 |
| 62 |
\begingroup\lccode`\~`#1\lowercase{\endgroup |
| 63 |
\edef~}{\mathchar\number\mathcode`#1_{\/}}% |
| 64 |
\mathcode`#1=32768 \fi} |
| 65 |
\ifdefined\UrlBreaks |
| 66 |
\append:def\UrlBreaks{\do\_} |
| 67 |
\fi |
| 68 |
|
| 69 |
\Hinput{url} |
| 70 |
\endinput |
| 71 |
|