From fc4466b32ed330a956ac603b00fd145524cff49a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 22 Apr 2016 22:14:39 +0000 Subject: context (22apr16) git-svn-id: svn://tug.org/texlive/trunk@40691 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/context/test/context-test.tex | 27 ------------- .../tex/context/test/mkiv/context-test.tex | 27 +++++++++++++ .../tex/context/test/mkiv/pdf-a1a-2005.mkiv | 40 ++++++++++++++++++++ .../tex/context/test/mkiv/pdf-a1b-2005.mkiv | 36 ++++++++++++++++++ .../texmf-dist/tex/context/test/mkiv/pdf-ua.mkiv | 44 ++++++++++++++++++++++ .../tex/context/test/mkiv/pdf-x-common.mkiv | 30 +++++++++++++++ .../tex/context/test/mkiv/pdf-x1a-2001.mkiv | 9 +++++ .../tex/context/test/mkiv/pdf-x1a-2003.mkiv | 10 +++++ .../tex/context/test/mkiv/pdf-x3-2002.mkiv | 10 +++++ .../tex/context/test/mkiv/pdf-x3-2003.mkiv | 9 +++++ .../texmf-dist/tex/context/test/mkiv/pdf-x4.mkiv | 11 ++++++ .../texmf-dist/tex/context/test/mkiv/pdf-x4p.mkiv | 10 +++++ .../texmf-dist/tex/context/test/pdf-a1a-2005.mkiv | 40 -------------------- .../texmf-dist/tex/context/test/pdf-a1b-2005.mkiv | 36 ------------------ .../texmf-dist/tex/context/test/pdf-x-common.mkiv | 30 --------------- .../texmf-dist/tex/context/test/pdf-x1a-2001.mkiv | 9 ----- .../texmf-dist/tex/context/test/pdf-x1a-2003.mkiv | 10 ----- .../texmf-dist/tex/context/test/pdf-x3-2002.mkiv | 10 ----- .../texmf-dist/tex/context/test/pdf-x3-2003.mkiv | 9 ----- Master/texmf-dist/tex/context/test/pdf-x4.mkiv | 11 ------ Master/texmf-dist/tex/context/test/pdf-x4p.mkiv | 10 ----- 21 files changed, 236 insertions(+), 192 deletions(-) delete mode 100644 Master/texmf-dist/tex/context/test/context-test.tex create mode 100644 Master/texmf-dist/tex/context/test/mkiv/context-test.tex create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-a1a-2005.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-a1b-2005.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-ua.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x-common.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2001.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2003.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2002.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2003.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x4.mkiv create mode 100644 Master/texmf-dist/tex/context/test/mkiv/pdf-x4p.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-a1a-2005.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-a1b-2005.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x-common.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x1a-2001.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x1a-2003.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x3-2002.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x3-2003.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x4.mkiv delete mode 100644 Master/texmf-dist/tex/context/test/pdf-x4p.mkiv (limited to 'Master/texmf-dist/tex/context/test') diff --git a/Master/texmf-dist/tex/context/test/context-test.tex b/Master/texmf-dist/tex/context/test/context-test.tex deleted file mode 100644 index 3cf002baf24..00000000000 --- a/Master/texmf-dist/tex/context/test/context-test.tex +++ /dev/null @@ -1,27 +0,0 @@ -\starttext - -\startmode[mkiv] - - \startluacode - tex.sprint("hello") - \stopluacode - - \startMPcode - draw textext("hello") rotated 45 ; - \stopMPcode - - \framed{hello} - -\stopmode - -\startnotmode[mkiv] - - \startMPcode - draw textext("hello") rotated -45 ; - \stopMPcode - - \framed{hello} - -\stopnotmode - -\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/context-test.tex b/Master/texmf-dist/tex/context/test/mkiv/context-test.tex new file mode 100644 index 00000000000..3cf002baf24 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/context-test.tex @@ -0,0 +1,27 @@ +\starttext + +\startmode[mkiv] + + \startluacode + tex.sprint("hello") + \stopluacode + + \startMPcode + draw textext("hello") rotated 45 ; + \stopMPcode + + \framed{hello} + +\stopmode + +\startnotmode[mkiv] + + \startMPcode + draw textext("hello") rotated -45 ; + \stopMPcode + + \framed{hello} + +\stopnotmode + +\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-a1a-2005.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-a1a-2005.mkiv new file mode 100644 index 00000000000..8f79d3f337a --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-a1a-2005.mkiv @@ -0,0 +1,40 @@ +% PDF/A-1a:2005 + +\enabletrackers[structure.tags,backend.tags] + +\setupbackend + [format=PDF/A-1a:2005, + intent=sRGB IEC61966-2.1, % use entry here; otherwise problems with predefined default profile + profile=sRGB.icc, % use here + level=0] + +\setuptagging[state=start] + +\setupcolors[cmyk=no] +\definecolor[rgbblack][b=0.01] +\definecolor[transtest][r=1,g=1,t=.5] + +\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 + +\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-a1b-2005.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-a1b-2005.mkiv new file mode 100644 index 00000000000..bc970c3f9d8 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-a1b-2005.mkiv @@ -0,0 +1,36 @@ +% PDF/A-1b:2005 + +\enabletrackers[structure.tags,backend.tags,backend.xmp] + +\setupbackend + [format=PDF/A-1b:2005, + intent=sRGB IEC61966-2.1, % use entry here; otherwise problems with predefined default profile + profile=sRGB.icc, % use here + 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] + +\starttext + +\starttextcolor[rgbblack] % forced /DeviceGray causes problems; we need a trigger + +Text is needed, otherwise tagging base entries are not applied. + +\stoptextcolor + +%\startTEXpage +\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 +%\stopTEXpage + +\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-ua.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-ua.mkiv new file mode 100644 index 00000000000..e048b971706 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-ua.mkiv @@ -0,0 +1,44 @@ +\setupinteraction + [title=TITLE, + subtitle=SUBTITLE, + author=AUTHOR, + keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] + +\setupbackend + [format={pdf/ua-1}, +% profile=srgb.icc, % can't validate PDF/A-3, so this only blows up the PDF +% intent={ISO Coated v2 300\letterpercent\space (ECI)}, + level=0] + +\setuptagging[state=start] % should be set automatically, if 'tagging = true' + +\setuplanguage[en] + +% DisplayDocTitle key is not set to true +% +% [from PDFUA-Reference-09_(English-invoice).pdf] +% 129 0 obj +% <>/PageMode/UseOutlines/Outlines 43 0 R/Lang(en)/StructTreeRoot 2 0 R/MarkInfo<>/OutputIntents[ 128 0 R]/Metadata 127 0 R>> +% endobj +% this may interfer with other ViewerPreferences settings? +\startluacode + lpdf.addtocatalog("ViewerPreferences",lpdf.dictionary{DisplayDocTitle = true}) +\stopluacode + +\def\tag#1{\quote{\tt#1}} + +\starttext + Warning: This document may contain errors and traces of hazelnuts. + + \blank[big] + + \startMPcode + fill fullcircle scaled 3cm withcolor red; + \stopMPcode + + \blank[big] + + The \quote{Matterhorn Protocol} gives a condensed overview of the possible failure conditions + and the used structure types (p.4).\par + +\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x-common.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x-common.mkiv new file mode 100644 index 00000000000..463a60e71ff --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x-common.mkiv @@ -0,0 +1,30 @@ +\showlayoutcomponents % \nopdfcompression + +\setupinteraction + [title=TITLE, + subtitle=SUBTITLE, + author=AUTHOR, + keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] + +\definecolor[cmykcyan][c=1] +\definecolor[cmykmagenta][m=1] +\definecolor[cmykyellow][y=1] +\definecolor[cmykblack][k=1] +\definecolor[transtest][y=1,a=1,t=.5] + +\starttext + +\startTEXpage + \blackrule[width=1cm,height=1cm,color=cmykcyan] + \blackrule[width=1cm,height=1cm,color=cmykmagenta] + \blackrule[width=1cm,height=1cm,color=cmykyellow] + \blackrule[width=1cm,height=1cm,color=cmykblack] + \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm + \blackrule[width=1cm,height=1cm,color=transtest] +\stopTEXpage + +\startTEXpage + \tt Some text. +\stopTEXpage + +\stoptext diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2001.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2001.mkiv new file mode 100644 index 00000000000..f1c5ef53105 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2001.mkiv @@ -0,0 +1,9 @@ +% PDF/X-1a:2001 + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-1a:2001, + intent=ISOcoated_v2_eci.icc] + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2003.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2003.mkiv new file mode 100644 index 00000000000..7fbec5acbf4 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x1a-2003.mkiv @@ -0,0 +1,10 @@ +% PDF/X-1a:2003 + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-1a:2003, + intent=ISOcoated_v2_eci.icc, + option=always] + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2002.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2002.mkiv new file mode 100644 index 00000000000..be757212e0b --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2002.mkiv @@ -0,0 +1,10 @@ +% PDF/X-3:2002 + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-3:2002, + level=9, % maybe compresslevel + intent=ISOcoated_v2_eci.icc] + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2003.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2003.mkiv new file mode 100644 index 00000000000..cbebe1033f4 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x3-2003.mkiv @@ -0,0 +1,9 @@ +% PDF/X-3:2003 + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-3:2003, + intent=ISOcoated_v2_eci.icc] + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x4.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x4.mkiv new file mode 100644 index 00000000000..062de3b3420 --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x4.mkiv @@ -0,0 +1,11 @@ +% PDF/X-4 + +% \nopdfcompression + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-4, + intent=ISOcoated_v2_eci.icc] + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/mkiv/pdf-x4p.mkiv b/Master/texmf-dist/tex/context/test/mkiv/pdf-x4p.mkiv new file mode 100644 index 00000000000..bfee0b2383e --- /dev/null +++ b/Master/texmf-dist/tex/context/test/mkiv/pdf-x4p.mkiv @@ -0,0 +1,10 @@ +% PDF/X-4p + +\enabletrackers[backend.format,backend.variables] + +\setupbackend + [format=PDF/X-4p, + intent={ISO Coated v2 (ECI)}, + profile=sRGB.icc] % test for default colorspace + +\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-a1a-2005.mkiv b/Master/texmf-dist/tex/context/test/pdf-a1a-2005.mkiv deleted file mode 100644 index 8f79d3f337a..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-a1a-2005.mkiv +++ /dev/null @@ -1,40 +0,0 @@ -% PDF/A-1a:2005 - -\enabletrackers[structure.tags,backend.tags] - -\setupbackend - [format=PDF/A-1a:2005, - intent=sRGB IEC61966-2.1, % use entry here; otherwise problems with predefined default profile - profile=sRGB.icc, % use here - level=0] - -\setuptagging[state=start] - -\setupcolors[cmyk=no] -\definecolor[rgbblack][b=0.01] -\definecolor[transtest][r=1,g=1,t=.5] - -\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 - -\stoptext diff --git a/Master/texmf-dist/tex/context/test/pdf-a1b-2005.mkiv b/Master/texmf-dist/tex/context/test/pdf-a1b-2005.mkiv deleted file mode 100644 index bc970c3f9d8..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-a1b-2005.mkiv +++ /dev/null @@ -1,36 +0,0 @@ -% PDF/A-1b:2005 - -\enabletrackers[structure.tags,backend.tags,backend.xmp] - -\setupbackend - [format=PDF/A-1b:2005, - intent=sRGB IEC61966-2.1, % use entry here; otherwise problems with predefined default profile - profile=sRGB.icc, % use here - 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] - -\starttext - -\starttextcolor[rgbblack] % forced /DeviceGray causes problems; we need a trigger - -Text is needed, otherwise tagging base entries are not applied. - -\stoptextcolor - -%\startTEXpage -\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 -%\stopTEXpage - -\stoptext diff --git a/Master/texmf-dist/tex/context/test/pdf-x-common.mkiv b/Master/texmf-dist/tex/context/test/pdf-x-common.mkiv deleted file mode 100644 index 463a60e71ff..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x-common.mkiv +++ /dev/null @@ -1,30 +0,0 @@ -\showlayoutcomponents % \nopdfcompression - -\setupinteraction - [title=TITLE, - subtitle=SUBTITLE, - author=AUTHOR, - keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] - -\definecolor[cmykcyan][c=1] -\definecolor[cmykmagenta][m=1] -\definecolor[cmykyellow][y=1] -\definecolor[cmykblack][k=1] -\definecolor[transtest][y=1,a=1,t=.5] - -\starttext - -\startTEXpage - \blackrule[width=1cm,height=1cm,color=cmykcyan] - \blackrule[width=1cm,height=1cm,color=cmykmagenta] - \blackrule[width=1cm,height=1cm,color=cmykyellow] - \blackrule[width=1cm,height=1cm,color=cmykblack] - \blackrule[width=1cm,height=1cm,color=transtest]\hskip-.5cm - \blackrule[width=1cm,height=1cm,color=transtest] -\stopTEXpage - -\startTEXpage - \tt Some text. -\stopTEXpage - -\stoptext diff --git a/Master/texmf-dist/tex/context/test/pdf-x1a-2001.mkiv b/Master/texmf-dist/tex/context/test/pdf-x1a-2001.mkiv deleted file mode 100644 index f1c5ef53105..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x1a-2001.mkiv +++ /dev/null @@ -1,9 +0,0 @@ -% PDF/X-1a:2001 - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-1a:2001, - intent=ISOcoated_v2_eci.icc] - -\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-x1a-2003.mkiv b/Master/texmf-dist/tex/context/test/pdf-x1a-2003.mkiv deleted file mode 100644 index 7fbec5acbf4..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x1a-2003.mkiv +++ /dev/null @@ -1,10 +0,0 @@ -% PDF/X-1a:2003 - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-1a:2003, - intent=ISOcoated_v2_eci.icc, - option=always] - -\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-x3-2002.mkiv b/Master/texmf-dist/tex/context/test/pdf-x3-2002.mkiv deleted file mode 100644 index be757212e0b..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x3-2002.mkiv +++ /dev/null @@ -1,10 +0,0 @@ -% PDF/X-3:2002 - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-3:2002, - level=9, % maybe compresslevel - intent=ISOcoated_v2_eci.icc] - -\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-x3-2003.mkiv b/Master/texmf-dist/tex/context/test/pdf-x3-2003.mkiv deleted file mode 100644 index cbebe1033f4..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x3-2003.mkiv +++ /dev/null @@ -1,9 +0,0 @@ -% PDF/X-3:2003 - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-3:2003, - intent=ISOcoated_v2_eci.icc] - -\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-x4.mkiv b/Master/texmf-dist/tex/context/test/pdf-x4.mkiv deleted file mode 100644 index 062de3b3420..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x4.mkiv +++ /dev/null @@ -1,11 +0,0 @@ -% PDF/X-4 - -% \nopdfcompression - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-4, - intent=ISOcoated_v2_eci.icc] - -\input pdf-x-common.mkiv diff --git a/Master/texmf-dist/tex/context/test/pdf-x4p.mkiv b/Master/texmf-dist/tex/context/test/pdf-x4p.mkiv deleted file mode 100644 index bfee0b2383e..00000000000 --- a/Master/texmf-dist/tex/context/test/pdf-x4p.mkiv +++ /dev/null @@ -1,10 +0,0 @@ -% PDF/X-4p - -\enabletrackers[backend.format,backend.variables] - -\setupbackend - [format=PDF/X-4p, - intent={ISO Coated v2 (ECI)}, - profile=sRGB.icc] % test for default colorspace - -\input pdf-x-common.mkiv -- cgit v1.2.3