texlive[70259] branches/branch2023.final/Master/texmf-dist: tagpdf
commits+karl at tug.org
commits+karl at tug.org
Thu Feb 29 22:22:33 CET 2024
Revision: 70259
https://tug.org/svn/texlive?view=revision&revision=70259
Author: karl
Date: 2024-02-29 22:22:33 +0100 (Thu, 29 Feb 2024)
Log Message:
-----------
tagpdf (branch) (29feb24)
Modified Paths:
--------------
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/README.md
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-AF-file.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-alt-actualtext.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-attribute.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-formula-problem.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-list.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-mc-manual-para-split-obsolete.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-softhyphen.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-spaceglyph-listings.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-structure-obsolete.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-tagpdf-template.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf-code.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.pdf
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex
branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdfsetup-keys.tex
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx
branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty
branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/README.md
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/README.md 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/README.md 2024-02-29 21:22:33 UTC (rev 70259)
@@ -1,6 +1,6 @@
#tagpdf — A package to create tagged pdf
-Packageversion: 0.98w
-Packagedate: 2024/02/22
+Packageversion: 0.98x
+Packagedate: 2024/02/29
Author: Ulrike Fischer, LaTeX Project Team
## License
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-AF-file.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-alt-actualtext.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-attribute.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-formula-problem.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-list.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-mc-manual-para-split-obsolete.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-softhyphen.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-spaceglyph-listings.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-structure-obsolete.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/ex-tagpdf-template.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf-code.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex 2024-02-29 21:22:33 UTC (rev 70259)
@@ -16,8 +16,8 @@
}
\DebugBlocksOff
\makeatletter
-\def\UlrikeFischer at package@version{0.98w}
-\def\UlrikeFischer at package@date{2024-02-22}
+\def\UlrikeFischer at package@version{0.98x}
+\def\UlrikeFischer at package@date{2024-02-29}
\makeatother
\documentclass[bibliography=totoc,a4paper]{article}
@@ -558,7 +558,13 @@
it hasn't been tested yet with complicated documents containing
annotations etc. See also section~\ref{sec:lazy} for a discussion
about automatic tagging.
+
+\item[\PrintKeyName{viewer/startstructure}] A structure number. If a \texttt{OpenAction}
+is set in the PDF Catalog (which is normally the case if hyperref is used)
+a structure destination pointing to the structure is added. The initial value is structure 1 (the \texttt{Document} structure), the default value is the current structure. The
+key can be used more than once, the last setting will win.
+
\item[\PrintKeyName{debug/uncompress}] Sets both the \PDF{} compresslevel
and the \PDF{} objcompresslevel to 0 and so allows to inspect the
\PDF{}. No really useful anymore as this can also
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdfsetup-keys.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdfsetup-keys.tex 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tagpdf/tagpdfsetup-keys.tex 2024-02-29 21:22:33 UTC (rev 70259)
@@ -42,7 +42,8 @@
% TODO viewer/display-title
%% show mathml-files in attachment pane (old mathml-panel)
viewer/pane/mathml & --- & boolean &bool &latex-lab-math (dev)\\
-viewer/pane/mathsource& --- &boolean &bool &latex-lab-math (dev)\\[4pt]\midrule
+viewer/pane/mathsource& --- &boolean &bool &latex-lab-math (dev)\\
+viewer/startstructure & --- &number &code &tagpdf-tree \\[4pt]\midrule
%%% Document element keys
%% page key path
page/tabsorder &tabsorder & choice & code & tagpdf\\
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -47,13 +47,13 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{implementation}
% \begin{macrocode}
%<@@=tag>
%<*luatex>
-\ProvidesExplFile {tagpdf-luatex.def} {2024-02-22} {0.98w}
+\ProvidesExplFile {tagpdf-luatex.def} {2024-02-29} {0.98x}
{tagpdf~driver~for~luatex}
% \end{macrocode}
% \section{Loading the lua}
@@ -164,8 +164,8 @@
local ProvidesLuaModule = {
name = "tagpdf",
- version = "0.98w", --TAGVERSION
- date = "2024-02-22", --TAGDATE
+ version = "0.98x", --TAGVERSION
+ date = "2024-02-29", --TAGDATE
description = "tagpdf lua code",
license = "The LATEX Project Public License 1.3c"
}
@@ -1244,6 +1244,7 @@
end
else
ltx.@@.trace.log ("INFO PARENTTREE-NO-DATA: page "..page,3)
+ numsentry = pdfpage.." []"
end
return numsentry
end
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -48,7 +48,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \section{Commands}
@@ -327,7 +327,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-checks-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-checks-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to checks, conditionals, debugging and messages}
%</header>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -47,7 +47,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% This files contains a various data files which are read in
@@ -61,7 +61,7 @@
% latex-lab has also a namespace module, which takes precendence!
% \begin{macrocode}
%<*ns-latex>
-%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-02-29} {0.98x}
%% {latex} {https://www.latex-project.org/ns/dflt/2022}{}
title, Title, pdf2,
part, Title, pdf2,
@@ -93,7 +93,7 @@
% It is bound to change
% \begin{macrocode}
%<*ns-latex-book>
-%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-02-29} {0.98x}
%% {latex-book} {https://www.latex-project.org/ns/book/2022}{}
chapter, H1,pdf2,
section, H2,pdf2,
@@ -107,7 +107,7 @@
% \section{The pdf namespace data}
% \begin{macrocode}
%<*ns-pdf>
-%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-02-29} {0.98x}
%% {pdf} {http://iso.org/pdf/ssn}{}
StructTreeRoot,StructTreeRoot,pdf,D,
Document,Document,pdf,D,
@@ -175,7 +175,7 @@
% \section{The pdf 2.0 namespace data}
% \begin{macrocode}
%<*ns-pdf2>
-%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-02-29} {0.98x}
%% {pdf2} {http://iso.org/pdf2/ssn}{}
StructTreeRoot,StructTreeRoot,pdf2,D,
Document,Document,pdf2,D,
@@ -232,7 +232,7 @@
% \section{The mathml namespace data}
% \begin{macrocode}
%<*ns-mathml>
-%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-02-29} {0.98x}
% {mathml}{http://www.w3.org/1998/Math/MathML}{}
abs,abs,mathml,
and,and,mathml,
@@ -467,7 +467,7 @@
% This will perhaps change in future.
% \begin{macrocode}
%<*parent-child>
-%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-02-29} {0.98x}
,,,StructTreeRoot,Document,Art,Part,Div,Sect,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,MC
Document,both,document level,1,0..n,∅,‡,‡,∅,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅
Art,1.7,grouping,∅,0..n,∅,‡,‡,0..n,0..n,‡,∅,∅,∅,0..n,∅,0..n,∅,∅,∅,0..1,0..1,∅,∅,∅,0..n,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅,∅,0..n,0..n,∅,∅,∅,0..n,0..n,∅,∅
@@ -522,7 +522,7 @@
% This will perhaps change in future.
% \begin{macrocode}
%<*parent-child-2>
-%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-02-29} {0.98x}
,,,StructTreeRoot,Document,DocumentFragment,Art,Part,Div,Sect,Aside,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Title,Sub,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Em,Strong,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,FENote,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,math,mathml,Artifact,MC
Document,both,document level,1,0..n,0..n,∅,‡,‡,∅,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅
DocumentFragment,2.0,document level,∅,0..n,0..n,0..n,‡,‡,0..n,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅*,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,0..n,∅
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \end{documentation}
@@ -55,11 +55,11 @@
% \begin{macrocode}
%<@@=tag>
%<*generic>
-\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-02-29} {0.98x}
{part of tagpdf - code related to marking chunks - generic mode}
%</generic>
%<*debug>
-\ProvidesExplPackage {tagpdf-debug-generic} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug-generic} {2024-02-29} {0.98x}
{part of tagpdf - debugging code related to marking chunks - generic mode}
%</debug>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{implementation}
% The code is splitted into three parts: code shared by all engines,
@@ -86,11 +86,11 @@
% \begin{macrocode}
%<@@=tag>
%<*luamode>
-\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-02-29} {0.98x}
{tagpdf - mc code only for the luamode }
%</luamode>
%<*debug>
-\ProvidesExplPackage {tagpdf-debug-lua} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug-lua} {2024-02-29} {0.98x}
{part of tagpdf - debugging code related to marking chunks - lua mode}
%</debug>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \section{Public Commands}
@@ -181,7 +181,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-02-29} {0.98x}
{part of tagpdf - code related to marking chunks -
code shared by generic and luamode }
%</header>
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \begin{function}
@@ -98,7 +98,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-roles-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-roles-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to roles and structure names}
%</header>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \begin{function}{activate/space (setup-key),interwordspace (deprecated)}
@@ -66,7 +66,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-space-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-space-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to real space chars}
%</header>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \section{Public Commands}
@@ -285,7 +285,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-struct-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-struct-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to storing structure}
%</header>
% \end{macrocode}
@@ -1928,7 +1928,7 @@
% \section{Attributes and attribute classes}
% \begin{macrocode}
%<*header>
-\ProvidesExplPackage {tagpdf-attr-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-attr-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to attributes and attribute classes}
%</header>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -47,13 +47,13 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{implementation}
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-tree-code} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-tree-code} {2024-02-29} {0.98x}
{part of tagpdf - code related to writing trees and dictionaries to the pdf}
%</header>
% \end{macrocode}
@@ -96,8 +96,10 @@
% \end{macrocode}
% \end{macro}
%
-% \subsection{Catalog: MarkInfo and StructTreeRoot}
+% \subsection{Catalog: MarkInfo and StructTreeRoot and OpenAction}
% The StructTreeRoot and the MarkInfo entry must be added to the catalog.
+% If there is an OpenAction entry we must update it,
+% so that it contains also a structure destination.
% We do it late so that we can win, but before the pdfmanagement hook.
% \begin{macro}{@@/struct/0}
% This is the object for the root object, the StructTreeRoot
@@ -105,7 +107,68 @@
\pdf_object_new:n { @@/struct/0 }
% \end{macrocode}
% \end{macro}
+%
+% \begin{variable}{\g_@@_tree_openaction_struct_tl}
+% We need a variable that indicates which structure is wanted in the OpenAction. By default we use
+% 1 (the Document structure).
% \begin{macrocode}
+\tl_new:N \g_@@_tree_openaction_struct_tl
+\tl_gset:Nn \g_@@_tree_openaction_struct_tl {1}
+% \end{macrocode}
+% \end{variable}
+%
+% \begin{macro}{viewer/startpage (setup-key)}
+% We also need an option to setup the start structure. So we setup a key
+% which sets the variable to the current structure. This still requires
+% hyperref to do most of the job, this should perhaps be changed.
+% \begin{macrocode}
+\keys_define:nn { @@ / setup }
+ {
+ viewer/startstructure .code:n =
+ {
+ \tl_gset:Ne \g_@@_tree_openaction_struct_tl {#1}
+ }
+ ,viewer/startstructure .default:n = { \int_use:N \c at g_@@_struct_abs_int }
+ }
+% \end{macrocode}
+% \end{macro}
+% The OpenAction should only be updated if it is there. So we inspect the
+% Catalog-prop:
+% \begin{macrocode}
+\cs_new_protected:Npn \@@_tree_update_openaction:
+ {
+ \prop_get:cnNT
+ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog } }
+ {OpenAction}
+ \l_@@_tmpa_tl
+ {
+% \end{macrocode}
+% we only do something if the OpenAction is an array (as set by hyperref)
+% in other cases we hope that the author knows what they did.
+% \begin{macrocode}
+ \tl_if_head_eq_charcode:eNT { \tl_trim_spaces:V\l_@@_tmpa_tl } [ %]
+ {
+ \seq_set_split:NnV\l_@@_tmpa_seq{/}\l_@@_tmpa_tl
+ \pdfmanagement_add:nne {Catalog} { OpenAction }
+ {
+ <<
+ /S/GoTo \c_space_tl
+ /D~\l_@@_tmpa_tl\c_space_tl
+ /SD~[\pdf_object_ref:e{__tag/struct/\g_@@_tree_openaction_struct_tl}
+% \end{macrocode}
+% there should be always a /Fit etc in the array but better play safe here ...
+% \begin{macrocode}
+ \int_compare:nNnTF{ \seq_count:N \l_@@_tmpa_seq } > {1}
+ { /\seq_item:Nn\l_@@_tmpa_seq{2} }
+ { ] }
+ >>
+ }
+ }
+ }
+ }
+% \end{macrocode}
+%
+% \begin{macrocode}
\hook_gput_code:nnn{shipout/lastpage}{tagpdf}
{
\bool_if:NT \g_@@_active_tree_bool
@@ -115,6 +178,7 @@
{ Catalog }
{ StructTreeRoot }
{ \pdf_object_ref:n { @@/struct/0 } }
+ \@@_tree_update_openaction:
}
}
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -46,7 +46,7 @@
% }^^A
% }
%
-% \date{Version 0.98w, released 2024-02-22}
+% \date{Version 0.98x, released 2024-02-29}
% \maketitle
% \begin{documentation}
% \section{Setup commands}
@@ -309,7 +309,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-user} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-user} {2024-02-29} {0.98x}
{tagpdf - user commands}
%</header>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx 2024-02-29 21:22:33 UTC (rev 70259)
@@ -87,7 +87,7 @@
% \begin{macrocode}
%<@@=tag>
%<*package>
-\ProvidesExplPackage {tagpdf} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf} {2024-02-29} {0.98x}
{ A package to experiment with pdf tagging }
\bool_if:nF
@@ -113,7 +113,7 @@
% \end{macrocode}
%<*debug>
% \begin{macrocode}
-\ProvidesExplPackage {tagpdf-debug} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug} {2024-02-29} {0.98x}
{ debug code for tagpdf }
\@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
% \end{macrocode}
@@ -136,7 +136,7 @@
% we define a base package with dummy functions
% \begin{macrocode}
%<*base>
-\ProvidesExplPackage {tagpdf-base} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-base} {2024-02-29} {0.98x}
{part of tagpdf - provide base, no-op versions of the user commands }
%</base>
% \end{macrocode}
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -25,7 +25,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf-base} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-base} {2024-02-29} {0.98x}
{part of tagpdf - provide base, no-op versions of the user commands }
\AddToHook{begindocument}
{
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-mc-generic.dtx
-\ProvidesExplPackage {tagpdf-debug-generic} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug-generic} {2024-02-29} {0.98x}
{part of tagpdf - debugging code related to marking chunks - generic mode}
\cs_set_protected:Npn \tag_mc_begin:n #1 %#1 keyval
{
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-mc-luacode.dtx
-\ProvidesExplPackage {tagpdf-debug-lua} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug-lua} {2024-02-29} {0.98x}
{part of tagpdf - debugging code related to marking chunks - lua mode}
\cs_set_protected:Npn \__tag_mc_handle_stash:n #1 %1 mcidnum
{
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -26,7 +26,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf-debug} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-debug} {2024-02-29} {0.98x}
{ debug code for tagpdf }
\@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
\prop_gput:Nnn \g_msg_module_type_prop { tag / debug} {}
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-backend.dtx
-\ProvidesExplFile {tagpdf-luatex.def} {2024-02-22} {0.98w}
+\ProvidesExplFile {tagpdf-luatex.def} {2024-02-29} {0.98x}
{tagpdf~driver~for~luatex}
{
\fontencoding{TU}\fontfamily{lmr}\fontseries{m}\fontshape{n}\fontsize{10pt}{10pt}\selectfont
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-mc-generic.dtx
-\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-02-29} {0.98x}
{part of tagpdf - code related to marking chunks - generic mode}
\tl_new:N \l__tag_mc_ref_abspage_tl
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-mc-luacode.dtx
-\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-02-29} {0.98x}
{tagpdf - mc code only for the luamode }
\hook_gput_code:nnn{begindocument}{tagpdf/mc}
{
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-02-29} {0.98x}
%% {latex-book} {https://www.latex-project.org/ns/book/2022}{}
chapter, H1,pdf2,
section, H2,pdf2,
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-02-29} {0.98x}
%% {latex} {https://www.latex-project.org/ns/dflt/2022}{}
title, Title, pdf2,
part, Title, pdf2,
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-02-29} {0.98x}
abs,abs,mathml,
and,and,mathml,
annotation,annotation,mathml,
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-02-29} {0.98x}
%% {pdf} {http://iso.org/pdf/ssn}{}
StructTreeRoot,StructTreeRoot,pdf,D,
Document,Document,pdf,D,
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-02-29} {0.98x}
%% {pdf2} {http://iso.org/pdf2/ssn}{}
StructTreeRoot,StructTreeRoot,pdf2,D,
Document,Document,pdf2,D,
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-02-29} {0.98x}
,,,StructTreeRoot,Document,DocumentFragment,Art,Part,Div,Sect,Aside,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Title,Sub,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Em,Strong,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,FENote,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,math,mathml,Artifact,MC
Document,both,document level,1,0..n,0..n,∅,‡,‡,∅,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅
DocumentFragment,2.0,document level,∅,0..n,0..n,0..n,‡,‡,0..n,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅*,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,0..n,∅
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv 2024-02-29 21:22:33 UTC (rev 70259)
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-02-22} {0.98w}
+%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-02-29} {0.98x}
,,,StructTreeRoot,Document,Art,Part,Div,Sect,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,MC
Document,both,document level,1,0..n,∅,‡,‡,∅,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅
Art,1.7,grouping,∅,0..n,∅,‡,‡,0..n,0..n,‡,∅,∅,∅,0..n,∅,0..n,∅,∅,∅,0..1,0..1,∅,∅,∅,0..n,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅,∅,0..n,0..n,∅,∅,∅,0..n,0..n,∅,∅
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua 2024-02-29 21:22:33 UTC (rev 70259)
@@ -24,8 +24,8 @@
local ProvidesLuaModule = {
name = "tagpdf",
- version = "0.98w", --TAGVERSION
- date = "2024-02-22", --TAGDATE
+ version = "0.98x", --TAGVERSION
+ date = "2024-02-29", --TAGDATE
description = "tagpdf lua code",
license = "The LATEX Project Public License 1.3c"
}
@@ -806,6 +806,7 @@
end
else
ltx.__tag.trace.log ("INFO PARENTTREE-NO-DATA: page "..page,3)
+ numsentry = pdfpage.." []"
end
return numsentry
end
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -28,7 +28,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdf} {2024-02-29} {0.98x}
{ A package to experiment with pdf tagging }
\bool_if:nF
@@ -750,6 +750,40 @@
}
}
\pdf_object_new:n { __tag/struct/0 }
+\tl_new:N \g__tag_tree_openaction_struct_tl
+\tl_gset:Nn \g__tag_tree_openaction_struct_tl {1}
+\keys_define:nn { __tag / setup }
+ {
+ viewer/startstructure .code:n =
+ {
+ \tl_gset:Ne \g__tag_tree_openaction_struct_tl {#1}
+ }
+ ,viewer/startstructure .default:n = { \int_use:N \c at g__tag_struct_abs_int }
+ }
+\cs_new_protected:Npn \__tag_tree_update_openaction:
+ {
+ \prop_get:cnNT
+ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog } }
+ {OpenAction}
+ \l__tag_tmpa_tl
+ {
+ \tl_if_head_eq_charcode:eNT { \tl_trim_spaces:V\l__tag_tmpa_tl } [ %]
+ {
+ \seq_set_split:NnV\l__tag_tmpa_seq{/}\l__tag_tmpa_tl
+ \pdfmanagement_add:nne {Catalog} { OpenAction }
+ {
+ <<
+ /S/GoTo \c_space_tl
+ /D~\l__tag_tmpa_tl\c_space_tl
+ /SD~[\pdf_object_ref:e{__tag/struct/\g__tag_tree_openaction_struct_tl}
+ \int_compare:nNnTF{ \seq_count:N \l__tag_tmpa_seq } > {1}
+ { /\seq_item:Nn\l__tag_tmpa_seq{2} }
+ { ] }
+ >>
+ }
+ }
+ }
+ }
\hook_gput_code:nnn{shipout/lastpage}{tagpdf}
{
\bool_if:NT \g__tag_active_tree_bool
@@ -759,6 +793,7 @@
{ Catalog }
{ StructTreeRoot }
{ \pdf_object_ref:n { __tag/struct/0 } }
+ \__tag_tree_update_openaction:
}
}
\int_new:N\g__tag_tree_id_pad_int
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty 2024-02-29 21:22:20 UTC (rev 70258)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty 2024-02-29 21:22:33 UTC (rev 70259)
@@ -1,5 +1,5 @@
%\RequirePackage[enable-debug]{expl3}[2018/06/14]
-\ProvidesExplPackage {tagpdfdocu-patches} {2024-02-22} {0.98w}
+\ProvidesExplPackage {tagpdfdocu-patches} {2024-02-29} {0.98x}
{patches/commands for the tagpdf documentation}
\RequirePackage{etoolbox,xpatch}
More information about the tex-live-commits
mailing list.