[comp.lang.postscript] parsing DSC comments

rberlin@birdlandEng.Sun.COM (Rich Berlin) (04/13/91)

When you see

%%IncludeProcSet: "(AppleDict md)" 68 0

what is the name field? Is it 

    "(AppleDict md)"
     (AppleDict md)
      AppleDict md    

or something I haven't thought of?

-- Rich

orthlieb@adobe.COM (Carl Orthlieb) (04/17/91)

In article <11503@exodus.Eng.Sun.COM> rberlin@Eng.Sun.COM writes:
>When you see
>	%%IncludeProcSet: "(AppleDict md)" 68 0
>what is the name field? Is it 
>    "(AppleDict md)"
>     (AppleDict md)
>      AppleDict md    
>or something I haven't thought of?
>
>-- Rich
Actually, the way that this is specified is incorrect:

	%%IncludeProcSet: "(Appledict md)" 68 0

is an invalid DSC definition. If you look in the new red book in 
Appendix G.4 Document Structure Rules on page 637, you'll see that the
definition for a procname is as follows:
	<procname> ::= <name> <version> <revision>
	<name> ::= <text>
	<version> ::= <real>
	<revision> ::= <uint>

Where <text> is an elementary type.  A text string comprises any printable
characters and is usually considered to be delimited by blanks.  If blanks
or special characters are desired inside the text string, the entire string
should be enclosed in parentheses. Special characters can be denoted using
the PostScript language string \ escape mechanism.

Therefore, the proper definition should be:

	%%IncludeProcSet: (Appledict md) 68 0

Where 'Appledict md' is the name of the procset.

Hope this helps, Carl 8^)