ladasky@codon2.berkeley.edu (John Ladasky;1021 Solano No. 2;528-8666) (02/20/89)
Thanks to all of those people who have sent me advice concerning the care and feeding of EPS files. The standard UNIX lpr command (at least, in SunOS version 3.5) will indeed handle a PostScript file just fine. However, there is still a problem... I have been attempting to use my campus computer to attempt to print music files from my PC scoring program, Dr. T.'s the Copyist III, version 1.6. I have loaded a test EPS file (called harmony1.eps) and the Adobe Sonata font (called sonata.txt) onto my account. The prolog of harmony1.eps looks like this: %!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 18 769.040000 594 775.76 %%DocumentFonts: Sonata Courier Times-Roman Times-Italic Times-BoldItalic %%Creator: The Copyist %%Title: A:\HARMONY1.ME %%EndComments If I understand this correctly, this document has indicated that it requires the Sonata font for printing. The prolog of the file sonata.txt, if I am reading it correctly, appears to identify itself as the Sonata font (sor- ry about the funny formatting and hyphenation, but there was no way that I could discover to read the contents of this file {apparently a single string!} except to pipe it through nroff): %!PS-AdobeFont-1.0%%CreationDate: Sun Mar 8 17:24:49 PST 1987%%VMusage: 33373 48645% Trademark (tm) 1986 Adobe Systems In- corporated. All rights reserved.serverdict begin 0 exitserver14 dict begin/FontInfo 9 dict dup begin /version (001.000) readonly def /Notice (Sonata is a trademark of Adobe Systems Incorporat- ed) readonly def /FullName (Sonata) readonly def /FamilyName (Music) readonly def /Weight (Medium) readonly def /ItalicAngle 0 def /isFixedPitch false def /UnderlinePosition -98 def /Un- derlineThickness 54 defend readonly def%% Sonata is a trademark of Adobe Systems Incorporated%% August 1986, designer Cleo Huggins/FontName /Sonata def/PaintType 0 def/FontType 1 (...etc.) Unless there's something important that I've missed, I see no reason why the following command would not work: cat sonata.txt harmony1.eps | lpr But, in fact, it does NOT work. The file is printed, but all the special music characters are printed in oversized Courier text. It's very amusing to see, and it's reminiscent of some modern notation conventions, but it is not readable music... does anyone know why, and how to fix the problem? Thanks in advance. - John Ladasky (ladasky@enzyme.berkeley.edu) *** ***** **** ***** * *** ***** **** ***********************
greid@adobe.com (Glenn Reid) (02/22/89)
In article <20614@agate.BERKELEY.EDU> ladasky@codon2.berkeley.edu.UUCP (John Ladasky) writes: > If I understand this correctly, this document has indicated that it >requires the Sonata font for printing. The prolog of the file sonata.txt, if >I am reading it correctly, appears to identify itself as the Sonata font (sor- >ry about the funny formatting and hyphenation, but there was no way that I >could discover to read the contents of this file {apparently a single string!} >except to pipe it through nroff): > > %!PS-AdobeFont-1.0%%CreationDate: Sun Mar 8 17:24:49 PST > (etc.) > > Unless there's something important that I've missed, I see no reason >why the following command would not work: > > cat sonata.txt harmony1.eps | lpr The key to your problem, I think, is the "funny formatting and hypenation" that you mentioned. I think that there are two problems. The first is that the sonata.txt file appears to have only carriage returns and no line feeds. This is common for PC files; Unix files require linefeeds as the line terminators. The net result of this is probably that the entire file is "commented out", since the first character is a comment character and it appears to be only one line long because of the line endings. You should feed it through a filter to change CR to LF (you can use the Unix utility "tr" for this). The second problem is that it appears that somebody hyphenated the file. You should probably go back to the PC version and start over, making sure that whatever software you use to transfer the file does not change the linebreaking, but perhaps does convert the line ending characters. You're right that in theory the "cat sonata.txt harmony1.eps | lpr" should work, and I think your analysis of the EPS file header is correct. Glenn Reid Adobe Systems Developer Tools & Strategies