Bug 688178

Summary: Parentheses for quoting color Separation Names is broken.
Product: Ghostscript Reporter: Jason Giglio <gigs>
Component: GeneralAssignee: Stefan Kemper <stefan.kemper>
Status: NOTIFIED INVALID    
Severity: normal    
Priority: P3    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Jason Giglio 2005-06-30 07:17:36 UTC
Fails:
gsc -dBATCH -dNOPAUSE -sDEVICE=tiffsep -sOutputFile=temp_tmp -r25 -c '<<
/SeparationColorNames [ /Cyan /Magenta /Yellow /Black /(9116) /(5150) /(1455)
/(3068) /Die /Varnish ] /SeparationOrder [ /Cyan /Magenta /Yellow /Black /9116
/5150 /1455 /(3068) ] >> setpagedevice' -f /storage/archive/02900PAP600.pdf

Works:
gsc -dBATCH -dNOPAUSE -sDEVICE=tiffsep -sOutputFile=temp_tmp -r25 -c '<<
/SeparationColorNames [ /Cyan /Magenta /Yellow /Black /(9116) /(5150) /(1455)
/(3068) /Die /Varnish ] /SeparationOrder [ /Cyan /Magenta /Yellow /Black /9116
/5150 /1455 /3068 ] >> setpagedevice' -f /storage/archive/02900PAP600.pdf


For some reason putting parentheses around color names in SeparationOrder causes
the separation limit to be triggered even when only 8 are specified in
SeparationOrder.
Comment 1 Jason Giglio 2005-06-30 08:56:21 UTC
Broken: 

gsc -dBATCH -dNOPAUSE -sDEVICE=tiffsep -sOutputFile=temp1 -r25 -c '<<
/SeparationColorNames [ /Cyan /Magenta /Yellow /Black /(9116) /(5150) /(1455)
/(3068) /Die /Varnish ] /SeparationOrder [ /Cyan /Magenta /Yellow /Black /(9116)
/(5150) ] >> setpagedevice' -f /storage/archive/02900PAP600.pdf

%%SeparationName:
%%SeparationName: 9116
%%SeparationName:
%%SeparationName: 5150
%%SeparationName:
%%SeparationName: 1455
%%SeparationName:
%%SeparationName: 3068
%%SeparationName: Die
%%SeparationName: Varnish

-rw-rw-r--  1 sysadm sysadm  150886 Jun 30 11:50 temp1
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.Black.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.Cyan.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.Magenta.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.s0.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.s1.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.s3.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:50 temp1.Yellow.tif


Correct:
gsc -dBATCH -dNOPAUSE -sDEVICE=tiffsep -sOutputFile=temp1 -r25 -c '<<
/SeparationColorNames [ /Cyan /Magenta /Yellow /Black /9116 /5150 /1455 /3068
/Die /Varnish ] /SeparationOrder [ /Cyan /Magenta /Yellow /Black /9116 /5150 ]
>> setpagedevice' -f /storage/archive/02900PAP600.pdf

%%SeparationName: 9116
%%SeparationName: 5150
%%SeparationName: 1455
%%SeparationName: 3068
%%SeparationName: Die
%%SeparationName: Varnish

-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.Black.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.Cyan.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.Magenta.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.s0.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.s1.tif
-rw-rw-r--  1 sysadm sysadm   37966 Jun 30 11:54 temp1.Yellow.tif

Comment 2 Jason Giglio 2005-06-30 10:40:48 UTC
Don't use parentheses with /color.  It's one or the other.
Comment 3 Dan Coby 2005-06-30 10:41:52 UTC
For spot color names, use either parenthesis (i.e a PostScript string) or a 
leading slash (i.e. a PostScript name).  Do not do both for a single colorant.

Thus << /SeparationColorNames [ (Dark Blue) (Light Green) /2620 ] >> would be 
valid.