[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: more regression code into style for now (b3014bd)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Feb 9 10:37:27 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : reworking-annot
Link : https://github.com/latex3/pdfresources/commit/b3014bdc561232d2f3b224378faa416440743db9
>---------------------------------------------------------------
commit b3014bdc561232d2f3b224378faa416440743db9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Feb 9 10:37:27 2021 +0100
more regression code into style for now
>---------------------------------------------------------------
b3014bdc561232d2f3b224378faa416440743db9
build.lua | 1 -
new-regression-test.tex | 298 --------------------------------------
pdfmanagement-regressiontest.sty | 302 ++++++++++++++++++++++++++++++++++++++-
resave.bat | 4 +
4 files changed, 305 insertions(+), 300 deletions(-)
diff --git a/build.lua b/build.lua
index 4501c5a..fa32596 100644
--- a/build.lua
+++ b/build.lua
@@ -12,7 +12,6 @@ sourcefiles = {"*.dtx","*.ins",
"l3ref-tmp.sty",
"xcolor-patches-tmp.sty",
"pdfmanagement-regressiontest.sty",
- "new-regression-test.tex",
"hgeneric-experimental.def",
"newpackages/new-transparent.sty",
"newpackages/new-transparent2.sty",
diff --git a/new-regression-test.tex b/new-regression-test.tex
deleted file mode 100644
index c64a57a..0000000
--- a/new-regression-test.tex
+++ /dev/null
@@ -1,298 +0,0 @@
-%%
-%% This is file `regression-test.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% l3build.dtx (with options: `package')
-%%
-%% Copyright (C) 2014-2018 The LaTeX3 Project
-%%
-%% It may be distributed and/or modified under the conditions of
-%% the LaTeX Project Public License (LPPL), either version 1.3c of
-%% this license or (at your option) any later version. The latest
-%% version of this license is in the file:
-%%
-%% http://www.latex-project.org/lppl.txt
-%%
-%% This file is part of the "l3build bundle" (The Work in LPPL)
-%% and all files in that bundle must be distributed together.
-%%
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname eTeXversion\endcsname\relax
- \message{e-TeX is required by some regression-test.tex features}%
-\fi
-\ifx\unprotect\undefined
- \expandafter\edef\csname reset\string @catcodes\endcsname{%
- \catcode`\noexpand\@=\the\catcode`\@\relax
- }%
- \catcode`\@=11 %
-\else
- \unprotect
- \def\reset at catcodes{\protect}%
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname interactionmode\endcsname\relax
-\else
- \ifnum\interactionmode>1 \scrollmode\fi
-\fi
-\errorcontextlines=-1 %
-\showboxbreadth=\maxdimen
-\showboxdepth=\maxdimen
-\def\loggingoutput{%
- \tracingoutput=1 %
- \showboxbreadth=\maxdimen
- \showboxdepth=\maxdimen
-}
-\newlinechar=`\^^J
-\long\def\LONGTYPEOUT#1{%
- \begingroup
- \long\def\TYPE##1{##1}%
- \immediate\write128{#1}%
- \endgroup
-}
-\let\TYPE\LONGTYPEOUT
-\def\STARTMESSAGE{This is a generated file for the l3build validation system.}
-\def\START{%
- \LONGTYPEOUT{^^JSTART-TEST-LOG^^J}%
- \LONGTYPEOUT{^^J%
- \STARTMESSAGE%
- ^^J^^JDon't change this file in any respect.%
- ^^J^^J%
- }%
-}
-\ifx\@@end\@undefined
- \let\@@@end\end
-\else
- \let\@@@end\@@end
-\fi
-\def\END{%
- \ifnum\currentgrouplevel>0 %
- \LONGTYPEOUT{Bad grouping: \the\currentgrouplevel!}%
- \fi
- \ifnum\currentiflevel>2 %
- \LONGTYPEOUT{Bad conditionals: \the\numexpr\currentiflevel-2!}%
- \fi
- \LONGTYPEOUT{^^JEND-TEST-LOG^^J}%
- \@@@end
-}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname currentgrouplevel\endcsname\relax
- \def\END{%
- \LONGTYPEOUT{^^JEND-TEST-LOG^^J}%
- \@@@end
- }
-\fi
-\ifx\@@end\@undefined
- \let\end\END
-\else
- \let\@@end\END
-\fi
-\def\OMIT{\LONGTYPEOUT{OMIT}}
-\def\TIMO{\LONGTYPEOUT{TIMO}}
-\begingroup % within the scope of this groups each line needs to end in % !
-\catcode`\^^M\active %
-\gdef\SHOWFILE#1{%
- \typeout{-------- #1 (start) ---------}%
-\IfFileExists{#1}%
- {\begingroup %
- \catcode`\^^M\active %
- \edef^^M{^\string^M^^J}%
- \everyeof{\noexpand}%
- \obeyspaces %
- \@sanitize %
- \message{\@@input #1 }%
- \endgroup }%
- {\message{Not found}}%
- \typeout{-------- #1 (end) -----------}%
-}%
-\endgroup
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname everyeof\endcsname\relax
- \def\SHOWFILE#1{\TYPE{FEATURE UNAVAILABLE}}
-\fi
-\ifx\InputIfFileExists\@undefined
- \newread\@inputcheck
- \long\def\InputIfFileExists#1#2#3{%
- \openin\@inputcheck#1\relax
- \ifeof\@inputcheck
- \def\reserved at a{#3}%
- \else
- \def\reserved at a{#2\input #1\relax}%
- \fi
- \closein\@inputcheck
- \reserved at a
- }%
-\fi
-\InputIfFileExists{regression-test.cfg}
- {\LONGTYPEOUT{^^J***^^Jregression-test.cfg in operation^^J***^^J}}{}
-\newcount\gTESTint
-\def\SEPARATOR{%
- \TYPE{%
- ============================================================%
- }%
-}
-\csname protected\endcsname\long\def\BEGINTEST#1{%
- \global\advance\gTESTint by 1 %
- \SEPARATOR
- \LONGTYPEOUT{TEST \the\gTESTint: \detokenize{#1}}%
- \SEPARATOR
- \begingroup
- \let\TYPE\LONGTYPEOUT
-}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname detokenize\endcsname\relax
- \long\def\BEGINTEST#1{%
- \global\advance\gTESTint by 1 %
- \SEPARATOR
- \begingroup
- \toks0={#1}%
- \LONGTYPEOUT{TEST \the\gTESTint: \the\toks0 }%
- \endgroup
- \SEPARATOR
- \begingroup
- \let\TYPE\LONGTYPEOUT
- }
-\fi
-\csname protected\endcsname\long\def\ENDTEST{%
- \endgroup
- \SEPARATOR
- \LONGTYPEOUT{}%
-}
-\long\def\TEST#1#2{%
- \BEGINTEST{#1}%
- #2%
- \ENDTEST
-}
-\long\def\TESTEXP#1#2{%
- \BEGINTEST{#1}%
- \LONGTYPEOUT{#2}%
- \ENDTEST
-}
-\def \TRUE {\TYPE{TRUE}}
-\def \FALSE {\TYPE{FALSE}}
-\def \YES {\TYPE{YES}}
-\def \NO {\TYPE{NO}}
-\def \NEWLINE {\TYPE{^^J}}
-\csname protected\endcsname\long\def\ASSERT#1#2{%
- \begingroup
- \edef\@tempa{#1}%
- \edef\@tempb{#2}%
- \ifx\@tempa\@tempb
- \TYPE{PASSED}%
- \else
- \TYPE{FAILED}%
- \fi
- \endgroup
-}
-\csname protected\endcsname\long\def\ASSERTSTR#1#2{%
- \begingroup
- \edef\@tempa{#1}%
- \edef\@tempb{#2}%
- \edef\@tempa{\meaning\@tempa}%
- \edef\@tempb{\meaning\@tempb}%
- \ifx\@tempa\@tempb
- \TYPE{PASSED}%
- \else
- \TYPE{FAILED}%
- \fi
- \endgroup
-}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname detokenize\endcsname\relax
- \long\def\ASSERTSTR#1#2{%
- \TYPE{FEATURE UNAVAILABLE}%
- }
-\fi
-\ifnum 0%
- \ifx\pdfoutput\@undefined\else\ifnum\pdfoutput>0 1\fi\fi
- \ifx\outputmode\@undefined\else\ifnum\outputmode>0 1\fi\fi
- >0 %
- \ifx\pdfvariable\@undefined
- \pdfcompresslevel=0 %
- \pdfobjcompresslevel=0 %
- \else
- \pdfvariable compresslevel=0 %
- \pdfvariable objcompresslevel=0 %
- \fi
-\else
- \ifx\XeTeXversion\@undefined
- \special{%
- ps: /setdistillerparams
- where
- {pop << /CompressPages false /CompressStreams false >> setdistillerparams}
- if
- }%
- \else
- \special{dvipdfmx:config z 0}% Compress level
- \special{dvipdfmx:config C 0x40}% Object compression
- \fi
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname protected\endcsname\relax
- \reset at catcodes
- \let\protected\undefined
- \expandafter\endinput
-\fi
-\ifx\pdfoutput\@undefined
- \ifx\outputmode\@undefined
- \else
- \ifnum\outputmode>0 %
- \pdfextension mapfile{pdftex.map}%
- \fi
- \fi
-\else
- \ifnum\pdfoutput>0 %
- \pdfmapfile{pdftex.map}%
- \fi
-\fi
-\ifcsname pdfsetupregressiontest\endcsname
- \pdfsetupregressiontest
-\else
- \ifnum 0%
- \ifx\pdfoutput\@undefined\else\ifnum\pdfoutput>0 1\fi\fi
- \ifx\outputmode\@undefined\else\ifnum\outputmode>0 1\fi\fi
- >0 %
- \ifx\pdfvariable\@undefined
- \pdfinfo{/Producer (\ifx\directlua\@undefined pdf\else Lua\fi TeX)}
- \ifx\pdfinfoomitdate\@undefined\else
- \pdfinfoomitdate = 1 %
- \pdfsuppressptexinfo = \numexpr
- 0
- + 1 % PTEX.Fullbanner
- + 2 % PTEX.FileName
- \relax
- \pdftrailerid{}
- \fi
- \else
- \pdfextension info{/Producer (LuaTeX)}
- \pdfvariable suppressoptionalinfo \numexpr
- 0
- + 1 % PTEX.Fullbanner
- + 2 % PTEX.FileName
- + 32 % CreationDate
- + 64 % ModDate
- + 512 % ID
- \relax
- \fi
- \else
- \ifx\XeTeXversion\@undefined
- \special{! <</DocumentUUID (DocumentUUID)>> setpagedevice}
- \special{! <</InstanceUUID (InstanceUUID)>> setpagedevice}
- \else
- \special{%
- pdf: docinfo
- <<
- /Creator (TeX)
- /CreationDate ()
- /ModDate ()
- /Producer (xdvipdfmx)
- >>
- }
- \fi
- \fi
-\fi
-\reset at catcodes
-%%
-%%
-%% End of file `regression-test.tex'.
diff --git a/pdfmanagement-regressiontest.sty b/pdfmanagement-regressiontest.sty
index f991a4e..a69aa63 100644
--- a/pdfmanagement-regressiontest.sty
+++ b/pdfmanagement-regressiontest.sty
@@ -72,5 +72,305 @@
}
}
\ExplSyntaxOff
- \input{new-regression-test}
+
+%copied and adapted from regression-test.tex:
+%% This is file `regression-test.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% l3build.dtx (with options: `package')
+%%
+%% Copyright (C) 2014-2018 The LaTeX3 Project
+%%
+%% It may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License (LPPL), either version 1.3c of
+%% this license or (at your option) any later version. The latest
+%% version of this license is in the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% This file is part of the "l3build bundle" (The Work in LPPL)
+%% and all files in that bundle must be distributed together.
+%%
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname eTeXversion\endcsname\relax
+ \message{e-TeX is required by some regression-test.tex features}%
+\fi
+\ifx\unprotect\undefined
+ \expandafter\edef\csname reset\string @catcodes\endcsname{%
+ \catcode`\noexpand\@=\the\catcode`\@\relax
+ }%
+ \catcode`\@=11 %
+\else
+ \unprotect
+ \def\reset at catcodes{\protect}%
+\fi
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname interactionmode\endcsname\relax
+\else
+ \ifnum\interactionmode>1 \scrollmode\fi
+\fi
+\errorcontextlines=-1 %
+\showboxbreadth=\maxdimen
+\showboxdepth=\maxdimen
+\def\loggingoutput{%
+ \tracingoutput=1 %
+ \showboxbreadth=\maxdimen
+ \showboxdepth=\maxdimen
+}
+\newlinechar=`\^^J
+\long\def\LONGTYPEOUT#1{%
+ \begingroup
+ \long\def\TYPE##1{##1}%
+ \immediate\write128{#1}%
+ \endgroup
+}
+\let\TYPE\LONGTYPEOUT
+\def\STARTMESSAGE{This is a generated file for the l3build validation system.}
+\def\START{%
+ \LONGTYPEOUT{^^JSTART-TEST-LOG^^J}%
+ \LONGTYPEOUT{^^J%
+ \STARTMESSAGE%
+ ^^J^^JDon't change this file in any respect.%
+ ^^J^^J%
+ }%
+}
+\ifx\@@end\@undefined
+ \let\@@@end\end
+\else
+ \let\@@@end\@@end
+\fi
+\def\END{%
+ \ifnum\currentgrouplevel>0 %
+ \LONGTYPEOUT{Bad grouping: \the\currentgrouplevel!}%
+ \fi
+ \ifnum\currentiflevel>2 %
+ \LONGTYPEOUT{Bad conditionals: \the\numexpr\currentiflevel-2!}%
+ \fi
+ \LONGTYPEOUT{^^JEND-TEST-LOG^^J}%
+ \@@@end
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname currentgrouplevel\endcsname\relax
+ \def\END{%
+ \LONGTYPEOUT{^^JEND-TEST-LOG^^J}%
+ \@@@end
+ }
+\fi
+\ifx\@@end\@undefined
+ \let\end\END
+\else
+ \let\@@end\END
+\fi
+\def\OMIT{\LONGTYPEOUT{OMIT}}
+\def\TIMO{\LONGTYPEOUT{TIMO}}
+\begingroup % within the scope of this groups each line needs to end in % !
+\catcode`\^^M\active %
+\gdef\SHOWFILE#1{%
+ \typeout{-------- #1 (start) ---------}%
+\IfFileExists{#1}%
+ {\begingroup %
+ \catcode`\^^M\active %
+ \edef^^M{^\string^M^^J}%
+ \everyeof{\noexpand}%
+ \obeyspaces %
+ \@sanitize %
+ \message{\@@input #1 }%
+ \endgroup }%
+ {\message{Not found}}%
+ \typeout{-------- #1 (end) -----------}%
+}%
+\endgroup
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname everyeof\endcsname\relax
+ \def\SHOWFILE#1{\TYPE{FEATURE UNAVAILABLE}}
+\fi
+\ifx\InputIfFileExists\@undefined
+ \newread\@inputcheck
+ \long\def\InputIfFileExists#1#2#3{%
+ \openin\@inputcheck#1\relax
+ \ifeof\@inputcheck
+ \def\reserved at a{#3}%
+ \else
+ \def\reserved at a{#2\input #1\relax}%
+ \fi
+ \closein\@inputcheck
+ \reserved at a
+ }%
+\fi
+\InputIfFileExists{regression-test.cfg}
+ {\LONGTYPEOUT{^^J***^^Jregression-test.cfg in operation^^J***^^J}}{}
+\newcount\gTESTint
+\def\SEPARATOR{%
+ \TYPE{%
+ ============================================================%
+ }%
+}
+\csname protected\endcsname\long\def\BEGINTEST#1{%
+ \global\advance\gTESTint by 1 %
+ \SEPARATOR
+ \LONGTYPEOUT{TEST \the\gTESTint: \detokenize{#1}}%
+ \SEPARATOR
+ \begingroup
+ \let\TYPE\LONGTYPEOUT
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname detokenize\endcsname\relax
+ \long\def\BEGINTEST#1{%
+ \global\advance\gTESTint by 1 %
+ \SEPARATOR
+ \begingroup
+ \toks0={#1}%
+ \LONGTYPEOUT{TEST \the\gTESTint: \the\toks0 }%
+ \endgroup
+ \SEPARATOR
+ \begingroup
+ \let\TYPE\LONGTYPEOUT
+ }
+\fi
+\csname protected\endcsname\long\def\ENDTEST{%
+ \endgroup
+ \SEPARATOR
+ \LONGTYPEOUT{}%
+}
+\long\def\TEST#1#2{%
+ \BEGINTEST{#1}%
+ #2%
+ \ENDTEST
+}
+\long\def\TESTEXP#1#2{%
+ \BEGINTEST{#1}%
+ \LONGTYPEOUT{#2}%
+ \ENDTEST
+}
+\def \TRUE {\TYPE{TRUE}}
+\def \FALSE {\TYPE{FALSE}}
+\def \YES {\TYPE{YES}}
+\def \NO {\TYPE{NO}}
+\def \NEWLINE {\TYPE{^^J}}
+\csname protected\endcsname\long\def\ASSERT#1#2{%
+ \begingroup
+ \edef\@tempa{#1}%
+ \edef\@tempb{#2}%
+ \ifx\@tempa\@tempb
+ \TYPE{PASSED}%
+ \else
+ \TYPE{FAILED}%
+ \fi
+ \endgroup
+}
+\csname protected\endcsname\long\def\ASSERTSTR#1#2{%
+ \begingroup
+ \edef\@tempa{#1}%
+ \edef\@tempb{#2}%
+ \edef\@tempa{\meaning\@tempa}%
+ \edef\@tempb{\meaning\@tempb}%
+ \ifx\@tempa\@tempb
+ \TYPE{PASSED}%
+ \else
+ \TYPE{FAILED}%
+ \fi
+ \endgroup
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname detokenize\endcsname\relax
+ \long\def\ASSERTSTR#1#2{%
+ \TYPE{FEATURE UNAVAILABLE}%
+ }
+\fi
+\ifnum 0%
+ \ifx\pdfoutput\@undefined\else\ifnum\pdfoutput>0 1\fi\fi
+ \ifx\outputmode\@undefined\else\ifnum\outputmode>0 1\fi\fi
+ >0 %
+ \ifx\pdfvariable\@undefined
+ \pdfcompresslevel=0 %
+ \pdfobjcompresslevel=0 %
+ \else
+ \pdfvariable compresslevel=0 %
+ \pdfvariable objcompresslevel=0 %
+ \fi
+\else
+ \ifx\XeTeXversion\@undefined
+ \special{%
+ ps: /setdistillerparams
+ where
+ {pop << /CompressPages false /CompressStreams false >> setdistillerparams}
+ if
+ }%
+ \else
+ \special{dvipdfmx:config z 0}% Compress level
+ \special{dvipdfmx:config C 0x40}% Object compression
+ \fi
+\fi
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname protected\endcsname\relax
+ \reset at catcodes
+ \let\protected\undefined
+ \expandafter\endinput
+\fi
+\ifx\pdfoutput\@undefined
+ \ifx\outputmode\@undefined
+ \else
+ \ifnum\outputmode>0 %
+ \pdfextension mapfile{pdftex.map}%
+ \fi
+ \fi
+\else
+ \ifnum\pdfoutput>0 %
+ \pdfmapfile{pdftex.map}%
+ \fi
+\fi
+%%%changed
+\ifcsname pdfsetupregressiontest\endcsname
+ \pdfsetupregressiontest
+\else
+ \ifnum 0%
+ \ifx\pdfoutput\@undefined\else\ifnum\pdfoutput>0 1\fi\fi
+ \ifx\outputmode\@undefined\else\ifnum\outputmode>0 1\fi\fi
+ >0 %
+ \ifx\pdfvariable\@undefined
+ \pdfinfo{/Producer (\ifx\directlua\@undefined pdf\else Lua\fi TeX)}
+ \ifx\pdfinfoomitdate\@undefined\else
+ \pdfinfoomitdate = 1 %
+ \pdfsuppressptexinfo = \numexpr
+ 0
+ + 1 % PTEX.Fullbanner
+ + 2 % PTEX.FileName
+ \relax
+ \pdftrailerid{}
+ \fi
+ \else
+ \pdfextension info{/Producer (LuaTeX)}
+ \pdfvariable suppressoptionalinfo \numexpr
+ 0
+ + 1 % PTEX.Fullbanner
+ + 2 % PTEX.FileName
+ + 32 % CreationDate
+ + 64 % ModDate
+ + 512 % ID
+ \relax
+ \fi
+ \else
+ \ifx\XeTeXversion\@undefined
+ \special{! <</DocumentUUID (DocumentUUID)>> setpagedevice}
+ \special{! <</InstanceUUID (InstanceUUID)>> setpagedevice}
+ \else
+ \special{%
+ pdf: docinfo
+ <<
+ /Creator (TeX)
+ /CreationDate ()
+ /ModDate ()
+ /Producer (xdvipdfmx)
+ >>
+ }
+ \fi
+ \fi
+\fi
+\reset at catcodes
+%%
+%%
+%% End of file `regression-test.tex'.
+
\endinput
diff --git a/resave.bat b/resave.bat
index 4154956..a2f825a 100644
--- a/resave.bat
+++ b/resave.bat
@@ -6,3 +6,7 @@ rem l3build save -cconfig-noxetex -e\2 \1
REM - ./build/test-config-noxetex/metadata.luatex.pdf.fc
REM - ./build/test-config-noxetex/metadata.pdftex.pdf.fc
+
+l3build save -eluatex annot
+l3build save -epdftex annot
+l3build save -exetex annot
More information about the latex3-commits
mailing list.