summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-12 03:02:06 +0000
committerNorbert Preining <norbert@preining.info>2023-11-12 03:02:06 +0000
commit5ee22d8ea7f225ba59142a53f0387a2bccc22dde (patch)
tree63ca211ff5ff12c7f756ac8a197726c314eb980b /support
parente4ccc7921b6518e670428990524161b3ddbfebd2 (diff)
CTAN sync 202311120302
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog8
-rw-r--r--support/TeX4ht/source/mktex4ht-cnf.tex4
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex51
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex7
4 files changed, 67 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 5d68063281..34703e1eac 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,11 @@
+2023-11-10 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-html4.tex (html4.4ht): better detection of the first row in
diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex
index 77190a86fe..e7f3a6d6a5 100644
--- a/support/TeX4ht/source/mktex4ht-cnf.tex
+++ b/support/TeX4ht/source/mktex4ht-cnf.tex
@@ -1,4 +1,4 @@
-% $Id: mktex4ht-cnf.tex 1395 2023-10-18 20:38:31Z michal_h21 $
+% $Id: mktex4ht-cnf.tex 1408 2023-11-10 14:51:19Z michal_h21 $
% Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex.
% Read by tex4ht-cond4ht.
%
@@ -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}
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index beea54d732..dc39ccea90 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1406 2023-11-06 15:17:44Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1408 2023-11-10 14:51:19Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -5003,6 +5003,55 @@ as it leads to a fatal error.
\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}
%%%%%%%%%%%%%%%%%
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index fc0fe3bc74..39c1fea16e 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1407 2023-11-09 16:19:15Z michal_h21 $
+% $Id: tex4ht-html4.tex 1408 2023-11-10 14:51:19Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -22590,6 +22590,11 @@ font commands
\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}{%