texlive[76061] Master/texmf-dist: aria markup for footnotes, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Thu Aug 14 22:45:10 CEST 2025
Revision: 76061
https://tug.org/svn/texlive?view=revision&revision=76061
Author: karl
Date: 2025-08-14 22:45:10 +0200 (Thu, 14 Aug 2025)
Log Message:
-----------
aria markup for footnotes, tex4ht r1727; longtable paragraphs, tex4ht r1728
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1727
https://tug.org/svn/texlive?view=revision&revision=1728
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-14 20:04:53 UTC (rev 76060)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-14 20:45:10 UTC (rev 76061)
@@ -1,3 +1,17 @@
+2025-08-14 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): removed vertical spacing for
+ paragraphs in longtable cells.
+ https://puszcza.gnu.org.ua/bugs/?663
+
+ * tex4ht-4ht.tex (array.4ht): fixed support for paragraphs in table
+ cells.
+ https://puszcza.gnu.org.ua/bugs/?663
+
+ * tex4ht-html4.tex (html4.4ht): added aria attributes to the
+ footnotes and fixed paragraphs in footnotes.
+ https://tex.stackexchange.com/q/748675/2891
+
2025-08-01 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (xr-hooks.4ht): fixed support for the current
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-08-14 20:04:53 UTC (rev 76060)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-08-14 20:45:10 UTC (rev 76061)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1726 2025-08-01 21:43:55Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1728 2025-08-14 19:03:26Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2025 TeX Users Group
@@ -10520,6 +10520,7 @@
\append:defI\:tempc{\expandafter\everypar
\expandafter{\the\everypar\everypar{\HtmlPar}\HtmlPar}}
\HLet\@startpbox|=\:tempc
+\def\@startpbox at action{\@startpbox}
>>>
\<modefied @array config\><<<
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2025-08-14 20:04:53 UTC (rev 76060)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2025-08-14 20:45:10 UTC (rev 76061)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1725 2025-07-23 22:17:30Z michal_h21 $
+% $Id: tex4ht-html4.tex 1728 2025-08-14 19:03:26Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -5483,10 +5483,11 @@
\<open inline footnote box\><<<
\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
\ifvoid\fn:box\else \csname unvbox\endcsname\fn:box\fi
+\ifvmode\IgnorePar\fi\EndP\HCode{<aside role="doc-footnote" class="footnotetext">}\par\noindent\ShowPar
>>>
\<close inline footnote box\><<<
-\EndP\egroup\RecallEndP\ShowPar
+\ifvmode\IgnorePar\fi\EndP\HCode{</aside>\Hnewline}\egroup\RecallEndP\ShowPar
>>>
@@ -5704,7 +5705,7 @@
\<footnotemark link\><<<
\ifTag{|<link tag to footnotetext|>|<footnote id|>}
- {\Link{|<footnote id|>}{}}
+ {\Link[ role="doc-noteref"]{|<footnote id|>}{}}
{}%
>>>
@@ -5796,7 +5797,7 @@
>>>
\<fn mark end sup\><<<
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
>>>
\<thank mark sup\><<<
@@ -5827,9 +5828,10 @@
\<default offline footnote text\><<<
\Configure{footnote-text}
- {\HPage{}\HCode{<div class="footnote-text">}\par}
+ {\HPage{}\HCode{<aside role="doc-footnote" class="footnote-text">}\par}
{\ifvmode \IgnorePar\fi \EndP
- \HCode{</div>}\EndHPage{}}
+ \HCode{</aside>}\EndHPage{}}
+\Css{aside.footnote-text p{margin-top:0; margin-bottom:0;text-indent: 0;}}
>>>
\<onmouseover offline footnote text\><<<
@@ -8838,6 +8840,7 @@
{\PopStack\Table:Stck\TableNo |<end array par box|>\d:HA}
\Css{div.longtable{text-align:center;}}
\Css{table.longtable{margin-left:auto; margin-right: auto;}}
+\Css{table.longtable p{margin-top: 0; margin-bottom: 0;}}
\Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par}
\Configure{longtablecaption}{\ifvmode\IgnorePar\fi\EndP\HCode{<caption class="longtable">}\par\ShowPar\HCode{<span class="id">}}{:\ }{\HCode{</span><span class="content">}}{\HCode{</span>}\ifvmode\IgnorePar\fi\EndP\HCode{</caption>}}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2025-08-14 20:04:53 UTC (rev 76060)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2025-08-14 20:45:10 UTC (rev 76061)
@@ -1,4 +1,4 @@
-% html4.4ht (2025-07-23-15:33), generated from tex4ht-html4.tex
+% html4.4ht (2025-08-14-13:28), generated from tex4ht-html4.tex
% Copyright 2009-2025 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2025-07-23-15:33}
+\immediate\write-1{version 2025-08-14-13:28}
\exit:ifnot{8859-6,%
CJK,%
@@ -2907,7 +2907,7 @@
-bk)\endcsname\def
\else \EndLink\fi
}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
%
\expandafter\global\expandafter
\let\csname (fn\FNnum x\minipageNum
@@ -2916,6 +2916,7 @@
\Configure{footnotetext}
{\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
\ifvoid\fn:box\else \csname unvbox\endcsname\fn:box\fi
+\ifvmode\IgnorePar\fi\EndP\HCode{<aside role="doc-footnote" class="footnotetext">}\par\noindent\ShowPar
%
\js:on
%
@@ -2959,7 +2960,7 @@
)\endcsname\def
\else \EndLink\fi
}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
}
{\expandafter\global\expandafter
\let\csname (fn\FNnum x\minipageNum
@@ -2974,7 +2975,7 @@
%
\HCode{-->}%
%
- \EndP\egroup\RecallEndP\ShowPar
+ \ifvmode\IgnorePar\fi\EndP\HCode{</aside>\Hnewline}\egroup\RecallEndP\ShowPar
}
\Configure{BODY}
@@ -3050,7 +3051,7 @@
-bk)\endcsname\def
\else \EndLink\fi
}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
%
\expandafter\global\expandafter
\let\csname (fn\FNnum x\minipageNum
@@ -3059,6 +3060,7 @@
\Configure{footnotetext}
{\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
\ifvoid\fn:box\else \csname unvbox\endcsname\fn:box\fi
+\ifvmode\IgnorePar\fi\EndP\HCode{<aside role="doc-footnote" class="footnotetext">}\par\noindent\ShowPar
%
\AnchorLabel%
\csname a:footnote-mark\endcsname
@@ -3093,12 +3095,12 @@
)\endcsname\def
\else \EndLink\fi
}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
}
{\expandafter\global\expandafter
\let\csname (fn\FNnum x\minipageNum
)\endcsname\def
- \EndP\egroup\RecallEndP\ShowPar
+ \ifvmode\IgnorePar\fi\EndP\HCode{</aside>\Hnewline}\egroup\RecallEndP\ShowPar
}
\Configure{BODY}
@@ -3179,7 +3181,7 @@
}
{\EndLink}
{}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
}
\Configure{footnotetext}
@@ -3197,7 +3199,7 @@
}%
\NoFonts
}
- {\EndNoFonts \EndLink\csname b:footnote-mark\endcsname
+ {\EndNoFonts \EndLink\ShowPar\csname b:footnote-mark\endcsname
}
{\ifTag{fn\FNnum x\minipageNum
}
@@ -3259,7 +3261,7 @@
(L }
{\EndLink}
{}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
}
\Configure{footnotetext}
@@ -3281,7 +3283,7 @@
\Link{}{fn\FNnum x\minipageNum
}\NoFonts
}
- {\EndNoFonts\EndLink\csname b:footnote-mark\endcsname
+ {\EndNoFonts\EndLink\ShowPar\csname b:footnote-mark\endcsname
}
{\ifTag{fn\FNnum x\minipageNum
}
@@ -3304,7 +3306,7 @@
{\csname a:footnote-mark\endcsname
\ifTag{)Qfn\FNnum x\minipageNum
}
- {\Link{fn\FNnum x\minipageNum
+ {\Link[ role="doc-noteref"]{fn\FNnum x\minipageNum
}{}}
{}%
\NoFonts
@@ -3314,7 +3316,7 @@
}
{\EndLink}
{}%
-\csname b:footnote-mark\endcsname
+\ShowPar\csname b:footnote-mark\endcsname
}
\Configure{footnotetext}
@@ -3332,7 +3334,7 @@
}%
\NoFonts%
}
- {\EndNoFonts \EndLink\csname b:footnote-mark\endcsname
+ {\EndNoFonts \EndLink\ShowPar\csname b:footnote-mark\endcsname
}
{\ifTag{fn\FNnum x\minipageNum
}
@@ -3346,9 +3348,10 @@
)\endcsname\def
}
\Configure{footnote-text}
- {\HPage{}\HCode{<div class="footnote-text">}\par}
+ {\HPage{}\HCode{<aside role="doc-footnote" class="footnote-text">}\par}
{\ifvmode \IgnorePar\fi \EndP
- \HCode{</div>}\EndHPage{}}
+ \HCode{</aside>}\EndHPage{}}
+\Css{aside.footnote-text p{margin-top:0; margin-bottom:0;text-indent: 0;}}
\fi \fi
@@ -12102,7 +12105,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -12111,7 +12114,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -12122,7 +12125,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -12131,7 +12134,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -12140,7 +12143,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
\fi \fi
@@ -14688,7 +14691,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -14697,7 +14700,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -14708,7 +14711,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -14717,7 +14720,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -14726,7 +14729,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
\fi \fi
@@ -17323,7 +17326,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -17332,7 +17335,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -17343,7 +17346,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -17352,7 +17355,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
%
@@ -17361,7 +17364,7 @@
{\csname a:footnote-mark\endcsname
\HPage{\FNnum}\HCode{<div>}\NoFonts}
{\EndNoFonts}
- {\HCode{</div>}\EndHPage{}\csname b:footnote-mark\endcsname
+ {\HCode{</div>}\EndHPage{}\ShowPar\csname b:footnote-mark\endcsname
}%
%
\fi \fi
@@ -20311,12 +20314,13 @@
}
{\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
\ifvoid\fn:box\else \csname unvbox\endcsname\fn:box\fi
+\ifvmode\IgnorePar\fi\EndP\HCode{<aside role="doc-footnote" class="footnotetext">}\par\noindent\ShowPar
%
\HCode{<sup>}\Link{fn\FNnum-bk}{fn\FNnum}%
\ifx \FNmark\empty +\else \FNmark\fi
\EndLink\space\HCode{</sup>}%
}
- {\EndP\egroup\RecallEndP\ShowPar
+ {\ifvmode\IgnorePar\fi\EndP\HCode{</aside>\Hnewline}\egroup\RecallEndP\ShowPar
}
@@ -21592,6 +21596,7 @@
\d:HA}
\Css{div.longtable{text-align:center;}}
\Css{table.longtable{margin-left:auto; margin-right: auto;}}
+\Css{table.longtable p{margin-top: 0; margin-bottom: 0;}}
\Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par}
\Configure{longtablecaption}{\ifvmode\IgnorePar\fi\EndP\HCode{<caption class="longtable">}\par\ShowPar\HCode{<span class="id">}}{:\ }{\HCode{</span><span class="content">}}{\HCode{</span>}\ifvmode\IgnorePar\fi\EndP\HCode{</caption>}}
More information about the tex-live-commits
mailing list.