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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Nov 10 15:51:19 CET 2023


Author: michal_h21
Date: 2023-11-10 14:51:19 +0000 (Fri, 10 Nov 2023)
New Revision: 1408

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for the accessibility package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-11-09 16:19:15 UTC (rev 1407)
+++ trunk/lit/ChangeLog	2023-11-10 14:51:19 UTC (rev 1408)
@@ -1,3 +1,11 @@
+2023-11-10  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (usepackage.4ht, accessibility-hooks.4ht,
+	accessibility.4ht),
+	* tex4ht-html4.tex (html4.4ht): added support for the Accessibility
+	package.
+	https://tex.stackexchange.com/a/700927/2891
+
 2023-11-09  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): better detection of the first row in

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2023-11-09 16:19:15 UTC (rev 1407)
+++ trunk/lit/mktex4ht-cnf.tex	2023-11-10 14:51:19 UTC (rev 1408)
@@ -393,6 +393,8 @@
 \AddFile{9}{texmate}
 \AddFile{9}{menukeys}
 \AddFile{9}{musicography}
+\AddFile{9}{accessibility}
+\AddFile{9}{accessibility-hooks}
 \AddFile{9}{animate}
 \AddFile{9}{sectionbreak}
 \AddFile{9}{subfiles}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-11-09 16:19:15 UTC (rev 1407)
+++ trunk/lit/tex4ht-4ht.tex	2023-11-10 14:51:19 UTC (rev 1408)
@@ -5003,6 +5003,55 @@
 \endinput
 >>> \AddFile{9}{tagpdf-hooks}
 
+%%%%%%%%%%%%%%%%%%%%%
+\Section{accessibility}
+%%%%%%%%%%%%%%%%%%%%%
+
+The accessibility package is deprecated, but it leads to a fatal error 
+when it is used. So we will block it from loading, and provide our own
+version of commands provided by the package.
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{accessibility.sty}{accessibility-hooks.4ht}
+>>>
+
+\<accessibility-hooks.4ht\><<<
+% accessibility-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2023 TeX Users Group
+|<TeX4ht license text|>
+% redefine commands that would cause fatal error when the package is being processed
+\let\:origpdfobj\pdfobj
+\let\:origpdfoutput\pdfoutput
+\let\pdfoutput\@undefined
+\def\pdfobj reserveobjnum{}
+\:AtEndOfPackage{
+  \let\pdfobj\:origpdfobj
+  \let\pdfoutput\:origpdfoutput
+  \def\PDFStructObj#1#2{}%
+}
+\endinput
+
+>>> \AddFile{9}{accessibility-hooks}
+
+\<accessibility.4ht\><<<
+% accessibility.4ht (|version), generated from |jobname.tex
+% Copyright 2023 TeX Users Group
+|<TeX4ht license text|>
+|<accessibility alt|>
+\Hinput{accessibility}
+\endinput
+>>>\AddFile{9}{accessibility}
+
+The alt command does nothing in the picture mode,
+but it outputs its argument in the normal output. 
+
+\<accessibility alt\><<<
+\NewConfigure{accessibilityalt}{2}
+\def\:tempa#1{\a:accessibilityalt #1\b:accessibilityalt}
+\def\alt#1{}
+\HLet\alt\:tempa
+>>>
+
 %%%%%%%%%%%%%%%%%
 \Section{animate.sty}
 %%%%%%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-11-09 16:19:15 UTC (rev 1407)
+++ trunk/lit/tex4ht-html4.tex	2023-11-10 14:51:19 UTC (rev 1408)
@@ -22590,6 +22590,11 @@
 \Configure{PolyglossiaRtl}{\Configure{LRdir}{}}{\Configure{LRdir}{ dir="rtl"}}
 >>>
 
+
+\<configure html4 accessibility\><<<
+\Configure{accessibilityalt}{\HCode{<span aria-role="note">}}{\HCode{</span>}}
+>>>
+
 \<configure html4 animate\><<<
 \Configure{animinline}{\Picture+{}}{\EndPicture}
 \ConfigureEnv{animateinline}{%



More information about the tex4ht-commits mailing list.