[net.micro.mac] LaserPrep -- Help PLEASE!!

naftoli@aecom.UUCP (07/22/86)

> I'm trying to print mac generated postscript via VAX UNIX & Transcript.
> I did the COMMAND-K bit, uploaded it, and when I send it to the laser,
> it only prints Courier, and the log file comes back with an error message
> 
> |______Times-Roman not found, using Courier.
> 
> What am I missing???

Well folks, I've got the answer and will share it with all.  It 
would seem that the COMMAND-K postscript dump only contains "font 
definitions" for Courier and Seattle, no matter which fonts are 
actually used in the document (I consider this a bug -- but of 
course, COMMAND-K isn't formally documented anywhere is it?).  
Therefore you must edit the prologue and change the following 
information in the file.  

By the way, this applies to LaserWriter 3.1, version #40 of the 
PostScript code (which is mentioned in one of the first lines of 
the file).  Also, the way I have things set up, the prologue will 
not become resident in the LaserWriter, as is the case normally.  
I did this because it would intefere with jobs not generated by 
the Mac, e.g., psroff (troff).  

First, dump a copy of the LaserPrep using the COMMAND-K routine.  
It doesn't make a difference which program you use to generate it 
(except PageMaker, but that's another story).  

Insert a line at the top that contains '#!' by itself.  This 
tells the Transcript software to execute this file rather than 
print it.  The second line should be a bunch of zeroes.  This is 
the "exitserver password".  Delete or comment this line out (% at 
the beginning of a line will comment that line out).  Then go 
down a few lines and comment out the lines that begin with: 

	begin serverdict
	ok{statusdict
	waittimeout

Next, search for 'Courier'.  Delete this line and substitute the 
following: 

/|______AvantGarde-Book /AvantGarde-Book T rf
/|______AvantGarde-Demi /AvantGarde-Demi T rf
/|______AvantGarde-BookOblique /AvantGarde-BookOblique T rf
/|______Bookman-Light /Bookman-Light T rf
/|______Bookman-Demi /Bookman-Demi T rf
/|______Bookman-LightItalic /Bookman-LightItalic T rf
/|______Courier /Courier T rf
/|______Courier-Bold /Courier-Bold T rf
/|______Courier-Oblique /Courier-Oblique T rf
/|______Helvetica /Helvetica T rf
/|______Helvetica-Bold /Helvetica-Bold T rf
/|______Helvetica-Oblique /Helvetica-Oblique T rf
/|______Helvetica-Narrow /Helvetica-Narrow T rf
/|______Helvetica-Narrow-Bold /Helvetica-Narrow-Bold T rf
/|______Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique T rf
/|______NewCenturySchlbk-Roman /NewCenturySchlbk-Roman T rf
/|______NewCenturySchlbk-Bold /NewCenturySchlbk-Bold T rf
/|______NewCenturySchlbk-Italic /NewCenturySchlbk-Italic T rf
/|______Palatino-Roman /Palatino-Roman T rf
/|______Palatino-Bold /Palatino-Bold T rf
/|______Palatino-Italic /Palatino-Italic T rf
/|______Symbol /Symbol F rf
/|______Times-Roman /Times-Roman T rf
/|______Times-Bold /Times-Bold T rf
/|______Times-Italic /Times-Italic T rf
/|______ZapfChancery-MediumItalic /ZapfChancery-MediumItalic T rf

I think you can follow the pattern.  The only thing that needs 
explanation is the 'T' or 'F'.  Well, I can't explain it except 
to say that it's some sort of mapping flag, and that all fonts 
should be 'T' except for Symbol which should be 'F'.  Included 
above are all of the LaserWriter Plus fonts except for Dingbats.  
I left that out so far because I didn't have it handy.  If there 
are fonts on the list that you don't have (e.g., if you have a 
plain LaserWriter) then delete all the extras; things will 
probably run a bit faster (my guess).  

OK.  Search for a line that contains 'eexec'.  What you should do 
next depends on whether you want smoothing or not.  If you don't, 
delete this line and the very long line of numbers below it.  If 
you do, delete this line, and add a '<' to the beginning of the 
line of numbers and a '>' to end of it.  Then, add a line 
following that one that just says 'eexec'.  The line after the 
'eexec' that you just inserted has two CONTROL-Ds.  Delete both 
of those and everything else to the bottom of the file.  

Voila, you have just created a UNIXable Mac prologue.  Just 
prepend it to any COMMAND-F generated PostScript, and send the 
mess through Transcript (on System V this would be 'lp 
-dPostScript filename').  

I'm willing to mail my copy to anyone who wants one, and will 
post if there is enough demand.  I do not take any reponsibility 
for the accuracy of the information presented here, and I also 
have only done minimal testing (printing out various text 
documents, samples of MacPaint, MacDraw, and Excel charts).  As 
far as I can tell, all works fine, but I would appreciate hearing 
about any problems.  

I would like to thank A. Remy Malan and Ron Hitchens for their 
help and information, they figured out most of this, and everyone
else, who sent their sympathies :-).  
-- 
Robert Berlinger
Systems Analyst
Albert Einstein College of Medicine

UUCP:       ...{philabs,cucard,pegasus,ihnp4,rocky2}!aecom!naftoli
Compuserve: 73047,741

leeke@cascade.STANFORD.EDU (Steven D. Leeke) (07/24/86)

I would like a copy of your laserprep header file for the vax.

Steve Leeke
leeke@cascade.stanford.edu