[latex3-commits] [latex3/pdfresources] develop, object-tracking: update structure destination tests. (0db22eb)

github at latex-project.org github at latex-project.org
Mon Apr 8 15:51:07 CEST 2024


Repository : https://github.com/latex3/pdfresources
On branches: develop,object-tracking
Link       : https://github.com/latex3/pdfresources/commit/0db22eb445a29a78e00a03584d75347550522e35

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

commit 0db22eb445a29a78e00a03584d75347550522e35
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 8 15:51:07 2024 +0200

    update structure destination tests.


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

0db22eb445a29a78e00a03584d75347550522e35
 testfiles-dvips/structure-destination.pvt  |  29 +++++++++++++++++++++++++++++
 testfiles-dvips/structure-destination.tpf  | Bin 0 -> 6255 bytes
 testfiles-luatex/structure-destination.pvt |  10 +++-------
 testfiles-luatex/structure-destination.tpf |  16 ++++++++--------
 testfiles-pdftex/structure-destination.pvt |  10 +++-------
 testfiles-pdftex/structure-destination.tpf |  20 ++++++++++----------
 testfiles-xetex/structure-destination.pvt  |  11 +++--------
 testfiles-xetex/structure-destination.tpf  |  16 ++++++++--------
 8 files changed, 64 insertions(+), 48 deletions(-)

diff --git a/testfiles-dvips/structure-destination.pvt b/testfiles-dvips/structure-destination.pvt
new file mode 100644
index 0000000..95e91d9
--- /dev/null
+++ b/testfiles-dvips/structure-destination.pvt
@@ -0,0 +1,29 @@
+\ExplSyntaxOn
+\debug_on:n { check-declarations , deprecation }
+\msg_redirect_module:nnn { pdf } { none } { warning }
+\ExplSyntaxOff
+\ExplSyntaxOn
+\sys_gset_rand_seed:n{1000}
+\ExplSyntaxOff
+\DocumentMetadata
+ {
+   pdfversion=2.0, 
+   testphase=phase-II,
+ }
+\input{regression-test}
+\documentclass{article}
+\stockheight   = 297mm
+\stockwidth    = 210mm
+
+\usepackage{hyperref}
+\begin{document}
+some text
+
+\tagpdfparaOff
+\tagstructbegin{tag=H1}\tagmcbegin{tag=H1}\refstepcounter{section}\label{h1} section\tagmcend\tagstructend
+
+\tagpdfparaOn
+
+abc\ref{h1}
+
+\end{document} 
diff --git a/testfiles-dvips/structure-destination.tpf b/testfiles-dvips/structure-destination.tpf
new file mode 100644
index 0000000..41863f4
Binary files /dev/null and b/testfiles-dvips/structure-destination.tpf differ
diff --git a/testfiles-luatex/structure-destination.pvt b/testfiles-luatex/structure-destination.pvt
index a602165..9d4dfee 100644
--- a/testfiles-luatex/structure-destination.pvt
+++ b/testfiles-luatex/structure-destination.pvt
@@ -7,9 +7,8 @@
 \ExplSyntaxOff
 \DocumentMetadata
  {
-   pdfversion=2.0, %not so good with pdftex ...
-   testphase=tagpdf,
-   testphase=new-or-1
+   pdfversion=2.0, 
+   testphase=phase-II,
  }
 \input{regression-test}
 \documentclass{article}
@@ -17,10 +16,7 @@
 \stockwidth    = 210mm
 
 \usepackage{hyperref}
-\ExplSyntaxOn
-\tl_set:Nn \l_pdf_current_structure_destination_tl { __tag/struct/\g__tag_struct_stack_current_tl }
-\pdf_activate_structure_destination:
-\ExplSyntaxOff
+
 \begin{document}
 some text
 
diff --git a/testfiles-luatex/structure-destination.tpf b/testfiles-luatex/structure-destination.tpf
index 8a2c5b9..730975e 100644
--- a/testfiles-luatex/structure-destination.tpf
+++ b/testfiles-luatex/structure-destination.tpf
@@ -315,7 +315,7 @@ endobj
 ] >>
 endobj
 44 0 obj
-<< /Limits [(ID.02) (ID.08)]/Names [(ID.02) 22 0 R (ID.03) 23 0 R (ID.04) 24 0 R (ID.05) 25 0 R (ID.06) 26 0 R (ID.07) 27 0 R (ID.08) 28 0 R ] >>
+<< /Limits [(ID.01) (ID.07)]/Names [(ID.01) 22 0 R (ID.02) 23 0 R (ID.03) 24 0 R (ID.04) 25 0 R (ID.05) 26 0 R (ID.06) 27 0 R (ID.07) 28 0 R ] >>
 endobj
 45 0 obj
 << /Kids [44 0 R] >>
