[latex3-commits] [git/LaTeX3-latex3-pdfresources] colorspace-firstaid, develop: add testfile for colorspace patch (c43b8fe)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Apr 19 21:25:16 CEST 2022
Repository : https://github.com/latex3/pdfresources
On branches: colorspace-firstaid,develop
Link : https://github.com/latex3/pdfresources/commit/c43b8feff4cd7e19a036091e5045b6526ab903a5
>---------------------------------------------------------------
commit c43b8feff4cd7e19a036091e5045b6526ab903a5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Apr 19 21:25:16 2022 +0200
add testfile for colorspace patch
>---------------------------------------------------------------
c43b8feff4cd7e19a036091e5045b6526ab903a5
build.lua | 4 +-
.../colorspace.pdftex.tpf | 117 ++++++++---------
testfiles-noxetex/colorspace.pvt | 18 +++
testfiles-noxetex/colorspace.tpf | 139 +++++++++++++++++++++
4 files changed, 212 insertions(+), 66 deletions(-)
diff --git a/build.lua b/build.lua
index faeceae..e071cbb 100644
--- a/build.lua
+++ b/build.lua
@@ -19,7 +19,8 @@ if options["target"] == "ctan" then
"firstaid/pdflscape-ltx.sty",
"firstaid/xcolor-patches-tmp-ltx.sty",
"firstaid/color-ltx.sty",
- "firstaid/output-patches-tmp-ltx.dtx"
+ "firstaid/output-patches-tmp-ltx.dtx",
+ "firstaid/colorspace-patches-tmp-ltx.sty"
}
else
sourcefiles = {"*.dtx","*.ins",
@@ -31,6 +32,7 @@ else
"firstaid/color-ltx.sty",
"firstaid/output-patches-tmp-ltx.dtx",
"firstaid/output-patches-tmp-ltx.dtx",
+ "firstaid/colorspace-patches-tmp-ltx.sty",
"support/pdfmanagement-regressiontest.sty",
"newpackages/new-bookmark.sty",
"newpackages/bkm-generic.def",
diff --git a/testfiles/xform-preamble.tpf b/testfiles-noxetex/colorspace.pdftex.tpf
similarity index 71%
copy from testfiles/xform-preamble.tpf
copy to testfiles-noxetex/colorspace.pdftex.tpf
index 2da055b..2806ef0 100644
--- a/testfiles/xform-preamble.tpf
+++ b/testfiles-noxetex/colorspace.pdftex.tpf
@@ -1,84 +1,71 @@
%PDF-1.5
%ÐÔÅØ
5 0 obj
-<<
-/Type /XObject
-/Subtype /Form
-/yyy (bla)
-/BBox [0 0 26.29 6.227]
-/FormType 1
-/Matrix [1 0 0 1 0 0]
-/Resources 6 0 R
-/Length 63
->>
-stream
-1 0 0 1 0 6.227 cm
-BT
-/F20 9.9626 Tf 0 -4.29 Td [(yyyyy)]TJ
-ET
-endstream
+[ /Separation /HKS#2044#20K /DeviceCMYK << /FunctionType 2 /Domain [0 1] /C0 [0 0 0 0] /C1 [1 0.5 0 0] /N 1 >> ]
endobj
6 0 obj
-<<
-/ExtGState 1 0 R
-/Font << /F20 7 0 R >>
-/ProcSet [ /PDF /Text ]
->>
+[ /Separation /BarTone#20555#20GN /DeviceCMYK << /FunctionType 2 /Domain [0 1] /C0 [0 0 0 0] /C1 [0.8 0.2 0.5 0.3] /N 1 >> ]
endobj
-10 0 obj
+9 0 obj
<<
-/Length 195
+/Length 308
>>
stream
/opacity1 gs
+0 g 0 G
+0 g 0 G
+0 g 0 G
+/&HKS#2044#20K cs /&HKS#2044#20K CS 1 sc 1 SC
BT
-/F20 9.9626 Tf 148.712 707.125 Td [(text)]TJ
-ET
-q
-1 0 0 1 169.468 705.188 cm
-/Fm1 Do
-Q
-BT
-/F20 9.9626 Tf 195.758 707.125 Td [(some)-333(te)-1(xt)]TJ 107.375 -567.87 Td [(1)]TJ
+/F20 9.9626 Tf 148.712 657.235 Td [(ab)-28(c)]TJ
+/&BarTone#20555#20GN cs /&BarTone#20555#20GN CS 1 sc 1 SC
+ [-333(cde)]TJ
+1 0 0 rg 1 0 0 RG
+ 0 -11.955 Td [(red)]TJ
+0 g 0 G
+ 154.421 -555.915 Td [(1)]TJ
+1 0 0 rg 1 0 0 RG
ET
endstream
endobj
-9 0 obj
+8 0 obj
<<
/Type /Page
-/Contents 10 0 R
-/Resources 8 0 R
-/MediaBox [0 0 595.276 841.89]
+/Contents 9 0 R
+/Resources 7 0 R
+/MediaBox [0 0 612 792]
/Parent 11 0 R
>>
endobj
-8 0 obj
+7 0 obj
<<
-/ExtGState 1 0 R
-/Font << /F20 7 0 R >>
-/XObject << /Fm1 5 0 R >>
+/ExtGState 1 0 R /ColorSpace 2 0 R
+/Font << /F20 10 0 R >>
/ProcSet [ /PDF /Text ]
>>
endobj
1 0 obj
<< /opacity1 <</ca 1/CA 1>> >>
endobj
+2 0 obj
+<< /pgfprgb [/Pattern /DeviceRGB] /&HKS#2044#20K 5 0 R /&BarTone#20555#20GN 6 0 R >>
+endobj
12 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 527.8]
+[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]
endobj
13 0 obj
<<
-/Length1 1470
-/Length2 9530
+/Length1 1452
+/Length2 8765
/Length3 0
-/Length 11000
+/Length 10217
>>
[BINARY STREAM]
endobj
14 0 obj
<<
/Type /FontDescriptor
-/FontName /ICAEIU+CMR10
+/FontName /KMPUYV+CMR10
/Flags 4
/FontBBox [-40 -250 1009 750]
/Ascent 694
@@ -87,7 +74,7 @@ endobj
/ItalicAngle 0
/StemV 69
/XHeight 431
-/CharSet (/e/m/o/one/s/t/x/y)
+/CharSet (/a/b/c/d/e/one/r)
/FontFile 13 0 R
>>
endobj
@@ -213,14 +200,14 @@ end
%%EOF
endstream
endobj
-7 0 obj
+10 0 obj
<<
/Type /Font
/Subtype /Type1
-/BaseFont /ICAEIU+CMR10
+/BaseFont /KMPUYV+CMR10
/FontDescriptor 14 0 R
/FirstChar 49
-/LastChar 121
+/LastChar 114
/Widths 12 0 R
/ToUnicode 15 0 R
>>
@@ -229,7 +216,7 @@ endobj
<<
/Type /Pages
/Count 1
-/Kids [9 0 R]
+/Kids [8 0 R]
>>
endobj
16 0 obj
@@ -247,29 +234,29 @@ endobj
endobj
xref
0 18
-0000000002 65535 f
-0000000816 00000 n
-0000000003 00000 f
+0000000003 65535 f
+0000000859 00000 n
+0000000906 00000 n
0000000004 00000 f
0000000000 00000 f
0000000015 00000 n
-0000000252 00000 n
-0000014390 00000 n
-0000000704 00000 n
-0000000591 00000 n
-0000000337 00000 n
-0000014547 00000 n
-0000000863 00000 n
-0000001276 00000 n
-0000012374 00000 n
-0000012607 00000 n
-0000014605 00000 n
-0000014670 00000 n
+0000000143 00000 n
+0000000754 00000 n
+0000000649 00000 n
+0000000283 00000 n
+0000013707 00000 n
+0000013865 00000 n
+0000001007 00000 n
+0000001378 00000 n
+0000011693 00000 n
+0000011924 00000 n
+0000013923 00000 n
+0000013988 00000 n
trailer
<< /Size 18
/Root 16 0 R
/Info 17 0 R
/ID [<9BD18DF3359C1216B83ADB4AA401CC9A> <9BD18DF3359C1216B83ADB4AA401CC9A>] >>
startxref
-14814
+14132
%%EOF
diff --git a/testfiles-noxetex/colorspace.pvt b/testfiles-noxetex/colorspace.pvt
new file mode 100644
index 0000000..ab1eedf
--- /dev/null
+++ b/testfiles-noxetex/colorspace.pvt
@@ -0,0 +1,18 @@
+% Test doesn't make sense with xelatex/dvips as they don't
+% work with transparent and colorspace anyway ...
+\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
+\DocumentMetadata { }
+\input{regression-test}
+\documentclass{article}
+
+\usepackage{tikz}
+\usepackage{colorspace}
+\definespotcolor{myblue}{HKS 44 K}[cmyk]{1,0.5,0,0}
+\definespotcolor{mygreen}{BarTone 555 GN}{.8,.2,.5,.3}
+
+\begin{document}
+\color{myblue} abc
+\color{mygreen} cde
+
+\color{red} red
+\end{document}
\ No newline at end of file
diff --git a/testfiles-noxetex/colorspace.tpf b/testfiles-noxetex/colorspace.tpf
new file mode 100644
index 0000000..f0cd004
--- /dev/null
+++ b/testfiles-noxetex/colorspace.tpf
@@ -0,0 +1,139 @@
+%PDF-1.5
+%ÌÕÁÔÅØÐÄÆ
+5 0 obj
+[ /Separation /HKS#2044#20K /DeviceCMYK << /FunctionType 2 /Domain [0 1] /C0 [0 0 0 0] /C1 [1 0.5 0 0] /N 1 >> ]
+endobj
+6 0 obj
+[ /Separation /BarTone#20555#20GN /DeviceCMYK << /FunctionType 2 /Domain [0 1] /C0 [0 0 0 0] /C1 [0.8 0.2 0.5 0.3] /N 1 >> ]
+endobj
+9 0 obj
+<< /Length 386 >>
+stream
+/opacity1 gs
+0 g 0 G
+0 g 0 G
+0 g 0 G
+/&HKS#2044#20K cs /&HKS#2044#20K CS 1 sc 1 SC
+BT
+/F15 9.96264 Tf
+1 0 0 1 148.712 657.235 Tm [<001C0023>-28<002B>]TJ
+/&BarTone#20555#20GN cs /&BarTone#20555#20GN CS 1 sc 1 SC
+1 0 0 1 167.253 657.235 Tm [<002B002F0032>]TJ
+1 0 0 rg 1 0 0 RG
+1 0 0 1 148.712 645.28 Tm [<00600032002F>]TJ
+0 g 0 G
+1 0 0 1 303.133 89.365 Tm [<0052>]TJ
+1 0 0 rg 1 0 0 RG
+ET
+endstream
+endobj
+8 0 obj
+<< /Type /Page /Contents 9 0 R /Resources 7 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R >>
+endobj
+7 0 obj
+<< /ExtGState 1 0 R/ColorSpace 2 0 R /Font << /F15 10 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+1 0 obj
+<< /opacity1 <</ca 1/CA 1>> >>
+endobj
+2 0 obj
+<< /pgfprgb [/Pattern /DeviceRGB] /&HKS#2044#20K 5 0 R /&BarTone#20555#20GN 6 0 R >>
+endobj
+12 0 obj
+[ 28 [ 500 ] 35 [ 556 ] 43 [ 444 ] 47 [ 556 ] 50 [ 444 ] 82 [ 500 ] 96 [ 392 ] ]
+endobj
+14 0 obj
+<< /Length 13 >>
+[BINARY STREAM]
+endobj
+15 0 obj
+<< /Subtype /CIDFontType0C /Length 1310 >>
+[BINARY STREAM]
+endobj
+13 0 obj
+<< /Type /FontDescriptor /FontName /COZLMR+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 15 0 R /CIDSet 14 0 R >>
+endobj
+16 0 obj
+<< /Length 776 >>
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-COZLMR-LMRoman10-Regular-0)
+%%Title: (TeX-COZLMR-LMRoman10-Regular-0 TeX COZLMR-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (COZLMR-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-COZLMR-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+7 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<002F> <0064>
+<0032> <0065>
+<0052> <0031>
+<0060> <0072>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+10 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /COZLMR+LMRoman10-Regular /DescendantFonts [ 17 0 R ] /ToUnicode 16 0 R >>
+endobj
+17 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /COZLMR+LMRoman10-Regular /FontDescriptor 13 0 R /W 12 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+11 0 obj
+<< /Type /Pages /Count 1 /Kids [ 8 0 R ] >>
+endobj
+18 0 obj
+<< /Type /Catalog /Pages 11 0 R /Lang (en-US) >>
+endobj
+19 0 obj
+<< /Creator (TeX)/Producer (LuaTeX)/CreationDate (D:20010101205959-00'00')/ModDate (D:20010101205959-00'00') /Trapped /False >>
+endobj
+xref
+0 20
+0000000003 65535 f
+0000000943 00000 n
+0000000990 00000 n
+0000000004 00000 f
+0000000000 00000 f
+0000000020 00000 n
+0000000148 00000 n
+0000000840 00000 n
+0000000733 00000 n
+0000000288 00000 n
+0000003727 00000 n
+0000004081 00000 n
+0000001091 00000 n
+0000002655 00000 n
+0000001188 00000 n
+0000001261 00000 n
+0000002891 00000 n
+0000003881 00000 n
+0000004142 00000 n
+0000004207 00000 n
+trailer
+<< /Size 20 /Root 18 0 R /Info 19 0 R /ID [ <2350CAD05F8A7AF0AA4058486855344F> <2350CAD05F8A7AF0AA4058486855344F> ] >>
+startxref
+4351
+%%EOF
More information about the latex3-commits
mailing list.