diff options
Diffstat (limited to 'Master/texmf-dist/source/latex')
12 files changed, 91 insertions, 73 deletions
diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx index 0f388b2542e..7e19e1e90f7 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx @@ -47,13 +47,13 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{implementation} % \begin{macrocode} %<@@=tag> %<*luatex> -\ProvidesExplFile {tagpdf-luatex.def} {2024-04-12} {0.99b} +\ProvidesExplFile {tagpdf-luatex.def} {2024-06-20} {0.99c} {tagpdf~driver~for~luatex} % \end{macrocode} % \section{Loading the lua} @@ -164,8 +164,8 @@ local ProvidesLuaModule = { name = "tagpdf", - version = "0.99b", --TAGVERSION - date = "2024-04-12", --TAGDATE + version = "0.99c", --TAGVERSION + date = "2024-06-20", --TAGDATE description = "tagpdf lua code", license = "The LATEX Project Public License 1.3c" } @@ -196,8 +196,8 @@ ltx.@@.page will contain page data ltx.@@.tables contains also data from mc and struct (from older code). This needs cleaning up. There are certainly dublettes, but I don't dare yet ... ltx.@@.func will contain (public) functions. -ltx.@@.trace will contain tracing/loging functions. -local funktions starts with __ +ltx.@@.trace will contain tracing/logging functions. +local functions starts with __ functions meant for users will be in ltx.tag functions @@ -210,7 +210,7 @@ functions ltx.@@.func.store_mc_kid (mcnum,kid,page): stores the mc-kids of mcnum on page page ltx.@@.func.store_mc_in_page(mcnum,mcpagecnt,page): stores in the page table the number of mcnum on this page ltx.@@.func.store_struct_mcabs (structnum,mcnum): stores relations structnum<->mcnum (abs) - ltx.@@.func.mc_insert_kids (mcnum): inserts the /K entries for mcnum by wandering throught the [kids] table + ltx.@@.func.mc_insert_kids (mcnum): inserts the /K entries for mcnum by wandering through the [kids] table ltx.@@.func.mark_page_elements(box,mcpagecnt,mccntprev,mcopen,name,mctypeprev) : the main function ltx.@@.func.mark_shipout (): a wrapper around the core function which inserts the last EMC ltx.@@.func.fill_parent_tree_line (page): outputs the entries of the parenttree for this page @@ -827,7 +827,7 @@ end % @@_activate_mark_space, % ltx.@@.func.markspaceoff % } -% Theses functions add/remove the function which marks the spaces to the callbacks +% These functions add/remove the function which marks the spaces to the callbacks % |pre_linebreak_filter| and |hpack_filter| % \begin{macrocode} local function @@_activate_mark_space () diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx index f786ede6156..345b2e35bad 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \section{Commands} @@ -74,7 +74,7 @@ % It relies currently on that the code, that saved the box, correctly sets % the command \verb+\l_tag_box_\int_use:N #1_tl+ to a positive value. % The LaTeX commands will do that automatically -% at some time but it is in the responsability of the user to +% at some time but it is in the responsibility of the user to % ensure that when using low-level code. % If the internal command doesn't exist the box is assumed to be untagged. % \end{function} @@ -331,7 +331,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-checks-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-checks-code} {2024-06-20} {0.99c} {part of tagpdf - code related to checks, conditionals, debugging and messages} %</header> % \end{macrocode} @@ -639,7 +639,7 @@ % It relies on that the code that saved the box correctly set % \verb+\l_tag_box_<box number>_tl+ to a positive value. % The LaTeX commands will do that automatically -% at some time but it is in the responsability of the user to +% at some time but it is in the responsibility of the user to % ensure that when using low-level code. % If the internal command doesn't exist the box is assumed to be untagged. % \begin{macrocode} diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx index d8cba421420..f07e5db3edc 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % This files contains a various data files which are read in @@ -58,10 +58,10 @@ % \section{The LaTeX namespace} % This is the main new namespace. It is bound to change a lot! % It lists the new tag, the rolemap and the namespace of the rolemap. -% latex-lab has also a namespace module, which takes precendence! +% latex-lab has also a namespace module, which takes precedence! % \begin{macrocode} %<*ns-latex> -%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-06-20} {0.99c} %% {latex} {https://www.latex-project.org/ns/dflt/2022}{} title, Title, pdf2, part, Title, pdf2, @@ -93,7 +93,7 @@ text, P, pdf2, % It is bound to change % \begin{macrocode} %<*ns-latex-book> -%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-06-20} {0.99c} %% {latex-book} {https://www.latex-project.org/ns/book/2022}{} chapter, H1,pdf2, section, H2,pdf2, @@ -107,7 +107,7 @@ subparagraph, H6,pdf2, % \section{The pdf namespace data} % \begin{macrocode} %<*ns-pdf> -%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-06-20} {0.99c} %% {pdf} {http://iso.org/pdf/ssn}{} StructTreeRoot,StructTreeRoot,pdf,D, Document,Document,pdf,D, @@ -175,7 +175,7 @@ Strong,Span,pdf,I, % \section{The pdf 2.0 namespace data} % \begin{macrocode} %<*ns-pdf2> -%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-06-20} {0.99c} %% {pdf2} {http://iso.org/pdf2/ssn}{} StructTreeRoot,StructTreeRoot,pdf2,D, Document,Document,pdf2,D, @@ -232,7 +232,7 @@ Strong,Strong,pdf2,I, % \section{The mathml namespace data} % \begin{macrocode} %<*ns-mathml> -%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-06-20} {0.99c} % {mathml}{http://www.w3.org/1998/Math/MathML}{} abs,abs,mathml, and,and,mathml, @@ -430,7 +430,7 @@ xor,xor,mathml, % \section{Rule naming} % \begin{macro}{\c_@@_role_rules_prop} % These two properties map the rule strings to numbers and back. -% There are in tagpdf-data.dtx near the csv files for easier maintainance. +% There are in tagpdf-data.dtx near the csv files for easier maintenance. % \begin{macrocode} %<*package> \prop_const_from_keyval:Nn \c_@@_role_rules_prop @@ -467,7 +467,7 @@ xor,xor,mathml, % This will perhaps change in future. % \begin{macrocode} %<*parent-child> -%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-06-20} {0.99c} ,,,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 @@ MC,both,---,∅,∅,∅,∅,∅,∅,0..n,‡,∅,∅,∅,0..n,0..n,0..n,0..n,0.. % This will perhaps change in future. % \begin{macrocode} %<*parent-child-2> -%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-04-12} {0.99b} +%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-06-20} {0.99c} ,,,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,∅ diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx index b1ce874db69..0cef27fd3b8 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \end{documentation} @@ -55,11 +55,11 @@ % \begin{macrocode} %<@@=tag> %<*generic> -\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-06-20} {0.99c} {part of tagpdf - code related to marking chunks - generic mode} %</generic> %<*debug> -\ProvidesExplPackage {tagpdf-debug-generic} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-debug-generic} {2024-06-20} {0.99c} {part of tagpdf - debugging code related to marking chunks - generic mode} %</debug> % \end{macrocode} @@ -393,12 +393,12 @@ % \end{macro} % \begin{macro}{\@@_add_missing_mcs_to_stream:Nn} -% This is the main command to add mc to the stream. It is therefor +% This is the main command to add mc to the stream. It is therefore % guarded by the mc-boolean. % % If we aren't in the main stream then processing is a bit more % complicated because to get at the marks in the box we need to -% artifically split it and then look at the split marks. +% artificially split it and then look at the split marks. % % First argument is the box to update and the second is the \enquote{stream}. % In lua mode the command is a no-op. diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx index 9db6cc95fa1..7dd309c5f53 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx @@ -46,10 +46,10 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{implementation} -% The code is splitted into three parts: code shared by all engines, +% The code is split into three parts: code shared by all engines, % code specific to luamode and code not used by luamode. % % \section{Marked content code -- luamode code} @@ -86,11 +86,11 @@ % \begin{macrocode} %<@@=tag> %<*luamode> -\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-06-20} {0.99c} {tagpdf - mc code only for the luamode } %</luamode> %<*debug> -\ProvidesExplPackage {tagpdf-debug-lua} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-debug-lua} {2024-06-20} {0.99c} {part of tagpdf - debugging code related to marking chunks - lua mode} %</debug> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx index aeadb889d46..c96fd8c4c81 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \section{Public Commands} @@ -175,13 +175,13 @@ % \end{function} % \end{documentation} % \begin{implementation} -% The code is splitted into three parts: code shared by all engines, +% The code is split into three parts: code shared by all engines, % code specific to luamode and code not used by luamode. % \section{Marked content code -- shared} % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-06-20} {0.99c} {part of tagpdf - code related to marking chunks - code shared by generic and luamode } %</header> diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx index de239c2db79..80f9da0f6bd 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx @@ -33,7 +33,7 @@ %</driver> % \fi % \title{^^A -% The \pkg{tagpdf-roles} module\\ Tags, roles and namesspace code ^^A +% The \pkg{tagpdf-roles} module\\ Tags, roles and namespace code ^^A % \\ Part of the tagpdf package % } % @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \begin{function} @@ -98,7 +98,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-roles-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-roles-code} {2024-06-20} {0.99c} {part of tagpdf - code related to roles and structure names} %</header> % \end{macrocode} @@ -190,7 +190,7 @@ % \end{variable} % % \begin{variable}{\g_@@_role_tags_class_prop} -% With pdf 2.0 we store the class in the NS dependant props. +% With pdf 2.0 we store the class in the NS dependent props. % With pdf <2.0 we store for now the type(s) of a tag in a common % prop. % Tags that are rolemapped should get the type from @@ -750,19 +750,31 @@ { \hook_gput_code:nnn {begindocument}{tagpdf} { - \cs_if_exist:NT \chapter - { - \prop_map_inline:cn{g_@@_role_NS_latex-book_prop} - { - \@@_role_add_tag:ne {#1}{\use_i:nn #2\c_empty_tl\c_empty_tl} - } - } + \bool_lazy_and:nnT + { + \cs_if_exist_p:N \chapter + } + { + \cs_if_exist_p:N \c@chapter + } + { + \prop_map_inline:cn{g_@@_role_NS_latex-book_prop} + { + \@@_role_add_tag:ne {#1}{\use_i:nn #2\c_empty_tl\c_empty_tl} + } + } } } { \hook_gput_code:nnn {begindocument}{tagpdf} { - \cs_if_exist:NT \chapter + \bool_lazy_and:nnT + { + \cs_if_exist_p:N \chapter + } + { + \cs_if_exist_p:N \c@chapter + } { \prop_map_inline:cn{g_@@_role_NS_latex-book_prop} { diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx index 62c9fd1ecab..a29c8f0fb3d 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \begin{function}{activate/space (setup-key),interwordspace (deprecated)} @@ -58,7 +58,7 @@ % This key is deprecated. Use |debug/show=spaces| instead. % This key works only with luatex and shows with small red % bars where spaces have been inserted. This is only for debugging and -% is not completly reliable (and change affect other literals and tagging), so it +% is not completely reliable (and change affect other literals and tagging), so it % should be used with care. % \end{function} % \end{documentation} @@ -66,12 +66,12 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-space-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-space-code} {2024-06-20} {0.99c} {part of tagpdf - code related to real space chars} %</header> % \end{macrocode} % \section{Code for interword spaces} -% The code is engine/backend dependant. Basically only pdftex and luatex +% The code is engine/backend dependent. Basically only pdftex and luatex % support real space chars. Most of the code for luatex which uses attributes % is in the lua code, here are only the keys. % diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx index 04ffa900cc3..963852b1fca 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \section{Public Commands} @@ -95,7 +95,7 @@ % This inserts an annotation in the structure. \meta{object reference} % is there reference to the annotation. \meta{struct parent number} % should be the same number as had been inserted with \cs{tag_struct_parent_int:} -% as |StructParent| value to the dictionary of the annotion. +% as |StructParent| value to the dictionary of the annotation. % The command will increase the value of the counter % used by \cs{tag_struct_parent_int:}. % \end{function} @@ -147,7 +147,7 @@ % needed as you can only use structures already defined), and by the % |ref| key (which can refer to future structures). % Internally the label name will start with \texttt{tagpdfstruct-} and it stores -% the two attributs |tagstruct| (the structure number) and |tagstructobj| (the +% the two attributes |tagstruct| (the structure number) and |tagstructobj| (the % object reference). % \end{function} % \begin{function}{parent (struct-key)} @@ -285,7 +285,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-struct-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-struct-code} {2024-06-20} {0.99c} {part of tagpdf - code related to storing structure} %</header> % \end{macrocode} @@ -323,7 +323,7 @@ % in generic mode it can happen after % a page break that we have to inject into a structure % sequence an additional mc after. We will store this additional -% info in a property. The key is the absolut mc num, the value the pdf directory. +% info in a property. The key is the absolute mc num, the value the pdf directory. % \begin{macrocode} \@@_prop_new:N \g_@@_struct_cont_mc_prop % \end{macrocode} @@ -419,7 +419,7 @@ T, %title, value in () or <> Lang, %language Alt, % value in () or <> - E, % abreviation + E, % abbreviation ActualText, AF, %pdf 2.0, array of dict, associated files NS, %pdf 2.0, dict, namespace @@ -523,7 +523,7 @@ { g_@@_struct_#1_prop }{#2}{#3} %<debug>\prop_gput:cnn { g_@@_struct_debug_#1_prop } {#2} {#3} } -\cs_generate_variant:Nn \@@_struct_prop_gput:nnn {nne,nee,nno} +\cs_generate_variant:Nn \@@_struct_prop_gput:nnn {onn,nne,nee,nno} %</package|debug> % \end{macrocode} % \end{macro} @@ -902,7 +902,7 @@ % Basically it does what |\pdfdict_use:n| does. % This is used a lot so should be rather fast. % \begin{macrocode} -\cs_new_protected:Npn \@@_struct_get_dict_content:nN #1 #2 %#1: stucture num +\cs_new_protected:Npn \@@_struct_get_dict_content:nN #1 #2 %#1: structure num { \tl_clear:N #2 \prop_map_inline:cn { g_@@_struct_#1_prop } @@ -1270,7 +1270,7 @@ % extension. % AF/AFref is an array and can be used more than once, so we store it in a tl. % which is expanded. -% AFinline currently uses the fix extention txt. +% AFinline currently uses the fix extension txt. % texsource is a special variant which creates a tex-file, it expects a % tl-var as value (e.g. from math grabbing) % @@ -1579,6 +1579,7 @@ { g_@@_struct_ \l_@@_struct_stack_parent_tmpa_tl _prop} {S} \l_@@_tmpa_tl + \quark_if_no_value:NT\l_@@_tmpa_tl{\tl_set:Nn \l_@@_tmpa_tl{UNKNOWN}} \msg_warning:nneee { tag } {role-parent-child} @@ -1936,7 +1937,7 @@ % \section{Attributes and attribute classes} % \begin{macrocode} %<*header> -\ProvidesExplPackage {tagpdf-attr-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-attr-code} {2024-06-20} {0.99c} {part of tagpdf - code related to attributes and attribute classes} %</header> % \end{macrocode} @@ -1962,7 +1963,7 @@ \tl_new:N \l_@@_attr_value_tl \prop_new:N \g_@@_attr_objref_prop %will contain obj num of used attributes % \end{macrocode} -% This seq is currently kept for compability with the table code. +% This seq is currently kept for compatibility with the table code. % \begin{macrocode} \seq_new:N\g_@@_attr_class_used_seq % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx index 63192505236..04b9309597f 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx @@ -47,13 +47,13 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{implementation} % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-tree-code} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-tree-code} {2024-06-20} {0.99c} {part of tagpdf - code related to writing trees and dictionaries to the pdf} %</header> % \end{macrocode} @@ -275,6 +275,10 @@ { \l_@@_tmpa_tl } +% \end{macrocode} +% Better put S back, see https://github.com/latex3/tagging-project/issues/86 +% \begin{macrocode} + \prop_gput:cnn { g_@@_struct_1_prop } {S}{ /StructTreeRoot } } % \end{macrocode} % \end{macro} @@ -506,7 +510,7 @@ { \tl_clear:N \l_@@_tmpa_tl % \end{macrocode} -% We process the older sec for compability with the table code. +% We process the older sec for compatibility with the table code. % TODO: check if still needed % \begin{macrocode} \seq_map_inline:Nn \g_@@_attr_class_used_seq diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx index 099cd95299f..916ff041d01 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.99b, released 2024-04-12} +% \date{Version 0.99c, released 2024-06-20} % \maketitle % \begin{documentation} % \section{Setup commands} @@ -309,7 +309,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-user} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-user} {2024-06-20} {0.99c} {tagpdf - user commands} %</header> % \end{macrocode} @@ -848,7 +848,7 @@ } % \end{macrocode} % \end{macro} -% TEMPORARLY FIX (2023-11-17). Until latex-lab is updated we must adapt a sec command: +% TEMPORARY FIX (2023-11-17). Until latex-lab is updated we must adapt a sec command: % \begin{macrocode} \AddToHook{package/latex-lab-testphase-sec/after} { diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx index 064490c2c4d..e58570340e5 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx @@ -87,7 +87,7 @@ % \begin{macrocode} %<@@=tag> %<*package> -\ProvidesExplPackage {tagpdf} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf} {2024-06-20} {0.99c} { A package to experiment with pdf tagging } \bool_if:nF @@ -113,7 +113,7 @@ % \end{macrocode} %<*debug> % \begin{macrocode} -\ProvidesExplPackage {tagpdf-debug} {2024-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-debug} {2024-06-20} {0.99c} { 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-04-12} {0.99b} +\ProvidesExplPackage {tagpdf-base} {2024-06-20} {0.99c} {part of tagpdf - provide base, no-op versions of the user commands } %</base> % \end{macrocode} @@ -171,15 +171,16 @@ % possible, so we define a command which a special in the relevant backends: % \begin{macrocode} %<*base> +\cs_new_protected:Npn \@@_whatsits: {} \AddToHook{begindocument} { \str_case:VnF \c_sys_backend_str { - { luatex } { \cs_new_protected:Npn \@@_whatsits: {} } - { dvisvgm } { \cs_new_protected:Npn \@@_whatsits: {} } + { luatex } { \cs_set_protected:Npn \@@_whatsits: {} } + { dvisvgm } { \cs_set_protected:Npn \@@_whatsits: {} } } { - \cs_new_protected:Npn \@@_whatsits: {\tex_special:D {} } + \cs_set_protected:Npn \@@_whatsits: {\tex_special:D {} } } } %</base> |