@@ -351,25 +351,25 @@ endobj
 [ 9 0 R 11 0 R 13 0 R 15 0 R 17 0 R 19 0 R  ]
 endobj
 22 0 obj
-<<  /Type /StructElem /S /Document /NS 11 0 R  /P 5 0 R /K [23 0 R 25 0 R 26 0 R] /ID (ID.02) >>
+<<  /Type /StructElem /S /Document /NS 11 0 R  /P 5 0 R /K [23 0 R 25 0 R 26 0 R] /ID (ID.01) >>
 endobj
 23 0 obj
-<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 24 0 R /ID (ID.03) >>
+<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 24 0 R /ID (ID.02) >>
 endobj
 24 0 obj
-<<  /Type /StructElem /S /text /NS 15 0 R  /P 23 0 R /K <</Type /MCR /Pg 21 0 R /MCID 0>>  /ID (ID.04) >>
+<<  /Type /StructElem /S /text /NS 15 0 R  /P 23 0 R /K <</Type /MCR /Pg 21 0 R /MCID 0>>  /ID (ID.03) >>
 endobj
 25 0 obj
-<<  /Type /StructElem /S /H1 /NS 11 0 R  /P 22 0 R /K <</Type /MCR /Pg 21 0 R /MCID 1>>  /ID (ID.05) >>
+<<  /Type /StructElem /S /H1 /NS 11 0 R  /P 22 0 R /K <</Type /MCR /Pg 21 0 R /MCID 1>>  /ID (ID.04) >>
 endobj
 26 0 obj
-<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 27 0 R /ID (ID.06) >>
+<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 27 0 R /ID (ID.05) >>
 endobj
 27 0 obj
-<<  /Type /StructElem /S /text /NS 15 0 R  /P 26 0 R /K [<</Type /MCR /Pg 21 0 R /MCID 2>>  28 0 R ] /ID (ID.07) >>
+<<  /Type /StructElem /S /text /NS 15 0 R  /P 26 0 R /K [<</Type /MCR /Pg 21 0 R /MCID 2>>  28 0 R ] /ID (ID.06) >>
 endobj
 28 0 obj
-<<  /Type /StructElem /S /Link /NS 11 0 R  /P 27 0 R /K [<</Type /MCR /Pg 21 0 R /MCID 3>>  30 0 R] /ID (ID.08) >>
+<<  /Type /StructElem /S /Link /NS 11 0 R  /P 27 0 R /K [<</Type /MCR /Pg 21 0 R /MCID 3>>  30 0 R] /ID (ID.07) >>
 endobj
 5 0 obj
 <<  /Type /StructTreeRoot /Namespaces 8 0 R /IDTree 45 0 R /ParentTree 6 0 R /RoleMap 7 0 R /K 22 0 R >>
diff --git a/testfiles-pdftex/structure-destination.pvt b/testfiles-pdftex/structure-destination.pvt
index a602165..9d4dfee 100644
--- a/testfiles-pdftex/structure-destination.pvt
+++ b/testfiles-pdftex/structure-destination.pvt
@@ -7,9 +7,8 @@
 \ExplSyntaxOff
 \DocumentMetadata
  {
-   pdfversion=2.0, %not so good with pdftex ...
-   testphase=tagpdf,
-   testphase=new-or-1
+   pdfversion=2.0, 
+   testphase=phase-II,
  }
 \input{regression-test}
 \documentclass{article}
@@ -17,10 +16,7 @@
 \stockwidth    = 210mm
 
 \usepackage{hyperref}
-\ExplSyntaxOn
-\tl_set:Nn \l_pdf_current_structure_destination_tl { __tag/struct/\g__tag_struct_stack_current_tl }
-\pdf_activate_structure_destination:
-\ExplSyntaxOff
+
 \begin{document}
 some text
 
diff --git a/testfiles-pdftex/structure-destination.tpf b/testfiles-pdftex/structure-destination.tpf
index 5b2ce43..63f7594 100644
--- a/testfiles-pdftex/structure-destination.tpf
+++ b/testfiles-pdftex/structure-destination.tpf
@@ -244,7 +244,7 @@ stream
 EMC
 /text <</MCID 0 >> BDC
 BT
