🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6073

Error handlers (was Epson FX -> Postscript Converter, Wanted)

#6073
From: Lance R. Bailey
Date: Tue, 21 May 1991 21:35
40 lines
2457 bytes
In article <1991May8.075450.3807@newsserver.sfu.ca> shephard@newsserver.sfu.ca (Gordon Shephard) writes:
>Does anyone know o a converter, or a likely site for a converter, that
>will take Epson FX output and convert it to Postscript?

i've just finished work on a 'prelude' file that turns the postscript 
printer into an Epson, from then on all text sent to the laser is treated
as if the the Laser were an Epson. handles most of the Escape sequences
[that _I_ find useful]. The idea is to send this file to the laser first.
the program kicks out when a "%!" is encountered at start of a line (ie: when
real code is encountered. works nicely (IMHO).


NOW, what I would like to do is have this code be the default error handler,
ie: if a bad command is encountered, then the remainder of currentfile is
dumped out as if it were intended for an Epson. Worst case would have a bad
program dumped to the paper.

I have been looking at Andy Shore's ehandler that I snapped off the net in '86
but can only get the offending command out, I try to grab the rest of the 
currentfile with

              20 766 moveto/command load prnt
              {   currentfile str readline
                  { (^L) search {Mshow pop/Li 70 def} if
                    Li 66 gt {showpage /Li 1 def 20 766 moveto} if
                    Mshow
                  }
                  {exit} ifelse
              } loop showpage

but this kicks out immediatly without any more text being shown. is the
currentfile flushed on error? I thought that was done in the system
errorhandler but I call that after the above code.


-- 
Lance R. Bailey  Systems Manager        box: Robarts Research Institute
          email: lrb@rri.uwo.ca              Clinical Trials Resources Group
            fax: 519.663.3789                P.O. Box 5015, 100 Perth Dr.
            vox: 519.663.3787 ext. 4108      London, Canada N6A 5K8
Technical Details
Message-ID: <3092@ria.ccs.uwo.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ria!alex.ctrg.rri.uwo.ca!lrb
References: <1991May8.075450.3807@newsserver.sfu.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ria!alex.ctrg.rri.uwo.ca!lrb
From: lrb@alex.ctrg.rri.uwo.ca (Lance R. Bailey)
Newsgroups: comp.lang.postscript
Subject: Error handlers (was Epson FX -> Postscript Converter, Wanted)
Keywords: Epson, Converter, Postscript
Message-ID: <3092@ria.ccs.uwo.ca>
Date: 21 May 91 21:35:34 GMT
References: <1991May8.075450.3807@newsserver.sfu.ca>
Sender: news@ria.ccs.uwo.ca
Organization: CTRG, Robarts Research Institute  London, Canada
Lines: 40