summaryrefslogtreecommitdiff
path: root/tex/context/test
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-12 02:01:50 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-12 02:01:50 +0100
commite75317d1924dd10388f154df7412a0ab201e455e (patch)
tree2fc6cfd0391d3997cdaf1f8120cfa1a55bc30d10 /tex/context/test
parentf74c4055713ab52a11d12435eb04040ec6553129 (diff)
downloadcontext-e75317d1924dd10388f154df7412a0ab201e455e.tar.gz
2019-12-12 01:07:00
Diffstat (limited to 'tex/context/test')
-rw-r--r--tex/context/test/mkiv/pdf-a1a-2005.mkiv6
-rw-r--r--tex/context/test/mkiv/pdf-a1b-2005.mkiv12
-rw-r--r--tex/context/test/mkiv/pdf-a2a.mkiv14
-rw-r--r--tex/context/test/mkiv/pdf-a2b.mkiv48
-rw-r--r--tex/context/test/mkiv/pdf-a2u.mkiv48
-rw-r--r--tex/context/test/mkiv/pdf-a3a.mkiv16
-rw-r--r--tex/context/test/mkiv/pdf-a3b.mkiv47
-rw-r--r--tex/context/test/mkiv/pdf-a3u.mkiv47
8 files changed, 222 insertions, 16 deletions
diff --git a/tex/context/test/mkiv/pdf-a1a-2005.mkiv b/tex/context/test/mkiv/pdf-a1a-2005.mkiv
index 90ac0c242..d7b2df9e0 100644
--- a/tex/context/test/mkiv/pdf-a1a-2005.mkiv
+++ b/tex/context/test/mkiv/pdf-a1a-2005.mkiv
@@ -1,6 +1,6 @@
% PDF/A-1a:2005
-\enabletrackers[structure.tags,backend.tags]
+\enabletrackers[structure.tags,backend.tags,backend.xmp]
\setupbackend
[format=PDF/A-1a:2005,
@@ -13,10 +13,12 @@
\setupcolors[cmyk=no]
\definecolor[rgbblack][b=0.01]
-\definecolor[transtest][r=1,g=1,t=.5]
+\definecolor[transtest][r=1,g=1,t=0.25]% transparency is not allowed
\placebookmarks[chapter][all][force=yes]
+
+
\starttext
\starttextcolor[rgbblack]
diff --git a/tex/context/test/mkiv/pdf-a1b-2005.mkiv b/tex/context/test/mkiv/pdf-a1b-2005.mkiv
index f23942a97..9b0669c61 100644
--- a/tex/context/test/mkiv/pdf-a1b-2005.mkiv
+++ b/tex/context/test/mkiv/pdf-a1b-2005.mkiv
@@ -1,6 +1,6 @@
% PDF/A-1b:2005
-\enabletrackers[structure.tags,backend.tags,backend.xmp]
+\enabletrackers[backend.xmp]
\setupbackend
[format=PDF/A-1b:2005,
@@ -9,21 +9,20 @@
% profile={sRGB.icc,default_gray.icc}]
level=0]
-\setuptagging[state=start] % needed even for 'b'-version
-
\setupcolors[cmyk=no]
\definecolor[rgbblack][b=0.01]
-\definecolor[transtest][r=1,g=1,t=.5]
+\definecolor[transtest][r=1,g=1,t=.25]% transparency is not allowed
+
+
\starttext
\starttextcolor[rgbblack] % forced /DeviceGray causes problems; we need a trigger
-Text is needed, otherwise tagging base entries are not applied.
+Test it.
\stoptextcolor
-%\startTEXpage
\hbox\bgroup
\blackrule[width=1cm,height=1cm,color=red]
\blackrule[width=1cm,height=1cm,color=green]
@@ -32,6 +31,5 @@ Text is needed, otherwise tagging base entries are not applied.
\blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm
\blackrule[width=1cm,height=1cm,color=transtest]
\egroup
-%\stopTEXpage
\stoptext
diff --git a/tex/context/test/mkiv/pdf-a2a.mkiv b/tex/context/test/mkiv/pdf-a2a.mkiv
index a0e181e69..35f1453eb 100644
--- a/tex/context/test/mkiv/pdf-a2a.mkiv
+++ b/tex/context/test/mkiv/pdf-a2a.mkiv
@@ -1,6 +1,6 @@
% PDF/A-2a
-\enabletrackers[structure.tags,backend.tags]
+\enabletrackers[structure.tags,backend.tags,backend.xmp]
\setupbackend
[format=PDF/A-2a,
@@ -10,12 +10,17 @@
\setuptagging[state=start]
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
\setupcolors[cmyk=no]
\definecolor[rgbblack][b=0.01]
-\definecolor[transtest][r=1,g=1,t=.5]
+\definecolor[transtest][r=1,g=1,t=.25]
\placebookmarks[chapter][all][force=yes]
+
+
\starttext
\starttextcolor[rgbblack]
@@ -37,4 +42,9 @@ Test it
\blackrule[width=1cm,height=1cm,color=transtest]
\egroup
+
+% inclusion of PDF/A is allowed; TODO: test if ANY version (even newer) is allowed
+%\attachment[file={attachment_pdf-a1a-2005.pdf}, type={application/pdf}]
+\attachment[file={attachment_pdf-a1b-2005.pdf}, type={application/pdf}]
+
\stoptext
diff --git a/tex/context/test/mkiv/pdf-a2b.mkiv b/tex/context/test/mkiv/pdf-a2b.mkiv
new file mode 100644
index 000000000..5c0d72244
--- /dev/null
+++ b/tex/context/test/mkiv/pdf-a2b.mkiv
@@ -0,0 +1,48 @@
+% PDF/A-2b
+
+\enabletrackers[backend.xmp]
+
+\setupbackend
+ [format=PDF/A-2b,
+ intent=sRGB IEC61966-2.1, % use <info> entry here; otherwise problems with predefined default profile
+ profile={sRGB.icc,default_gray.icc},
+ level=0]
+
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
+\setupcolors[cmyk=no]
+\definecolor[rgbblack][b=0.01]
+\definecolor[transtest][r=1,g=1,t=.25]
+
+\placebookmarks[chapter][all][force=yes]
+
+
+
+\starttext
+
+\starttextcolor[rgbblack]
+
+\startchapter[title=aa,bookmark=bb,list=cc,marking=dd]
+
+Test it
+
+\stopchapter
+
+\stoptextcolor
+
+\hbox\bgroup
+ \blackrule[width=1cm,height=1cm,color=red]
+ \blackrule[width=1cm,height=1cm,color=green]
+ \blackrule[width=1cm,height=1cm,color=blue]
+ \blackrule[width=1cm,height=1cm,color=rgbblack]
+ \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm
+ \blackrule[width=1cm,height=1cm,color=transtest]
+\egroup
+
+
+% inclusion of PDF/A is allowed; TODO: test if ANY version (even newer) is allowed
+\attachment[file={attachment_pdf-a1a-2005.pdf}, type={application/pdf}]
+%\attachment[file={attachment_pdf-a1b-2005.pdf}, type={application/pdf}]
+
+\stoptext
diff --git a/tex/context/test/mkiv/pdf-a2u.mkiv b/tex/context/test/mkiv/pdf-a2u.mkiv
new file mode 100644
index 000000000..0b20abfe1
--- /dev/null
+++ b/tex/context/test/mkiv/pdf-a2u.mkiv
@@ -0,0 +1,48 @@
+% PDF/A-2u
+
+\enabletrackers[backend.xmp]
+
+\setupbackend
+ [format=PDF/A-2u,
+ intent=sRGB IEC61966-2.1, % use <info> entry here; otherwise problems with predefined default profile
+ profile={sRGB.icc,default_gray.icc},
+ level=0]
+
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
+\setupcolors[cmyk=no]
+\definecolor[rgbblack][b=0.01]
+\definecolor[transtest][r=1,g=1,t=.25]
+
+\placebookmarks[chapter][all][force=yes]
+
+
+
+\starttext
+
+\starttextcolor[rgbblack]
+
+\startchapter[title=aa,bookmark=bb,list=cc,marking=dd]
+
+Test it
+
+\stopchapter
+
+\stoptextcolor
+
+\hbox\bgroup
+ \blackrule[width=1cm,height=1cm,color=red]
+ \blackrule[width=1cm,height=1cm,color=green]
+ \blackrule[width=1cm,height=1cm,color=blue]
+ \blackrule[width=1cm,height=1cm,color=rgbblack]
+ \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm
+ \blackrule[width=1cm,height=1cm,color=transtest]
+\egroup
+
+
+% inclusion of PDF/A is allowed; TODO: test if ANY version (even newer) is allowed
+\attachment[file={attachment_pdf-a1a-2005.pdf}, type={application/pdf}]
+%\attachment[file={attachment_pdf-a1b-2005.pdf}, type={application/pdf}]
+
+\stoptext
diff --git a/tex/context/test/mkiv/pdf-a3a.mkiv b/tex/context/test/mkiv/pdf-a3a.mkiv
index 7efb28e3c..3d5dd48ca 100644
--- a/tex/context/test/mkiv/pdf-a3a.mkiv
+++ b/tex/context/test/mkiv/pdf-a3a.mkiv
@@ -1,9 +1,6 @@
% PDF/A-3a
-\nopdfcompression
-
-
-\enabletrackers[structure.tags,backend.tags]
+\enabletrackers[structure.tags,backend.tags,backend.xmp]
\setupbackend
[format=PDF/A-3a,
@@ -13,12 +10,17 @@
\setuptagging[state=start]
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
\setupcolors[cmyk=no]
\definecolor[rgbblack][b=0.01]
-\definecolor[transtest][r=1,g=1,t=.5]
+\definecolor[transtest][r=1,g=1,t=.25]
\placebookmarks[chapter][all][force=yes]
+
+
\starttext
\starttextcolor[rgbblack]
@@ -40,4 +42,8 @@ Test it
\blackrule[width=1cm,height=1cm,color=transtest]
\egroup
+
+% inclusion of any file type is allowed
+\attachment[file=cow.pdf, type={application/pdf}]
+
\stoptext
diff --git a/tex/context/test/mkiv/pdf-a3b.mkiv b/tex/context/test/mkiv/pdf-a3b.mkiv
new file mode 100644
index 000000000..31bbaeaba
--- /dev/null
+++ b/tex/context/test/mkiv/pdf-a3b.mkiv
@@ -0,0 +1,47 @@
+% PDF/A-3b
+
+\enabletrackers[backend.xmp]
+
+\setupbackend
+ [format=PDF/A-3b,
+ intent=sRGB IEC61966-2.1, % use <info> entry here; otherwise problems with predefined default profile
+ profile={sRGB.icc,default_gray.icc},
+ level=0]
+
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
+\setupcolors[cmyk=no]
+\definecolor[rgbblack][b=0.01]
+\definecolor[transtest][r=1,g=1,t=.25]
+
+\placebookmarks[chapter][all][force=yes]
+
+
+
+\starttext
+
+\starttextcolor[rgbblack]
+
+\startchapter[title=aa,bookmark=bb,list=cc,marking=dd]
+
+Test it
+
+\stopchapter
+
+\stoptextcolor
+
+\hbox\bgroup
+ \blackrule[width=1cm,height=1cm,color=red]
+ \blackrule[width=1cm,height=1cm,color=green]
+ \blackrule[width=1cm,height=1cm,color=blue]
+ \blackrule[width=1cm,height=1cm,color=rgbblack]
+ \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm
+ \blackrule[width=1cm,height=1cm,color=transtest]
+\egroup
+
+
+% inclusion of any file type is allowed
+\attachment[file=cow.pdf, type={application/pdf}]
+
+\stoptext
diff --git a/tex/context/test/mkiv/pdf-a3u.mkiv b/tex/context/test/mkiv/pdf-a3u.mkiv
new file mode 100644
index 000000000..098d027fd
--- /dev/null
+++ b/tex/context/test/mkiv/pdf-a3u.mkiv
@@ -0,0 +1,47 @@
+% PDF/A-3u
+
+\enabletrackers[backend.xmp]
+
+\setupbackend
+ [format=PDF/A-3u,
+ intent=sRGB IEC61966-2.1, % use <info> entry here; otherwise problems with predefined default profile
+ profile={sRGB.icc,default_gray.icc},
+ level=0]
+
+\setupinteraction[state=start]% needed for attachment
+%\setupattachment[method=hidden]
+
+\setupcolors[cmyk=no]
+\definecolor[rgbblack][b=0.01]
+\definecolor[transtest][r=1,g=1,t=.25]
+
+\placebookmarks[chapter][all][force=yes]
+
+
+
+\starttext
+
+\starttextcolor[rgbblack]
+
+\startchapter[title=aa,bookmark=bb,list=cc,marking=dd]
+
+Test it
+
+\stopchapter
+
+\stoptextcolor
+
+\hbox\bgroup
+ \blackrule[width=1cm,height=1cm,color=red]
+ \blackrule[width=1cm,height=1cm,color=green]
+ \blackrule[width=1cm,height=1cm,color=blue]
+ \blackrule[width=1cm,height=1cm,color=rgbblack]
+ \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm
+ \blackrule[width=1cm,height=1cm,color=transtest]
+\egroup
+
+
+% inclusion of any file type is allowed
+\attachment[file=cow.pdf, type={application/pdf}]
+
+\stoptext