[latex3-commits] [git/LaTeX3-latex3-pdfresources] testtagging: preliminary tagging (9df16e3)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sun Aug 8 02:04:40 CEST 2021
Repository : https://github.com/latex3/pdfresources
On branch : testtagging
Link : https://github.com/latex3/pdfresources/commit/9df16e37428c7ba74b513e45984b50d24dc73a9c
>---------------------------------------------------------------
commit 9df16e37428c7ba74b513e45984b50d24dc73a9c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Aug 8 02:04:40 2021 +0200
preliminary tagging
>---------------------------------------------------------------
9df16e37428c7ba74b513e45984b50d24dc73a9c
l3pdfmanagement.dtx | 6 +++++-
l3pdfmanagement.pdf | Bin 673135 -> 287921 bytes
support/l3doc-tagging-testphase.sty | 25 +++++++++++++++++++++++++
3 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/l3pdfmanagement.dtx b/l3pdfmanagement.dtx
index c3de57b..29ee134 100644
--- a/l3pdfmanagement.dtx
+++ b/l3pdfmanagement.dtx
@@ -24,11 +24,15 @@
%
%<*driver>
\RequirePackage{pdfmanagement-testphase}
-\DeclareDocumentMetadata{pdfstandard=A-2b}
+\DeclareDocumentMetadata{testphase={tagpdf},activate=tagging,
+%debug={para=show,uncompress}
+}
\makeatletter
\declare at file@substitution{doc.sty}{doc-v3beta.sty}
\makeatother
\documentclass[full]{l3doc}
+\usepackage{l3doc-tagging-testphase}
+\usepackage{unicode-math}
\usepackage{tabularx}
\usepackage{array,booktabs,hyperxmp}
\hypersetup{pdfauthor=The LaTeX Project,pdftitle=l3pdfmanagement (LaTeX PDF management testphase bundle)}
diff --git a/l3pdfmanagement.pdf b/l3pdfmanagement.pdf
index 5e1cb65..0b4877a 100644
Binary files a/l3pdfmanagement.pdf and b/l3pdfmanagement.pdf differ
diff --git a/support/l3doc-tagging-testphase.sty b/support/l3doc-tagging-testphase.sty
index 1d73afb..b911068 100644
--- a/support/l3doc-tagging-testphase.sty
+++ b/support/l3doc-tagging-testphase.sty
@@ -2,11 +2,36 @@
[2021/08/07 v0.1 tagging patches for l3doc documentation (UF)]
\RequirePackage{etoolbox}
+\RequirePackage{array}
\pretocmd \@startsection{\par%<---hm
\tagpdfparaOff\tagstructbegin{tag=H#2}\tagmcbegin{tag=H#2}}{}{\fail}
\AddToHook{cmd/@xsect/after}{\tagmcend\tagstructend\tagpdfparaOn\ignorespaces}
+%tabularx
+\tagpdfsetup{ add-new-tag=TableFake/P}
+\AddToHook{env/tabularx/before}{\par\tagpdfparaOff\tagstructbegin{tag=TableFake}\tagmcbegin{tag=TableFake}}
+\AddToHook{env/tabularx/after} {\tagstructend\tagmcend\par\tagpdfparaOn}
+
+
+%for later
+\let\tagTXtest\write
+\newcolumntype\TRstart[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=TR}\tagstructbegin{tag=TD}\tagmcbegin{tag=TD}\fi}#1<{\ifx\tagTXtest\write \tagmcend\tagstructend\fi}}
+\newcolumntype\TRstop[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=TD}\tagmcbegin{tag=TD}\fi}#1<{\ifx\tagTXtest\write \tagmcend\tagstructend\tagstructend\fi}}
+\newcolumntype\TD[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=TD}\tagmcbegin{tag=TD}\fi}#1<{\ifx\tagTXtest\write \tagmcend\tagstructend\fi}}
+\newcolumntype\THstart[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=THead}%
+ \tagstructbegin{tag=TR}%
+ \tagstructbegin{tag=TH,attribute-class=TH-col}\tagmcbegin{tag=TH}\fi}#1<{\ifx\tagTXtest\write \tagmcend\tagstructend\fi}}
+\newcolumntype\THstop[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=TH,attribute-class=TH-col}\tagmcbegin{tag=TH}\fi}#1
+ <{\ifx\tagTXtest\write \tagmcend\tagstructend\tagstructend\tagstructend\fi}}
+\newcolumntype\TH[1]{%
+ >{\ifx\tagTXtest\write \tagstructbegin{tag=TH,attribute-class=TH-col}\tagmcbegin{tag=TH}\fi }#1<{\ifx\tagTXtest\write \tagmcend\tagstructend \fi}}
+
\ExplSyntaxOn
\patchcmd\@outputpage
{\hb at xt@\textwidth{\@thehead}}
More information about the latex3-commits
mailing list.