[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: tests for annot_last (bcfc929)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jun 30 00:03:06 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/bcfc929f77a163545bb73348f78a2d6eff3849b7

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

commit bcfc929f77a163545bb73348f78a2d6eff3849b7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Jun 30 00:03:06 2020 +0200

    tests for annot_last


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

bcfc929f77a163545bb73348f78a2d6eff3849b7
 ...t_if_empty.luatex.tlg => annot-last.luatex.tlg} | 112 ++++++++++-----------
 testfiles/annot-last.lvt                           |  37 +++++++
 testfiles/annot-last.tlg                           |  96 ++++++++++++++++++
 ...ict_if_empty.xetex.tlg => annot-last.xetex.tlg} |  50 ++++-----
 4 files changed, 205 insertions(+), 90 deletions(-)

diff --git a/testfiles/dict_if_empty.luatex.tlg b/testfiles/annot-last.luatex.tlg
similarity index 53%
copy from testfiles/dict_if_empty.luatex.tlg
copy to testfiles/annot-last.luatex.tlg
index e20441c..02259fe 100644
--- a/testfiles/dict_if_empty.luatex.tlg
+++ b/testfiles/annot-last.luatex.tlg
@@ -17,104 +17,94 @@ ly_i\ETC.}
 ...\hbox(0.0+0.0)x345.0, direction TLT
 ..\glue 25.0
 ..\glue(\lineskip) 0.0
-..\vbox(550.0+0.0)x345.0, glue set 491.94745fil, direction TLT
+..\vbox(550.0+0.0)x345.0, glue set 515.94489fil, direction TLT
 ...\write-{}
-...\glue(\topskip) 3.85
-...\hbox(6.15+2.05)x345.0, glue set 288.33002fil, direction TLT
+...\glue(\topskip) 3.06
+...\hbox(6.94+0.22)x345.0, glue set 266.79999fil, direction TLT
 ....\localpar
 .....\localinterlinepenalty=0
 .....\localbrokenpenalty=0
 .....\localleftbox=null
 .....\localrightbox=null
 ....\hbox(0.0+0.0)x15.0, direction TLT
