[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: testfiles for ismap (d389af6)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Mar 21 19:45:12 CET 2020


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

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

commit d389af6d3e12e7df57f570c2cd97760afac974f9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Mar 21 19:45:12 2020 +0100

    testfiles for ismap


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

d389af6d3e12e7df57f570c2cd97760afac974f9
 testfiles-dvips/ismap.pvt                          |  10 ++
 testfiles-dvips/ismap.tpf                          | Bin 0 -> 4655 bytes
 .../ismap.luatex.tpf                               |  90 ++++++------
 testfiles/ismap.pvt                                |  10 ++
 testfiles/ismap.tpf                                | 154 +++++++++++++++++++++
 testfiles/{annot.xetex.tpf => ismap.xetex.tpf}     | 112 ++++++++-------
 6 files changed, 279 insertions(+), 97 deletions(-)

diff --git a/testfiles-dvips/ismap.pvt b/testfiles-dvips/ismap.pvt
new file mode 100644
index 0000000..fdc4229
--- /dev/null
+++ b/testfiles-dvips/ismap.pvt
@@ -0,0 +1,10 @@
+\input{regression-test}
+\documentclass{report}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
+
+\begin{document}
+\href[ismap=true]{https://www.latex-project.org#abc~xyz}{xxxxx}
+
+\href{https://www.latex-project.org#abc~xyz}{xxxxx}
+
+\end{document}
\ No newline at end of file
diff --git a/testfiles-dvips/ismap.tpf b/testfiles-dvips/ismap.tpf
new file mode 100644
index 0000000..6e404bf
Binary files /dev/null and b/testfiles-dvips/ismap.tpf differ
diff --git a/testfiles-luatex/non-ascii-links.tpf b/testfiles/ismap.luatex.tpf
similarity index 53%
copy from testfiles-luatex/non-ascii-links.tpf
copy to testfiles/ismap.luatex.tpf
index ec139d4..3d0957e 100644
--- a/testfiles-luatex/non-ascii-links.tpf
+++ b/testfiles/ismap.luatex.tpf
@@ -1,11 +1,12 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
 9 0 obj
-<< /Length 178 >>        
+<< /Length 167 >>        
 stream
 BT
 /F25 9.96264 Tf
-1 0 0 1 148.712 707.125 Tm [<00510048002F>-333<0032004D003B004800420062003F>-333<0044001C0054001C004D003200620032>]TJ
+1 0 0 1 148.712 707.125 Tm [<00740074007400740074>]TJ
+1 0 0 1 148.712 695.17 Tm [<00740074007400740074>]TJ
 1 0 0 1 303.133 139.255 Tm [<0052>]TJ
 ET
 endstream
@@ -17,13 +18,13 @@ endobj
 [ 6 0 R 7 0 R ]
 endobj
 6 0 obj
-<< /Type /Annot /Border [0 0 1] /H /I /C [0 1 1]  /Rect [ 147.716 704.077 196.264 715.035 ]
- /Subtype/Link/A<</Type/Action /S/URI /URI(http://ang.wikipedia.org/wiki/Elisabe\303\276_I_Engla_Cw\304\223n) >>
+<< /Type /Annot /Rect [ 147.716 706.129 176.01 712.415 ]
+ /Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org#abc~xyz) /IsMap true>>
  >>
 endobj
 7 0 obj
-<< /Type /Annot /Border [0 0 1] /H /I /C [0 1 1]  /Rect [ 197.589 704.077 236.443 715.035 ]
- /Subtype/Link/A<</Type/Action /S/URI /URI(http://ja.wikipedia.org/wiki/\343\202\250\343\203\252\343\202\266\343\203\231\343\202\2711\344\270\226_\(\343\202\244\343\203\263\343\202\260\343\203\251\343\203\263\343\203\211\345\245\263\347\216\213) >>
+<< /Type /Annot /Rect [ 147.716 694.174 176.01 700.46 ]
+ /Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org#abc~xyz) >>
  >>
 endobj
 10 0 obj
@@ -36,27 +37,27 @@ endobj
 << /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
 15 0 obj
-[ 28 [ 500 ] 47 [ 556 ] 50 [ 444 ] 59 [ 500 ] 63 [ 556 ] 66 [ 278 ] 68 [ 306 ] 72 [ 278 ] 77 [ 556 ] 81 [ 500 500 ] 84 [ 556 ] 98 [ 394 ] ]
+[ 82 [ 500 ] 116 [ 528 ] ]
 endobj
 17 0 obj
-<< /Length 13 >>         
+<< /Length 15 >>         
 [BINARY STREAM]
 endobj
 18 0 obj
-<< /Subtype /CIDFontType0C /Length 2126 >>       
+<< /Subtype /CIDFontType0C /Length 772 >>        
 [BINARY STREAM]
 endobj
 16 0 obj
-<< /Type /FontDescriptor /FontName /HUWMDL+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 18 0 R /CIDSet 17 0 R >>
+<< /Type /FontDescriptor /FontName /QVKDUG+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 18 0 R /CIDSet 17 0 R >>
 endobj
 19 0 obj
-<< /Length 861 >>        
+<< /Length 706 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
 %%DocumentNeededResources: ProcSet (CIDInit)
 %%IncludeResource: ProcSet (CIDInit)
-%%BeginResource: CMap (TeX-HUWMDL-LMRoman10-Regular-0)
-%%Title: (TeX-HUWMDL-LMRoman10-Regular-0 TeX HUWMDL-LMRoman10-Regular 0)
+%%BeginResource: CMap (TeX-QVKDUG-LMRoman10-Regular-0)
+%%Title: (TeX-QVKDUG-LMRoman10-Regular-0 TeX QVKDUG-LMRoman10-Regular 0)
 %%Version: 1.000
 %%EndComments
 /CIDInit /ProcSet findresource begin
@@ -64,30 +65,19 @@ stream
 begincmap
 /CIDSystemInfo
 << /Registry (TeX)
-/Ordering (HUWMDL-LMRoman10-Regular)
+/Ordering (QVKDUG-LMRoman10-Regular)
 /Supplement 0
 >> def
-/CMapName /TeX-Identity-HUWMDL-LMRoman10-Regular def
+/CMapName /TeX-Identity-QVKDUG-LMRoman10-Regular def
 /CMapType 2 def
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
 0 beginbfrange
 endbfrange
-13 beginbfchar
-<001C> <0061>
-<002F> <0064>
-<0032> <0065>
-<003B> <0067>
-<003F> <0068>
-<0042> <0069>
-<0044> <006A>
-<0048> <006C>
-<004D> <006E>
-<0051> <006F>
+2 beginbfchar
 <0052> <0031>
-<0054> <0070>
-<0062> <0073>
+<0074> <0078>
 endbfchar
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -98,10 +88,10 @@ end
 endstream
 endobj
 12 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /HUWMDL+LMRoman10-Regular /DescendantFonts [ 20 0 R ] /ToUnicode 19 0 R >>
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /QVKDUG+LMRoman10-Regular /DescendantFonts [ 20 0 R ] /ToUnicode 19 0 R >>
 endobj
 20 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /HUWMDL+LMRoman10-Regular /FontDescriptor 16 0 R /W 15 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /QVKDUG+LMRoman10-Regular /FontDescriptor 16 0 R /W 15 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
 13 0 obj
 << /Type /Pages  /Count 1 /Kids [ 5 0 R ] >>
@@ -125,28 +115,28 @@ xref
 0000000003 00000 f 
 0000000004 00000 f 
 0000000000 00000 f 
-0000000257 00000 n 
-0000000418 00000 n 
-0000000642 00000 n 
-0000001123 00000 n 
+0000000246 00000 n 
+0000000407 00000 n 
+0000000579 00000 n 
+0000000860 00000 n 
 0000000020 00000 n 
-0000001002 00000 n 
-0000001062 00000 n 
-0000004788 00000 n 
-0000005142 00000 n 
-0000000386 00000 n 
-0000001192 00000 n 
-0000003631 00000 n 
-0000001348 00000 n 
-0000001421 00000 n 
-0000003867 00000 n 
-0000004942 00000 n 
-0000005203 00000 n 
-0000005304 00000 n 
-0000005340 00000 n 
-0000005484 00000 n 
+0000000739 00000 n 
+0000000799 00000 n 
+0000002905 00000 n 
+0000003259 00000 n 
+0000000375 00000 n 
+0000000929 00000 n 
+0000001903 00000 n 
+0000000972 00000 n 
+0000001047 00000 n 
+0000002139 00000 n 
+0000003059 00000 n 
+0000003320 00000 n 
+0000003421 00000 n 
+0000003457 00000 n 
+0000003601 00000 n 
 trailer
 << /Size 25 /Root 23 0 R /Info 24 0 R >>
 startxref
-5640
+3757
 %%EOF
diff --git a/testfiles/ismap.pvt b/testfiles/ismap.pvt
new file mode 100644
index 0000000..fdc4229
--- /dev/null
+++ b/testfiles/ismap.pvt
@@ -0,0 +1,10 @@
+\input{regression-test}
+\documentclass{report}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
+
+\begin{document}
+\href[ismap=true]{https://www.latex-project.org#abc~xyz}{xxxxx}
+
+\href{https://www.latex-project.org#abc~xyz}{xxxxx}
+
+\end{document}
\ No newline at end of file
diff --git a/testfiles/ismap.tpf b/testfiles/ismap.tpf
new file mode 100644
index 0000000..8d10eda
--- /dev/null
+++ b/testfiles/ismap.tpf
@@ -0,0 +1,154 @@
+%PDF-1.5
+%ÐÔÅØ
+9 0 obj
+<<
+/Length 104       
+>>
+stream
+BT
+/F8 9.9626 Tf 148.712 707.125 Td [(xxxxx)]TJ 0 -11.955 Td [(xxxxx)]TJ 154.421 -555.915 Td [(1)]TJ
+ET
+endstream
+endobj
+5 0 obj
+<<
+/Type /Page
+/Contents 9 0 R
+/Resources 8 0 R
+/MediaBox [0 0 595.276 841.89]
+/Parent 13 0 R
+/Annots [ 6 0 R 7 0 R ]
+>>
+endobj
+6 0 obj
+<<
+/Type /Annot
+/Rect [147.716 706.129 175.999 712.411]
+/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org#abc~xyz) /IsMap true>>
+>>
+endobj
+7 0 obj
+<<
+/Type /Annot
+/Rect [147.716 694.174 175.999 700.456]
+/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org#abc~xyz) >>
+>>
+endobj
+10 0 obj
+<<
+/D [5 0 R /XYZ 132.768 754.95 null]
+>>
+endobj
+11 0 obj
+<<
+/D [5 0 R /XYZ 133.768 717.088 null]
+>>
+endobj
+8 0 obj
+<<
+/Font << /F8 12 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+14 0 obj
+[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4 388.9 555.6 527.8 722.2 527.8]
+endobj
+15 0 obj
+<<
+/Length1 1380
+/Length2 6282
+/Length3 0
+/Length 7662      
+>>
+[BINARY STREAM]
+endobj
+16 0 obj
+<<
+/Type /FontDescriptor
+/FontName /XKHRBG+CMR10
+/Flags 4
+/FontBBox [-40 -250 1009 750]
+/Ascent 694
+/CapHeight 683
+/Descent -194
+/ItalicAngle 0
+/StemV 69
+/XHeight 431
+/CharSet (/one/x)
+/FontFile 15 0 R
+>>
+endobj
+12 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /XKHRBG+CMR10
+/FontDescriptor 16 0 R
+/FirstChar 49
+/LastChar 120
+/Widths 14 0 R
+>>
+endobj
+13 0 obj
+<<
+/Type /Pages
+/Count 1
+/Kids [5 0 R]
+>>
+endobj
+17 0 obj
+<<
+/Names [(Doc-Start) 11 0 R (page.1) 10 0 R]
+/Limits [(Doc-Start) (page.1)]
+>>
+endobj
+18 0 obj
+<<
+/Dests 17 0 R
+>>
+endobj
+19 0 obj
+<<
+/Type /Catalog
+/Pages 13 0 R
+/Names 18 0 R
+/PageMode /UseOutlines/OpenAction [5 0 R /Fit]/PageLabels <</Nums[0<</S/D>>]>>
+>>
+endobj
+20 0 obj
+<<
+/Producer (pdfTeX)/Author ()/Title ()/Subject ()/Creator (LaTeX with hyperref)/CreationDate ()/ModDate ()/Keywords ()
+/Trapped /False
+>>
+endobj
+xref
+0 21
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000177 00000 n 
+0000000313 00000 n 
+0000000482 00000 n 
+0000000757 00000 n 
+0000000015 00000 n 
+0000000640 00000 n 
+0000000698 00000 n 
+0000009213 00000 n 
+0000009353 00000 n 
+0000000825 00000 n 
+0000001232 00000 n 
+0000008992 00000 n 
+0000009411 00000 n 
+0000009508 00000 n 
+0000009544 00000 n 
+0000009688 00000 n 
+trailer
+<< /Size 21
+/Root 19 0 R
+/Info 20 0 R
+ >>
+startxref
+9844
+%%EOF
diff --git a/testfiles/annot.xetex.tpf b/testfiles/ismap.xetex.tpf
similarity index 53%
copy from testfiles/annot.xetex.tpf
copy to testfiles/ismap.xetex.tpf
index 4caab0a..23875aa 100644
--- a/testfiles/annot.xetex.tpf
+++ b/testfiles/ismap.xetex.tpf
@@ -1,12 +1,20 @@
 %PDF-1.5
 %äðíø
+10 0 obj
+<</Type/Annot/Subtype/Link/A<</Type/Action/S/URI/URI(https://www.latex-project.org#abc~xyz)/IsMap
+true>>/Rect[147.716 703.24 176.01 719.349]>>
+endobj
 11 0 obj
-<</Length 181>>
+<</Type/Annot/Subtype/Link/A<</Type/Action/S/URI/URI(https://www.latex-project.org#abc~xyz)>>/Rect[147.716
+691.285 176.01 707.394]>>
+endobj
+12 0 obj
+<</Length 203>>
 stream
- q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<00740074>]TJ ET BT /F1 9.9626 Tf 87.233 -62.765 Td[<00740074007600760078007800720072>]TJ 143.9 -567.87 Td[<0052>]TJ ET Q
+ q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<00740074007400740074>]TJ ET BT /F1 9.9626 Tf 76.712 -74.72 Td[<00740074007400740074>]TJ ET BT /F1 9.9626 Tf 231.133 -630.635 Td[<0052>]TJ ET Q
 endstream
 endobj
-12 0 obj
+13 0 obj
 <</ExtGState 4 0 R/ColorSpace 5 0 R/Pattern 6 0 R/Shading 7 0 R/Font<</F1 9 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
 endobj
 4 0 obj
@@ -21,27 +29,35 @@ endobj
 7 0 obj
 <<>>
 endobj
-10 0 obj
-<</Type/Annot/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()/Rect[159.233 707.125 187.579 735.472]>>
+16 0 obj
+<</Names[(Doc-Start)14 0 R(page.1)15 0 R]>>
 endobj
 14 0 obj
-[10 0 R]
+[3 0 R/XYZ 133.77 717.09 null]
+endobj
+15 0 obj
+[3 0 R/XYZ 132.77 754.95 null]
+endobj
+17 0 obj
+<</Dests 16 0 R>>
+endobj
+19 0 obj
+[10 0 R 11 0 R]
 endobj
 3 0 obj
-<</Resources 12 0 R/Type/Page/Parent 13 0 R/Contents[11 0 R]/Annots 14 0 R>>
+<</Resources 13 0 R/Type/Page/Parent 18 0 R/Contents[12 0 R]/Annots 19 0 R>>
 endobj
-13 0 obj
+18 0 obj
 <</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 595.28 841.89]>>
 endobj
 2 0 obj
 <</Creator(TeX)/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
 endobj
 1 0 obj
-<</Pages 13 0 R/Type/Catalog>>
+<</PageMode/UseOutlines/OpenAction[3 0 R/Fit]/Names 17 0 R/Pages 18 0 R/Type/Catalog>>
 endobj
-15 0 obj
-<</Length 412>>
+20 0 obj
+<</Length 370>>
 stream
 /CIDInit /ProcSet findresource begin
 12 dict begin
@@ -56,12 +72,9 @@ begincmap
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
-5 beginbfchar
+2 beginbfchar
 <0052> <0031>
-<0072> <0077>
 <0074> <0078>
-<0076> <0079>
-<0078> <007A>
 endbfchar
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -69,55 +82,60 @@ end
 end
 endstream
 endobj
-17 0 obj
-<</Subtype/CIDFontType0C/Length 1156>>
+22 0 obj
+<</Subtype/CIDFontType0C/Length 746>>
 [BINARY STREAM]
 endobj
-18 0 obj
-[82[500]114[722]116[528]118[528]120[444]]
+23 0 obj
+[82[500]116[528]]
 endobj
-19 0 obj
-<</Length 16>>
+24 0 obj
+<</Length 15>>
 [BINARY STREAM]
 endobj
 8 0 obj
 <</Type/Font/Subtype/CIDFontType0/BaseFont/EXQIVM+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
-0>>/FontDescriptor 16 0 R/DW 280/W 18 0 R>>
+0>>/FontDescriptor 21 0 R/DW 280/W 23 0 R>>
 endobj
-16 0 obj
+21 0 obj
 <</Type/FontDescriptor/Ascent 806/Descent -194/StemV 69/CapHeight 806/AvgWidth 549/FontBBox[-430
 -290 1417 1127]/ItalicAngle 0/Flags 6/Style<</Panose<000000000500000000000000>>>/FontName/EXQIVM+LMRoman10-Regular/FontFile3
-17 0 R/CIDSet 19 0 R>>
+22 0 R/CIDSet 24 0 R>>
 endobj
 9 0 obj
 <</Type/Font/Subtype/Type0/BaseFont/EXQIVM+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[8 0 R]/ToUnicode
-15 0 R>>
+20 0 R>>
 endobj
 xref
-0 20
+0 25
 0000000000 65535 f 
-0000000936 00000 n 
-0000000845 00000 n 
-0000000673 00000 n 
-0000000386 00000 n 
-0000000406 00000 n 
-0000000426 00000 n 
-0000000446 00000 n 
-0000002796 00000 n 
-0000003246 00000 n 
-0000000466 00000 n 
+0000001279 00000 n 
+0000001188 00000 n 
+0000001016 00000 n 
+0000000716 00000 n 
+0000000736 00000 n 
+0000000756 00000 n 
+0000000776 00000 n 
+0000002717 00000 n 
+0000003167 00000 n 
 0000000015 00000 n 
-0000000246 00000 n 
-0000000765 00000 n 
-0000000648 00000 n 
-0000000982 00000 n 
-0000002985 00000 n 
-0000001444 00000 n 
-0000002673 00000 n 
-0000002731 00000 n 
+0000000174 00000 n 
+0000000323 00000 n 
+0000000576 00000 n 
+0000000856 00000 n 
+0000000903 00000 n 
+0000000796 00000 n 
+0000000950 00000 n 
+0000001108 00000 n 
+0000000984 00000 n 
+0000001381 00000 n 
+0000002906 00000 n 
+0000001801 00000 n 
+0000002619 00000 n 
+0000002653 00000 n 
 trailer
 <</Root 1 0 R/Info 2 0 R/ID[<ID-STRING><ID-STRING>]/Size
-20>>
+25>>
 startxref
-3395
+3316
 %%EOF





More information about the latex3-commits mailing list.