texlive[68809] Master/texmf-dist: accessibility package, tex4ht r1408
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 11 00:27:40 CET 2023
Revision: 68809
https://tug.org/svn/texlive?view=revision&revision=68809
Author: karl
Date: 2023-11-11 00:27:40 +0100 (Sat, 11 Nov 2023)
Log Message:
-----------
accessibility package, tex4ht r1408
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1408
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
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
trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
Added Paths:
-----------
trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility-hooks.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-11-10 23:27:40 UTC (rev 68809)
@@ -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/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex 2023-11-10 23:27:40 UTC (rev 68809)
@@ -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}
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-11-10 23:27:40 UTC (rev 68809)
@@ -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 @@
\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/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2023-11-10 23:27:40 UTC (rev 68809)
@@ -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 @@
\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}{%
Added: trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility-hooks.4ht (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility-hooks.4ht 2023-11-10 23:27:40 UTC (rev 68809)
@@ -0,0 +1,33 @@
+% accessibility-hooks.4ht (2023-11-10-14:22), generated from tex4ht-4ht.tex
+% Copyright 2023 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2023-11-10-14:22}
+
+% 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
+
+
Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility-hooks.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility.4ht (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility.4ht 2023-11-10 23:27:40 UTC (rev 68809)
@@ -0,0 +1,28 @@
+% accessibility.4ht (2023-11-10-14:22), generated from tex4ht-4ht.tex
+% Copyright 2023 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2023-11-10-14:22}
+
+\NewConfigure{accessibilityalt}{2}
+\def\:tempa#1{\a:accessibilityalt #1\b:accessibilityalt}
+\def\alt#1{}
+\HLet\alt\:tempa
+
+\Hinput{accessibility}
+\endinput
+
Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/accessibility.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2023-11-10 23:27:40 UTC (rev 68809)
@@ -1,4 +1,4 @@
-% html4.4ht (2023-11-09-13:34), generated from tex4ht-html4.tex
+% html4.4ht (2023-11-10-14:22), generated from tex4ht-html4.tex
% Copyright 2009-2023 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 2023-11-09-13:34}
+\immediate\write-1{version 2023-11-10-14:22}
\exit:ifnot{8859-6,%
CJK,%
@@ -28,6 +28,7 @@
SIunits,%
aa,%
abidir,%
+accessibility,%
acm-proc-article-sp,%
adjustbox,%
algorithm,%
@@ -40648,6 +40649,17 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{accessibility}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \Configure{accessibilityalt}{\HCode{<span aria-role="note">}}{\HCode{</span>}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{animate}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{animinline}{\Picture+{}}{\EndPicture}
@@ -40685,5 +40697,6 @@
+
\endinput
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2023-11-10 21:48:16 UTC (rev 68808)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2023-11-10 23:27:40 UTC (rev 68809)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2023-11-02-13:26), generated from tex4ht-4ht.tex
+% usepackage.4ht (2023-11-10-14:22), generated from tex4ht-4ht.tex
% Copyright 2003-2009 Eitan M. Gurari
% Copyright 2009-2023 TeX Users Group
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-11-02-13:26}
+\immediate\write-1{version 2023-11-10-14:22}
\def\:temp{tex4ht}\ifx \:temp\@currname
\:warning{\string\usepackage{tex4ht} again?}
@@ -68,6 +68,7 @@
\Configure{PackageHooks}{pdfx.sty}{pdfx-hooks.4ht}
\Configure{PackageHooks}{lua-widow-control.sty}{lua-widow-control-hooks.4ht}
\Configure{PackageHooks}{tagpdf.sty}{tagpdf-hooks.4ht}
+\Configure{PackageHooks}{accessibility.sty}{accessibility-hooks.4ht}
\Configure{PackageHooks}{embedfile.sty}{embedfile-hooks.4ht}
\Configure{PackageHooks}{breakurl.sty}{breakurl-hooks.4ht}
\Configure{PackageHooks}{hyperref.sty}{hyperref-hooks.4ht}
More information about the tex-live-commits
mailing list.