+....\TU/lmr/m/n/10 x
+....\pdfstartlink(*+*)x* attr{/F 0 } action user{/A<</Type/Action/S/URI/URI(htt
+ps://www.latex-project.org)>>}
+....\TU/lmr/m/n/10 l
+....\TU/lmr/m/n/10 i
 ....\TU/lmr/m/n/10 n
-....\TU/lmr/m/n/10 o
+....\TU/lmr/m/n/10 k
+....\discretionary (penalty 50)
+.....< \TU/lmr/m/n/10 -
 ....\TU/lmr/m/n/10 t
 ....\TU/lmr/m/n/10 e
-....\TU/lmr/m/n/10 m
-....\TU/lmr/m/n/10 p
+....\TU/lmr/m/n/10 x
 ....\TU/lmr/m/n/10 t
-....\kern-0.28 (font)
-....\TU/lmr/m/n/10 y
+....\pdfendlink
+....\TU/lmr/m/n/10 5
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 0
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 R
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
 ...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.8
-...\hbox(6.15+2.05)x345.0, glue set 302.78fil, direction TLT
-....\localpar
-.....\localinterlinepenalty=0
-.....\localbrokenpenalty=0
-.....\localleftbox=null
-.....\localrightbox=null
-....\hbox(0.0+0.0)x15.0, direction TLT
-....\TU/lmr/m/n/10 e
-....\TU/lmr/m/n/10 m
-....\TU/lmr/m/n/10 p
-....\TU/lmr/m/n/10 t
-....\kern-0.28 (font)
-....\TU/lmr/m/n/10 y
-....\penalty 10000
-....\glue(\parfillskip) 0.0 plus 1.0fil
-....\glue(\rightskip) 0.0
-...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.8
-...\hbox(6.15+2.05)x345.0, glue set 288.33002fil, direction TLT
+...\glue(\baselineskip) 4.84
+...\hbox(6.94+0.22)x345.0, glue set 266.79999fil, direction TLT
 ....\localpar
 .....\localinterlinepenalty=0
 .....\localbrokenpenalty=0
 .....\localleftbox=null
 .....\localrightbox=null
 ....\hbox(0.0+0.0)x15.0, direction TLT
+....\TU/lmr/m/n/10 x
+....\pdfstartlink(*+*)x* attr{/F 0 } action user{/Subtype/Link/A<</Type/Action/
+S/URI/URI(https://www.latex-project.org\ETC.}
+....\TU/lmr/m/n/10 l
+....\TU/lmr/m/n/10 i
 ....\TU/lmr/m/n/10 n
-....\TU/lmr/m/n/10 o
-....\TU/lmr/m/n/10 t
-....\TU/lmr/m/n/10 e
-....\TU/lmr/m/n/10 m
-....\TU/lmr/m/n/10 p
+....\TU/lmr/m/n/10 k
+....\discretionary (penalty 50)
+.....< \TU/lmr/m/n/10 -
 ....\TU/lmr/m/n/10 t
-....\kern-0.28 (font)
-....\TU/lmr/m/n/10 y
-....\penalty 10000
-....\glue(\parfillskip) 0.0 plus 1.0fil
-....\glue(\rightskip) 0.0
-...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.8
-...\hbox(6.15+2.05)x345.0, glue set 302.78fil, direction TLT
-....\localpar
-.....\localinterlinepenalty=0
-.....\localbrokenpenalty=0
-.....\localleftbox=null
-.....\localrightbox=null
-....\hbox(0.0+0.0)x15.0, direction TLT
 ....\TU/lmr/m/n/10 e
-....\TU/lmr/m/n/10 m
-....\TU/lmr/m/n/10 p
+....\TU/lmr/m/n/10 x
 ....\TU/lmr/m/n/10 t
-....\kern-0.28 (font)
-....\TU/lmr/m/n/10 y
+....\pdfendlink
+....\TU/lmr/m/n/10 6
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 0
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 R
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
 ...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.8
-...\hbox(6.15+2.05)x345.0, glue set 302.78fil, direction TLT
+...\glue(\baselineskip) 4.95
+...\hbox(6.83+0.22)x345.0, glue set 276.68fil, direction TLT
 ....\localpar
 .....\localinterlinepenalty=0
 .....\localbrokenpenalty=0
 .....\localleftbox=null
 .....\localrightbox=null
 ....\hbox(0.0+0.0)x15.0, direction TLT
-....\TU/lmr/m/n/10 e
-....\TU/lmr/m/n/10 m
-....\TU/lmr/m/n/10 p
-....\TU/lmr/m/n/10 t
-....\kern-0.28 (font)
-....\TU/lmr/m/n/10 y
+....\TU/lmr/m/n/10 x
+....\pdfannot(28.45274+28.45274)x28.45274{}
+....\TU/lmr/m/n/10 6
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 0
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 R
+....\TU/lmr/m/n/10 7
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 0
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\TU/lmr/m/n/10 R
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
-...\glue -2.05
+...\glue -0.22
 ...\glue 0.0 plus 1.0fil
 ...\glue 0.0
 ...\glue 0.0 plus 0.0001fil
@@ -127,4 +117,4 @@ ly_i\ETC.}
 .\kern-633.0
 .\hbox(0.0+0.0)x0.0, direction TLT
 .\kern633.0
-(dict_if_empty.aux)
+(annot-last.aux)
diff --git a/testfiles/annot-last.lvt b/testfiles/annot-last.lvt
new file mode 100644
index 0000000..42b1143
--- /dev/null
+++ b/testfiles/annot-last.lvt
@@ -0,0 +1,37 @@
+\input{regression-test}
+\RequirePackage{pdfresources}
+\documentclass{article}
+
+\begin{document}
+\START \showoutput
+\ExplSyntaxOn
+x    \pdfannot_link_begin:nnw { URI }
+     {
+       /A<<
+         /Type/Action
+         /S/URI
+         /URI(https://www.latex-project.org)
+       >>
+     }
+     link text
+    \pdfannot_link_end:n { URI }
+
+    \pdfannot_last:
+\par
+x   \pdfannot_link:nnn { URI }
+     {
+       /A
+         <<
+           /Type/Action
+           /S/URI
+           /URI(https://www.latex-project.org)
+         >>
+     }
+     { link text }
+    \pdfannot_last:
+\par
+x\pdfannot_box:nnnn {1cm}{1cm}{1cm}{}
+ \pdfannot_link_last:
+ \pdfannot_last:
+\ExplSyntaxOff
+\end{document}
\ No newline at end of file
diff --git a/testfiles/annot-last.tlg b/testfiles/annot-last.tlg
new file mode 100644
index 0000000..361f4f8
--- /dev/null
+++ b/testfiles/annot-last.tlg
@@ -0,0 +1,96 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\hbox(0.0+0.0)x0.0
+..\kern -72.26999
+..\vbox(0.0+0.0)x0.0, glue set 72.26999fil
+...\kern -72.26999
+...\hbox(0.0+0.0)x0.0
+...\glue 0.0 plus 1.0fil minus 1.0fil
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 515.94489fil
+...\write-{}
+...\glue(\topskip) 3.05556
+...\hbox(6.94444+0.0)x345.0, glue set 266.8054fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 x
+....\pdfstartlink(*+*)x* attr{/F 0 } action user{/A<</Type/Action/S/URI/URI(https://www.latex-project.org)>>}
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 i
+....\OT1/cmr/m/n/10 n
+....\OT1/cmr/m/n/10 k
+....\OT1/cmr/m/n/10 t
+....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 t
+....\pdfendlink
+....\OT1/cmr/m/n/10 5
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 0
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 R
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\baselineskip) 5.05556
+...\hbox(6.94444+0.0)x345.0, glue set 266.8054fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 x
+....\pdfstartlink(*+*)x* attr{/F 0 } action user{/Subtype/Link/A<</Type/Action/S/URI/URI(https://www.latex-project.org\ETC.}
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 i
+....\OT1/cmr/m/n/10 n
+....\OT1/cmr/m/n/10 k
+....\OT1/cmr/m/n/10 t
+....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 x
+....\OT1/cmr/m/n/10 t
+....\pdfendlink
+....\OT1/cmr/m/n/10 6
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 0
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 R
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\baselineskip) 5.16669
+...\hbox(6.83331+0.0)x345.0, glue set 276.6666fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 x
+....\pdfannot(28.45274+28.45274)x28.45274{}
+....\OT1/cmr/m/n/10 6
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 0
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 R
+....\OT1/cmr/m/n/10 7
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 0
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 R
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+.\kern 0.0
+.\kern -633.0
+.\hbox(0.0+0.0)x0.0
+.\kern 633.0
+(annot-last.aux)
diff --git a/testfiles/dict_if_empty.xetex.tlg b/testfiles/annot-last.xetex.tlg
similarity index 59%
copy from testfiles/dict_if_empty.xetex.tlg
copy to testfiles/annot-last.xetex.tlg
index 08ce303..350fa17 100644
--- a/testfiles/dict_if_empty.xetex.tlg
+++ b/testfiles/annot-last.xetex.tlg
@@ -7,7 +7,7 @@ Completed box being shipped out [1]
 ..\vbox(0.0+0.0)x0.0, glue set 72.26999fil
 ...\kern -72.26999
 ...\hbox(0.0+0.0)x0.0
-....\special{pdf: put @thispage <</Rotate 90 >>}
+....\special{pdf: put @thispage <<>>}
 ...\glue 0.0 plus 1.0fil minus 1.0fil
 .\glue 16.0
 .\vbox(617.0+0.0)x345.0, shifted 62.0
@@ -16,48 +16,40 @@ Completed box being shipped out [1]
 ...\hbox(0.0+0.0)x345.0
 ..\glue 25.0
 ..\glue(\lineskip) 0.0
-..\vbox(550.0+0.0)x345.0, glue set 491.94745fil
-...\write-{}
+..\vbox(550.0+0.0)x345.0, glue set 515.94489fil
 ...\special{pdf:obj @pdf.obj1 <<  >>}
 ...\special{pdf:obj @pdf.obj2 <<  >>}
 ...\special{pdf:obj @pdf.obj3 <<  >>}
 ...\special{pdf:obj @pdf.obj4 <<  >>}
-...\glue(\topskip) 3.85
-...\hbox(6.15+2.04999)x345.0, glue set 288.33fil
-....\hbox(0.0+0.0)x15.0
-....\TU/lmr/m/n/10 notempty
-....\penalty 10000
-....\glue(\parfillskip) 0.0 plus 1.0fil
-....\glue(\rightskip) 0.0
-...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.80002
-...\hbox(6.15+2.04999)x345.0, glue set 302.78fil
-....\hbox(0.0+0.0)x15.0
-....\TU/lmr/m/n/10 empty
-....\penalty 10000
-....\glue(\parfillskip) 0.0 plus 1.0fil
-....\glue(\rightskip) 0.0
-...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.80002
-...\hbox(6.15+2.04999)x345.0, glue set 288.33fil
+...\write-{}
+...\glue(\topskip) 3.06
+...\hbox(6.94+0.10999)x345.0, glue set 290.81999fil
 ....\hbox(0.0+0.0)x15.0
-....\TU/lmr/m/n/10 notempty
+....\TU/lmr/m/n/10 x
+....\special{pdf:bann<</Type/Annot/F 0 /A<</Type/Action/S/URI/URI(https://www.late\ETC.}
+....\TU/lmr/m/n/10 linktext
+....\special{pdf:eann}
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
 ...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.80002
-...\hbox(6.15+2.04999)x345.0, glue set 302.78fil
+...\glue(\baselineskip) 4.95001
+...\hbox(6.94+0.10999)x345.0, glue set 290.81999fil
 ....\hbox(0.0+0.0)x15.0
-....\TU/lmr/m/n/10 empty
+....\TU/lmr/m/n/10 x
+....\special{pdf:bann<</Type/Annot/F 0 /Subtype/Link/A<</Type/Action/S/URI/URI(htt\ETC.}
+....\TU/lmr/m/n/10 linktext
+....\special{pdf:eann}
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
 ...\glue(\parskip) 0.0 plus 1.0
-...\glue(\baselineskip) 3.80002
-...\hbox(6.15+2.04999)x345.0, glue set 288.33fil
+...\glue(\baselineskip) 4.84001
+...\hbox(7.05+2.04999)x345.0, glue set 280.8fil
 ....\hbox(0.0+0.0)x15.0
-....\TU/lmr/m/n/10 notempty
+....\TU/lmr/m/n/10 x
+....\special{pdf:ann @pdf.obj5 width 28.45274pt height 28.45274pt depth 28.45274pt\ETC.}
+....\TU/lmr/m/n/10 @pdf.obj5
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
@@ -75,4 +67,4 @@ Completed box being shipped out [1]
 .\hbox(0.0+0.0)x0.0
 ..\special{pdf:put @pages <<>>}
 .\kern 633.0
-(dict_if_empty.aux)
+(annot-last.aux)





More information about the latex3-commits mailing list.