-/F28 9.9626 Tf 148.712 707.125 Td [(some)]TJ/F39 9.9626 Tf( )Tj/F28 9.9626 Tf 24.962 0 Td [(text)]TJ
+/F28 9.9626 Tf 148.712 707.125 Td [(some)]TJ/F38 9.9626 Tf( )Tj/F28 9.9626 Tf 24.962 0 Td [(text)]TJ
 ET
 EMC
 /H1 <</MCID 1 >> BDC
@@ -318,7 +318,7 @@ endobj
 32 0 obj
 <<
 /ExtGState 1 0 R 
-/Font << /F28 38 0 R /F39 39 0 R >>
+/Font << /F28 38 0 R /F38 39 0 R >>
 >>
 endobj
 1 0 obj
@@ -333,7 +333,7 @@ endobj
 ] >>
 endobj
 44 0 obj
-<< /Limits [(ID.02) (ID.08)]/Names [(ID.02) 22 0 R (ID.03) 23 0 R (ID.04) 24 0 R (ID.05) 25 0 R (ID.06) 26 0 R (ID.07) 27 0 R (ID.08) 28 0 R ] >>
+<< /Limits [(ID.01) (ID.07)]/Names [(ID.01) 22 0 R (ID.02) 23 0 R (ID.03) 24 0 R (ID.04) 25 0 R (ID.05) 26 0 R (ID.06) 27 0 R (ID.07) 28 0 R ] >>
 endobj
 45 0 obj
 << /Kids [44 0 R] >>
@@ -369,25 +369,25 @@ endobj
 [ 9 0 R 11 0 R 13 0 R 15 0 R 17 0 R 19 0 R  ]
 endobj
 22 0 obj
-<<  /Type /StructElem /S /Document /NS 11 0 R  /P 5 0 R /K [23 0 R 25 0 R 26 0 R] /ID (ID.02) >>
+<<  /Type /StructElem /S /Document /NS 11 0 R  /P 5 0 R /K [23 0 R 25 0 R 26 0 R] /ID (ID.01) >>
 endobj
 23 0 obj
-<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 24 0 R /ID (ID.03) >>
+<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 24 0 R /ID (ID.02) >>
 endobj
 24 0 obj
-<<  /Type /StructElem /S /text /NS 15 0 R  /P 23 0 R /K <</Type /MCR /Pg 21 0 R/MCID 0>> /ID (ID.04) >>
+<<  /Type /StructElem /S /text /NS 15 0 R  /P 23 0 R /K <</Type /MCR /Pg 21 0 R/MCID 0>> /ID (ID.03) >>
 endobj
 25 0 obj
-<<  /Type /StructElem /S /H1 /NS 11 0 R  /P 22 0 R /K <</Type /MCR /Pg 21 0 R/MCID 1>> /ID (ID.05) >>
+<<  /Type /StructElem /S /H1 /NS 11 0 R  /P 22 0 R /K <</Type /MCR /Pg 21 0 R/MCID 1>> /ID (ID.04) >>
 endobj
 26 0 obj
-<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 27 0 R /ID (ID.06) >>
+<<  /Type /StructElem /S /text-unit /NS 15 0 R  /P 22 0 R /K 27 0 R /ID (ID.05) >>
 endobj
 27 0 obj
-<<  /Type /StructElem /S /text /NS 15 0 R  /P 26 0 R /K [<</Type /MCR /Pg 21 0 R/MCID 2>> 28 0 R <</Type /MCR /Pg 21 0 R/MCID 4>>] /ID (ID.07) >>
+<<  /Type /StructElem /S /text /NS 15 0 R  /P 26 0 R /K [<</Type /MCR /Pg 21 0 R/MCID 2>> 28 0 R <</Type /MCR /Pg 21 0 R/MCID 4>>] /ID (ID.06) >>
 endobj
 28 0 obj
-<<  /Type /StructElem /S /Link /NS 11 0 R  /P 27 0 R /K [<</Type /MCR /Pg 21 0 R/MCID 3>> 30 0 R] /ID (ID.08) >>
+<<  /Type /StructElem /S /Link /NS 11 0 R  /P 27 0 R /K [<</Type /MCR /Pg 21 0 R/MCID 3>> 30 0 R] /ID (ID.07) >>
 endobj
 5 0 obj
 <<  /Type /StructTreeRoot /Namespaces 8 0 R /IDTree 45 0 R /ParentTree 6 0 R /RoleMap 7 0 R /K 22 0 R >>
