Article View: comp.lang.postscript
Article #176Re: Need an intelligent Ascii - PS Filter
From: Carl J Lydick
Date: Sun, 02 Aug 1992 19:48
Date: Sun, 02 Aug 1992 19:48
28 lines
2414 bytes
2414 bytes
In article <3669@ecicrl.ocunix.on.ca>, clewis@ferret.ocunix.on.ca (Chris Lewis) writes: >In article <1992Aug2.001052.23580@cco.caltech.edu> carl@SOL1.GPS.CALTECH.EDU writes: >|In article <3668@ecicrl.ocunix.on.ca>, clewis@ferret.ocunix.on.ca (Chris Lewis) writes: >|>While things that are DSC compliant will lead off with %!PS-Adobe-, you're >|>being much too strict. By convention, PostScript always starts with >|>%!. So if the file starts with %!, you can assume it to be PostScript. >|>Regardless of whether the file claims to be DSC compliant or not. > >|>Almost all applications use this convention. Though, there are some stupid >|>broken ones. Ie: WP apparently leads files with <control-D>%!. > >|Which is, in my opinion, a reasonable thing to do, as it's the only way to >|guarantee that the previous PostScript program has ended before yours starts. > >A much better way is to fix the spooler to always emit the ^D at the end of >jobs. Applications should *not* be generating ^Ds. In principal, I agree with you: Applications should not HAVE to generate control-D's. In practice, an application has no guarantee that the software that sends the file to the printer will do the right thing. -------------------------------------------------------------------------------- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My understanding of astronomy is purely at the amateur level (or below). So unless what I'm saying is directly related to VAX/VMS, don't hold me or my organization responsible for it. If it IS related to VAX/VMS, you can try to hold me responsible for it, but my organization had nothing to do with it.
Technical Details
Message-ID:
<1992Aug2.194857.28249@cco.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARLReferences:
<1992Aug1.045437.1616@thunder.mcrcim.mcgill.edu> <3668@ecicrl.ocunix.on.ca> <1992Aug2.001052.23580@cco.caltech.edu>,<3669@ecicrl.ocunix.on.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Subject: Re: Need an intelligent Ascii - PS Filter Message-ID: <1992Aug2.194857.28249@cco.caltech.edu> Sender: news@cco.caltech.edu Nntp-Posting-Host: sol1.gps.caltech.edu Reply-To: carl@SOL1.GPS.CALTECH.EDU Organization: HST Wide Field/Planetary Camera References: <1992Aug1.045437.1616@thunder.mcrcim.mcgill.edu> <3668@ecicrl.ocunix.on.ca> <1992Aug2.001052.23580@cco.caltech.edu>,<3669@ecicrl.ocunix.on.ca> Date: Sun, 2 Aug 1992 19:48:57 GMT Lines: 28