🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1032

Re: 7-bit or 8-bit ASCII for PostScript

#1032
From: Mic Kaczmarczik
Date: Sat, 09 Sep 1989 22:52
53 lines
2790 bytes
In article <1016@apctrc.UUCP> zjat02@apctrc.trc.amoco.com (Jon A. Tankersley) writes:
>
>Don't have the books with me here.....  Is PostScript supposed to be
>7 bit ASCII or 8 bit?  I've been able to download IBM's DCF SCRIPT in
>ASCII, but it is 8 bit.  Drives the lowly Apple LW crazy trying to print.
>I can convert it to 7 bit, but I was wondering if it was defined in the
>language anywhere.
>
>
>-tank-
>#include <std/disclaimer.h>		/* nobody knows the trouble I .... */
>tank@apctrc.trc.amoco.com    ..!uunet!apctrc!tank

As I understand it, the PostScript language only uses 7-bit printable
characters, specifically so 7-bit serial communications problems like
the one you're having won't occur.  The fact that most implementations
of PostScript are happy with 8-bit characters is more a feature of the
implementation than the language.  Too bad the person who wrote the
PostScript driver for SCRIPT apparently either didn't know about this
or didn't expect people to print SCRIPT PostScript output on anything
but IBM's PostScript printer. 

We had this very problem at my site about a year ago, and I cooked up
the following piece of code to set a LaserWriter's data channel to 8
bits and no parity instead of 7 bits and even parity.  The parameters
to setsccbatch are in the back of the Adobe red book (at least the
original one that I have).  Make sure the rest of your communications
path to the LaserWriter is running at 8 bits and no parity as well,
otherwise things could get worse instead of better! 

-----------------------------------CUT HERE------------------------------------
%!
% 8bit.ps
%
% Change the permanent batch mode parameters in statusdict, to use 9600
% baud, no parity, and an 8-bit data path.  You may have to change the
% password to make this really work, depending on how you have set up
% your LaserWriter.
%

serverdict begin 0 exitserver
statusdict begin
	25 9600 3 setsccbatch
end
-----------------------------------CUT HERE------------------------------------

Mic Kaczmarczik
-- 
Mic Kaczmarczik					   Internet: mic@emx.utexas.edu
Unix/VMS Services 				   BITNET: MIC@UTAIVC
UT Austin Computation Center			   THEnet: UTAIVC::MIC

     Don't worry about life, son. It ain't nohow permanent.  -- Walt Kelly
Technical Details
Message-ID: <18177@ut-emx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!ut-emx!mic
References: <1016@apctrc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!ut-emx!mic
From: mic@ut-emx.UUCP (Mic Kaczmarczik)
Newsgroups: comp.lang.postscript
Subject: Re: 7-bit or 8-bit ASCII for PostScript
Summary: 7-bit printable characters
Message-ID: <18177@ut-emx.UUCP>
Date: 9 Sep 89 22:52:58 GMT
References: <1016@apctrc.UUCP>
Reply-To: mic@emx.UUCP (Mic Kaczmarczik)
Distribution: usa
Organization: UT Austin Computation Center, Unix/VMS Services
Lines: 53