[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: starting dvips tests (f73f472)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Mar 10 15:52:13 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/f73f472c8ce6e358141148b9b92a3993b7225980

>---------------------------------------------------------------

commit f73f472c8ce6e358141148b9b92a3993b7225980
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Mar 10 15:52:13 2020 +0100

    starting dvips tests


>---------------------------------------------------------------

f73f472c8ce6e358141148b9b92a3993b7225980
 build.lua                                    |   9 ++++++---
 config-dvips.lua                             |  13 +++++++++++++
 testfiles-dvips/annot.pvt                    |  20 ++++++++++++++++++++
 testfiles-dvips/annot.tpf                    | Bin 0 -> 9206 bytes
 {testfiles => testfiles-dvips}/catalogAF.pvt |   2 ++
 testfiles-dvips/catalogAF.tpf                | Bin 0 -> 4929 bytes
 6 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/build.lua b/build.lua
index 52a573a..4c57751 100644
--- a/build.lua
+++ b/build.lua
@@ -23,8 +23,10 @@ else
   print("TL2020 or later")
 
   specialformats = specialformats or {}
-  specialformats["latex"] = specialformats["latex"] or {
-    luatex = {binary="luahbtex",format = "lualatex"}
+  specialformats["latex"] = specialformats["latex"] or 
+   {
+    luatex   = {binary="luahbtex",format = "lualatex"},
+    dvipsbat = {binary="l3builddvips",format = ""}
     }
 end
 
@@ -32,6 +34,7 @@ checkengines = {"luatex","pdftex","xetex"}
 
 checkconfigs = {"build",
                 "config-noxetex",
-                "config-luatex"
+                "config-luatex",
+                -- "config-dvips" -- works currently only locally
                 }
 
diff --git a/config-dvips.lua b/config-dvips.lua
new file mode 100644
index 0000000..a1975b1
--- /dev/null
+++ b/config-dvips.lua
@@ -0,0 +1,13 @@
+testfiledir  = "testfiles-dvips"
+checkengines = {"dvipsbat"}
+stdengine     = "dvipsbat"
+checkruns=3
+dviext="xxx"
+
+-- the use of this config file, needs a patch (or something equivalent)
+-- called l3builddvips and which this content:
+--
+-- latex  %1 %2 %3 %4 %5
+-- dvips %4
+---ps2pdf -sDocumentUUID=DocumentUUID -sInstanceUUID=InstanceUUID -dCompressStreams=false -dCompressPages=false -dNOSAFER %4.ps
+
diff --git a/testfiles-dvips/annot.pvt b/testfiles-dvips/annot.pvt
new file mode 100644
index 0000000..582521d
--- /dev/null
+++ b/testfiles-dvips/annot.pvt
@@ -0,0 +1,20 @@
+\input{regression-test}
+\documentclass{article}
+\usepackage{pdfresources}
+\ExplSyntaxOn
+\pdf_uncompress:
+\ExplSyntaxOff
+\begin{document}
+\START 
+% just to avoid to have to escape every space ...
+\def\testcontent{/Subtype/Widget/F 4/T(abc)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()}
+\ExplSyntaxOn
+\cs_generate_variant:Nn \pdf_annotation:nnnn {nnno}
+xx\pdf_annotation:nnno
+          {1cm}
+          {1cm}
+          {0pt} 
+          {\testcontent}
+\ExplSyntaxOff
+xxyyzzww
+\end{document}
\ No newline at end of file
diff --git a/testfiles-dvips/annot.tpf b/testfiles-dvips/annot.tpf
new file mode 100644
index 0000000..cccd4c5
Binary files /dev/null and b/testfiles-dvips/annot.tpf differ
diff --git a/testfiles/catalogAF.pvt b/testfiles-dvips/catalogAF.pvt
similarity index 88%
copy from testfiles/catalogAF.pvt
copy to testfiles-dvips/catalogAF.pvt
index b58fb22..1977dd9 100644
--- a/testfiles/catalogAF.pvt
+++ b/testfiles-dvips/catalogAF.pvt
@@ -10,6 +10,8 @@
 \documentclass{article}
 \ExplSyntaxOn
 %senseless values ...
+\pdf_info_gput:nn{CreationDate}{(0)}
+\pdf_info_gput:nn{ModDate}{(0)}
 \pdf_object_new:nn   {filespec1}{dict}
 \pdf_object_write:nn {filespec1} {/Type /Filespec /UF (example1.pdf)}
 \pdf_object_new:nn   {filespec2}{dict}
diff --git a/testfiles-dvips/catalogAF.tpf b/testfiles-dvips/catalogAF.tpf
new file mode 100644
index 0000000..2d9debe
Binary files /dev/null and b/testfiles-dvips/catalogAF.tpf differ





More information about the latex3-commits mailing list.