diff --git a/testfiles-xetex/structure-destination.pvt b/testfiles-xetex/structure-destination.pvt
index 2b615b7..9d4dfee 100644
--- a/testfiles-xetex/structure-destination.pvt
+++ b/testfiles-xetex/structure-destination.pvt
@@ -7,10 +7,8 @@
 \ExplSyntaxOff
 \DocumentMetadata
  {
-   pdfversion=2.0, %not so good with pdftex ...
-   uncompress,
-   testphase=tagpdf,
-   testphase=new-or-1
+   pdfversion=2.0, 
+   testphase=phase-II,
  }
 \input{regression-test}
 \documentclass{article}
@@ -18,10 +16,7 @@
 \stockwidth    = 210mm
 
 \usepackage{hyperref}
-\ExplSyntaxOn
-\tl_set:Nn \l_pdf_current_structure_destination_tl { __tag/struct/\g__tag_struct_stack_current_tl }
-\pdf_activate_structure_destination:
-\ExplSyntaxOff
+
 \begin{document}
 some text
 
diff --git a/testfiles-xetex/structure-destination.tpf b/testfiles-xetex/structure-destination.tpf
index f38f8b5..9e810e3 100644
--- a/testfiles-xetex/structure-destination.tpf
+++ b/testfiles-xetex/structure-destination.tpf
@@ -65,26 +65,26 @@ endobj
 <</Type/Namespace/NS(data:,A63761E-9D7-4FBB-9B27-C3BC8D9BFB06)>>
 endobj
 5 0 obj
-<</Type/StructElem/S/Document/NS 17 0 R/P 25 0 R/K[14 0 R 8 0 R 15 0 R]/ID(ID.02)>>
+<</Type/StructElem/S/Document/NS 17 0 R/P 25 0 R/K[14 0 R 8 0 R 15 0 R]/ID(ID.01)>>
 endobj
 14 0 obj
-<</Type/StructElem/S/text-unit/NS 22 0 R/P 5 0 R/K 11 0 R/ID(ID.03)>>
+<</Type/StructElem/S/text-unit/NS 22 0 R/P 5 0 R/K 11 0 R/ID(ID.02)>>
 endobj
 11 0 obj
-<</Type/StructElem/S/text/NS 22 0 R/P 14 0 R/K<</Type/MCR/Pg 3 0 R/MCID 0>>/ID(ID.04)>>
+<</Type/StructElem/S/text/NS 22 0 R/P 14 0 R/K<</Type/MCR/Pg 3 0 R/MCID 0>>/ID(ID.03)>>
 endobj
 8 0 obj
-<</Type/StructElem/S/H1/NS 17 0 R/P 5 0 R/K<</Type/MCR/Pg 3 0 R/MCID 1>>/ID(ID.05)>>
+<</Type/StructElem/S/H1/NS 17 0 R/P 5 0 R/K<</Type/MCR/Pg 3 0 R/MCID 1>>/ID(ID.04)>>
 endobj
 15 0 obj
-<</Type/StructElem/S/text-unit/NS 22 0 R/P 5 0 R/K 12 0 R/ID(ID.06)>>
+<</Type/StructElem/S/text-unit/NS 22 0 R/P 5 0 R/K 12 0 R/ID(ID.05)>>
 endobj
 12 0 obj
 <</Type/StructElem/S/text/NS 22 0 R/P 15 0 R/K[<</Type/MCR/Pg 3 0 R/MCID 2>>13 0 R<</Type/MCR/Pg
-3 0 R/MCID 4>>]/ID(ID.07)>>
+3 0 R/MCID 4>>]/ID(ID.06)>>
 endobj
 13 0 obj
-<</Type/StructElem/S/Link/NS 17 0 R/P 12 0 R/K[<</Type/MCR/Pg 3 0 R/MCID 3>>26 0 R]/ID(ID.08)>>
+<</Type/StructElem/S/Link/NS 17 0 R/P 12 0 R/K[<</Type/MCR/Pg 3 0 R/MCID 3>>26 0 R]/ID(ID.07)>>
 endobj
 26 0 obj
 <</Type/OBJR/Obj 10 0 R/Pg 3 0 R>>
@@ -318,7 +318,7 @@ stream
 endstream
 endobj
 16 0 obj
-<</Limits[(ID.02)(ID.08)]/Names[(ID.02)5 0 R(ID.03)14 0 R(ID.04)11 0 R(ID.05)8 0 R(ID.06)15 0 R(ID.07)12 0 R(ID.08)13 0 R]>>
+<</Limits[(ID.01)(ID.07)]/Names[(ID.01)5 0 R(ID.02)14 0 R(ID.03)11 0 R(ID.04)8 0 R(ID.05)15 0 R(ID.06)12 0 R(ID.07)13 0 R]>>
 endobj
 28 0 obj
 <</Kids[16 0 R]>>





More information about the latex3-commits mailing list.