🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5375

Re: parsing DSC comments

#5375
From: Carl Orthlieb
Date: Tue, 16 Apr 1991 23:51
35 lines
1662 bytes
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^)
Technical Details
Message-ID: <14096@adobe.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!adobe!orthlieb
References: <11503@exodus.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!adobe!orthlieb
From: orthlieb@adobe.COM (Carl Orthlieb)
Newsgroups: comp.lang.postscript
Subject: Re: parsing DSC comments
Keywords: DSC parsing
Message-ID: <14096@adobe.UUCP>
Date: 16 Apr 91 23:51:33 GMT
References: <11503@exodus.Eng.Sun.COM>
Reply-To: orthlieb@adobe.UUCP (Carl Orthlieb)
Organization: Adobe Systems Incorporated, Mountain View
Lines: 35