Skip to content

Commit

Permalink
add testphase=latest
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Dec 17, 2024
1 parent 176699b commit 84a5a62
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 10 deletions.
3 changes: 3 additions & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-26 Ulrike Fischer <[email protected]>
* documentmetadata-support.dtx: added "latest" as a testphase value.

2024-12-01 Frank Mittelbach <[email protected]>

* latex-lab-block.dtx (subsection{Handling \tn{par} after the end of the list}):
Expand Down
33 changes: 23 additions & 10 deletions required/latex-lab/documentmetadata-support.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
%
%
Expand Down Expand Up @@ -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|
Expand Down Expand Up @@ -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 }
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down
23 changes: 23 additions & 0 deletions required/latex-lab/testfiles/documentmetadata-latest.lvt
Original file line number Diff line number Diff line change
@@ -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}
39 changes: 39 additions & 0 deletions required/latex-lab/testfiles/documentmetadata-latest.tlg
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 84a5a62

Please sign in to comment.