[tex4ht-commits] [SCM] tex4ht updated: r1727 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Aug 14 12:06:39 CEST 2025


Author: michal_h21
Date: 2025-08-14 10:06:38 +0000 (Thu, 14 Aug 2025)
New Revision: 1727

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
added aria markup for footnotes and fixed paragraph handling in footntoes

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-08-01 21:43:55 UTC (rev 1726)
+++ trunk/lit/ChangeLog	2025-08-14 10:06:38 UTC (rev 1727)
@@ -1,3 +1,9 @@
+2025-08-14  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* 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/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2025-08-01 21:43:55 UTC (rev 1726)
+++ trunk/lit/tex4ht-html4.tex	2025-08-14 10:06:38 UTC (rev 1727)
@@ -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\><<<



More information about the tex4ht-commits mailing list.