From a43f1ccb01daee9f86faae3da045e46c45450ed5 Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Fri, 2 Feb 2024 19:50:51 +0100 Subject: [PATCH] step version --- CHANGELOG.md | 9 +++++++++ Readme.md | 4 ++-- build.lua | 4 ++-- ctan.ann | 10 ++++++---- doc/CTANREADME.md | 4 ++-- doc/tagpdf.tex | 4 ++-- doc/tagpdfdocu-patches.sty | 2 +- tagpdf-backend.dtx | 8 ++++---- tagpdf-checks.dtx | 4 ++-- tagpdf-data.dtx | 18 +++++++++--------- tagpdf-mc-generic.dtx | 6 +++--- tagpdf-mc-luacode.dtx | 6 +++--- tagpdf-mc-shared.dtx | 4 ++-- tagpdf-roles.dtx | 4 ++-- tagpdf-space.dtx | 4 ++-- tagpdf-struct.dtx | 6 +++--- tagpdf-tree.dtx | 4 ++-- tagpdf-user.dtx | 4 ++-- tagpdf.dtx | 6 +++--- 19 files changed, 61 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd67e940..bec208d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to the `tagpdf` package since the The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), this project uses date-based 'snapshot' version identifiers. +## [2024-02-02] +Version 0.98u + +### Changed + - the para/begin and para/end hook now use sockets and properly support the block + code in latex-lab. + - the structure number of the current para-main structure is stored to allow + manipulations of the structure. + ## [2024-01-26] Version 0.98t diff --git a/Readme.md b/Readme.md index 94711a42..f96d42f9 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,7 @@ # tagpdf -![Version: 0.98t](https://img.shields.io/badge/current_version-0.98t-blue.svg?style=flat-square) -![Date: 2024-01-26](https://img.shields.io/badge/date-2024--01--26-blue.svg?style=flat-square) +![Version: 0.98u](https://img.shields.io/badge/current_version-0.98u-blue.svg?style=flat-square) +![Date: 2024-02-02](https://img.shields.io/badge/date-2024--02--02-blue.svg?style=flat-square) [![License: LPPL1.3c ](https://img.shields.io/badge/license-LPPL1.3c-blue.svg?style=flat-square)](https://ctan.org/license/lppl1.3c) A package to experiment with tagging and other requirements of accessible pdfs with pdflatex and lualatex diff --git a/build.lua b/build.lua index 3c60b77f..846d324b 100644 --- a/build.lua +++ b/build.lua @@ -1,6 +1,6 @@ -- Build script for tagpdf -packageversion="0.98t" -packagedate="2024-01-26" +packageversion="0.98u" +packagedate="2024-02-02" module = "tagpdf" ctanpkg = "tagpdf" diff --git a/ctan.ann b/ctan.ann index 267440cd..39b35609 100644 --- a/ctan.ann +++ b/ctan.ann @@ -1,6 +1,8 @@ -Version 0.98t [2024-01-26] +Version 0.98u [2024-02-02] -### Changed - - add RoleMap also with pdf 2.0 to improve compability to 1.7-processor - - add option 'mathml-tags' to add mathml to this fallback RoleMap +### Changed + - the para/begin and para/end hook now use sockets and properly support the block + code in latex-lab. + - the structure number of the current para-main structure is stored to allow + manipulations of the structure. diff --git a/doc/CTANREADME.md b/doc/CTANREADME.md index b64c5a23..96a566d0 100644 --- a/doc/CTANREADME.md +++ b/doc/CTANREADME.md @@ -1,6 +1,6 @@ #tagpdf — A package to create tagged pdf -Packageversion: 0.98t -Packagedate: 2024/01/26 +Packageversion: 0.98u +Packagedate: 2024/02/02 Author: Ulrike Fischer, LaTeX Project Team ## License diff --git a/doc/tagpdf.tex b/doc/tagpdf.tex index 2d9ab2ef..0b94e940 100644 --- a/doc/tagpdf.tex +++ b/doc/tagpdf.tex @@ -16,8 +16,8 @@ } \DebugBlocksOff \makeatletter -\def\UlrikeFischer@package@version{0.98t} -\def\UlrikeFischer@package@date{2024-01-26} +\def\UlrikeFischer@package@version{0.98u} +\def\UlrikeFischer@package@date{2024-02-02} \makeatother \documentclass[bibliography=totoc,a4paper]{article} diff --git a/doc/tagpdfdocu-patches.sty b/doc/tagpdfdocu-patches.sty index 90418591..bc74eb1b 100644 --- a/doc/tagpdfdocu-patches.sty +++ b/doc/tagpdfdocu-patches.sty @@ -1,5 +1,5 @@ %\RequirePackage[enable-debug]{expl3}[2018/06/14] -\ProvidesExplPackage {tagpdfdocu-patches} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdfdocu-patches} {2024-02-02} {0.98u} {patches/commands for the tagpdf documentation} \RequirePackage{etoolbox,xpatch} diff --git a/tagpdf-backend.dtx b/tagpdf-backend.dtx index 809fb896..811da157 100644 --- a/tagpdf-backend.dtx +++ b/tagpdf-backend.dtx @@ -47,13 +47,13 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{implementation} % \begin{macrocode} %<@@=tag> %<*luatex> -\ProvidesExplFile {tagpdf-luatex.def} {2024-01-26} {0.98t} +\ProvidesExplFile {tagpdf-luatex.def} {2024-02-02} {0.98u} {tagpdf~driver~for~luatex} % \end{macrocode} % \section{Loading the lua} @@ -158,8 +158,8 @@ local ProvidesLuaModule = { name = "tagpdf", - version = "0.98t", --TAGVERSION - date = "2024-01-26", --TAGDATE + version = "0.98u", --TAGVERSION + date = "2024-02-02", --TAGDATE description = "tagpdf lua code", license = "The LATEX Project Public License 1.3c" } diff --git a/tagpdf-checks.dtx b/tagpdf-checks.dtx index 5205df1c..83586fb2 100644 --- a/tagpdf-checks.dtx +++ b/tagpdf-checks.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \section{Commands} @@ -327,7 +327,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-checks-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-checks-code} {2024-02-02} {0.98u} {part of tagpdf - code related to checks, conditionals, debugging and messages} % % \end{macrocode} diff --git a/tagpdf-data.dtx b/tagpdf-data.dtx index e9f0d147..64052152 100644 --- a/tagpdf-data.dtx +++ b/tagpdf-data.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % This files contains a various data files which are read in @@ -60,7 +60,7 @@ % It lists the new tag, the rolemap and the namespace of the rolemap. % \begin{macrocode} %<*ns-latex> -%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-02-02} {0.98u} %% {latex} {https://www.latex-project.org/ns/dflt/2022}{} title, Title, pdf2, part, Title, pdf2, @@ -92,7 +92,7 @@ text, P, pdf2, % It is bound to change % \begin{macrocode} %<*ns-latex-book> -%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-02-02} {0.98u} %% {latex-book} {https://www.latex-project.org/ns/book/2022}{} chapter, H1,pdf2, section, H2,pdf2, @@ -108,7 +108,7 @@ subparagraph, H6,pdf2, % loaded. % \begin{macrocode} %<*ns-latex-inline> -%% \ProvidesExplFile {tagpdf-ns-latex-inline.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-latex-inline.def} {2024-02-02} {0.98u} %% {latex-inline} {https://www.latex-project.org/ns/inline/2022}{} chapter, Span, pdf2, section, Span, pdf2, @@ -122,7 +122,7 @@ P, Span, pdf2, % \section{The pdf namespace data} % \begin{macrocode} %<*ns-pdf> -%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-02-02} {0.98u} %% {pdf} {http://iso.org/pdf/ssn}{} StructTreeRoot,StructTreeRoot,pdf,D, Document,Document,pdf,D, @@ -190,7 +190,7 @@ Strong,Span,pdf,I, % \section{The pdf 2.0 namespace data} % \begin{macrocode} %<*ns-pdf2> -%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-02-02} {0.98u} %% {pdf2} {http://iso.org/pdf2/ssn}{} StructTreeRoot,StructTreeRoot,pdf2,D, Document,Document,pdf2,D, @@ -247,7 +247,7 @@ Strong,Strong,pdf2,I, % \section{The mathml namespace data} % \begin{macrocode} %<*ns-mathml> -%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-02-02} {0.98u} % {mathml}{http://www.w3.org/1998/Math/MathML}{} abs,abs,mathml, and,and,mathml, @@ -482,7 +482,7 @@ xor,xor,mathml, % This will perhaps change in future. % \begin{macrocode} %<*parent-child> -%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-02-02} {0.98u} ,,,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,∅,∅ @@ -537,7 +537,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-01-26} {0.98t} +%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-02-02} {0.98u} ,,,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/tagpdf-mc-generic.dtx b/tagpdf-mc-generic.dtx index 3764e92d..04f55016 100644 --- a/tagpdf-mc-generic.dtx +++ b/tagpdf-mc-generic.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \end{documentation} @@ -55,11 +55,11 @@ % \begin{macrocode} %<@@=tag> %<*generic> -\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-02-02} {0.98u} {part of tagpdf - code related to marking chunks - generic mode} % %<*debug> -\ProvidesExplPackage {tagpdf-debug-generic} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-debug-generic} {2024-02-02} {0.98u} {part of tagpdf - debugging code related to marking chunks - generic mode} % % \end{macrocode} diff --git a/tagpdf-mc-luacode.dtx b/tagpdf-mc-luacode.dtx index 20dd45ec..8f9678e5 100644 --- a/tagpdf-mc-luacode.dtx +++ b/tagpdf-mc-luacode.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \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-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-02-02} {0.98u} {tagpdf - mc code only for the luamode } % %<*debug> -\ProvidesExplPackage {tagpdf-debug-lua} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-debug-lua} {2024-02-02} {0.98u} {part of tagpdf - debugging code related to marking chunks - lua mode} % % \end{macrocode} diff --git a/tagpdf-mc-shared.dtx b/tagpdf-mc-shared.dtx index db7c7277..8799df3d 100644 --- a/tagpdf-mc-shared.dtx +++ b/tagpdf-mc-shared.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \section{Public Commands} @@ -181,7 +181,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-02-02} {0.98u} {part of tagpdf - code related to marking chunks - code shared by generic and luamode } % diff --git a/tagpdf-roles.dtx b/tagpdf-roles.dtx index 682c4e38..98750fa4 100644 --- a/tagpdf-roles.dtx +++ b/tagpdf-roles.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \begin{function} @@ -98,7 +98,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-roles-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-roles-code} {2024-02-02} {0.98u} {part of tagpdf - code related to roles and structure names} % % \end{macrocode} diff --git a/tagpdf-space.dtx b/tagpdf-space.dtx index feff45c1..3e3b3de7 100644 --- a/tagpdf-space.dtx +++ b/tagpdf-space.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \begin{function}{interwordspace (setup-key)} @@ -64,7 +64,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-space-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-space-code} {2024-02-02} {0.98u} {part of tagpdf - code related to real space chars} % % \end{macrocode} diff --git a/tagpdf-struct.dtx b/tagpdf-struct.dtx index bcc9083a..8f0dd1e7 100644 --- a/tagpdf-struct.dtx +++ b/tagpdf-struct.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \section{Public Commands} @@ -285,7 +285,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-struct-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-struct-code} {2024-02-02} {0.98u} {part of tagpdf - code related to storing structure} % % \end{macrocode} @@ -1905,7 +1905,7 @@ % \section{Attributes and attribute classes} % \begin{macrocode} %<*header> -\ProvidesExplPackage {tagpdf-attr-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-attr-code} {2024-02-02} {0.98u} {part of tagpdf - code related to attributes and attribute classes} % % \end{macrocode} diff --git a/tagpdf-tree.dtx b/tagpdf-tree.dtx index 362f3ecf..d9ed68f3 100644 --- a/tagpdf-tree.dtx +++ b/tagpdf-tree.dtx @@ -47,13 +47,13 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{implementation} % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-tree-code} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-tree-code} {2024-02-02} {0.98u} {part of tagpdf - code related to writing trees and dictionaries to the pdf} % % \end{macrocode} diff --git a/tagpdf-user.dtx b/tagpdf-user.dtx index 3aa2a3dc..aea543ba 100644 --- a/tagpdf-user.dtx +++ b/tagpdf-user.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98t, released 2024-01-26} +% \date{Version 0.98u, released 2024-02-02} % \maketitle % \begin{documentation} % \section{Setup commands} @@ -303,7 +303,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-user} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-user} {2024-02-02} {0.98u} {tagpdf - user commands} % % \end{macrocode} diff --git a/tagpdf.dtx b/tagpdf.dtx index 71585725..d1ccff92 100644 --- a/tagpdf.dtx +++ b/tagpdf.dtx @@ -84,7 +84,7 @@ % \begin{macrocode} %<@@=tag> %<*package> -\ProvidesExplPackage {tagpdf} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf} {2024-02-02} {0.98u} { A package to experiment with pdf tagging } \bool_if:nF @@ -110,7 +110,7 @@ % \end{macrocode} %<*debug> % \begin{macrocode} -\ProvidesExplPackage {tagpdf-debug} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-debug} {2024-02-02} {0.98u} { debug code for tagpdf } \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput} % \end{macrocode} @@ -133,7 +133,7 @@ % we define a base package with dummy functions % \begin{macrocode} %<*base> -\ProvidesExplPackage {tagpdf-base} {2024-01-26} {0.98t} +\ProvidesExplPackage {tagpdf-base} {2024-02-02} {0.98u} {part of tagpdf - provide base, no-op versions of the user commands } % % \end{macrocode}