🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5416

Re: ACSII text to postscript

#5416
From: Harold Tomlinson
Date: Fri, 19 Apr 1991 12:53
36 lines
2503 bytes
In article <1991Apr16.154707.9283@wam.umd.edu> rustyh@wam.umd.edu (Michael Katzmann) writes:

>    In article <1991Apr16.002701.17403@bmers145.bnr.ca> friedman%chekov@uunet.uu.net writes:
>    >
>    >Being in need of a program to allow our printers to handle postscript
>    >and ascii transparently, I tried the 'dumb' ascii program recently 
>    >posted by Michael Katzmann.  Unfortunately, either it or I am too
>    >dumb :-) since it appears that once this program is loaded into a
>    >printer there is no way to revert to normal postscript operation short
>    >of powering off the printer.  Besides this the printer is extremely
>    >slow since the code seems to process input a character at a time.
>    >
>    >Come on guys, what is *THE BEST* unix solution to this problem?
>    >
>    If you send an EOF (ctrl D) to the printer, the read will return false
>    and the Finish routine will execute.  Problem solved!  Sorry I didn't
>    say this in the comments. 
> 
>    Also strip off the comments to the programme and it will take 1/2 the
>    time to download it. (You can't win. sigh)

  Why not convert the text to postscript?  I picked up a nice converter
program called 'lwf'.  It could be modified to detect if the file is postscript
or not by looking for the %! at the start of the file or... 
 Write a shell script that will detect if it is postscript and pipe it through
lwf.

  I picked up the 'LaserWriter filter' in comp.sources.misc.  It was posted by
brachman@grads.cs.ubc.ca (or, at least then shar file was created by him).

  This program has worked for me on QMS's, HP's, and an Apple.

--
# Harold Tomlinson			##	haroldt@paralandra.yorku.ca #
# Computing & Communications Services	##	(416)736-5257-33802         #
# YORK UNIVERSITY, Ont, CANADA		##	########################### #
Technical Details
Message-ID: <HAROLDT.91Apr19085342@paralandra.yorku.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!haroldt
References: <1991Apr11.145636.462@debet.nhh.no> <1991Apr11.210439.19346@wam.umd.edu> <1991Apr16.002701.17403@bmers145.bnr.ca> <1991Apr16.154707.9283@wam.umd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!haroldt
From: haroldt@paralandra.yorku.ca (Harold Tomlinson)
Newsgroups: comp.lang.postscript,comp.sources.wanted
Subject: Re: ACSII text to postscript
Message-ID: <HAROLDT.91Apr19085342@paralandra.yorku.ca>
Date: 19 Apr 91 12:53:42 GMT
References: <1991Apr11.145636.462@debet.nhh.no>
 <1991Apr11.210439.19346@wam.umd.edu>
 <1991Apr16.002701.17403@bmers145.bnr.ca>
 <1991Apr16.154707.9283@wam.umd.edu>
Sender: news@yunexus.YorkU.CA
Organization: York Computing Services
Lines: 36
In-reply-to: rustyh@wam.umd.edu's message of 16 Apr 91 15:47:07 GMT