From 84a5a62431a96221d9d2c981e26b1c89a4dff6dd Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Tue, 17 Dec 2024 17:39:48 +0100 Subject: [PATCH] add testphase=latest --- required/latex-lab/changes.txt | 3 ++ .../latex-lab/documentmetadata-support.dtx | 33 +++++++++++----- .../testfiles/documentmetadata-latest.lvt | 23 +++++++++++ .../testfiles/documentmetadata-latest.tlg | 39 +++++++++++++++++++ 4 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 required/latex-lab/testfiles/documentmetadata-latest.lvt create mode 100644 required/latex-lab/testfiles/documentmetadata-latest.tlg diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt index b4672a9b0..79ec1fab5 100644 --- a/required/latex-lab/changes.txt +++ b/required/latex-lab/changes.txt @@ -1,3 +1,6 @@ +2024-11-26 Ulrike Fischer + * documentmetadata-support.dtx: added "latest" as a testphase value. + 2024-12-01 Frank Mittelbach * latex-lab-block.dtx (subsection{Handling \tn{par} after the end of the list}): diff --git a/required/latex-lab/documentmetadata-support.dtx b/required/latex-lab/documentmetadata-support.dtx index 6752e8098..81d39ac8f 100644 --- a/required/latex-lab/documentmetadata-support.dtx +++ b/required/latex-lab/documentmetadata-support.dtx @@ -18,8 +18,8 @@ % for those people who are interested or want to report an issue. % % \begin{macrocode} -\def\documentmetadatasupportversion{1.0j} -\def\documentmetadatasupportdate{2024-09-13} +\def\documentmetadatasupportversion{1.0k} +\def\documentmetadatasupportdate{2024-12-17} % \end{macrocode} % % @@ -138,13 +138,12 @@ % but they will pass the information to hyperref. The |a| variants % do \emph{not} enforce (or even test) a tagged pdf yet. % -% Starting with version 0.95s of \pkg{pdfmanagement-testphase} -% it is also possible to use the values -% |X-4|, |X-4p|, |X-5g|, |X-5n|, |X-5pg|, |X-6|, |X-6n|, |X-6p|, |UA-1| for -% a PDF/X and PDF/UA standard. These keys currently set \emph{only} the relevant -% XMP-metadata. In version 0.95z support for |UA-2| has been added but -% note that |UA-2| hasn't been released yet. It should be used only together -% with pdf version 2.0. +% Beside the A-standards it is also possible to use the values +% |X-4|, |X-4p|, |X-5g|, |X-5n|, |X-5pg|, |X-6|, |X-6n|, |X-6p| for +% a PDF/X and |UA-1| and |UA-2| for PDF/UA standard. +% |UA-2| should only be used together with PDF 2.0. +% These keys currently set mostly \emph{only} the relevant +% XMP-metadata. % % |pdfstandard| can be used more than once to set overlapping standards, e.g:\\ % |pdfstandard=A-2b,pdfstandard=X-4,pdfstandard=UA-1| @@ -428,6 +427,7 @@ % \end{macro} %\subsection{\cs{DocumentMetadata} keys} +%\changes{1.0k}{2024-12-17}{added latest value for testphase key.} % \begin{macrocode} \keys_define:nn { document / metadata } { @@ -501,6 +501,14 @@ \msg_error:nnn{pdf}{unknown-standard}{#1} } ,testphase .multichoice: + ,testphase / latest .code:n = + { + \keys_set:nn + {document / metadata} + {testphase={phase-III,title,table,math,firstaid}} + \msg_note:nnn { meta } { testphase-latest-loading } + { phase-III,~title,~table,~math,~firstaid } + } ,testphase / tagpdf .code:n = { \tl_gput_right:Nn\g_@@_testphase_tl @@ -598,7 +606,12 @@ { The~language~has~not~been~set~in~\token_to_str:N \DocumentMetadata.\\Setting~it~to~'#1'~as~fallback. - } + } +\msg_new:nnn { meta } { testphase-latest-loading } + { + Loading~testphase~modules\\ + #1 + } % \end{macrocode} % % \begin{macrocode} diff --git a/required/latex-lab/testfiles/documentmetadata-latest.lvt b/required/latex-lab/testfiles/documentmetadata-latest.lvt new file mode 100644 index 000000000..31e9c9f6f --- /dev/null +++ b/required/latex-lab/testfiles/documentmetadata-latest.lvt @@ -0,0 +1,23 @@ +\input{regression-test} + +\ExplSyntaxOn +\debug_on:n { check-declarations , deprecation } +\ExplSyntaxOff + + +% the backend loading is engine dependent with path names that show through :-( + +\DocumentMetadata{uncompress} + +\START + +\DocumentMetadata{testphase=latest} + + +\documentclass{article} + +\begin{document} + +aaa + +\end{document} diff --git a/required/latex-lab/testfiles/documentmetadata-latest.tlg b/required/latex-lab/testfiles/documentmetadata-latest.tlg new file mode 100644 index 000000000..b6010f6ee --- /dev/null +++ b/required/latex-lab/testfiles/documentmetadata-latest.tlg @@ -0,0 +1,39 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX DocumentMetadata Info: Loading testphase modules +(DocumentMetadata) phase-III, title, table, math, firstaid +(article.cls +Document Class: article ....-..-.. v... Standard LaTeX document class +(size10.clo +File: size10.clo ....-..-.. v... Standard LaTeX file (size option) +) +\c@part=\count... +\c@section=\count... +\c@subsection=\count... +\c@subsubsection=\count... +\c@paragraph=\count... +\c@subparagraph=\count... +\c@figure=\count... +\c@table=\count... +\abovecaptionskip=\skip... +\belowcaptionskip=\skip... +\bibindent=\dimen... +) (documentmetadata-latest.aux) +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line .... +LaTeX Font Info: ... okay on input line .... +LaTeX DocumentMetadata Warning: The language has not been set in \DocumentMetadata. +(DocumentMetadata) Setting it to 'en' as fallback. +[1 +] (documentmetadata-latest.aux)