home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / macintsh / mcpntpst.tar < prev    next >
Tape Archive  |  1989-03-03  |  72.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: mcpntpst.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file macpaint-to-postscript/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4403617472 default
98% file data default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00000010| 73 63 72 69 70 74 2f 00 | 00 00 00 00 00 00 00 00 |script/.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 33 36 31 37 | 0 | 4403617|
|00000090| 34 37 32 20 20 31 30 34 | 34 37 00 20 00 00 00 00 |472 104|47. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00000210| 73 63 72 69 70 74 2f 52 | 45 41 44 4d 45 00 00 00 |script/R|EADME...|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 32 |.... 6|64 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 35 37 31 34 20 | 20 34 34 30 33 36 31 37 | 5714 | 4403617|
|00000290| 34 34 30 20 20 31 31 34 | 32 30 00 20 00 00 00 00 |440 114|20. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 0a 20 20 20 20 20 54 68 | 69 73 20 73 68 65 6c 6c |. Th|is shell|
|00000410| 20 61 72 63 68 69 76 65 | 20 63 6f 6e 74 61 69 6e | archive| contain|
|00000420| 73 20 61 20 70 72 6f 67 | 72 61 6d 20 63 61 6c 6c |s a prog|ram call|
|00000430| 65 64 20 70 61 69 6e 74 | 70 73 20 77 68 69 63 68 |ed paint|ps which|
|00000440| 20 77 69 6c 6c 20 63 6f | 6e 76 65 72 74 0a 61 20 | will co|nvert.a |
|00000450| 4d 61 63 50 61 69 6e 74 | 20 66 69 6c 65 20 28 75 |MacPaint| file (u|
|00000460| 70 6c 6f 61 64 65 64 20 | 66 72 6f 6d 20 61 20 4d |ploaded |from a M|
|00000470| 61 63 29 20 74 6f 20 50 | 6f 73 74 53 63 72 69 70 |ac) to P|ostScrip|
|00000480| 74 20 66 6f 72 20 70 72 | 69 6e 74 69 6e 67 20 6f |t for pr|inting o|
|00000490| 6e 20 61 0a 4c 61 73 65 | 72 57 72 69 74 65 72 2e |n a.Lase|rWriter.|
|000004a0| 20 20 49 74 20 72 65 61 | 64 73 20 61 20 70 6c 61 | It rea|ds a pla|
|000004b0| 69 6e 20 4d 61 63 50 61 | 69 6e 74 20 64 6f 63 75 |in MacPa|int docu|
|000004c0| 6d 65 6e 74 20 61 73 20 | 69 6e 70 75 74 20 61 6e |ment as |input an|
|000004d0| 64 20 70 72 6f 64 75 63 | 65 73 20 0a 70 6f 73 74 |d produc|es .post|
|000004e0| 73 63 72 69 70 74 20 6f | 75 74 70 75 74 20 69 6e |script o|utput in|
|000004f0| 20 74 68 65 20 73 61 6d | 65 20 73 74 79 6c 65 20 | the sam|e style |
|00000500| 61 73 20 74 68 61 74 20 | 70 72 6f 64 75 63 65 64 |as that |produced|
|00000510| 20 62 79 20 74 68 65 20 | 31 2e 31 20 76 65 72 73 | by the |1.1 vers|
|00000520| 69 6f 6e 0a 6f 66 20 74 | 68 65 20 4d 61 63 20 4c |ion.of t|he Mac L|
|00000530| 61 73 65 72 57 72 69 74 | 65 72 20 64 72 69 76 65 |aserWrit|er drive|
|00000540| 72 2e 20 20 50 61 69 6e | 74 70 73 20 72 75 6e 73 |r. Pain|tps runs|
|00000550| 20 6f 6e 20 75 6e 69 78 | 20 61 6e 64 20 77 69 6c | on unix| and wil|
|00000560| 6c 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 0a |l automa|tically.|
|00000570| 73 70 6f 6f 6c 20 69 74 | 73 20 6f 75 74 70 75 74 |spool it|s output|
|00000580| 20 66 6f 72 20 70 72 69 | 6e 74 69 6e 67 20 69 66 | for pri|nting if|
|00000590| 20 6e 6f 20 6f 75 74 70 | 75 74 20 72 65 64 69 72 | no outp|ut redir|
|000005a0| 65 63 74 69 6f 6e 20 68 | 61 73 20 62 65 65 6e 20 |ection h|as been |
|000005b0| 64 6f 6e 65 2e 0a 54 68 | 65 20 61 64 76 61 6e 74 |done..Th|e advant|
|000005c0| 61 67 65 20 6f 66 20 70 | 61 69 6e 74 70 73 20 69 |age of p|aintps i|
|000005d0| 73 20 74 68 61 74 20 4d | 61 63 50 61 69 6e 74 20 |s that M|acPaint |
|000005e0| 70 69 63 74 75 72 65 73 | 20 61 72 65 20 75 73 75 |pictures| are usu|
|000005f0| 61 6c 6c 79 20 6c 65 73 | 73 20 74 68 61 6e 0a 32 |ally les|s than.2|
|00000600| 35 4b 2c 20 77 68 69 6c | 65 20 74 68 65 20 72 65 |5K, whil|e the re|
|00000610| 73 75 6c 74 69 6e 67 20 | 50 6f 73 74 53 63 72 69 |sulting |PostScri|
|00000620| 70 74 20 6f 66 74 65 6e | 20 65 78 63 65 65 64 73 |pt often| exceeds|
|00000630| 20 31 30 30 4b 2e 20 20 | 54 68 69 73 20 6f 62 76 | 100K. |This obv|
|00000640| 69 6f 75 73 6c 79 0a 72 | 65 64 75 63 65 73 20 74 |iously.r|educes t|
|00000650| 68 65 20 66 69 6c 65 20 | 74 72 61 6e 73 66 65 72 |he file |transfer|
|00000660| 20 74 69 6d 65 2e 0a 0a | 20 20 20 20 20 41 6c 73 | time...| Als|
|00000670| 6f 20 69 6e 63 6c 75 64 | 65 64 20 69 73 20 74 68 |o includ|ed is th|
|00000680| 65 20 76 65 72 73 69 6f | 6e 20 31 2e 31 20 6c 61 |e versio|n 1.1 la|
|00000690| 73 65 72 2d 70 72 65 70 | 20 66 69 6c 65 2c 20 77 |ser-prep| file, w|
|000006a0| 68 69 63 68 20 69 73 20 | 6e 65 65 64 65 64 0a 62 |hich is |needed.b|
|000006b0| 79 20 70 61 69 6e 74 70 | 73 2c 20 61 6e 64 20 61 |y paintp|s, and a|
|000006c0| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 20 63 61 | shell s|cript ca|
|000006d0| 6c 6c 65 64 20 6d 61 63 | 6c 61 73 65 72 2c 20 77 |lled mac|laser, w|
|000006e0| 68 69 63 68 20 69 73 20 | 63 61 6c 6c 65 64 20 62 |hich is |called b|
|000006f0| 79 20 70 61 69 6e 74 70 | 73 0a 74 6f 20 73 70 6f |y paintp|s.to spo|
|00000700| 6f 6c 20 69 74 73 20 6f | 75 74 70 75 74 2e 20 20 |ol its o|utput. |
|00000710| 4d 61 63 6c 61 73 65 72 | 20 69 73 20 73 69 6d 70 |Maclaser| is simp|
|00000720| 6c 79 20 61 20 66 72 6f | 6e 74 20 65 6e 64 20 74 |ly a fro|nt end t|
|00000730| 6f 20 6c 70 72 2c 20 61 | 6e 64 20 64 65 70 65 6e |o lpr, a|nd depen|
|00000740| 64 73 0a 6f 6e 20 74 68 | 65 20 73 70 6f 6f 6c 65 |ds.on th|e spoole|
|00000750| 72 20 73 65 74 75 70 20 | 64 65 73 63 72 69 62 65 |r setup |describe|
|00000760| 64 20 69 6e 20 74 68 65 | 20 66 69 6c 65 20 52 45 |d in the| file RE|
|00000770| 41 44 4d 45 2e 53 50 4f | 4f 4c 2e 20 20 0a 20 20 |ADME.SPO|OL. . |
|00000780| 20 20 20 0a 20 20 20 20 | 20 54 68 69 73 20 63 6f | . | This co|
|00000790| 64 65 20 68 61 73 20 62 | 65 65 6e 20 75 73 65 64 |de has b|een used|
|000007a0| 20 77 69 74 68 20 34 2e | 32 20 61 6e 64 20 34 2e | with 4.|2 and 4.|
|000007b0| 33 42 53 44 3b 20 76 61 | 78 65 6e 2c 20 53 75 6e |3BSD; va|xen, Sun|
|000007c0| 20 61 6e 64 20 53 65 71 | 75 65 6e 74 0a 68 61 72 | and Seq|uent.har|
|000007d0| 64 77 61 72 65 2e 20 20 | 57 65 20 75 73 65 20 74 |dware. |We use t|
|000007e0| 68 65 20 54 72 61 6e 53 | 63 72 69 70 74 20 70 61 |he TranS|cript pa|
|000007f0| 63 6b 61 67 65 20 66 72 | 6f 6d 20 41 64 6f 62 65 |ckage fr|om Adobe|
|00000800| 20 74 6f 20 64 72 69 76 | 65 20 74 68 65 20 4c 61 | to driv|e the La|
|00000810| 73 65 72 57 72 69 74 65 | 72 2e 0a 49 66 20 79 6f |serWrite|r..If yo|
|00000820| 75 27 72 65 20 75 73 69 | 6e 67 20 73 6f 6d 65 20 |u're usi|ng some |
|00000830| 6f 74 68 65 72 20 73 65 | 74 20 6f 66 20 50 6f 73 |other se|t of Pos|
|00000840| 74 53 63 72 69 70 74 20 | 64 72 69 76 65 72 73 2c |tScript |drivers,|
|00000850| 20 74 68 65 20 73 70 6f | 6f 6c 65 72 20 68 61 63 | the spo|oler hac|
|00000860| 6b 73 0a 61 72 65 20 62 | 61 73 69 63 61 6c 6c 79 |ks.are b|asically|
|00000870| 20 74 68 65 20 73 61 6d | 65 2c 20 73 69 6e 63 65 | the sam|e, since|
|00000880| 20 74 68 65 72 65 20 61 | 72 65 20 6e 6f 20 63 68 | there a|re no ch|
|00000890| 61 6e 67 65 73 20 74 6f | 20 74 68 65 20 64 72 69 |anges to| the dri|
|000008a0| 76 65 72 73 20 74 68 65 | 6d 73 65 6c 76 65 73 2e |vers the|mselves.|
|000008b0| 0a 0a 20 20 20 20 20 50 | 61 69 6e 74 70 73 20 69 |.. P|aintps i|
|000008c0| 73 20 64 69 73 74 61 6e | 74 6c 79 20 72 65 6c 61 |s distan|tly rela|
|000008d0| 74 65 64 20 74 6f 20 61 | 20 70 72 6f 67 72 61 6d |ted to a| program|
|000008e0| 20 63 61 6c 6c 65 64 20 | 70 61 69 6e 74 69 6d 70 | called |paintimp|
|000008f0| 2c 20 6f 72 69 67 69 6e | 61 6c 6c 79 0a 77 72 69 |, origin|ally.wri|
|00000900| 74 74 65 6e 20 62 79 20 | 44 61 76 65 20 4a 6f 68 |tten by |Dave Joh|
|00000910| 6e 73 6f 6e 20 61 74 20 | 42 72 6f 77 6e 20 55 6e |nson at |Brown Un|
|00000920| 69 76 65 72 73 69 74 79 | 2e 20 20 49 74 20 63 6f |iversity|. It co|
|00000930| 6e 76 65 72 74 65 64 20 | 4d 61 63 50 61 69 6e 74 |nverted |MacPaint|
|00000940| 20 70 69 63 74 75 72 65 | 73 0a 74 6f 20 49 6d 70 | picture|s.to Imp|
|00000950| 72 65 73 73 20 66 6f 72 | 20 70 72 69 6e 74 69 6e |ress for| printin|
|00000960| 67 20 6f 6e 20 49 6d 61 | 67 65 6e 73 2e 20 20 52 |g on Ima|gens. R|
|00000970| 6f 6e 20 48 69 74 63 68 | 65 6e 73 20 61 74 20 74 |on Hitch|ens at t|
|00000980| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|00000990| 0a 54 65 78 61 73 20 68 | 61 63 6b 65 64 20 6f 6e |.Texas h|acked on|
|000009a0| 20 69 74 20 61 20 62 69 | 74 20 61 6e 64 20 61 64 | it a bi|t and ad|
|000009b0| 64 65 64 20 73 6f 6d 65 | 20 66 65 61 74 75 72 65 |ded some| feature|
|000009c0| 73 2e 20 20 57 68 65 6e | 20 77 65 20 67 6f 74 20 |s. When| we got |
|000009d0| 61 20 4c 57 2c 0a 42 72 | 69 61 6e 20 50 6f 77 65 |a LW,.Br|ian Powe|
|000009e0| 6c 6c 20 61 74 20 55 54 | 20 77 61 73 20 69 6e 73 |ll at UT| was ins|
|000009f0| 70 69 72 65 64 20 74 6f | 20 64 6f 20 73 6f 6d 65 |pired to| do some|
|00000a00| 74 68 69 6e 67 20 73 69 | 6d 69 6c 61 72 20 66 6f |thing si|milar fo|
|00000a10| 72 20 50 6f 73 74 53 63 | 72 69 70 74 2e 0a 54 68 |r PostSc|ript..Th|
|00000a20| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 70 61 69 6e |e result|ing pain|
|00000a30| 74 70 73 20 69 73 20 76 | 65 72 79 20 64 69 66 66 |tps is v|ery diff|
|00000a40| 65 72 65 6e 74 20 66 72 | 6f 6d 20 70 61 69 6e 74 |erent fr|om paint|
|00000a50| 69 6d 70 2c 20 62 75 74 | 20 70 61 69 6e 74 69 6d |imp, but| paintim|
|00000a60| 70 20 64 69 64 0a 70 72 | 6f 76 69 64 65 20 74 68 |p did.pr|ovide th|
|00000a70| 65 20 73 74 72 75 63 74 | 75 72 65 20 61 6e 64 20 |e struct|ure and |
|00000a80| 61 20 66 65 77 20 73 75 | 62 72 6f 75 74 69 6e 65 |a few su|broutine|
|00000a90| 73 2e 20 20 4d 61 63 6c | 61 73 65 72 20 61 6e 64 |s. Macl|aser and|
|00000aa0| 20 74 68 65 20 73 70 6f | 6f 6c 65 72 20 68 61 63 | the spo|oler hac|
|00000ab0| 6b 73 0a 77 65 72 65 20 | 63 6f 6e 63 65 69 76 65 |ks.were |conceive|
|00000ac0| 64 20 62 79 20 52 6f 6e | 20 48 69 74 63 68 65 6e |d by Ron| Hitchen|
|00000ad0| 73 27 20 74 77 69 73 74 | 65 64 20 6d 69 6e 64 2e |s' twist|ed mind.|
|00000ae0| 0a 0a 20 20 20 20 20 54 | 68 65 72 65 20 61 72 65 |.. T|here are|
|00000af0| 20 73 65 76 65 72 61 6c | 20 64 69 66 66 65 72 65 | several| differe|
|00000b00| 6e 74 20 63 72 69 74 74 | 65 72 73 20 69 6e 20 74 |nt critt|ers in t|
|00000b10| 68 69 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |his dist|ribution|
|00000b20| 2e 20 20 54 68 65 79 20 | 0a 70 72 6f 62 61 62 6c |. They |.probabl|
|00000b30| 79 20 77 6f 6e 27 74 20 | 61 6c 6c 20 77 61 6e 74 |y won't |all want|
|00000b40| 20 74 6f 20 6c 69 76 65 | 20 69 6e 20 74 68 65 20 | to live| in the |
|00000b50| 73 61 6d 65 20 70 6c 61 | 63 65 2e 20 20 41 20 6d |same pla|ce. A m|
|00000b60| 61 6b 65 66 69 6c 65 20 | 69 73 20 69 6e 63 6c 75 |akefile |is inclu|
|00000b70| 64 65 64 0a 66 6f 72 20 | 70 61 69 6e 74 70 73 2c |ded.for |paintps,|
|00000b80| 20 6d 61 69 6e 6c 79 20 | 62 65 63 61 75 73 65 20 | mainly |because |
|00000b90| 69 74 20 77 61 73 20 61 | 6c 72 65 61 64 79 20 74 |it was a|lready t|
|00000ba0| 68 65 72 65 2e 20 20 55 | 73 65 20 79 6f 75 72 20 |here. U|se your |
|00000bb0| 6c 6f 63 61 6c 20 63 75 | 73 74 6f 6d 73 0a 66 6f |local cu|stoms.fo|
|00000bc0| 72 20 64 65 74 65 72 6d | 69 6e 69 6e 67 20 77 68 |r determ|ining wh|
|00000bd0| 65 72 65 20 74 68 69 6e | 67 73 20 73 68 6f 75 6c |ere thin|gs shoul|
|00000be0| 64 20 67 6f 2e 0a 0a 20 | 20 20 20 20 4e 4f 54 45 |d go... | NOTE|
|00000bf0| 3a 20 20 4d 61 63 6c 61 | 73 65 72 20 63 61 6e 20 |: Macla|ser can |
|00000c00| 70 72 69 6e 74 20 50 6f | 73 74 53 63 72 69 70 74 |print Po|stScript|
|00000c10| 20 67 65 6e 65 72 61 74 | 65 64 20 62 79 20 61 6e | generat|ed by an|
|00000c20| 79 20 4d 61 63 69 6e 74 | 6f 73 68 20 70 72 6f 67 |y Macint|osh prog|
|00000c30| 72 61 6d 2c 0a 6e 6f 74 | 20 6a 75 73 74 20 4d 61 |ram,.not| just Ma|
|00000c40| 63 50 61 69 6e 74 2e 20 | 20 28 53 65 65 20 74 68 |cPaint. | (See th|
|00000c50| 65 20 6d 61 6e 20 70 61 | 67 65 20 66 6f 72 20 6d |e man pa|ge for m|
|00000c60| 61 63 6c 61 73 65 72 20 | 66 6f 72 20 64 65 74 61 |aclaser |for deta|
|00000c70| 69 6c 73 2e 29 20 20 46 | 6f 72 20 6e 6f 77 2c 20 |ils.) F|or now, |
|00000c80| 79 6f 75 0a 6d 75 73 74 | 20 75 73 65 20 76 65 72 |you.must| use ver|
|00000c90| 73 69 6f 6e 20 31 2e 31 | 20 6f 66 20 74 68 65 20 |sion 1.1| of the |
|00000ca0| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|00000cb0| 65 72 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 74 |er to ge|nerate t|
|00000cc0| 68 65 20 50 6f 73 74 53 | 63 72 69 70 74 20 6f 6e |he PostS|cript on|
|00000cd0| 0a 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 2e 0a |.the Mac|intosh..|
|00000ce0| 20 20 20 20 20 59 6f 75 | 20 64 6f 20 6e 6f 74 20 | You| do not |
|00000cf0| 68 61 76 65 20 74 6f 20 | 68 61 76 65 20 74 68 65 |have to |have the|
|00000d00| 20 4c 61 73 65 72 57 72 | 69 74 65 72 20 70 72 69 | LaserWr|iter pri|
|00000d10| 6e 74 65 72 20 64 72 69 | 76 65 72 20 6f 6e 20 74 |nter dri|ver on t|
|00000d20| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 0a 74 6f 20 |he Macin|tosh.to |
|00000d30| 75 73 65 20 70 61 69 6e | 74 70 73 2e 0a 20 20 20 |use pain|tps.. |
|00000d40| 20 20 57 68 65 6e 20 41 | 70 70 6c 65 20 73 65 74 | When A|pple set|
|00000d50| 74 6c 65 73 20 64 6f 77 | 6e 20 6f 6e 20 74 68 65 |tles dow|n on the|
|00000d60| 69 72 20 50 72 69 6e 74 | 65 72 20 44 72 69 76 65 |ir Print|er Drive|
|00000d70| 72 73 2c 20 49 20 77 69 | 6c 6c 20 6d 6f 64 69 66 |rs, I wi|ll modif|
|00000d80| 79 20 74 68 69 73 0a 63 | 6f 64 65 20 74 6f 20 73 |y this.c|ode to s|
|00000d90| 75 70 70 6f 72 74 20 74 | 68 65 20 6c 61 74 65 73 |upport t|he lates|
|00000da0| 74 20 33 2e 2a 20 4c 61 | 73 65 72 57 72 69 74 65 |t 3.* La|serWrite|
|00000db0| 72 20 64 72 69 76 65 72 | 2e 20 20 54 68 65 20 6c |r driver|. The l|
|00000dc0| 61 74 65 73 74 20 64 72 | 69 76 65 72 20 49 20 68 |atest dr|iver I h|
|00000dd0| 61 76 65 0a 73 65 65 6e | 20 69 73 20 76 65 72 73 |ave.seen| is vers|
|00000de0| 69 6f 6e 20 33 2e 31 2c | 20 61 6e 64 20 49 20 64 |ion 3.1,| and I d|
|00000df0| 6f 6e 27 74 20 74 68 69 | 6e 6b 20 69 74 20 77 69 |on't thi|nk it wi|
|00000e00| 6c 6c 20 62 65 20 68 61 | 72 64 20 74 6f 20 6d 6f |ll be ha|rd to mo|
|00000e10| 64 69 66 79 20 70 61 69 | 6e 74 70 73 20 74 6f 0a |dify pai|ntps to.|
|00000e20| 70 72 6f 64 75 63 65 20 | 74 68 61 74 20 64 72 69 |produce |that dri|
|00000e30| 76 65 72 27 73 20 6e 65 | 77 20 66 6f 72 6d 61 74 |ver's ne|w format|
|00000e40| 2e 0a 20 20 20 20 20 41 | 6e 64 20 62 79 20 74 68 |.. A|nd by th|
|00000e50| 65 20 77 61 79 2c 20 74 | 68 65 20 22 43 68 6f 6f |e way, t|he "Choo|
|00000e60| 73 65 72 22 20 64 65 73 | 6b 20 61 63 63 65 73 73 |ser" des|k access|
|00000e70| 6f 72 79 20 77 6f 6e 27 | 74 20 69 6e 73 74 61 6c |ory won'|t instal|
|00000e80| 6c 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 31 2e |l the ve|rsion 1.|
|00000e90| 31 0a 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 72 |1.LaserW|riter dr|
|00000ea0| 69 76 65 72 2e 20 20 54 | 6f 20 75 73 65 20 4c 61 |iver. T|o use La|
|00000eb0| 73 65 72 57 72 69 74 65 | 72 20 31 2e 31 20 77 69 |serWrite|r 1.1 wi|
|00000ec0| 74 68 20 74 68 65 20 6e | 65 77 20 73 79 73 74 65 |th the n|ew syste|
|00000ed0| 6d 73 2c 20 73 69 6d 70 | 6c 79 20 69 6e 73 74 61 |ms, simp|ly insta|
|00000ee0| 6c 6c 0a 61 6e 64 20 75 | 73 65 20 22 43 68 6f 6f |ll.and u|se "Choo|
|00000ef0| 73 65 20 50 72 69 6e 74 | 65 72 22 20 28 66 72 6f |se Print|er" (fro|
|00000f00| 6d 20 46 69 6e 64 65 72 | 20 34 2e 31 20 64 61 79 |m Finder| 4.1 day|
|00000f10| 73 29 2e 20 20 49 20 68 | 61 76 65 20 6e 6f 74 69 |s). I h|ave noti|
|00000f20| 63 65 64 20 6e 6f 20 70 | 72 6f 62 6c 65 6d 73 0a |ced no p|roblems.|
|00000f30| 75 73 69 6e 67 20 74 68 | 65 20 6f 6c 64 20 64 72 |using th|e old dr|
|00000f40| 69 76 65 72 20 77 69 74 | 68 20 74 68 65 20 6e 65 |iver wit|h the ne|
|00000f50| 77 20 52 4f 4d 53 20 6f | 72 20 6e 65 77 20 73 79 |w ROMS o|r new sy|
|00000f60| 73 74 65 6d 2e 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |stem...-|--------|
|00000f70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f80| 0a 42 72 69 61 6e 20 50 | 6f 77 65 6c 6c 09 62 72 |.Brian P|owell.br|
|00000f90| 69 61 6e 40 73 61 6c 6c | 79 2e 75 74 65 78 61 73 |ian@sall|y.utexas|
|00000fa0| 2e 65 64 75 0a 52 6f 6e | 20 48 69 74 63 68 65 6e |.edu.Ron| Hitchen|
|00000fb0| 73 09 68 69 74 63 68 65 | 6e 73 40 73 61 6c 6c 79 |s.hitche|ns@sally|
|00000fc0| 2e 75 74 65 78 61 73 2e | 65 64 75 0a 00 00 00 00 |.utexas.|edu.....|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00001010| 73 63 72 69 70 74 2f 52 | 45 41 44 4d 45 2e 53 50 |script/R|EADME.SP|
|00001020| 4f 4f 4c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |OOL.....|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 32 |.... 6|64 . 2|
|00001070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001080| 20 20 31 34 33 36 35 20 | 20 34 34 30 33 36 31 37 | 14365 | 4403617|
|00001090| 34 34 33 20 20 31 32 33 | 34 30 00 20 00 00 00 00 |443 123|40. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 0a 20 20 20 50 61 69 6e | 74 70 73 20 64 65 70 65 |. Pain|tps depe|
|00001210| 6e 64 73 20 6f 6e 20 74 | 68 65 20 22 4d 61 63 20 |nds on t|he "Mac |
|00001220| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 22 20 62 65 69 |environm|ent" bei|
|00001230| 6e 67 20 70 72 65 73 65 | 6e 74 20 69 6e 20 74 68 |ng prese|nt in th|
|00001240| 65 20 4c 61 73 65 72 57 | 72 69 74 65 72 0a 61 74 |e LaserW|riter.at|
|00001250| 20 74 68 65 20 74 69 6d | 65 20 69 74 73 20 50 6f | the tim|e its Po|
|00001260| 73 74 73 63 72 69 70 74 | 20 6f 75 74 70 75 74 20 |stscript| output |
|00001270| 69 73 20 70 72 6f 63 65 | 73 73 65 64 2e 20 20 54 |is proce|ssed. T|
|00001280| 68 69 73 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |his envi|ronment |
|00001290| 69 73 20 73 65 74 75 70 | 0a 62 79 20 74 68 65 20 |is setup|.by the |
|000012a0| 6c 61 73 65 72 2d 70 72 | 65 70 20 70 72 6f 6c 6f |laser-pr|ep prolo|
|000012b0| 67 20 66 69 6c 65 20 77 | 68 69 63 68 20 69 73 20 |g file w|hich is |
|000012c0| 70 72 65 70 65 6e 64 65 | 64 20 62 79 20 74 68 65 |prepende|d by the|
|000012d0| 20 4d 61 63 20 70 72 69 | 6e 74 20 64 72 69 76 65 | Mac pri|nt drive|
|000012e0| 72 73 0a 77 68 65 6e 20 | 61 20 4d 61 63 20 70 72 |rs.when |a Mac pr|
|000012f0| 69 6e 74 73 20 64 69 72 | 65 63 74 6c 79 20 74 6f |ints dir|ectly to|
|00001300| 20 61 20 4c 61 73 65 72 | 57 72 69 74 65 72 2e 20 | a Laser|Writer. |
|00001310| 20 53 69 6e 63 65 20 70 | 61 69 6e 74 70 73 20 62 | Since p|aintps b|
|00001320| 61 73 69 63 61 6c 6c 79 | 0a 6d 69 6d 69 63 73 20 |asically|.mimics |
|00001330| 77 68 61 74 20 4d 61 63 | 50 61 69 6e 74 20 64 6f |what Mac|Paint do|
|00001340| 65 73 20 77 68 65 6e 20 | 69 74 20 70 72 69 6e 74 |es when |it print|
|00001350| 73 20 61 20 66 69 6c 65 | 20 6f 6e 20 61 20 4c 57 |s a file| on a LW|
|00001360| 2c 20 73 6f 6d 65 74 68 | 69 6e 67 20 6e 65 65 64 |, someth|ing need|
|00001370| 73 0a 74 6f 20 62 65 20 | 64 6f 6e 65 20 74 6f 20 |s.to be |done to |
|00001380| 70 72 6f 76 69 64 65 20 | 74 68 65 20 4d 61 63 20 |provide |the Mac |
|00001390| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 69 6e 20 74 |environm|ent in t|
|000013a0| 68 65 20 4c 57 20 77 69 | 74 68 20 74 68 65 20 55 |he LW wi|th the U|
|000013b0| 6e 69 78 20 73 79 73 74 | 65 6d 2e 0a 0a 20 20 20 |nix syst|em... |
|000013c0| 54 68 65 20 73 61 6d 65 | 20 61 70 70 6c 69 65 73 |The same| applies|
|000013d0| 20 74 6f 20 61 6e 79 20 | 22 4d 61 63 20 50 6f 73 | to any |"Mac Pos|
|000013e0| 74 53 63 72 69 70 74 22 | 20 66 69 6c 65 20 70 72 |tScript"| file pr|
|000013f0| 6f 64 75 63 65 64 20 6f | 6e 20 61 20 4d 61 63 20 |oduced o|n a Mac |
|00001400| 61 6e 64 0a 63 61 70 74 | 75 72 65 64 20 77 69 74 |and.capt|ured wit|
|00001410| 68 20 74 68 65 20 43 6f | 6d 6d 61 6e 64 2d 46 20 |h the Co|mmand-F |
|00001420| 73 65 71 75 65 6e 63 65 | 20 61 6e 64 20 74 68 65 |sequence| and the|
|00001430| 6e 20 75 70 6c 6f 61 64 | 65 64 20 74 6f 20 61 20 |n upload|ed to a |
|00001440| 55 6e 69 78 20 6d 61 63 | 68 69 6e 65 2e 0a 54 68 |Unix mac|hine..Th|
|00001450| 65 20 72 65 6d 61 69 6e | 69 6e 67 20 64 69 73 63 |e remain|ing disc|
|00001460| 75 73 73 69 6f 6e 20 63 | 6f 6e 63 65 72 6e 73 20 |ussion c|oncerns |
|00001470| 70 72 69 6e 74 69 6e 67 | 20 4d 61 63 20 66 69 6c |printing| Mac fil|
|00001480| 65 73 20 74 6f 20 61 20 | 4c 61 73 65 72 57 72 69 |es to a |LaserWri|
|00001490| 74 65 72 0a 62 65 69 6e | 67 20 64 72 69 76 65 6e |ter.bein|g driven|
|000014a0| 20 62 79 20 61 20 55 6e | 69 78 20 28 34 2e 32 20 | by a Un|ix (4.2 |
|000014b0| 6f 72 20 34 2e 33 20 42 | 53 44 29 20 73 70 6f 6f |or 4.3 B|SD) spoo|
|000014c0| 6c 65 72 20 61 6e 64 20 | 77 68 69 63 68 20 69 73 |ler and |which is|
|000014d0| 20 70 72 69 6d 61 72 69 | 6c 79 0a 75 73 65 64 20 | primari|ly.used |
|000014e0| 66 6f 72 20 67 65 6e 65 | 72 61 6c 20 74 65 78 74 |for gene|ral text|
|000014f0| 20 70 72 6f 63 65 73 73 | 69 6e 67 2c 20 6e 6f 74 | process|ing, not|
|00001500| 20 66 6f 72 20 4d 61 63 | 20 6f 75 74 70 75 74 2e | for Mac| output.|
|00001510| 20 20 54 68 65 20 6f 75 | 74 70 75 74 20 6f 66 0a | The ou|tput of.|
|00001520| 70 61 69 6e 74 70 73 20 | 69 73 20 63 6f 6e 73 69 |paintps |is consi|
|00001530| 64 65 72 65 64 20 61 20 | 22 4d 61 63 20 66 69 6c |dered a |"Mac fil|
|00001540| 65 22 2c 20 65 76 65 6e | 20 74 68 6f 75 67 68 20 |e", even| though |
|00001550| 69 74 27 73 20 70 72 6f | 64 75 63 65 64 20 6f 6e |it's pro|duced on|
|00001560| 20 61 0a 55 6e 69 78 20 | 73 79 73 74 65 6d 2c 20 | a.Unix |system, |
|00001570| 61 6e 64 20 69 73 20 69 | 6e 63 6c 75 64 65 64 20 |and is i|ncluded |
|00001580| 69 6e 20 74 68 65 20 67 | 65 6e 65 72 61 6c 20 64 |in the g|eneral d|
|00001590| 69 73 63 75 73 73 69 6f | 6e 20 62 65 6c 6f 77 2e |iscussio|n below.|
|000015a0| 0a 0a 20 20 20 54 68 65 | 20 66 69 72 73 74 20 73 |.. The| first s|
|000015b0| 74 65 70 20 69 73 20 74 | 6f 20 67 65 74 20 74 68 |tep is t|o get th|
|000015c0| 65 20 6c 61 73 65 72 2d | 70 72 65 70 20 70 72 6f |e laser-|prep pro|
|000015d0| 6c 6f 67 20 66 69 6c 65 | 2c 20 73 6f 20 74 68 61 |log file|, so tha|
|000015e0| 74 20 69 74 20 63 61 6e | 20 62 65 0a 73 65 6e 74 |t it can| be.sent|
|000015f0| 20 74 6f 20 74 68 65 20 | 4c 57 20 76 69 61 20 74 | to the |LW via t|
|00001600| 68 65 20 73 70 6f 6f 6c | 65 72 2e 20 20 54 68 65 |he spool|er. The|
|00001610| 20 6c 61 73 65 72 2d 70 | 72 65 70 20 66 69 6c 65 | laser-p|rep file|
|00001620| 20 6d 75 73 74 20 62 65 | 20 6d 6f 64 69 66 69 65 | must be| modifie|
|00001630| 64 0a 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 74 |d.for us|e with t|
|00001640| 68 65 20 73 70 6f 6f 6c | 65 72 2e 20 20 54 68 65 |he spool|er. The|
|00001650| 72 65 20 61 72 65 20 74 | 77 6f 20 72 65 61 73 6f |re are t|wo reaso|
|00001660| 6e 73 20 77 68 79 2e 0a | 09 31 29 20 54 68 65 20 |ns why..|.1) The |
|00001670| 73 74 61 6e 64 61 72 64 | 20 6c 61 73 65 72 2d 70 |standard| laser-p|
|00001680| 72 65 70 20 69 6e 73 74 | 61 6c 6c 73 20 69 74 73 |rep inst|alls its|
|00001690| 65 6c 66 20 70 65 72 6d | 61 6e 65 6e 74 6c 79 2c |elf perm|anently,|
|000016a0| 20 6f 6e 20 74 68 65 0a | 09 20 20 20 61 73 73 75 | on the.|. assu|
|000016b0| 6d 70 74 69 6f 6e 20 74 | 68 61 74 20 74 68 65 20 |mption t|hat the |
|000016c0| 4c 57 20 69 73 20 6c 69 | 76 69 6e 67 20 69 6e 20 |LW is li|ving in |
|000016d0| 61 20 4d 61 63 2d 6f 6e | 6c 79 20 75 6e 69 76 65 |a Mac-on|ly unive|
|000016e0| 72 73 65 2e 20 20 54 68 | 65 0a 09 20 20 20 61 6d |rse. Th|e.. am|
|000016f0| 6f 75 6e 74 20 6f 66 20 | 6d 65 6d 6f 72 79 20 69 |ount of |memory i|
|00001700| 74 20 63 6f 6e 73 75 6d | 65 73 20 69 73 20 73 75 |t consum|es is su|
|00001710| 62 73 74 61 6e 74 69 61 | 6c 20 61 6e 64 20 77 65 |bstantia|l and we|
|00001720| 20 61 72 65 6e 27 74 0a | 09 20 20 20 77 69 6c 6c | aren't.|. will|
|00001730| 69 6e 67 20 74 6f 20 67 | 69 76 65 20 69 74 20 61 |ing to g|ive it a|
|00001740| 77 61 79 20 74 6f 20 61 | 63 63 6f 6d 6f 64 61 74 |way to a|ccomodat|
|00001750| 65 20 74 68 65 20 6f 63 | 63 61 73 69 6f 6e 61 6c |e the oc|casional|
|00001760| 20 4d 61 63 0a 09 20 20 | 20 6a 6f 62 20 73 65 6e | Mac.. | job sen|
|00001770| 74 20 76 69 61 20 74 68 | 65 20 55 6e 69 78 20 73 |t via th|e Unix s|
|00001780| 70 6f 6f 6c 65 72 2e 20 | 20 52 65 6d 6f 76 69 6e |pooler. | Removin|
|00001790| 67 20 74 68 65 20 66 65 | 77 20 6c 69 6e 65 73 0a |g the fe|w lines.|
|000017a0| 09 20 20 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |. at t|he begin|
|000017b0| 6e 69 6e 67 20 77 68 69 | 63 68 20 65 73 63 61 70 |ning whi|ch escap|
|000017c0| 65 20 66 72 6f 6d 20 74 | 68 65 20 73 65 72 76 65 |e from t|he serve|
|000017d0| 72 20 6c 6f 6f 70 20 69 | 73 0a 09 20 20 20 73 75 |r loop i|s.. su|
|000017e0| 66 66 69 63 69 65 6e 74 | 20 74 6f 20 70 72 65 76 |fficient| to prev|
|000017f0| 65 6e 74 20 70 65 72 6d | 61 6e 65 6e 74 20 72 65 |ent perm|anent re|
|00001800| 73 69 64 65 6e 63 79 2e | 0a 09 32 29 20 54 68 65 |sidency.|..2) The|
|00001810| 20 65 6e 63 72 79 70 74 | 65 64 20 73 6d 6f 6f 74 | encrypt|ed smoot|
|00001820| 68 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |hing fun|ction in|
|00001830| 20 74 68 65 20 6c 61 73 | 65 72 2d 70 72 65 70 20 | the las|er-prep |
|00001840| 69 73 20 66 65 64 0a 09 | 20 20 20 61 73 20 73 74 |is fed..| as st|
|00001850| 64 69 6e 20 74 6f 20 61 | 6e 20 65 65 78 65 63 20 |din to a|n eexec |
|00001860| 63 6f 6d 6d 61 6e 64 20 | 77 68 69 63 68 20 77 69 |command |which wi|
|00001870| 6c 6c 20 72 65 61 64 20 | 75 6e 74 69 6c 20 65 6f |ll read |until eo|
|00001880| 66 2e 20 20 53 69 6e 63 | 65 0a 09 20 20 20 77 68 |f. Sinc|e.. wh|
|00001890| 61 74 20 77 65 27 72 65 | 20 74 72 79 69 6e 67 20 |at we're| trying |
|000018a0| 74 6f 20 61 63 63 6f 6d | 70 6c 69 73 68 20 69 73 |to accom|plish is|
|000018b0| 20 74 6f 20 68 61 76 65 | 20 74 68 65 20 6c 61 73 | to have| the las|
|000018c0| 65 72 2d 70 72 65 70 20 | 6f 6e 6c 79 0a 09 20 20 |er-prep |only.. |
|000018d0| 20 6c 69 76 65 20 66 6f | 72 20 74 68 65 20 64 75 | live fo|r the du|
|000018e0| 72 61 74 69 6f 6e 20 6f | 66 20 61 20 73 69 6e 67 |ration o|f a sing|
|000018f0| 6c 65 20 6a 6f 62 2c 20 | 74 68 69 73 20 70 72 65 |le job, |this pre|
|00001900| 73 65 6e 74 73 20 61 20 | 70 72 6f 62 6c 65 6d 2e |sents a |problem.|
|00001910| 0a 09 20 20 20 4c 75 63 | 6b 69 6c 79 20 74 68 65 |.. Luc|kily the|
|00001920| 20 65 65 78 65 63 20 63 | 6f 6d 6d 61 6e 64 20 77 | eexec c|ommand w|
|00001930| 69 6c 6c 20 61 6c 73 6f | 20 61 63 63 65 70 74 20 |ill also| accept |
|00001940| 61 20 73 74 72 69 6e 67 | 20 61 72 67 75 6d 65 6e |a string| argumen|
|00001950| 74 0a 09 20 20 20 6f 6e | 20 74 68 65 20 73 74 61 |t.. on| the sta|
|00001960| 63 6b 2c 20 73 6f 20 62 | 79 20 70 6c 61 63 69 6e |ck, so b|y placin|
|00001970| 67 20 68 65 78 20 71 75 | 6f 74 65 73 20 28 3c 3e |g hex qu|otes (<>|
|00001980| 29 20 61 72 6f 75 6e 64 | 20 74 68 65 20 73 6d 6f |) around| the smo|
|00001990| 6f 74 68 69 6e 67 0a 09 | 20 20 20 63 6f 64 65 20 |othing..| code |
|000019a0| 61 6e 64 20 63 61 6c 6c | 69 6e 67 20 65 65 78 65 |and call|ing eexe|
|000019b0| 63 20 61 66 74 65 72 20 | 69 74 20 68 61 73 20 62 |c after |it has b|
|000019c0| 65 65 6e 20 70 6c 61 63 | 65 64 20 6f 6e 20 74 68 |een plac|ed on th|
|000019d0| 65 20 73 74 61 63 6b 2c | 0a 09 20 20 20 77 65 20 |e stack,|.. we |
|000019e0| 67 65 74 20 74 68 65 20 | 73 61 6d 65 20 65 66 66 |get the |same eff|
|000019f0| 65 63 74 20 70 6c 75 73 | 20 74 68 65 20 61 62 69 |ect plus| the abi|
|00001a00| 6c 69 74 79 20 74 6f 20 | 63 6f 6e 74 69 6e 75 65 |lity to |continue|
|00001a10| 20 73 65 6e 64 69 6e 67 | 0a 09 20 20 20 50 6f 73 | sending|.. Pos|
|00001a20| 74 53 63 72 69 70 74 20 | 63 6f 64 65 20 61 66 74 |tScript |code aft|
|00001a30| 65 72 77 61 72 64 73 2e | 20 20 48 65 6e 63 65 2c |erwards.| Hence,|
|00001a40| 20 77 65 20 63 61 6e 20 | 73 69 6d 70 6c 79 20 63 | we can |simply c|
|00001a50| 6f 6e 63 61 74 65 6e 61 | 74 65 0a 09 20 20 20 74 |oncatena|te.. t|
|00001a60| 68 65 20 6d 6f 64 69 66 | 69 65 64 20 6c 61 73 65 |he modif|ied lase|
|00001a70| 72 2d 70 72 65 70 20 61 | 6e 64 20 74 68 65 20 4d |r-prep a|nd the M|
|00001a80| 61 63 20 50 6f 73 74 53 | 63 72 69 70 74 20 66 69 |ac PostS|cript fi|
|00001a90| 6c 65 20 61 6e 64 20 73 | 65 6e 64 0a 09 20 20 20 |le and s|end.. |
|00001aa0| 69 74 20 74 6f 20 74 68 | 65 20 70 72 69 6e 74 65 |it to th|e printe|
|00001ab0| 72 2c 20 74 68 65 20 4d | 61 63 20 65 6e 76 69 72 |r, the M|ac envir|
|00001ac0| 6f 6e 6d 65 6e 74 20 77 | 69 6c 6c 20 62 65 20 74 |onment w|ill be t|
|00001ad0| 68 65 72 65 20 66 6f 72 | 20 74 68 65 0a 09 20 20 |here for| the.. |
|00001ae0| 20 6a 6f 62 20 61 6e 64 | 20 77 69 6c 6c 20 62 65 | job and| will be|
|00001af0| 20 66 6c 75 73 68 65 64 | 20 61 66 74 65 72 77 61 | flushed| afterwa|
|00001b00| 72 64 73 2e 0a 20 20 20 | 54 68 69 73 20 77 69 6c |rds.. |This wil|
|00001b10| 6c 20 61 6c 73 6f 20 61 | 6c 6c 6f 77 20 75 73 20 |l also a|llow us |
|00001b20| 74 6f 20 73 75 70 70 6f | 72 74 20 6d 6f 72 65 20 |to suppo|rt more |
|00001b30| 74 68 61 6e 20 6f 6e 65 | 20 76 65 72 73 69 6f 6e |than one| version|
|00001b40| 20 6f 66 20 74 68 65 20 | 4c 61 73 65 72 57 72 69 | of the |LaserWri|
|00001b50| 74 65 72 0a 64 72 69 76 | 65 72 20 69 6e 20 74 68 |ter.driv|er in th|
|00001b60| 65 20 66 75 74 75 72 65 | 20 28 77 68 69 63 68 20 |e future| (which |
|00001b70| 77 65 20 69 6e 74 65 6e | 64 20 74 6f 20 64 6f 2e |we inten|d to do.|
|00001b80| 29 20 20 53 69 6e 63 65 | 20 74 68 65 20 6c 61 73 |) Since| the las|
|00001b90| 65 72 2d 70 72 65 70 20 | 77 6f 6e 27 74 20 62 65 |er-prep |won't be|
|00001ba0| 0a 69 6e 20 74 68 65 20 | 4c 57 20 52 41 4d 2c 20 |.in the |LW RAM, |
|00001bb0| 77 65 20 63 61 6e 20 70 | 72 65 70 65 6e 64 20 61 |we can p|repend a|
|00001bc0| 6e 79 20 6c 61 73 65 72 | 2d 70 72 65 70 20 77 69 |ny laser|-prep wi|
|00001bd0| 74 68 6f 75 74 20 63 61 | 75 73 69 6e 67 20 61 20 |thout ca|using a |
|00001be0| 63 6f 6e 66 6c 69 63 74 | 2e 0a 0a 20 20 20 4e 6f |conflict|... No|
|00001bf0| 77 2c 20 74 68 65 72 65 | 20 61 72 65 20 61 20 63 |w, there| are a c|
|00001c00| 6f 75 70 6c 65 20 6f 66 | 20 77 61 79 73 20 74 6f |ouple of| ways to|
|00001c10| 20 68 61 6e 64 6c 65 20 | 61 20 4d 61 63 20 50 6f | handle |a Mac Po|
|00001c20| 73 74 53 63 72 69 70 74 | 20 6a 6f 62 20 76 69 61 |stScript| job via|
|00001c30| 0a 74 68 65 20 55 6e 69 | 78 20 73 70 6f 6f 6c 65 |.the Uni|x spoole|
|00001c40| 72 2e 0a 09 31 29 20 4f | 6e 20 74 68 65 20 66 72 |r...1) O|n the fr|
|00001c50| 6f 6e 74 20 65 6e 64 20 | 6f 66 20 74 68 65 20 73 |ont end |of the s|
|00001c60| 70 6f 6f 6c 65 72 20 74 | 68 72 75 20 6c 70 72 2c |pooler t|hru lpr,|
|00001c70| 20 73 75 63 68 20 61 73 | 3a 0a 09 09 70 61 69 6e | such as|:...pain|
|00001c80| 74 70 73 20 66 6f 6f 2e | 6d 70 20 3e 20 66 6f 6f |tps foo.|mp > foo|
|00001c90| 2e 70 73 0a 09 09 63 61 | 74 20 2f 75 73 72 2f 6c |.ps...ca|t /usr/l|
|00001ca0| 6f 63 61 6c 2f 6c 69 62 | 2f 6c 61 73 65 72 2d 70 |ocal/lib|/laser-p|
|00001cb0| 72 65 70 2e 70 72 6f 20 | 66 6f 6f 2e 70 73 20 7c |rep.pro |foo.ps ||
|00001cc0| 20 6c 70 72 20 2d 50 6c | 77 0a 09 20 20 20 54 68 | lpr -Pl|w.. Th|
|00001cd0| 69 73 20 69 73 20 74 68 | 65 20 6d 6f 73 74 20 67 |is is th|e most g|
|00001ce0| 65 6e 65 72 69 63 20 61 | 6e 64 20 64 6f 65 73 6e |eneric a|nd doesn|
|00001cf0| 27 74 20 72 65 71 75 69 | 72 65 20 61 6e 79 74 68 |'t requi|re anyth|
|00001d00| 69 6e 67 20 73 70 65 63 | 69 61 6c 0a 09 20 20 20 |ing spec|ial.. |
|00001d10| 62 65 20 64 6f 6e 65 20 | 6f 6e 20 74 68 65 20 75 |be done |on the u|
|00001d20| 6e 69 78 20 73 79 73 74 | 65 6d 2e 20 20 54 68 65 |nix syst|em. The|
|00001d30| 20 64 72 61 77 62 61 63 | 6b 73 20 61 72 65 20 74 | drawbac|ks are t|
|00001d40| 68 61 74 20 61 20 63 75 | 72 72 65 6e 74 0a 09 20 |hat a cu|rrent.. |
|00001d50| 20 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 6c 61 | copy o|f the la|
|00001d60| 73 65 72 2d 70 72 65 70 | 20 6d 75 73 74 20 62 65 |ser-prep| must be|
|00001d70| 20 70 72 65 73 65 6e 74 | 20 6f 6e 20 65 76 65 72 | present| on ever|
|00001d80| 79 20 73 79 73 74 65 6d | 20 74 68 61 74 20 6d 69 |y system| that mi|
|00001d90| 67 68 74 0a 09 20 20 20 | 73 70 6f 6f 6c 20 61 20 |ght.. |spool a |
|00001da0| 6a 6f 62 2c 20 74 68 61 | 74 20 75 73 65 72 73 20 |job, tha|t users |
|00001db0| 6b 6e 6f 77 20 77 68 65 | 72 65 20 69 74 20 69 73 |know whe|re it is|
|00001dc0| 2c 20 61 6e 64 20 74 68 | 61 74 20 74 68 65 79 20 |, and th|at they |
|00001dd0| 6b 6e 6f 77 0a 09 20 20 | 20 74 68 65 20 70 72 6f |know.. | the pro|
|00001de0| 70 65 72 20 69 6e 63 61 | 6e 74 61 74 69 6f 6e 73 |per inca|ntations|
|00001df0| 2e 20 20 41 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |. A she|ll scrip|
|00001e00| 74 20 63 6f 75 6c 64 20 | 62 65 20 77 72 69 74 74 |t could |be writt|
|00001e10| 65 6e 20 74 6f 0a 09 20 | 20 20 68 69 64 65 20 74 |en to.. | hide t|
|00001e20| 68 65 20 61 62 6f 76 65 | 20 63 6f 6d 6d 61 6e 64 |he above| command|
|00001e30| 73 2c 20 62 75 74 20 74 | 68 61 74 20 73 74 69 6c |s, but t|hat stil|
|00001e40| 6c 20 72 65 71 75 69 72 | 65 73 20 6d 75 6c 74 69 |l requir|es multi|
|00001e50| 70 6c 65 0a 09 20 20 20 | 63 6f 70 69 65 73 20 6f |ple.. |copies o|
|00001e60| 66 20 74 68 65 20 6c 61 | 73 65 72 2d 70 72 65 70 |f the la|ser-prep|
|00001e70| 20 66 69 6c 65 2e 0a 09 | 32 29 20 49 6e 20 74 68 | file...|2) In th|
|00001e80| 65 20 62 61 63 6b 20 65 | 6e 64 20 6f 66 20 74 68 |e back e|nd of th|
|00001e90| 65 20 73 70 6f 6f 6c 65 | 72 2c 20 62 79 20 68 61 |e spoole|r, by ha|
|00001ea0| 76 69 6e 67 20 61 20 66 | 69 6c 74 65 72 20 61 75 |ving a f|ilter au|
|00001eb0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 0a 09 20 20 20 |tomatica|lly.. |
|00001ec0| 70 72 65 70 65 6e 64 20 | 74 68 65 20 6c 61 73 65 |prepend |the lase|
|00001ed0| 72 2d 70 72 65 70 20 74 | 6f 20 61 6c 6c 20 4d 61 |r-prep t|o all Ma|
|00001ee0| 63 20 50 6f 73 74 53 63 | 72 69 70 74 20 6a 6f 62 |c PostSc|ript job|
|00001ef0| 73 2e 20 20 54 68 69 73 | 20 69 73 20 0a 09 20 20 |s. This| is .. |
|00001f00| 20 74 68 65 20 6d 6f 73 | 74 20 65 6c 65 67 61 6e | the mos|t elegan|
|00001f10| 74 20 77 61 79 20 74 6f | 20 68 61 6e 64 6c 65 20 |t way to| handle |
|00001f20| 69 74 2c 20 73 69 6e 63 | 65 20 6f 6e 6c 79 20 6f |it, sinc|e only o|
|00001f30| 6e 65 20 63 6f 70 79 20 | 6f 66 20 74 68 65 0a 09 |ne copy |of the..|
|00001f40| 20 20 20 6c 61 73 65 72 | 2d 70 72 65 70 20 6e 65 | laser|-prep ne|
|00001f50| 65 64 20 65 78 69 73 74 | 20 6f 6e 20 74 68 65 20 |ed exist| on the |
|00001f60| 73 79 73 74 65 6d 20 77 | 68 65 72 65 20 74 68 65 |system w|here the|
|00001f70| 20 70 72 69 6e 74 65 72 | 20 69 73 2c 20 61 6e 64 | printer| is, and|
|00001f80| 0a 09 20 20 20 74 68 65 | 20 64 65 74 61 69 6c 73 |.. the| details|
|00001f90| 20 6f 66 20 68 61 6e 64 | 6c 69 6e 67 20 4d 61 63 | of hand|ling Mac|
|00001fa0| 20 73 70 65 63 69 66 69 | 63 20 66 69 6c 65 73 20 | specifi|c files |
|00001fb0| 61 72 65 20 68 69 64 64 | 65 6e 20 66 72 6f 6d 0a |are hidd|en from.|
|00001fc0| 09 20 20 20 74 68 65 20 | 75 73 65 72 2e 20 20 54 |. the |user. T|
|00001fd0| 68 69 73 20 6d 65 74 68 | 6f 64 20 72 65 71 75 69 |his meth|od requi|
|00001fe0| 72 65 73 20 73 65 6c 65 | 63 74 69 6e 67 20 61 20 |res sele|cting a |
|00001ff0| 22 66 69 6c 65 20 74 79 | 70 65 22 20 66 6f 72 0a |"file ty|pe" for.|
|00002000| 09 20 20 20 73 70 6f 6f | 6c 69 6e 67 20 4d 61 63 |. spoo|ling Mac|
|00002010| 20 6a 6f 62 73 20 61 6e | 64 20 73 70 65 63 69 66 | jobs an|d specif|
|00002020| 79 69 6e 67 20 74 68 65 | 20 70 72 6f 70 65 72 20 |ying the| proper |
|00002030| 68 61 6e 64 6c 65 72 73 | 20 6f 6e 20 74 68 65 0a |handlers| on the.|
|00002040| 09 20 20 20 73 79 73 74 | 65 6d 20 77 68 65 72 65 |. syst|em where|
|00002050| 20 74 68 65 20 70 72 69 | 6e 74 65 72 20 69 73 2e | the pri|nter is.|
|00002060| 20 20 41 74 20 55 54 20 | 77 65 20 63 68 6f 73 65 | At UT |we chose|
|00002070| 20 74 68 65 20 22 46 6f | 72 74 72 61 6e 22 0a 09 | the "Fo|rtran"..|
|00002080| 20 20 20 66 69 6c 65 20 | 74 79 70 65 2c 20 73 69 | file |type, si|
|00002090| 6e 63 65 20 69 74 20 77 | 61 73 20 75 6e 75 73 65 |nce it w|as unuse|
|000020a0| 64 2e 20 20 4f 74 68 65 | 72 73 20 63 6f 75 6c 64 |d. Othe|rs could|
|000020b0| 20 62 65 20 75 73 65 64 | 20 62 75 74 0a 09 20 20 | be used| but.. |
|000020c0| 20 74 68 65 72 65 20 61 | 72 65 6e 27 74 20 6d 61 | there a|ren't ma|
|000020d0| 6e 79 20 63 61 6e 64 69 | 64 61 74 65 73 2c 20 65 |ny candi|dates, e|
|000020e0| 73 70 65 63 69 61 6c 6c | 79 20 69 66 20 79 6f 75 |speciall|y if you|
|000020f0| 20 61 6c 72 65 61 64 79 | 0a 09 20 20 20 73 75 70 | already|.. sup|
|00002100| 70 6f 72 74 20 64 69 74 | 72 6f 66 66 20 61 6e 64 |port dit|roff and|
|00002110| 2f 6f 72 20 54 65 58 2e | 20 20 57 65 20 68 61 6e |/or TeX.| We han|
|00002120| 64 6c 65 20 73 70 6f 6f | 6c 69 6e 67 20 6f 66 20 |dle spoo|ling of |
|00002130| 4d 61 63 20 66 69 6c 65 | 73 0a 09 20 20 20 77 69 |Mac file|s.. wi|
|00002140| 74 68 20 61 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |th a she|ll scrip|
|00002150| 74 20 77 68 69 63 68 20 | 73 69 6d 70 6c 79 20 63 |t which |simply c|
|00002160| 61 6c 6c 73 20 6c 70 72 | 20 61 6e 64 20 61 64 64 |alls lpr| and add|
|00002170| 73 20 74 68 65 20 2d 66 | 0a 09 20 20 20 66 69 6c |s the -f|.. fil|
|00002180| 65 20 74 79 70 65 20 66 | 6c 61 67 2e 0a 0a 20 20 |e type f|lag... |
|00002190| 20 54 68 65 20 64 69 73 | 63 75 73 73 69 6f 6e 20 | The dis|cussion |
|000021a0| 62 65 6c 6f 77 20 61 73 | 73 75 6d 65 73 20 74 68 |below as|sumes th|
|000021b0| 65 20 72 65 61 64 65 72 | 20 69 73 20 66 61 6d 69 |e reader| is fami|
|000021c0| 6c 69 61 72 20 77 69 74 | 68 20 68 6f 77 20 74 68 |liar wit|h how th|
|000021d0| 65 20 0a 42 65 72 6b 65 | 6c 65 79 20 73 70 6f 6f |e .Berke|ley spoo|
|000021e0| 6c 65 72 20 77 6f 72 6b | 73 20 61 6e 64 20 6b 6e |ler work|s and kn|
|000021f0| 6f 77 73 20 68 6f 77 20 | 74 6f 20 73 65 74 75 70 |ows how |to setup|
|00002200| 20 66 69 6c 74 65 72 73 | 2e 20 20 54 68 65 20 70 | filters|. The p|
|00002210| 65 72 73 6f 6e 0a 77 68 | 6f 20 64 6f 65 73 20 74 |erson.wh|o does t|
|00002220| 68 69 73 20 6d 75 73 74 | 20 68 61 76 65 20 73 75 |his must| have su|
|00002230| 70 65 72 2d 75 73 65 72 | 20 61 63 63 65 73 73 20 |per-user| access |
|00002240| 61 6e 79 77 61 79 2e 20 | 20 4f 6e 63 65 20 61 67 |anyway. | Once ag|
|00002250| 61 69 6e 20 74 68 65 72 | 65 0a 61 72 65 20 74 77 |ain ther|e.are tw|
|00002260| 6f 20 77 61 79 73 20 74 | 6f 20 67 6f 20 61 62 6f |o ways t|o go abo|
|00002270| 75 74 20 73 65 74 74 69 | 6e 67 20 75 70 20 79 6f |ut setti|ng up yo|
|00002280| 75 72 20 73 70 6f 6f 6c | 65 72 20 74 6f 20 68 61 |ur spool|er to ha|
|00002290| 6e 64 6c 65 20 4d 61 63 | 20 50 6f 73 74 53 63 72 |ndle Mac| PostScr|
|000022a0| 69 70 74 0a 66 69 6c 65 | 73 3a 0a 09 31 29 20 49 |ipt.file|s:..1) I|
|000022b0| 66 20 79 6f 75 27 72 65 | 20 75 73 69 6e 67 20 74 |f you're| using t|
|000022c0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 54 72 61 6e |he stand|ard Tran|
|000022d0| 73 63 72 69 70 74 20 73 | 65 74 75 70 2c 20 75 73 |script s|etup, us|
|000022e0| 65 20 74 68 65 20 70 73 | 6d 61 63 0a 09 20 20 20 |e the ps|mac.. |
|000022f0| 73 68 65 6c 6c 20 73 63 | 72 69 70 74 20 69 6e 63 |shell sc|ript inc|
|00002300| 6c 75 64 65 64 2e 20 20 | 50 75 74 20 69 74 20 69 |luded. |Put it i|
|00002310| 6e 20 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 6c 69 62 |n /usr/l|ocal/lib|
|00002320| 2c 20 6f 72 20 77 68 65 | 72 65 0a 09 20 20 20 79 |, or whe|re.. y|
|00002330| 6f 75 20 6b 65 65 70 20 | 74 68 65 20 72 65 73 74 |ou keep |the rest|
|00002340| 20 6f 66 20 79 6f 75 72 | 20 66 69 6c 74 65 72 73 | of your| filters|
|00002350| 2c 20 61 6e 64 20 70 75 | 74 20 69 74 73 20 6e 61 |, and pu|t its na|
|00002360| 6d 65 20 69 6e 20 74 68 | 65 0a 09 20 20 20 70 72 |me in th|e.. pr|
|00002370| 69 6e 74 63 61 70 20 73 | 6c 6f 74 20 66 6f 72 20 |intcap s|lot for |
|00002380| 77 68 69 63 68 65 76 65 | 72 20 66 69 6c 65 20 74 |whicheve|r file t|
|00002390| 79 70 65 20 79 6f 75 20 | 75 73 65 20 28 74 68 65 |ype you |use (the|
|000023a0| 20 72 66 20 66 69 65 6c | 64 0a 09 20 20 20 69 73 | rf fiel|d.. is|
|000023b0| 20 66 6f 72 20 74 68 65 | 20 46 6f 72 74 72 61 6e | for the| Fortran|
|000023c0| 20 74 79 70 65 2c 20 67 | 6f 20 66 69 67 75 72 65 | type, g|o figure|
|000023d0| 29 2e 0a 09 32 29 20 49 | 66 20 79 6f 75 27 72 65 |)...2) I|f you're|
|000023e0| 20 75 73 69 6e 67 20 61 | 6e 20 49 6d 61 67 65 6e | using a|n Imagen|
|000023f0| 2d 73 74 79 6c 65 20 73 | 68 65 6c 6c 20 73 63 72 |-style s|hell scr|
|00002400| 69 70 74 20 77 68 69 63 | 68 20 69 73 20 63 61 6c |ipt whic|h is cal|
|00002410| 6c 65 64 0a 09 20 20 20 | 62 79 20 73 65 76 65 72 |led.. |by sever|
|00002420| 61 6c 20 64 69 66 66 65 | 72 65 6e 74 20 6e 61 6d |al diffe|rent nam|
|00002430| 65 73 2c 20 75 73 65 20 | 6f 75 72 20 70 73 66 69 |es, use |our psfi|
|00002440| 6c 74 65 72 20 28 69 6e | 63 6c 75 64 65 64 29 20 |lter (in|cluded) |
|00002450| 61 73 0a 09 20 20 20 61 | 20 67 75 69 64 65 20 61 |as.. a| guide a|
|00002460| 6e 64 20 69 6e 63 6c 75 | 64 65 20 61 20 63 61 73 |nd inclu|de a cas|
|00002470| 65 20 66 6f 72 20 68 61 | 6e 64 6c 69 6e 67 20 4d |e for ha|ndling M|
|00002480| 61 63 20 66 69 6c 65 73 | 20 61 73 20 73 68 6f 77 |ac files| as show|
|00002490| 6e 2e 0a 09 20 20 20 54 | 68 69 73 20 61 70 70 72 |n... T|his appr|
|000024a0| 6f 61 63 68 20 69 73 20 | 6b 69 6e 64 20 6f 66 20 |oach is |kind of |
|000024b0| 6f 64 64 2c 20 61 6e 64 | 20 63 61 6e 20 6c 65 61 |odd, and| can lea|
|000024c0| 64 20 74 6f 20 76 61 72 | 69 6f 75 73 20 70 72 6f |d to var|ious pro|
|000024d0| 62 6c 65 6d 73 2c 0a 09 | 20 20 20 62 75 74 20 61 |blems,..| but a|
|000024e0| 6c 6c 6f 77 73 20 6d 6f | 72 65 20 66 6c 65 78 69 |llows mo|re flexi|
|000024f0| 62 69 6c 69 74 79 20 61 | 6e 64 20 65 6e 61 62 6c |bility a|nd enabl|
|00002500| 65 73 20 79 6f 75 20 74 | 6f 20 64 6f 20 74 68 69 |es you t|o do thi|
|00002510| 6e 67 73 0a 09 20 20 20 | 6c 69 6b 65 20 63 6f 6d |ngs.. |like com|
|00002520| 70 6c 65 78 20 70 69 70 | 65 6c 69 6e 65 73 20 61 |plex pip|elines a|
|00002530| 6e 64 20 70 72 6f 62 6c | 65 6d 20 6e 6f 74 69 66 |nd probl|em notif|
|00002540| 69 63 61 74 69 6f 6e 2e | 20 20 50 73 66 69 6c 74 |ication.| Psfilt|
|00002550| 65 72 0a 09 20 20 20 69 | 73 20 77 68 61 74 20 77 |er.. i|s what w|
|00002560| 65 20 75 73 65 20 61 74 | 20 55 54 2c 20 79 6f 75 |e use at| UT, you|
|00002570| 20 6d 61 79 20 6f 72 20 | 6d 61 79 20 6e 6f 74 20 | may or |may not |
|00002580| 66 69 6e 64 20 69 74 20 | 75 73 65 66 75 6c 2e 0a |find it |useful..|
|00002590| 09 20 20 20 49 6e 20 61 | 6e 79 20 63 61 73 65 20 |. In a|ny case |
|000025a0| 79 6f 75 20 63 61 6e 20 | 69 67 6e 6f 72 65 20 74 |you can |ignore t|
|000025b0| 68 65 20 6c 6f 63 61 6c | 20 68 61 63 6b 73 20 66 |he local| hacks f|
|000025c0| 6f 72 20 64 65 61 6c 69 | 6e 67 0a 09 20 20 20 77 |or deali|ng.. w|
|000025d0| 69 74 68 20 4c 61 73 65 | 72 57 72 69 74 65 72 73 |ith Lase|rWriters|
|000025e0| 20 6f 6e 20 42 72 69 64 | 67 65 73 20 28 75 6e 6c | on Brid|ges (unl|
|000025f0| 65 73 73 20 79 6f 75 20 | 68 61 76 65 20 73 6f 6d |ess you |have som|
|00002600| 65 2c 20 49 20 6d 69 67 | 68 74 0a 09 20 20 20 62 |e, I mig|ht.. b|
|00002610| 65 20 61 62 6c 65 20 74 | 6f 20 68 65 6c 70 29 2e |e able t|o help).|
|00002620| 0a 0a 20 20 20 54 68 65 | 20 70 72 6f 67 72 61 6d |.. The| program|
|00002630| 20 6d 61 63 66 69 6c 74 | 65 72 2c 20 6e 61 6d 65 | macfilt|er, name|
|00002640| 64 20 69 6e 20 62 6f 74 | 68 20 70 73 6d 61 63 20 |d in bot|h psmac |
|00002650| 61 6e 64 20 70 73 66 69 | 6c 74 65 72 2c 20 64 6f |and psfi|lter, do|
|00002660| 65 73 20 6e 6f 74 68 69 | 6e 67 0a 6d 6f 72 65 20 |es nothi|ng.more |
|00002670| 74 68 61 6e 20 63 6f 6e | 76 65 72 74 20 61 6e 79 |than con|vert any|
|00002680| 20 6e 6f 6e 2d 70 72 69 | 6e 74 61 62 6c 65 20 63 | non-pri|ntable c|
|00002690| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 74 68 65 |haracter|s in the|
|000026a0| 20 64 61 74 61 20 73 74 | 72 65 61 6d 20 74 6f 20 | data st|ream to |
|000026b0| 0a 74 68 65 20 6f 63 74 | 61 6c 20 65 71 75 69 76 |.the oct|al equiv|
|000026c0| 61 6c 65 6e 74 2e 20 20 | 41 70 70 6c 65 20 62 72 |alent. |Apple br|
|000026d0| 6f 6b 65 20 74 68 65 20 | 72 75 6c 65 73 20 61 6e |oke the |rules an|
|000026e0| 64 20 75 73 65 64 20 6e | 6f 6e 2d 70 72 69 6e 74 |d used n|on-print|
|000026f0| 61 62 6c 65 0a 63 68 61 | 72 61 63 74 65 72 73 20 |able.cha|racters |
|00002700| 28 73 70 65 63 69 66 69 | 63 61 6c 6c 79 20 6e 6f |(specifi|cally no|
|00002710| 6e 2d 61 73 63 69 69 20 | 3e 20 31 32 38 29 20 66 |n-ascii |> 128) f|
|00002720| 6f 72 20 63 65 72 74 61 | 69 6e 20 73 79 6d 62 6f |or certa|in symbo|
|00002730| 6c 73 2e 20 20 54 68 65 | 73 65 0a 64 6f 6e 27 74 |ls. The|se.don't|
|00002740| 20 73 75 72 76 69 63 65 | 20 74 68 65 20 75 6e 69 | survice| the uni|
|00002750| 78 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 20 |x device| driver |
|00002760| 28 74 68 65 79 20 6c 6f | 73 65 20 74 68 65 20 68 |(they lo|se the h|
|00002770| 69 67 68 20 62 69 74 29 | 20 61 6e 64 20 72 61 77 |igh bit)| and raw|
|00002780| 0a 6d 6f 64 65 20 69 73 | 20 6e 6f 74 20 70 6f 73 |.mode is| not pos|
|00002790| 73 69 62 6c 65 20 62 65 | 63 61 75 73 65 20 74 68 |sible be|cause th|
|000027a0| 65 20 4c 57 20 6e 65 65 | 64 73 20 74 6f 20 75 73 |e LW nee|ds to us|
|000027b0| 65 20 66 6c 6f 77 20 63 | 6f 6e 74 72 6f 6c 2e 0a |e flow c|ontrol..|
|000027c0| 0a 20 20 20 48 65 72 65 | 20 69 73 20 74 68 65 20 |. Here| is the |
|000027d0| 2f 65 74 63 2f 70 72 69 | 6e 74 63 61 70 20 77 65 |/etc/pri|ntcap we|
|000027e0| 20 75 73 65 20 68 65 72 | 65 20 61 74 20 55 54 3a | use her|e at UT:|
|000027f0| 0a 23 0a 23 0a 23 20 41 | 70 70 6c 65 20 4c 61 73 |.#.#.# A|pple Las|
|00002800| 65 72 57 72 69 74 65 72 | 0a 23 20 73 62 20 4d 55 |erWriter|.# sb MU|
|00002810| 53 54 20 62 65 20 73 70 | 65 63 69 66 69 65 64 2c |ST be sp|ecified,|
|00002820| 20 70 73 6f 66 20 64 65 | 70 65 6e 64 73 20 6f 6e | psof de|pends on|
|00002830| 20 69 74 2e 20 20 70 73 | 6f 66 20 70 72 69 6e 74 | it. ps|of print|
|00002840| 73 20 6a 6f 62 20 68 65 | 61 64 65 72 20 70 61 67 |s job he|ader pag|
|00002850| 65 2e 0a 23 20 72 77 20 | 6d 75 73 74 20 62 65 20 |e..# rw |must be |
|00002860| 73 70 65 63 69 66 69 65 | 64 2c 20 70 72 69 6e 74 |specifie|d, print|
|00002870| 65 72 20 74 61 6c 6b 73 | 20 62 61 63 6b 20 74 6f |er talks| back to|
|00002880| 20 70 73 69 66 0a 0a 6c | 77 2d 67 65 6e 65 72 69 | psif..l|w-generi|
|00002890| 63 7c 41 70 70 6c 65 20 | 4c 61 73 65 72 77 72 69 |c|Apple |Laserwri|
|000028a0| 74 65 72 3a 5c 0a 09 3a | 72 77 3a 62 72 23 39 36 |ter:\..:|rw:br#96|
|000028b0| 30 30 3a 66 66 3d 3a 74 | 72 3d 5e 44 3a 73 63 3a |00:ff=:t|r=^D:sc:|
|000028c0| 73 62 3a 5c 0a 09 3a 6f | 66 3d 2f 75 73 72 2f 6c |sb:\..:o|f=/usr/l|
|000028d0| 6f 63 61 6c 2f 6c 69 62 | 2f 70 73 6f 66 3a 5c 0a |ocal/lib|/psof:\.|
|000028e0| 09 3a 64 66 3d 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |.:df=/us|r/local/|
|000028f0| 6c 69 62 2f 70 73 64 76 | 69 3a 5c 0a 09 3a 6e 66 |lib/psdv|i:\..:nf|
|00002900| 3d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6c 69 62 2f |=/usr/lo|cal/lib/|
|00002910| 70 73 64 69 74 72 6f 66 | 66 3a 5c 0a 09 3a 74 66 |psditrof|f:\..:tf|
|00002920| 3d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6c 69 62 2f |=/usr/lo|cal/lib/|
|00002930| 70 73 63 61 74 3a 5c 0a | 09 3a 69 66 3d 2f 75 73 |pscat:\.|.:if=/us|
|00002940| 72 2f 6c 6f 63 61 6c 2f | 6c 69 62 2f 70 73 61 73 |r/local/|lib/psas|
|00002950| 63 3a 5c 0a 09 3a 63 66 | 3d 2f 75 73 72 2f 6c 6f |c:\..:cf|=/usr/lo|
|00002960| 63 61 6c 2f 6c 69 62 2f | 70 73 62 61 64 3a 5c 0a |cal/lib/|psbad:\.|
|00002970| 09 3a 67 66 3d 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |.:gf=/us|r/local/|
|00002980| 6c 69 62 2f 70 73 62 61 | 64 3a 5c 0a 09 3a 76 66 |lib/psba|d:\..:vf|
|00002990| 3d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6c 69 62 2f |=/usr/lo|cal/lib/|
|000029a0| 70 73 62 61 64 3a 5c 0a | 09 3a 72 66 3d 2f 75 73 |psbad:\.|.:rf=/us|
|000029b0| 72 2f 6c 6f 63 61 6c 2f | 6c 69 62 2f 70 73 6d 61 |r/local/|lib/psma|
|000029c0| 63 3a 0a 0a 4c 61 7a 61 | 72 75 73 7c 6c 77 31 7c |c:..Laza|rus|lw1||
|000029d0| 6c 77 7c 6c 61 7a 61 72 | 75 73 7c 4c 57 20 63 6f |lw|lazar|us|LW co|
|000029e0| 6e 6e 65 63 74 65 64 20 | 74 6f 20 69 6d 34 75 3a |nnected |to im4u:|
|000029f0| 5c 0a 09 3a 6c 70 3d 2f | 64 65 76 2f 6c 77 3a 73 |\..:lp=/|dev/lw:s|
|00002a00| 64 3d 2f 75 73 72 2f 73 | 70 6f 6f 6c 2f 6c 77 31 |d=/usr/s|pool/lw1|
|00002a10| 3a 5c 0a 09 3a 78 73 23 | 30 34 30 34 30 30 3a 66 |:\..:xs#|040400:f|
|00002a20| 63 23 30 37 30 3a 66 73 | 23 30 30 33 30 32 3a 5c |c#070:fs|#00302:\|
|00002a30| 0a 09 3a 6c 66 3d 2f 75 | 73 72 2f 61 64 6d 2f 6c |..:lf=/u|sr/adm/l|
|00002a40| 6f 67 2d 6c 77 31 3a 5c | 0a 09 3a 61 66 3d 2f 75 |og-lw1:\|..:af=/u|
|00002a50| 73 72 2f 61 64 6d 2f 6c | 77 2e 61 63 63 74 2f 6c |sr/adm/l|w.acct/l|
|00002a60| 77 31 3a 5c 0a 09 3a 74 | 63 3d 6c 77 2d 67 65 6e |w1:\..:t|c=lw-gen|
|00002a70| 65 72 69 63 3a 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |eric:.--|--------|
|00002a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 52 6f 6e 20 48 69 |--------|-.Ron Hi|
|00002a90| 74 63 68 65 6e 73 09 55 | 6e 69 76 65 72 73 69 74 |tchens.U|niversit|
|00002aa0| 79 20 6f 66 20 54 65 78 | 61 73 20 61 74 20 41 75 |y of Tex|as at Au|
|00002ab0| 73 74 69 6e 2c 20 43 6f | 6d 70 75 74 65 72 20 53 |stin, Co|mputer S|
|00002ac0| 63 69 65 6e 63 65 0a 68 | 69 74 63 68 65 6e 73 40 |cience.h|itchens@|
|00002ad0| 75 6f 2e 63 73 2e 75 74 | 65 78 61 73 2e 65 64 75 |uo.cs.ut|exas.edu|
|00002ae0| 0a 68 69 74 63 68 65 6e | 73 40 73 61 6c 6c 79 2e |.hitchen|s@sally.|
|00002af0| 55 55 43 50 0a 71 75 69 | 72 65 20 61 6e 79 74 68 |UUCP.qui|re anyth|
|00002b00| 69 6e 67 20 73 70 65 63 | 69 61 6c 0a 09 20 20 20 |ing spec|ial.. |
|00002b10| 62 65 20 64 6f 6e 65 20 | 6f 6e 20 74 68 65 20 75 |be done |on the u|
|00002b20| 6e 69 78 20 73 79 73 74 | 65 6d 2e 20 20 54 68 65 |nix syst|em. The|
|00002b30| 20 64 72 61 77 62 61 63 | 6b 73 20 61 72 65 20 74 | drawbac|ks are t|
|00002b40| 68 61 74 20 61 20 63 75 | 72 72 65 6e 74 0a 09 20 |hat a cu|rrent.. |
|00002b50| 20 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 6c 61 | copy o|f the la|
|00002b60| 73 65 72 2d 70 72 65 70 | 20 6d 75 73 74 20 62 65 |ser-prep| must be|
|00002b70| 20 70 72 65 73 65 6e 74 | 20 6f 6e 20 65 76 65 72 | present| on ever|
|00002b80| 79 20 73 79 73 74 65 6d | 20 74 68 61 74 20 6d 69 |y system| that mi|
|00002b90| 67 68 74 0a 09 20 20 20 | 73 70 6f 6f 6c 20 61 20 |ght.. |spool a |
|00002ba0| 6a 6f 62 2c 20 74 68 61 | 74 20 75 73 65 72 73 20 |job, tha|t users |
|00002bb0| 6b 6e 6f 77 20 77 68 65 | 72 65 20 69 74 20 69 73 |know whe|re it is|
|00002bc0| 2c 20 61 6e 64 20 74 68 | 61 74 20 74 68 65 79 20 |, and th|at they |
|00002bd0| 6b 6e 6f 77 0a 09 20 20 | 20 74 68 65 20 70 72 6f |know.. | the pro|
|00002be0| 70 65 72 20 69 6e 63 61 | 6e 74 61 74 69 6f 6e 73 |per inca|ntations|
|00002bf0| 2e 20 20 41 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |. A she|ll scrip|
|00002c00| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00002c10| 73 63 72 69 70 74 2f 70 | 61 69 6e 74 70 73 2e 63 |script/p|aintps.c|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 32 |.... 6|64 . 2|
|00002c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002c80| 20 20 32 33 35 35 37 20 | 20 34 34 30 33 36 31 37 | 23557 | 4403617|
|00002c90| 34 34 37 20 20 31 32 34 | 31 36 00 20 00 00 00 00 |447 124|16. ....|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00002e10| 74 69 63 09 63 68 61 72 | 20 73 63 63 73 69 64 5b |tic.char| sccsid[|
|00002e20| 5d 20 3d 20 22 40 28 23 | 29 70 61 69 6e 74 70 73 |] = "@(#|)paintps|
|00002e30| 2e 63 09 31 2e 37 20 36 | 2f 31 31 2f 38 36 20 28 |.c.1.7 6|/11/86 (|
|00002e40| 55 54 29 22 3b 0a 23 65 | 6e 64 69 66 0a 0a 2f 2a |UT)";.#e|ndif../*|
|00002e50| 0a 20 2a 20 70 61 69 6e | 74 70 73 20 2d 2d 20 43 |. * pain|tps -- C|
|00002e60| 6f 6e 76 65 72 74 20 4d | 61 63 50 61 69 6e 74 20 |onvert M|acPaint |
|00002e70| 64 6f 63 75 6d 65 6e 74 | 20 74 6f 20 50 6f 73 74 |document| to Post|
|00002e80| 53 63 72 69 70 74 20 64 | 6f 63 75 6d 65 6e 74 20 |Script d|ocument |
|00002e90| 0a 20 2a 20 0a 20 2a 20 | 42 72 69 61 6e 20 48 2e |. * . * |Brian H.|
|00002ea0| 20 50 6f 77 65 6c 6c 2c | 20 55 6e 69 76 65 72 73 | Powell,| Univers|
|00002eb0| 69 74 79 20 6f 66 20 54 | 65 78 61 73 20 61 74 20 |ity of T|exas at |
|00002ec0| 41 75 73 74 69 6e 0a 20 | 2a 09 62 72 69 61 6e 40 |Austin. |*.brian@|
|00002ed0| 73 61 6c 6c 79 2e 55 54 | 45 58 41 53 2e 45 44 55 |sally.UT|EXAS.EDU|
|00002ee0| 0a 20 2a 09 62 72 69 61 | 6e 40 75 74 2d 73 61 6c |. *.bria|n@ut-sal|
|00002ef0| 6c 79 2e 55 55 43 50 0a | 20 2a 09 43 53 2e 50 6f |ly.UUCP.| *.CS.Po|
|00002f00| 77 65 6c 6c 40 72 32 30 | 2e 55 54 45 58 41 53 2e |well@r20|.UTEXAS.|
|00002f10| 45 44 55 0a 20 2a 0a 20 | 2a 20 54 68 69 73 20 70 |EDU. *. |* This p|
|00002f20| 72 6f 67 72 61 6d 20 6d | 61 79 20 62 65 20 75 73 |rogram m|ay be us|
|00002f30| 65 64 20 62 75 74 20 6e | 6f 74 20 73 6f 6c 64 20 |ed but n|ot sold |
|00002f40| 77 69 74 68 6f 75 74 20 | 70 65 72 6d 69 73 73 69 |without |permissi|
|00002f50| 6f 6e 2e 0a 20 2a 0a 20 | 2a 20 4d 6f 64 69 66 69 |on.. *. |* Modifi|
|00002f60| 63 61 74 69 6f 6e 20 48 | 69 73 74 6f 72 79 0a 20 |cation H|istory. |
|00002f70| 2a 20 09 42 48 50 09 37 | 2f 32 35 2f 38 35 09 43 |* .BHP.7|/25/85.C|
|00002f80| 72 65 61 74 65 64 2e 0a | 20 2a 09 42 48 50 09 37 |reated..| *.BHP.7|
|00002f90| 2f 33 31 2f 38 35 09 4f | 70 74 69 6d 69 7a 65 64 |/31/85.O|ptimized|
|00002fa0| 20 6f 75 74 70 75 74 20 | 72 6f 75 74 69 6e 65 73 | output |routines|
|00002fb0| 20 66 6f 72 20 65 78 65 | 63 75 74 69 6f 6e 20 73 | for exe|cution s|
|00002fc0| 70 65 65 64 2e 0a 20 2a | 09 42 48 50 09 34 2f 32 |peed.. *|.BHP.4/2|
|00002fd0| 32 2f 38 36 09 41 64 64 | 65 64 20 2d 50 20 6f 70 |2/86.Add|ed -P op|
|00002fe0| 74 69 6f 6e 2c 20 65 78 | 74 72 61 63 74 65 64 20 |tion, ex|tracted |
|00002ff0| 73 70 6f 6f 6c 20 63 6f | 6d 6d 61 6e 64 20 74 6f |spool co|mmand to|
|00003000| 20 4d 61 6b 65 66 69 6c | 65 2e 0a 20 2a 09 42 48 | Makefil|e.. *.BH|
|00003010| 50 09 36 2f 20 33 2f 38 | 36 20 46 69 78 65 64 20 |P.6/ 3/8|6 Fixed |
|00003020| 62 75 67 20 63 61 75 73 | 69 6e 67 20 28 72 61 72 |bug caus|ing (rar|
|00003030| 65 29 20 73 6d 61 6c 6c | 20 77 68 69 74 65 20 67 |e) small| white g|
|00003040| 61 70 73 20 62 65 74 77 | 65 65 6e 0a 20 2a 09 09 |aps betw|een. *..|
|00003050| 09 62 69 74 6d 61 70 73 | 2e 0a 20 2a 2f 0a 0a 23 |.bitmaps|.. */..#|
|00003060| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00003070| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 63 74 79 70 |>.#inclu|de <ctyp|
|00003080| 65 2e 68 3e 0a 0a 23 64 | 65 66 69 6e 65 20 46 41 |e.h>..#d|efine FA|
|00003090| 4c 53 45 20 30 0a 23 64 | 65 66 69 6e 65 20 54 52 |LSE 0.#d|efine TR|
|000030a0| 55 45 20 20 28 2d 31 29 | 0a 0a 23 64 65 66 69 6e |UE (-1)|..#defin|
|000030b0| 65 20 4d 41 43 50 41 49 | 4e 54 5f 48 44 52 53 49 |e MACPAI|NT_HDRSI|
|000030c0| 5a 45 09 35 31 32 0a 23 | 64 65 66 69 6e 65 20 4d |ZE.512.#|define M|
|000030d0| 41 43 52 41 53 54 45 52 | 5f 42 49 54 57 49 44 54 |ACRASTER|_BITWIDT|
|000030e0| 48 09 35 37 36 0a 23 64 | 65 66 69 6e 65 09 4d 41 |H.576.#d|efine.MA|
|000030f0| 43 50 41 49 4e 54 5f 42 | 49 54 48 45 49 47 48 54 |CPAINT_B|ITHEIGHT|
|00003100| 09 37 32 30 0a 0a 09 09 | 09 2f 2a 20 44 45 46 41 |.720....|./* DEFA|
|00003110| 55 4c 54 20 4f 50 54 49 | 4f 4e 53 20 2a 2f 0a 69 |ULT OPTI|ONS */.i|
|00003120| 6e 74 20 73 6d 6f 6f 74 | 68 20 3d 20 54 52 55 45 |nt smoot|h = TRUE|
|00003130| 3b 09 09 2f 2a 20 73 6d | 6f 6f 74 68 69 6e 67 20 |;../* sm|oothing |
|00003140| 65 6e 61 62 6c 65 64 20 | 2a 2f 0a 69 6e 74 20 63 |enabled |*/.int c|
|00003150| 6f 70 69 65 73 20 3d 20 | 31 3b 09 09 09 2f 2a 20 |opies = |1;.../* |
|00003160| 6f 6e 65 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |one copy| of the |
|00003170| 70 61 69 6e 74 69 6e 67 | 20 2a 2f 0a 63 68 61 72 |painting| */.char|
|00003180| 20 2a 70 72 69 6e 74 65 | 72 6e 61 6d 65 20 3d 20 | *printe|rname = |
|00003190| 4e 55 4c 4c 3b 09 2f 2a | 20 64 65 66 61 75 6c 74 |NULL;./*| default|
|000031a0| 20 70 72 69 6e 74 65 72 | 20 2a 2f 0a 0a 63 68 61 | printer| */..cha|
|000031b0| 72 20 68 65 78 62 75 66 | 66 65 72 5b 4d 41 43 50 |r hexbuf|fer[MACP|
|000031c0| 41 49 4e 54 5f 42 49 54 | 48 45 49 47 48 54 5d 5b |AINT_BIT|HEIGHT][|
|000031d0| 4d 41 43 52 41 53 54 45 | 52 5f 42 49 54 57 49 44 |MACRASTE|R_BITWID|
|000031e0| 54 48 2f 38 5d 3b 0a 69 | 6e 74 20 62 6c 61 6e 6b |TH/8];.i|nt blank|
|000031f0| 5b 4d 41 43 50 41 49 4e | 54 5f 42 49 54 48 45 49 |[MACPAIN|T_BITHEI|
|00003200| 47 48 54 20 2b 20 34 5d | 3b 09 2f 2a 20 77 65 20 |GHT + 4]|;./* we |
|00003210| 6e 65 65 64 20 74 68 65 | 20 66 6f 75 72 20 65 78 |need the| four ex|
|00003220| 74 72 61 20 62 6c 61 6e | 6b 20 2a 2f 0a 09 09 09 |tra blan|k */....|
|00003230| 09 09 2f 2a 20 6c 69 6e | 65 73 20 61 73 20 66 69 |../* lin|es as fi|
|00003240| 6c 6c 65 72 20 66 6f 72 | 20 6f 75 74 70 75 74 20 |ller for| output |
|00003250| 2a 2f 0a 0a 63 68 61 72 | 20 75 73 61 67 65 5b 5d |*/..char| usage[]|
|00003260| 20 3d 20 22 70 61 69 6e | 74 70 73 20 5b 2d 64 5d | = "pain|tps [-d]|
|00003270| 20 5b 2d 23 3c 6e 3e 5d | 20 5b 2d 50 3c 70 72 69 | [-#<n>]| [-P<pri|
|00003280| 6e 74 65 72 3e 5d 20 66 | 69 6c 65 22 3b 0a 0a 6d |nter>] f|ile";..m|
|00003290| 61 69 6e 28 61 63 2c 20 | 61 76 29 0a 63 68 61 72 |ain(ac, |av).char|
|000032a0| 20 2a 2a 61 76 3b 0a 7b | 0a 20 20 20 61 63 2d 2d | **av;.{|. ac--|
|000032b0| 3b 20 61 76 2b 2b 3b 0a | 20 20 20 77 68 69 6c 65 |; av++;.| while|
|000032c0| 20 28 61 63 20 26 26 20 | 28 61 76 5b 30 5d 5b 30 | (ac && |(av[0][0|
|000032d0| 5d 20 3d 3d 20 27 2d 27 | 29 20 26 26 20 61 76 5b |] == '-'|) && av[|
|000032e0| 30 5d 5b 31 5d 29 20 7b | 0a 20 20 20 20 20 20 73 |0][1]) {|. s|
|000032f0| 77 69 74 63 68 20 28 61 | 76 5b 30 5d 5b 31 5d 29 |witch (a|v[0][1])|
|00003300| 20 7b 0a 09 20 63 61 73 | 65 20 27 64 27 3a 09 09 | {.. cas|e 'd':..|
|00003310| 09 2f 2a 20 22 64 72 61 | 66 74 22 20 6f 70 74 69 |./* "dra|ft" opti|
|00003320| 6f 6e 20 2a 2f 0a 09 20 | 20 20 20 73 6d 6f 6f 74 |on */.. | smoot|
|00003330| 68 20 3d 20 46 41 4c 53 | 45 3b 0a 09 20 20 20 20 |h = FALS|E;.. |
|00003340| 62 72 65 61 6b 3b 0a 0a | 09 20 63 61 73 65 20 27 |break;..|. case '|
|00003350| 23 27 3a 09 09 09 2f 2a | 20 6e 75 6d 62 65 72 20 |#':.../*| number |
|00003360| 6f 66 20 63 6f 70 69 65 | 73 20 2a 2f 0a 09 20 20 |of copie|s */.. |
|00003370| 20 20 63 6f 70 69 65 73 | 20 3d 20 61 74 6f 69 20 | copies| = atoi |
|00003380| 28 26 61 76 5b 30 5d 5b | 32 5d 29 3b 0a 09 20 20 |(&av[0][|2]);.. |
|00003390| 20 20 62 72 65 61 6b 3b | 0a 0a 09 20 63 61 73 65 | break;|... case|
|000033a0| 20 27 50 27 3a 09 09 09 | 2f 2a 20 70 72 69 6e 74 | 'P':...|/* print|
|000033b0| 65 72 20 6e 61 6d 65 20 | 2a 2f 0a 09 20 20 20 20 |er name |*/.. |
|000033c0| 70 72 69 6e 74 65 72 6e | 61 6d 65 20 3d 20 61 76 |printern|ame = av|
|000033d0| 5b 30 5d 3b 0a 09 20 20 | 20 20 62 72 65 61 6b 3b |[0];.. | break;|
|000033e0| 0a 0a 09 20 64 65 66 61 | 75 6c 74 3a 0a 09 20 20 |... defa|ult:.. |
|000033f0| 20 20 67 6f 74 6f 20 62 | 61 64 5f 75 73 61 67 65 | goto b|ad_usage|
|00003400| 3b 0a 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 |;. |}. |
|00003410| 61 63 2d 2d 3b 20 61 76 | 2b 2b 3b 0a 20 20 20 7d |ac--; av|++;. }|
|00003420| 0a 20 20 20 6f 70 65 6e | 5f 6f 75 74 70 75 74 28 |. open|_output(|
|00003430| 29 3b 09 09 2f 2a 20 61 | 6c 73 6f 20 73 74 61 72 |);../* a|lso star|
|00003440| 74 73 20 73 70 6f 6f 6c | 69 6e 67 20 74 6f 20 74 |ts spool|ing to t|
|00003450| 68 65 20 73 70 6f 6f 6c | 20 63 6d 64 2e 20 2a 2f |he spool| cmd. */|
|00003460| 0a 20 20 20 70 61 69 6e | 74 66 69 6c 74 65 72 28 |. pain|tfilter(|
|00003470| 61 76 5b 30 5d 29 3b 0a | 20 20 20 65 78 69 74 28 |av[0]);.| exit(|
|00003480| 30 29 3b 0a 0a 62 61 64 | 5f 75 73 61 67 65 3a 0a |0);..bad|_usage:.|
|00003490| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|000034a0| 72 2c 20 22 75 73 61 67 | 65 3a 20 25 73 5c 6e 22 |r, "usag|e: %s\n"|
|000034b0| 2c 20 75 73 61 67 65 29 | 3b 0a 20 20 20 65 78 69 |, usage)|;. exi|
|000034c0| 74 28 31 29 3b 0a 7d 0a | 0a 2f 2a 20 63 6f 6e 76 |t(1);.}.|./* conv|
|000034d0| 65 72 74 20 66 72 6f 6d | 20 4d 61 63 50 61 69 6e |ert from| MacPain|
|000034e0| 74 20 74 6f 20 50 6f 73 | 74 53 63 72 69 70 74 20 |t to Pos|tScript |
|000034f0| 2a 2f 0a 0a 70 61 69 6e | 74 66 69 6c 74 65 72 28 |*/..pain|tfilter(|
|00003500| 6e 61 6d 65 29 0a 63 68 | 61 72 20 2a 6e 61 6d 65 |name).ch|ar *name|
|00003510| 3b 0a 7b 0a 20 20 20 72 | 65 67 69 73 74 65 72 20 |;.{. r|egister |
|00003520| 69 6e 74 20 78 2c 20 79 | 3b 0a 20 20 20 46 49 4c |int x, y|;. FIL|
|00003530| 45 20 2a 66 70 3b 0a 20 | 20 20 72 65 67 69 73 74 |E *fp;. | regist|
|00003540| 65 72 20 69 6e 74 20 63 | 3b 0a 20 20 20 69 6e 74 |er int c|;. int|
|00003550| 20 62 6c 61 6e 6b 6c 69 | 6e 65 3b 0a 0a 20 20 20 | blankli|ne;.. |
|00003560| 66 70 20 3d 20 66 6f 70 | 65 6e 28 6e 61 6d 65 2c |fp = fop|en(name,|
|00003570| 20 22 72 22 29 3b 09 09 | 2f 2a 20 6f 70 65 6e 20 | "r");..|/* open |
|00003580| 74 68 65 20 4d 61 63 50 | 61 69 6e 74 20 66 69 6c |the MacP|aint fil|
|00003590| 65 2e 20 2a 2f 0a 20 20 | 20 69 66 20 28 66 70 20 |e. */. | if (fp |
|000035a0| 3d 3d 20 4e 55 4c 4c 29 | 20 7b 0a 20 20 20 20 20 |== NULL)| {. |
|000035b0| 20 70 65 72 72 6f 72 28 | 6e 61 6d 65 29 3b 0a 20 | perror(|name);. |
|000035c0| 20 20 20 20 20 72 65 74 | 75 72 6e 3b 0a 20 20 20 | ret|urn;. |
|000035d0| 7d 0a 0a 20 20 20 28 76 | 6f 69 64 29 20 66 73 65 |}.. (v|oid) fse|
|000035e0| 65 6b 28 66 70 2c 20 28 | 6c 6f 6e 67 29 4d 41 43 |ek(fp, (|long)MAC|
|000035f0| 50 41 49 4e 54 5f 48 44 | 52 53 49 5a 45 2c 20 30 |PAINT_HD|RSIZE, 0|
|00003600| 29 3b 09 2f 2a 20 73 6b | 69 70 20 74 68 65 20 4d |);./* sk|ip the M|
|00003610| 61 63 50 61 69 6e 74 20 | 70 61 74 74 65 72 6e 73 |acPaint |patterns|
|00003620| 20 2a 2f 0a 0a 20 20 20 | 62 65 67 69 6e 5f 69 6d | */.. |begin_im|
|00003630| 61 67 65 28 29 3b 09 09 | 09 09 2f 2a 20 70 72 69 |age();..|../* pri|
|00003640| 6e 74 20 70 6f 73 74 73 | 63 72 69 70 74 20 68 65 |nt posts|cript he|
|00003650| 61 64 65 72 20 2a 2f 0a | 0a 2f 2a 20 20 57 65 20 |ader */.|./* We |
|00003660| 73 6b 69 70 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |skip hor|izontal |
|00003670| 77 68 69 74 65 73 70 61 | 63 65 2e 20 20 22 62 6c |whitespa|ce. "bl|
|00003680| 61 6e 6b 6c 69 6e 65 22 | 20 69 73 20 75 73 65 64 |ankline"| is used|
|00003690| 20 74 6f 20 64 69 61 67 | 6e 6f 73 65 20 74 68 69 | to diag|nose thi|
|000036a0| 73 0a 20 20 20 20 66 6f | 72 20 74 68 65 20 63 75 |s. fo|r the cu|
|000036b0| 72 72 65 6e 74 20 6c 69 | 6e 65 2e 20 20 54 68 65 |rrent li|ne. The|
|000036c0| 20 62 6f 6f 6c 65 61 6e | 20 61 72 72 61 79 20 22 | boolean| array "|
|000036d0| 62 6c 61 6e 6b 5b 79 5d | 22 20 73 68 6f 77 73 20 |blank[y]|" shows |
|000036e0| 77 68 69 63 68 20 6c 69 | 6e 65 73 0a 20 20 20 20 |which li|nes. |
|000036f0| 69 6e 20 74 68 65 20 65 | 6e 74 69 72 65 20 70 61 |in the e|ntire pa|
|00003700| 69 6e 74 69 6e 67 20 61 | 72 65 20 62 6c 61 6e 6b |inting a|re blank|
|00003710| 2e 20 2a 2f 0a 0a 20 20 | 20 66 6f 72 20 28 79 20 |. */.. | for (y |
|00003720| 3d 20 30 3b 20 79 20 3c | 20 4d 41 43 50 41 49 4e |= 0; y <| MACPAIN|
|00003730| 54 5f 42 49 54 48 45 49 | 47 48 54 3b 20 79 2b 2b |T_BITHEI|GHT; y++|
|00003740| 29 20 7b 0a 09 09 09 09 | 2f 2a 20 66 6f 72 20 65 |) {.....|/* for e|
|00003750| 61 63 68 20 70 69 78 65 | 6c 20 72 6f 77 2e 2e 2e |ach pixe|l row...|
|00003760| 20 2a 2f 0a 20 20 20 20 | 20 20 62 6c 61 6e 6b 6c | */. | blankl|
|00003770| 69 6e 65 20 3d 20 54 52 | 55 45 3b 0a 20 20 20 20 |ine = TR|UE;. |
|00003780| 20 20 66 6f 72 20 28 78 | 20 3d 20 30 3b 20 78 20 | for (x| = 0; x |
|00003790| 3c 20 4d 41 43 52 41 53 | 54 45 52 5f 42 49 54 57 |< MACRAS|TER_BITW|
|000037a0| 49 44 54 48 2f 38 3b 20 | 78 2b 2b 29 20 7b 0a 0a |IDTH/8; |x++) {..|
|000037b0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 28 63 20 | | if ((c |
|000037c0| 3d 20 67 65 74 62 69 74 | 73 28 66 70 29 29 20 3d |= getbit|s(fp)) =|
|000037d0| 3d 20 45 4f 46 29 20 7b | 0a 20 20 20 20 20 20 20 |= EOF) {|. |
|000037e0| 20 20 20 20 20 66 70 72 | 69 6e 74 66 28 73 74 64 | fpr|intf(std|
|000037f0| 65 72 72 2c 20 22 55 6e | 65 78 70 65 63 74 65 64 |err, "Un|expected|
|00003800| 20 45 4f 46 2c 20 73 74 | 6f 70 70 65 64 2e 5c 6e | EOF, st|opped.\n|
|00003810| 22 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |");. | |
|00003820| 66 6f 72 20 28 20 3b 20 | 79 20 3c 20 4d 41 43 50 |for ( ; |y < MACP|
|00003830| 41 49 4e 54 5f 42 49 54 | 48 45 49 47 48 54 3b 20 |AINT_BIT|HEIGHT; |
|00003840| 79 2b 2b 29 09 09 2f 2a | 20 4d 61 72 6b 20 74 68 |y++)../*| Mark th|
|00003850| 65 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 20 20 20 |e */. | |
|00003860| 20 20 20 20 62 6c 61 6e | 6b 5b 79 5d 20 3d 20 54 | blan|k[y] = T|
|00003870| 52 55 45 3b 09 09 09 09 | 2f 2a 20 72 65 73 74 20 |RUE;....|/* rest |
|00003880| 6f 66 20 74 68 65 20 70 | 61 67 65 20 2a 2f 0a 20 |of the p|age */. |
|00003890| 20 20 20 20 20 20 20 20 | 20 20 20 62 6c 61 6e 6b | | blank|
|000038a0| 6c 69 6e 65 20 3d 20 54 | 52 55 45 3b 09 09 20 20 |line = T|RUE;.. |
|000038b0| 20 20 20 20 20 2f 2a 20 | 62 6c 61 6e 6b 2c 20 70 | /* |blank, p|
|000038c0| 72 69 6e 74 20 69 74 20 | 61 6e 64 20 71 75 69 74 |rint it |and quit|
|000038d0| 2e 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 20 20 20 |. */. | |
|000038e0| 20 62 72 65 61 6b 3b 0a | 0a 20 20 20 20 20 20 20 | break;.|. |
|000038f0| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 20 20 20 20 20 | } else| {. |
|00003900| 20 20 20 20 20 20 20 68 | 65 78 62 75 66 66 65 72 | h|exbuffer|
|00003910| 5b 79 5d 5b 78 5d 20 3d | 20 28 63 68 61 72 29 20 |[y][x] =| (char) |
|00003920| 63 3b 09 20 20 2f 2a 20 | 65 6c 73 65 20 72 65 63 |c;. /* |else rec|
|00003930| 6f 72 64 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |ord the |characte|
|00003940| 72 20 61 6e 64 20 2a 2f | 0a 20 20 20 20 20 20 20 |r and */|. |
|00003950| 20 20 20 20 20 69 66 20 | 28 63 29 09 09 09 20 20 | if |(c)... |
|00003960| 2f 2a 20 6d 61 72 6b 20 | 74 68 65 20 6c 69 6e 65 |/* mark |the line|
|00003970| 20 61 73 20 6e 6f 6e 2d | 62 6c 61 6e 6b 2e 20 2a | as non-|blank. *|
|00003980| 2f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/. | |
|00003990| 20 62 6c 61 6e 6b 6c 69 | 6e 65 20 3d 20 46 41 4c | blankli|ne = FAL|
|000039a0| 53 45 3b 0a 20 20 20 20 | 20 20 20 20 20 7d 0a 20 |SE;. | }. |
|000039b0| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 62 6c 61 | }. | bla|
|000039c0| 6e 6b 5b 79 5d 20 3d 20 | 62 6c 61 6e 6b 6c 69 6e |nk[y] = |blanklin|
|000039d0| 65 3b 0a 20 20 20 7d 0a | 20 20 20 62 6c 61 6e 6b |e;. }.| blank|
|000039e0| 5b 79 2b 2b 5d 20 3d 20 | 54 52 55 45 3b 09 09 2f |[y++] = |TRUE;../|
|000039f0| 2a 20 70 75 74 20 66 6f | 75 72 20 62 6c 61 6e 6b |* put fo|ur blank|
|00003a00| 20 6c 69 6e 65 73 20 61 | 74 20 65 6e 64 20 2a 2f | lines a|t end */|
|00003a10| 0a 20 20 20 62 6c 61 6e | 6b 5b 79 2b 2b 5d 20 3d |. blan|k[y++] =|
|00003a20| 20 54 52 55 45 3b 09 09 | 2f 2a 20 28 49 20 74 68 | TRUE;..|/* (I th|
|00003a30| 69 6e 6b 20 74 68 69 73 | 20 69 73 20 6e 65 65 64 |ink this| is need|
|00003a40| 65 64 20 66 6f 72 20 73 | 6d 6f 6f 74 68 69 6e 67 |ed for s|moothing|
|00003a50| 2e 29 20 2a 2f 0a 20 20 | 20 62 6c 61 6e 6b 5b 79 |.) */. | blank[y|
|00003a60| 2b 2b 5d 20 3d 20 54 52 | 55 45 3b 0a 20 20 20 62 |++] = TR|UE;. b|
|00003a70| 6c 61 6e 6b 5b 79 5d 20 | 3d 20 54 52 55 45 3b 0a |lank[y] |= TRUE;.|
|00003a80| 20 20 20 64 75 6d 70 5f | 62 75 66 66 65 72 28 68 | dump_|buffer(h|
|00003a90| 65 78 62 75 66 66 65 72 | 2c 20 62 6c 61 6e 6b 29 |exbuffer|, blank)|
|00003aa0| 3b 09 2f 2a 20 70 72 69 | 6e 74 20 74 68 65 20 62 |;./* pri|nt the b|
|00003ab0| 75 66 66 65 72 20 28 65 | 6e 74 69 72 65 20 70 61 |uffer (e|ntire pa|
|00003ac0| 67 65 29 20 2a 2f 0a 0a | 20 20 20 65 6e 64 5f 69 |ge) */..| end_i|
|00003ad0| 6d 61 67 28 63 6f 70 69 | 65 73 29 3b 09 09 2f 2a |mag(copi|es);../*|
|00003ae0| 20 70 72 69 6e 74 20 74 | 68 65 20 70 6f 73 74 73 | print t|he posts|
|00003af0| 63 72 69 70 74 20 74 72 | 61 69 6c 65 72 2e 20 2a |cript tr|ailer. *|
|00003b00| 2f 0a 20 20 20 28 76 6f | 69 64 29 20 66 63 6c 6f |/. (vo|id) fclo|
|00003b10| 73 65 28 66 70 29 3b 09 | 09 2f 2a 20 63 6c 6f 73 |se(fp);.|./* clos|
|00003b20| 65 20 74 68 65 20 66 69 | 6c 65 2e 20 2a 2f 0a 7d |e the fi|le. */.}|
|00003b30| 0a 0a 2f 2a 20 6d 61 63 | 70 61 69 6e 74 20 69 6e |../* mac|paint in|
|00003b40| 70 75 74 20 72 6f 75 74 | 69 6e 65 73 20 2a 2f 0a |put rout|ines */.|
|00003b50| 0a 67 65 74 62 69 74 73 | 28 66 70 29 09 09 2f 2a |.getbits|(fp)../*|
|00003b60| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 73 63 | this ro|utine sc|
|00003b70| 61 72 66 65 64 20 66 72 | 6f 6d 20 70 61 69 6e 74 |arfed fr|om paint|
|00003b80| 69 6d 70 2e 20 2a 2f 0a | 46 49 4c 45 20 2a 66 70 |imp. */.|FILE *fp|
|00003b90| 3b 0a 7b 0a 2f 2a 20 54 | 68 69 73 20 72 6f 75 74 |;.{./* T|his rout|
|00003ba0| 69 6e 65 20 65 78 70 61 | 6e 64 73 20 74 68 65 20 |ine expa|nds the |
|00003bb0| 50 61 63 6b 42 69 74 73 | 20 65 6e 63 6f 64 65 64 |PackBits| encoded|
|00003bc0| 20 4d 61 63 50 61 69 6e | 74 20 66 69 6c 65 2c 0a | MacPain|t file,.|
|00003bd0| 20 20 20 64 65 6c 69 76 | 65 72 69 6e 67 20 6f 6e | deliv|ering on|
|00003be0| 65 20 62 79 74 65 20 70 | 65 72 20 63 61 6c 6c 2e |e byte p|er call.|
|00003bf0| 0a 2a 2f 0a 0a 20 20 20 | 73 74 61 74 69 63 20 69 |.*/.. |static i|
|00003c00| 6e 74 20 63 6f 75 6e 74 | 2c 20 72 65 70 2c 20 63 |nt count|, rep, c|
|00003c10| 68 72 3b 0a 20 20 20 69 | 6e 74 20 63 3b 0a 0a 20 |hr;. i|nt c;.. |
|00003c20| 20 20 69 66 20 28 72 65 | 70 29 20 7b 09 09 2f 2a | if (re|p) {../*|
|00003c30| 20 69 66 20 77 65 20 61 | 72 65 20 72 65 70 65 61 | if we a|re repea|
|00003c40| 74 69 6e 67 20 61 20 70 | 72 65 76 69 6f 75 73 20 |ting a p|revious |
|00003c50| 63 68 61 72 61 63 74 65 | 72 2c 20 2a 2f 0a 20 20 |characte|r, */. |
|00003c60| 20 20 20 20 72 65 70 2d | 2d 3b 09 09 2f 2a 20 72 | rep-|-;../* r|
|00003c70| 65 64 75 63 65 20 74 68 | 65 20 72 65 70 65 61 74 |educe th|e repeat|
|00003c80| 20 63 6f 75 6e 74 20 61 | 6e 64 20 72 65 74 75 72 | count a|nd retur|
|00003c90| 6e 20 74 68 65 20 63 68 | 61 72 2e 20 2a 2f 0a 20 |n the ch|ar. */. |
|00003ca0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 63 68 72 3b | ret|urn chr;|
|00003cb0| 0a 20 20 20 7d 0a 20 20 | 20 69 66 20 28 63 6f 75 |. }. | if (cou|
|00003cc0| 6e 74 29 20 7b 09 09 2f | 2a 20 69 66 20 77 65 20 |nt) {../|* if we |
|00003cd0| 61 72 65 20 69 6e 20 61 | 6e 20 75 6e 72 65 70 65 |are in a|n unrepe|
|00003ce0| 61 74 65 64 20 73 65 63 | 74 69 6f 6e 2c 20 72 65 |ated sec|tion, re|
|00003cf0| 64 75 63 65 20 2a 2f 0a | 20 20 20 20 20 20 63 6f |duce */.| co|
|00003d00| 75 6e 74 2d 2d 3b 09 09 | 2f 2a 20 74 68 65 20 63 |unt--;..|/* the c|
|00003d10| 6f 75 6e 74 20 61 6e 64 | 20 72 65 74 75 72 6e 20 |ount and| return |
|00003d20| 6e 65 78 74 20 63 68 61 | 72 20 66 72 6f 6d 20 74 |next cha|r from t|
|00003d30| 68 65 20 66 69 6c 65 2e | 20 2a 2f 0a 20 20 20 20 |he file.| */. |
|00003d40| 20 20 72 65 74 75 72 6e | 20 67 65 74 63 28 66 70 | return| getc(fp|
|00003d50| 29 3b 0a 20 20 20 7d 0a | 20 20 20 63 20 3d 20 67 |);. }.| c = g|
|00003d60| 65 74 63 28 66 70 29 3b | 09 2f 2a 20 6f 74 68 65 |etc(fp);|./* othe|
|00003d70| 72 77 69 73 65 2c 20 67 | 65 74 20 74 68 65 20 6e |rwise, g|et the n|
|00003d80| 65 78 74 20 72 65 70 65 | 61 74 20 63 6f 75 6e 74 |ext repe|at count|
|00003d90| 2e 20 20 2a 2f 0a 20 20 | 20 69 66 20 28 63 20 26 |. */. | if (c &|
|00003da0| 20 30 78 38 30 29 20 7b | 09 2f 2a 20 69 66 20 6e | 0x80) {|./* if n|
|00003db0| 65 67 61 74 69 76 65 2c | 20 72 65 70 65 61 74 20 |egative,| repeat |
|00003dc0| 74 68 65 20 6e 65 78 74 | 20 2a 2f 0a 20 20 20 20 |the next| */. |
|00003dd0| 20 20 72 65 70 20 3d 20 | 30 78 31 30 30 20 2d 20 | rep = |0x100 - |
|00003de0| 63 3b 09 2f 2a 20 62 79 | 74 65 20 28 32 27 73 20 |c;./* by|te (2's |
|00003df0| 63 6f 6d 70 28 63 29 2b | 31 29 20 74 69 6d 65 73 |comp(c)+|1) times|
|00003e00| 2e 20 2a 2f 0a 20 20 20 | 20 20 20 63 68 72 20 3d |. */. | chr =|
|00003e10| 20 67 65 74 63 28 66 70 | 29 3b 09 09 2f 2a 20 74 | getc(fp|);../* t|
|00003e20| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 74 6f 20 |he chara|cter to |
|00003e30| 72 65 70 65 61 74 20 2a | 2f 0a 20 20 20 20 20 20 |repeat *|/. |
|00003e40| 72 65 74 75 72 6e 20 63 | 68 72 3b 0a 20 20 20 7d |return c|hr;. }|
|00003e50| 0a 20 20 20 65 6c 73 65 | 20 7b 09 09 2f 2a 20 69 |. else| {../* i|
|00003e60| 66 20 72 65 70 65 61 74 | 20 63 6f 75 6e 74 20 69 |f repeat| count i|
|00003e70| 73 20 70 6f 73 69 74 69 | 76 65 2c 20 6e 65 78 74 |s positi|ve, next|
|00003e80| 20 22 63 6f 75 6e 74 22 | 20 62 79 74 65 73 20 2a | "count"| bytes *|
|00003e90| 2f 0a 20 20 20 20 20 20 | 63 6f 75 6e 74 20 3d 20 |/. |count = |
|00003ea0| 63 3b 20 20 20 09 2f 2a | 20 61 72 65 20 75 6e 65 |c; ./*| are une|
|00003eb0| 6e 63 6f 64 65 64 2e 20 | 20 2a 2f 0a 20 20 20 20 |ncoded. | */. |
|00003ec0| 20 20 72 65 74 75 72 6e | 20 67 65 74 63 28 66 70 | return| getc(fp|
|00003ed0| 29 3b 0a 20 20 20 7d 0a | 7d 0a 0a 2f 2a 20 50 6f |);. }.|}../* Po|
|00003ee0| 73 74 53 63 72 69 70 74 | 20 6f 75 74 70 75 74 20 |stScript| output |
|00003ef0| 72 6f 75 74 69 6e 65 73 | 20 2a 2f 0a 0a 6f 70 65 |routines| */..ope|
|00003f00| 6e 5f 6f 75 74 70 75 74 | 28 29 0a 7b 0a 20 20 20 |n_output|().{. |
|00003f10| 63 68 61 72 20 6c 70 72 | 20 5b 36 34 5d 3b 0a 20 |char lpr| [64];. |
|00003f20| 20 20 46 49 4c 45 20 2a | 70 6f 70 65 6e 28 29 3b | FILE *|popen();|
|00003f30| 0a 0a 2f 2a 20 69 66 20 | 73 74 64 6f 75 74 20 69 |../* if |stdout i|
|00003f40| 73 20 67 6f 69 6e 67 20 | 74 6f 20 74 68 65 20 74 |s going |to the t|
|00003f50| 65 72 6d 69 6e 61 6c 2c | 20 63 61 6c 6c 20 74 68 |erminal,| call th|
|00003f60| 65 20 73 70 6f 6f 6c 20 | 63 6f 6d 6d 61 6e 64 20 |e spool |command |
|00003f70| 74 6f 20 73 70 6f 6f 6c | 20 74 68 65 0a 20 20 20 |to spool| the. |
|00003f80| 6f 75 74 70 75 74 2c 20 | 6f 74 68 65 72 77 69 73 |output, |otherwis|
|00003f90| 65 20 61 73 73 75 6d 65 | 20 69 74 27 73 20 62 65 |e assume| it's be|
|00003fa0| 69 6e 67 20 70 69 70 65 | 64 20 73 6f 6d 65 77 68 |ing pipe|d somewh|
|00003fb0| 65 72 65 20 65 6c 73 65 | 0a 20 20 20 6f 72 20 64 |ere else|. or d|
|00003fc0| 69 72 65 63 74 65 64 20 | 69 6e 74 6f 20 61 20 66 |irected |into a f|
|00003fd0| 69 6c 65 2e 0a 2a 2f 0a | 20 20 20 69 66 20 28 69 |ile..*/.| if (i|
|00003fe0| 73 61 74 74 79 20 28 66 | 69 6c 65 6e 6f 20 28 73 |satty (f|ileno (s|
|00003ff0| 74 64 6f 75 74 29 29 29 | 0a 20 20 20 7b 0a 20 20 |tdout)))|. {. |
|00004000| 20 20 20 20 28 76 6f 69 | 64 29 20 73 70 72 69 6e | (voi|d) sprin|
|00004010| 74 66 20 28 6c 70 72 2c | 20 22 25 73 20 25 73 22 |tf (lpr,| "%s %s"|
|00004020| 2c 20 53 50 4f 4f 4c 43 | 4d 44 2c 0a 09 09 09 70 |, SPOOLC|MD,....p|
|00004030| 72 69 6e 74 65 72 6e 61 | 6d 65 20 3f 20 70 72 69 |rinterna|me ? pri|
|00004040| 6e 74 65 72 6e 61 6d 65 | 20 3a 20 22 22 29 3b 0a |ntername| : "");.|
|00004050| 09 09 2f 2a 20 69 6e 63 | 6c 75 64 65 20 70 72 69 |../* inc|lude pri|
|00004060| 6e 74 65 72 20 6e 61 6d | 65 20 69 66 20 69 74 20 |nter nam|e if it |
|00004070| 77 61 73 20 73 70 65 63 | 69 66 69 65 64 2e 20 20 |was spec|ified. |
|00004080| 2a 2f 0a 0a 09 2f 2a 20 | 64 69 73 63 6f 6e 6e 65 |*/.../* |disconne|
|00004090| 63 74 20 73 74 64 6f 75 | 74 20 66 72 6f 6d 20 74 |ct stdou|t from t|
|000040a0| 68 65 20 74 74 79 20 61 | 6e 64 20 70 69 70 65 20 |he tty a|nd pipe |
|000040b0| 69 74 20 74 6f 20 6c 70 | 72 20 2a 2f 0a 20 20 20 |it to lp|r */. |
|000040c0| 20 20 20 28 76 6f 69 64 | 29 20 66 63 6c 6f 73 65 | (void|) fclose|
|000040d0| 20 28 73 74 64 6f 75 74 | 29 3b 0a 20 20 20 20 20 | (stdout|);. |
|000040e0| 20 69 66 20 28 70 6f 70 | 65 6e 20 28 6c 70 72 2c | if (pop|en (lpr,|
|000040f0| 20 22 77 22 29 20 3d 3d | 20 4e 55 4c 4c 29 20 7b | "w") ==| NULL) {|
|00004100| 0a 20 20 20 20 20 20 20 | 20 20 66 70 72 69 6e 74 |. | fprint|
|00004110| 66 28 73 74 64 65 72 72 | 2c 20 22 25 73 20 66 61 |f(stderr|, "%s fa|
|00004120| 69 6c 65 64 2c 20 67 69 | 76 69 6e 67 20 75 70 2e |iled, gi|ving up.|
|00004130| 5c 6e 22 2c 20 6c 70 72 | 29 3b 0a 20 20 20 20 20 |\n", lpr|);. |
|00004140| 20 20 20 20 65 78 69 74 | 28 32 29 3b 0a 20 20 20 | exit|(2);. |
|00004150| 20 20 20 7d 0a 20 20 20 | 20 20 20 66 70 72 69 6e | }. | fprin|
|00004160| 74 66 28 73 74 64 65 72 | 72 2c 20 22 53 70 6f 6f |tf(stder|r, "Spoo|
|00004170| 6c 69 6e 67 20 74 6f 20 | 27 25 73 27 2e 5c 6e 22 |ling to |'%s'.\n"|
|00004180| 2c 20 6c 70 72 29 3b 0a | 20 20 20 7d 0a 0a 7d 0a |, lpr);.| }..}.|
|00004190| 0a 62 65 67 69 6e 5f 69 | 6d 61 67 65 28 29 09 09 |.begin_i|mage()..|
|000041a0| 2f 2a 20 70 72 69 6e 74 | 20 74 68 65 20 70 6f 73 |/* print| the pos|
|000041b0| 74 73 63 72 69 70 74 20 | 68 65 61 64 65 72 2e 20 |tscript |header. |
|000041c0| 2a 2f 0a 7b 0a 20 20 20 | 70 72 69 6e 74 66 28 22 |*/.{. |printf("|
|000041d0| 25 25 21 5c 6e 22 29 3b | 09 09 2f 2a 20 54 72 61 |%%!\n");|../* Tra|
|000041e0| 6e 53 63 72 69 70 74 20 | 50 6f 73 74 53 63 72 69 |nScript |PostScri|
|000041f0| 70 74 20 66 6c 61 67 20 | 22 25 21 22 20 2a 2f 0a |pt flag |"%!" */.|
|00004200| 20 20 20 70 72 69 6e 74 | 66 28 22 6d 64 20 62 65 | print|f("md be|
|00004210| 67 69 6e 5c 6e 22 29 3b | 09 2f 2a 20 73 74 61 6e |gin\n");|./* stan|
|00004220| 64 61 72 64 20 61 70 70 | 6c 65 20 68 65 61 64 65 |dard app|le heade|
|00004230| 72 20 2a 2f 0a 20 20 20 | 70 72 69 6e 74 66 28 22 |r */. |printf("|
|00004240| 31 33 32 30 20 6f 64 5c | 6e 22 29 3b 0a 20 20 20 |1320 od\|n");. |
|00004250| 70 72 69 6e 74 66 28 22 | 28 3b 20 75 73 65 72 3a |printf("|(; user:|
|00004260| 20 29 6a 6e 5c 6e 22 29 | 3b 0a 20 20 20 70 72 69 | )jn\n")|;. pri|
|00004270| 6e 74 66 28 22 25 25 25 | 25 45 6e 64 50 72 6f 6c |ntf("%%%|%EndProl|
|00004280| 6f 67 5c 6e 22 29 3b 0a | 20 20 20 70 72 69 6e 74 |og\n");.| print|
|00004290| 66 28 22 25 25 25 25 50 | 61 67 65 3a 20 3f 20 3f |f("%%%%P|age: ? ?|
|000042a0| 5c 6e 22 29 3b 0a 20 20 | 20 70 72 69 6e 74 66 28 |\n");. | printf(|
|000042b0| 22 6f 70 5c 6e 22 29 3b | 0a 20 20 20 70 72 69 6e |"op\n");|. prin|
|000042c0| 74 66 28 22 30 20 30 20 | 6d 6f 76 65 74 6f 5c 6e |tf("0 0 |moveto\n|
|000042d0| 22 29 3b 0a 7d 0a 0a 2f | 2a 20 54 68 65 20 72 65 |");.}../|* The re|
|000042e0| 61 73 6f 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ason the| followi|
|000042f0| 6e 67 20 72 6f 75 74 69 | 6e 65 20 69 73 6e 27 74 |ng routi|ne isn't|
|00004300| 20 63 61 6c 6c 65 64 20 | 22 65 6e 64 5f 69 6d 61 | called |"end_ima|
|00004310| 67 65 22 20 69 73 20 62 | 65 63 61 75 73 65 20 2a |ge" is b|ecause *|
|00004320| 2f 0a 2f 2a 20 6f 66 20 | 61 20 62 75 67 20 69 6e |/./* of |a bug in|
|00004330| 20 74 68 65 20 53 65 71 | 75 65 6e 74 20 43 20 63 | the Seq|uent C c|
|00004340| 6f 6d 70 69 6c 65 72 2e | 20 20 2a 2f 0a 65 6e 64 |ompiler.| */.end|
|00004350| 5f 69 6d 61 67 28 63 6f | 70 69 65 73 29 09 2f 2a |_imag(co|pies)./*|
|00004360| 20 70 72 69 6e 74 20 74 | 68 65 20 70 6f 73 74 73 | print t|he posts|
|00004370| 63 72 69 70 74 20 74 72 | 61 69 6c 65 72 2e 20 2a |cript tr|ailer. *|
|00004380| 2f 0a 69 6e 74 20 63 6f | 70 69 65 73 3b 09 09 2f |/.int co|pies;../|
|00004390| 2a 20 63 6f 70 69 65 73 | 20 3d 3d 20 6e 75 6d 62 |* copies| == numb|
|000043a0| 65 72 20 6f 66 20 63 6f | 70 69 65 73 20 74 6f 20 |er of co|pies to |
|000043b0| 70 72 69 6e 74 20 2a 2f | 0a 7b 0a 20 20 20 70 72 |print */|.{. pr|
|000043c0| 69 6e 74 66 28 22 25 64 | 20 70 61 67 65 5c 6e 22 |intf("%d| page\n"|
|000043d0| 2c 20 63 6f 70 69 65 73 | 20 2d 20 31 29 3b 09 2f |, copies| - 1);./|
|000043e0| 2a 20 22 70 61 67 65 22 | 20 74 61 6b 65 73 20 23 |* "page"| takes #|
|000043f0| 20 6f 66 20 70 61 67 65 | 73 20 74 6f 20 2a 2f 0a | of page|s to */.|
|00004400| 20 20 20 70 72 69 6e 74 | 66 28 22 63 70 5c 6e 22 | print|f("cp\n"|
|00004410| 29 3b 20 20 20 20 20 20 | 20 20 20 20 20 09 09 2f |); | ../|
|00004420| 2a 20 70 72 69 6e 74 20 | 6d 69 6e 75 73 20 31 20 |* print |minus 1 |
|00004430| 2a 2f 0a 20 20 20 70 72 | 69 6e 74 66 28 22 25 25 |*/. pr|intf("%%|
|00004440| 25 25 54 72 61 69 6c 65 | 72 5c 6e 22 29 3b 0a 20 |%%Traile|r\n");. |
|00004450| 20 20 70 72 69 6e 74 66 | 28 22 65 6e 64 5c 6e 22 | printf|("end\n"|
|00004460| 29 3b 0a 7d 0a 0a 23 64 | 65 66 69 6e 65 20 4f 55 |);.}..#d|efine OU|
|00004470| 54 42 55 46 5f 53 49 5a | 45 09 32 38 0a 23 64 65 |TBUF_SIZ|E.28.#de|
|00004480| 66 69 6e 65 20 58 53 43 | 41 4c 45 09 09 35 37 38 |fine XSC|ALE..578|
|00004490| 0a 23 64 65 66 69 6e 65 | 20 58 4c 4f 43 09 09 30 |.#define| XLOC..0|
|000044a0| 0a 23 64 65 66 69 6e 65 | 20 52 4f 57 42 59 54 45 |.#define| ROWBYTE|
|000044b0| 53 09 37 34 0a 23 64 65 | 66 69 6e 65 20 53 52 43 |S.74.#de|fine SRC|
|000044c0| 4d 4f 44 45 09 09 31 0a | 0a 09 2f 2a 20 4d 6f 64 |MODE..1.|../* Mod|
|000044d0| 75 6c 61 72 20 63 6f 64 | 65 20 70 75 72 69 73 74 |ular cod|e purist|
|000044e0| 73 20 63 61 6e 20 63 6c | 6f 73 65 20 74 68 65 69 |s can cl|ose thei|
|000044f0| 72 20 65 79 65 73 20 66 | 6f 72 20 74 68 65 20 66 |r eyes f|or the f|
|00004500| 6f 6c 6c 6f 77 69 6e 67 | 20 2a 2f 0a 09 2f 2a 20 |ollowing| */../* |
|00004510| 72 6f 75 74 69 6e 65 2e | 20 20 2a 2f 0a 64 75 6d |routine.| */.dum|
|00004520| 70 5f 62 75 66 66 65 72 | 28 68 65 78 62 75 66 66 |p_buffer|(hexbuff|
|00004530| 65 72 2c 20 62 6c 61 6e | 6b 29 0a 63 68 61 72 20 |er, blan|k).char |
|00004540| 68 65 78 62 75 66 66 65 | 72 5b 4d 41 43 50 41 49 |hexbuffe|r[MACPAI|
|00004550| 4e 54 5f 42 49 54 48 45 | 49 47 48 54 5d 5b 4d 41 |NT_BITHE|IGHT][MA|
|00004560| 43 52 41 53 54 45 52 5f | 42 49 54 57 49 44 54 48 |CRASTER_|BITWIDTH|
|00004570| 2f 38 5d 3b 0a 69 6e 74 | 20 62 6c 61 6e 6b 5b 4d |/8];.int| blank[M|
|00004580| 41 43 50 41 49 4e 54 5f | 42 49 54 48 45 49 47 48 |ACPAINT_|BITHEIGH|
|00004590| 54 5d 3b 0a 20 20 20 2f | 2a 20 68 65 78 62 75 66 |T];. /|* hexbuf|
|000045a0| 66 65 72 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |fer cont|ains the|
|000045b0| 20 65 6e 74 69 72 65 20 | 75 6e 65 6e 63 6f 64 65 | entire |unencode|
|000045c0| 64 20 4d 61 63 50 61 69 | 6e 74 20 66 69 6c 65 2e |d MacPai|nt file.|
|000045d0| 20 2a 2f 0a 20 20 20 2f | 2a 20 62 6c 61 6e 6b 20 | */. /|* blank |
|000045e0| 69 73 20 61 20 62 6f 6f | 6c 65 61 6e 20 61 72 72 |is a boo|lean arr|
|000045f0| 61 79 20 66 6f 72 20 65 | 61 63 68 20 72 6f 77 2e |ay for e|ach row.|
|00004600| 20 20 54 52 55 45 20 6d | 65 61 6e 73 20 74 68 65 | TRUE m|eans the|
|00004610| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 0a 20 20 20 20 | horizon|tal. |
|00004620| 20 20 6c 69 6e 65 20 69 | 73 20 62 6c 61 6e 6b 2e | line i|s blank.|
|00004630| 20 2a 2f 0a 7b 0a 20 20 | 20 69 6e 74 20 78 73 63 | */.{. | int xsc|
|00004640| 61 6c 65 2c 20 79 73 63 | 61 6c 65 2c 20 78 6c 6f |ale, ysc|ale, xlo|
|00004650| 63 2c 20 79 6c 6f 63 2c | 20 78 61 63 74 75 61 6c |c, yloc,| xactual|
|00004660| 2c 20 79 61 63 74 75 61 | 6c 3b 0a 20 20 20 63 68 |, yactua|l;. ch|
|00004670| 61 72 20 73 6d 6f 6f 74 | 68 69 6e 67 3b 0a 20 20 |ar smoot|hing;. |
|00004680| 20 69 6e 74 20 69 2c 20 | 6a 3b 0a 20 20 20 69 6e | int i, |j;. in|
|00004690| 74 20 63 75 72 6c 69 6e | 65 2c 20 74 6f 70 5f 6f |t curlin|e, top_o|
|000046a0| 66 5f 73 65 63 74 2c 20 | 62 65 67 69 6e 5f 6c 69 |f_sect, |begin_li|
|000046b0| 6e 65 2c 20 6e 75 6d 62 | 6c 61 6e 6b 73 2c 20 6c |ne, numb|lanks, l|
|000046c0| 69 6e 65 73 5f 75 73 65 | 64 3b 0a 20 20 20 63 68 |ines_use|d;. ch|
|000046d0| 61 72 20 6f 75 74 73 74 | 72 69 6e 67 5b 4d 41 43 |ar outst|ring[MAC|
|000046e0| 52 41 53 54 45 52 5f 42 | 49 54 57 49 44 54 48 2f |RASTER_B|ITWIDTH/|
|000046f0| 34 5d 3b 0a 0a 20 20 20 | 78 73 63 61 6c 65 20 3d |4];.. |xscale =|
|00004700| 20 58 53 43 41 4c 45 3b | 09 09 2f 2a 20 50 6f 73 | XSCALE;|../* Pos|
|00004710| 74 73 63 72 69 70 74 20 | 70 61 72 61 6d 65 74 65 |tscript |paramete|
|00004720| 72 73 20 64 65 73 63 72 | 69 62 69 6e 67 20 74 68 |rs descr|ibing th|
|00004730| 65 20 2a 2f 0a 20 20 20 | 78 6c 6f 63 20 3d 20 58 |e */. |xloc = X|
|00004740| 4c 4f 43 3b 09 09 09 2f | 2a 20 73 69 7a 65 20 6f |LOC;.../|* size o|
|00004750| 66 20 74 68 65 20 69 6d | 61 67 65 20 61 72 65 61 |f the im|age area|
|00004760| 2e 20 20 2a 2f 0a 20 20 | 20 78 61 63 74 75 61 6c |. */. | xactual|
|00004770| 20 3d 20 58 53 43 41 4c | 45 3b 0a 20 20 20 73 6d | = XSCAL|E;. sm|
|00004780| 6f 6f 74 68 69 6e 67 20 | 3d 20 73 6d 6f 6f 74 68 |oothing |= smooth|
|00004790| 20 3f 20 27 54 27 20 3a | 20 27 46 27 3b 0a 0a 2f | ? 'T' :| 'F';../|
|000047a0| 2a 20 20 54 68 65 20 70 | 6f 73 74 73 63 72 69 70 |* The p|ostscrip|
|000047b0| 74 20 6f 75 74 70 75 74 | 20 63 6f 6e 73 69 73 74 |t output| consist|
|000047c0| 73 20 6f 66 20 63 61 6c | 6c 73 20 74 6f 20 22 64 |s of cal|ls to "d|
|000047d0| 6f 62 69 74 73 22 20 66 | 6f 72 20 65 61 63 68 20 |obits" f|or each |
|000047e0| 67 72 6f 75 70 20 6f 66 | 20 2a 2f 0a 2f 2a 20 6e |group of| */./* n|
|000047f0| 6f 6e 2d 62 6c 61 6e 6b | 20 68 6f 72 69 7a 6f 6e |on-blank| horizon|
|00004800| 74 61 6c 20 6c 69 6e 65 | 73 2e 20 20 44 75 65 20 |tal line|s. Due |
|00004810| 74 6f 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 6d |to Laser|Writer m|
|00004820| 65 6d 6f 72 79 20 6c 69 | 6d 69 74 61 74 69 6f 6e |emory li|mitation|
|00004830| 73 2c 20 20 20 20 2a 2f | 0a 2f 2a 20 6f 6e 6c 79 |s, */|./* only|
|00004840| 20 61 62 6f 75 74 20 32 | 38 20 6c 69 6e 65 73 20 | about 2|8 lines |
|00004850| 61 74 20 61 20 74 69 6d | 65 20 63 61 6e 20 62 65 |at a tim|e can be|
|00004860| 20 73 65 6e 74 20 70 65 | 72 20 63 6f 6d 6d 61 6e | sent pe|r comman|
|00004870| 64 2e 20 20 41 6c 73 6f | 2c 20 6c 69 6e 65 73 20 |d. Also|, lines |
|00004880| 20 20 20 2a 2f 0a 2f 2a | 20 61 64 6a 61 63 65 6e | */./*| adjacen|
|00004890| 74 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |t to the| current|
|000048a0| 20 73 65 63 74 69 6f 6e | 20 6d 75 73 74 20 62 65 | section| must be|
|000048b0| 20 69 6e 63 6c 75 64 65 | 64 20 28 70 72 65 73 75 | include|d (presu|
|000048c0| 6d 61 62 6c 79 20 66 6f | 72 20 74 68 65 20 20 20 |mably fo|r the |
|000048d0| 2a 2f 0a 2f 2a 20 73 6d | 6f 6f 74 68 69 6e 67 20 |*/./* sm|oothing |
|000048e0| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 77 6f 72 6b |function| to work|
|000048f0| 2e 29 09 09 09 09 09 09 | 20 20 2a 2f 0a 0a 20 20 |.)......| */.. |
|00004900| 20 63 75 72 6c 69 6e 65 | 20 3d 20 30 3b 0a 20 20 | curline| = 0;. |
|00004910| 20 74 6f 70 5f 6f 66 5f | 73 65 63 74 20 3d 20 54 | top_of_|sect = T|
|00004920| 52 55 45 3b 09 09 2f 2a | 20 62 65 67 69 6e 20 61 |RUE;../*| begin a|
|00004930| 20 22 64 6f 62 69 74 73 | 22 20 63 61 6c 6c 2e 20 | "dobits|" call. |
|00004940| 2a 2f 0a 0a 20 20 20 77 | 68 69 6c 65 20 28 63 75 |*/.. w|hile (cu|
|00004950| 72 6c 69 6e 65 20 3c 20 | 4d 41 43 50 41 49 4e 54 |rline < |MACPAINT|
|00004960| 5f 42 49 54 48 45 49 47 | 48 54 29 20 7b 0a 09 09 |_BITHEIG|HT) {...|
|00004970| 09 2f 2a 20 66 6f 72 20 | 74 68 65 20 65 6e 74 69 |./* for |the enti|
|00004980| 72 65 20 70 69 63 74 75 | 72 65 2e 2e 2e 20 2a 2f |re pictu|re... */|
|00004990| 0a 0a 2f 2a 20 20 49 66 | 20 61 20 70 72 65 76 69 |../* If| a previ|
|000049a0| 6f 75 73 20 73 65 63 74 | 69 6f 6e 20 74 65 72 6d |ous sect|ion term|
|000049b0| 69 6e 61 74 65 64 20 62 | 65 63 61 75 73 65 20 6f |inated b|ecause o|
|000049c0| 66 20 77 68 69 74 65 20 | 73 70 61 63 65 2c 20 73 |f white |space, s|
|000049d0| 6b 69 70 20 74 68 65 20 | 2a 2f 0a 2f 2a 20 62 6c |kip the |*/./* bl|
|000049e0| 61 6e 6b 20 6c 69 6e 65 | 73 20 74 68 61 74 20 70 |ank line|s that p|
|000049f0| 72 65 63 65 64 65 20 74 | 68 65 20 6e 65 78 74 20 |recede t|he next |
|00004a00| 73 65 63 74 69 6f 6e 2e | 20 20 2a 2f 0a 20 20 20 |section.| */. |
|00004a10| 20 20 20 69 66 20 28 74 | 6f 70 5f 6f 66 5f 73 65 | if (t|op_of_se|
|00004a20| 63 74 29 0a 09 20 77 68 | 69 6c 65 20 28 28 63 75 |ct).. wh|ile ((cu|
|00004a30| 72 6c 69 6e 65 20 3c 20 | 4d 41 43 50 41 49 4e 54 |rline < |MACPAINT|
|00004a40| 5f 42 49 54 48 45 49 47 | 48 54 29 20 26 26 20 62 |_BITHEIG|HT) && b|
|00004a50| 6c 61 6e 6b 5b 63 75 72 | 6c 69 6e 65 5d 29 0a 20 |lank[cur|line]). |
|00004a60| 20 20 20 20 20 20 20 20 | 20 20 20 63 75 72 6c 69 | | curli|
|00004a70| 6e 65 2b 2b 3b 0a 0a 2f | 2a 20 63 68 65 63 6b 20 |ne++;../|* check |
|00004a80| 66 6f 72 20 65 6e 64 20 | 6f 66 20 70 61 67 65 2e |for end |of page.|
|00004a90| 20 2a 2f 0a 20 20 20 20 | 20 20 69 66 20 28 63 75 | */. | if (cu|
|00004aa0| 72 6c 69 6e 65 20 3e 3d | 20 4d 41 43 50 41 49 4e |rline >=| MACPAIN|
|00004ab0| 54 5f 42 49 54 48 45 49 | 47 48 54 29 0a 20 20 20 |T_BITHEI|GHT). |
|00004ac0| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0a 0a 20 20 | br|eak;.. |
|00004ad0| 20 20 20 20 69 66 20 28 | 74 6f 70 5f 6f 66 5f 73 | if (|top_of_s|
|00004ae0| 65 63 74 29 20 7b 09 2f | 2a 20 41 74 20 74 6f 70 |ect) {./|* At top|
|00004af0| 20 6f 66 20 6e 6f 6e 2d | 77 68 69 74 65 20 73 65 | of non-|white se|
|00004b00| 63 74 69 6f 6e 2c 20 69 | 6e 63 6c 75 64 65 20 2a |ction, i|nclude *|
|00004b10| 2f 0a 20 20 20 20 20 20 | 20 20 20 62 65 67 69 6e |/. | begin|
|00004b20| 5f 6c 69 6e 65 20 3d 20 | 63 75 72 6c 69 6e 65 20 |_line = |curline |
|00004b30| 2d 20 32 3b 09 2f 2a 20 | 70 72 65 76 69 6f 75 73 |- 2;./* |previous|
|00004b40| 20 74 77 6f 20 6c 69 6e | 65 73 3b 20 2a 2f 0a 20 | two lin|es; */. |
|00004b50| 20 20 20 20 20 20 20 20 | 6c 69 6e 65 73 5f 75 73 | |lines_us|
|00004b60| 65 64 20 3d 20 32 3b 0a | 20 20 20 20 20 20 20 20 |ed = 2;.| |
|00004b70| 20 74 6f 70 5f 6f 66 5f | 73 65 63 74 20 3d 20 46 | top_of_|sect = F|
|00004b80| 41 4c 53 45 3b 0a 20 20 | 20 20 20 20 7d 20 65 6c |ALSE;. | } el|
|00004b90| 73 65 20 7b 09 09 09 2f | 2a 20 69 66 20 63 6f 6e |se {.../|* if con|
|00004ba0| 74 69 6e 75 69 6e 67 20 | 61 20 6e 6f 6e 2d 77 68 |tinuing |a non-wh|
|00004bb0| 69 74 65 20 73 65 63 74 | 69 6f 6e 2c 20 64 6f 6e |ite sect|ion, don|
|00004bc0| 27 74 2e 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 20 |'t. */. | |
|00004bd0| 62 65 67 69 6e 5f 6c 69 | 6e 65 20 3d 20 63 75 72 |begin_li|ne = cur|
|00004be0| 6c 69 6e 65 3b 0a 20 20 | 20 20 20 20 20 20 20 6c |line;. | l|
|00004bf0| 69 6e 65 73 5f 75 73 65 | 64 20 3d 20 30 3b 0a 20 |ines_use|d = 0;. |
|00004c00| 20 20 20 20 20 7d 0a 0a | 20 20 20 20 20 20 6e 75 | }..| nu|
|00004c10| 6d 62 6c 61 6e 6b 73 20 | 3d 20 30 3b 09 09 2f 2a |mblanks |= 0;../*|
|00004c20| 20 63 6f 6d 70 75 74 65 | 20 68 65 69 67 68 74 20 | compute| height |
|00004c30| 6f 66 20 6e 6f 6e 2d 77 | 68 69 74 65 20 61 72 65 |of non-w|hite are|
|00004c40| 61 2e 20 2a 2f 0a 20 20 | 20 20 20 20 66 6f 72 20 |a. */. | for |
|00004c50| 28 69 20 3d 20 6c 69 6e | 65 73 5f 75 73 65 64 3b |(i = lin|es_used;|
|00004c60| 20 69 20 3c 20 28 4f 55 | 54 42 55 46 5f 53 49 5a | i < (OU|TBUF_SIZ|
|00004c70| 45 20 2d 20 31 29 3b 20 | 69 2b 2b 29 20 7b 0a 20 |E - 1); |i++) {. |
|00004c80| 20 20 20 20 20 20 20 20 | 69 66 20 28 62 6c 61 6e | |if (blan|
|00004c90| 6b 5b 63 75 72 6c 69 6e | 65 2b 2b 5d 29 0a 20 20 |k[curlin|e++]). |
|00004ca0| 20 20 20 20 20 20 20 20 | 20 20 6e 75 6d 62 6c 61 | | numbla|
|00004cb0| 6e 6b 73 2b 2b 3b 0a 20 | 20 20 20 20 20 20 20 20 |nks++;. | |
|00004cc0| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 20 20 20 |else. | |
|00004cd0| 20 6e 75 6d 62 6c 61 6e | 6b 73 20 3d 20 30 3b 20 | numblan|ks = 0; |
|00004ce0| 20 20 2f 2a 20 72 65 73 | 65 74 20 63 6f 75 6e 74 | /* res|et count|
|00004cf0| 65 72 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 20 69 |er */. | i|
|00004d00| 66 20 28 6e 75 6d 62 6c | 61 6e 6b 73 20 3e 3d 20 |f (numbl|anks >= |
|00004d10| 34 29 20 7b 09 2f 2a 20 | 54 6f 6f 20 6d 75 63 68 |4) {./* |Too much|
|00004d20| 20 77 68 69 74 65 20 73 | 70 61 63 65 3a 20 62 72 | white s|pace: br|
|00004d30| 65 61 6b 20 61 6e 64 20 | 70 72 69 6e 74 20 69 74 |eak and |print it|
|00004d40| 2e 20 2a 2f 0a 20 20 20 | 20 20 20 09 09 09 09 2f |. */. | ..../|
|00004d50| 2a 20 54 68 65 20 66 6f | 75 72 20 62 6c 61 6e 6b |* The fo|ur blank|
|00004d60| 73 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |s at the| end of |
|00004d70| 74 68 65 20 2a 2f 0a 09 | 09 09 09 2f 2a 20 70 61 |the */..|.../* pa|
|00004d80| 67 65 20 77 69 6c 6c 20 | 73 74 6f 70 20 75 73 20 |ge will |stop us |
|00004d90| 61 74 20 74 68 65 20 62 | 6f 74 74 6f 6d 20 2a 2f |at the b|ottom */|
|00004da0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 63 75 72 |. | cur|
|00004db0| 6c 69 6e 65 2d 2d 3b 09 | 09 2f 2a 20 57 65 20 77 |line--;.|./* We w|
|00004dc0| 61 6e 74 20 63 75 72 6c | 69 6e 65 20 74 6f 20 70 |ant curl|ine to p|
|00004dd0| 6f 69 6e 74 20 2a 2f 0a | 20 20 20 20 20 20 09 09 |oint */.| ..|
|00004de0| 09 09 2f 2a 20 74 6f 20 | 74 68 65 20 66 6f 75 72 |../* to |the four|
|00004df0| 74 68 20 62 6c 61 6e 6b | 20 6c 69 6e 65 2e 20 2a |th blank| line. *|
|00004e00| 2f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 |/. | br|
|00004e10| 65 61 6b 3b 0a 20 20 20 | 20 20 20 20 20 20 7d 0a |eak;. | }.|
|00004e20| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 69 66 | }.| if|
|00004e30| 20 28 6e 75 6d 62 6c 61 | 6e 6b 73 20 3e 20 30 29 | (numbla|nks > 0)|
|00004e40| 09 2f 2a 20 49 66 20 74 | 68 65 20 62 69 74 6d 61 |./* If t|he bitma|
|00004e50| 70 20 65 6e 64 65 64 20 | 69 6e 20 61 6e 79 20 77 |p ended |in any w|
|00004e60| 68 69 74 65 73 70 61 63 | 65 2c 20 2a 2f 0a 09 20 |hitespac|e, */.. |
|00004e70| 74 6f 70 5f 6f 66 5f 73 | 65 63 74 20 3d 20 54 52 |top_of_s|ect = TR|
|00004e80| 55 45 3b 09 2f 2a 20 77 | 65 20 73 6b 69 70 20 69 |UE;./* w|e skip i|
|00004e90| 74 20 74 68 65 20 6e 65 | 78 74 20 74 69 6d 65 20 |t the ne|xt time |
|00004ea0| 61 72 6f 75 6e 64 2e 20 | 20 2a 2f 0a 20 20 20 20 |around. | */. |
|00004eb0| 20 20 63 75 72 6c 69 6e | 65 2b 2b 3b 0a 20 20 20 | curlin|e++;. |
|00004ec0| 20 20 20 79 61 63 74 75 | 61 6c 20 3d 20 69 20 2d | yactu|al = i -|
|00004ed0| 20 33 3b 09 09 2f 2a 20 | 48 65 69 67 68 74 20 6f | 3;../* |Height o|
|00004ee0| 66 20 63 75 72 72 65 6e | 74 20 62 69 74 6d 61 70 |f curren|t bitmap|
|00004ef0| 20 73 65 63 74 69 6f 6e | 2e 20 2a 2f 0a 20 20 20 | section|. */. |
|00004f00| 20 20 20 79 73 63 61 6c | 65 20 3d 20 79 61 63 74 | yscal|e = yact|
|00004f10| 75 61 6c 3b 09 09 2f 2a | 20 53 63 61 6c 65 20 69 |ual;../*| Scale i|
|00004f20| 74 20 31 20 74 6f 20 31 | 2e 20 20 2a 2f 0a 20 20 |t 1 to 1|. */. |
|00004f30| 20 20 20 20 79 6c 6f 63 | 20 3d 20 62 65 67 69 6e | yloc| = begin|
|00004f40| 5f 6c 69 6e 65 20 2b 20 | 32 3b 0a 0a 2f 2a 20 70 |_line + |2;../* p|
|00004f50| 72 69 6e 74 20 74 68 65 | 20 22 64 6f 62 69 74 73 |rint the| "dobits|
|00004f60| 22 20 63 61 6c 6c 2e 20 | 2a 2f 0a 20 20 20 20 20 |" call. |*/. |
|00004f70| 20 70 72 69 6e 74 66 28 | 22 25 64 20 25 64 20 25 | printf(|"%d %d %|
|00004f80| 64 20 25 64 20 25 64 20 | 25 64 20 25 64 20 25 63 |d %d %d |%d %d %c|
|00004f90| 20 25 64 20 64 6f 62 69 | 74 73 5c 6e 22 2c 0a 09 | %d dobi|ts\n",..|
|00004fa0| 09 78 73 63 61 6c 65 2c | 20 79 73 63 61 6c 65 2c |.xscale,| yscale,|
|00004fb0| 20 78 6c 6f 63 2c 20 79 | 6c 6f 63 2c 20 52 4f 57 | xloc, y|loc, ROW|
|00004fc0| 42 59 54 45 53 2c 0a 09 | 09 78 61 63 74 75 61 6c |BYTES,..|.xactual|
|00004fd0| 2c 20 79 61 63 74 75 61 | 6c 2c 20 73 6d 6f 6f 74 |, yactua|l, smoot|
|00004fe0| 68 69 6e 67 2c 20 53 52 | 43 4d 4f 44 45 29 3b 0a |hing, SR|CMODE);.|
|00004ff0| 2f 2a 20 70 72 69 6e 74 | 20 74 68 65 20 63 6f 72 |/* print| the cor|
|00005000| 72 65 73 70 6f 6e 64 69 | 6e 67 20 68 6f 72 69 7a |respondi|ng horiz|
|00005010| 6f 6e 74 61 6c 20 6c 69 | 6e 65 73 2e 20 2a 2f 0a |ontal li|nes. */.|
|00005020| 20 20 20 20 20 20 66 6f | 72 20 28 69 20 3d 20 62 | fo|r (i = b|
|00005030| 65 67 69 6e 5f 6c 69 6e | 65 3b 20 69 20 3c 20 63 |egin_lin|e; i < c|
|00005040| 75 72 6c 69 6e 65 3b 20 | 69 2b 2b 29 20 7b 0a 20 |urline; |i++) {. |
|00005050| 20 20 20 20 20 20 20 20 | 69 66 20 28 28 69 20 3c | |if ((i <|
|00005060| 20 30 29 20 7c 7c 20 62 | 6c 61 6e 6b 5b 69 5d 29 | 0) || b|lank[i])|
|00005070| 0a 09 09 09 2f 2a 20 69 | 66 20 62 6c 61 6e 6b 2c |..../* i|f blank,|
|00005080| 20 70 72 69 6e 74 20 61 | 6c 6c 20 7a 65 72 6f 73 | print a|ll zeros|
|00005090| 2e 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 20 20 20 |. */. | |
|000050a0| 20 66 6f 72 20 28 6a 20 | 3d 20 30 3b 20 6a 3c 20 | for (j |= 0; j< |
|000050b0| 4d 41 43 52 41 53 54 45 | 52 5f 42 49 54 57 49 44 |MACRASTE|R_BITWID|
|000050c0| 54 48 2f 34 3b 20 6a 2b | 2b 29 0a 20 20 20 20 20 |TH/4; j+|+). |
|000050d0| 20 20 20 20 20 20 20 20 | 20 20 70 75 74 63 68 61 | | putcha|
|000050e0| 72 28 27 30 27 29 3b 0a | 20 20 20 20 20 20 20 20 |r('0');.| |
|000050f0| 20 65 6c 73 65 20 7b 0a | 09 09 09 2f 2a 20 65 6c | else {.|.../* el|
|00005100| 73 65 20 63 6f 6e 76 65 | 72 74 20 74 6f 20 61 20 |se conve|rt to a |
|00005110| 68 65 78 20 73 74 72 69 | 6e 67 20 61 6e 64 20 70 |hex stri|ng and p|
|00005120| 72 69 6e 74 20 69 74 2e | 20 2a 2f 0a 20 20 20 20 |rint it.| */. |
|00005130| 20 20 20 20 20 20 20 20 | 74 6f 68 65 78 28 68 65 | |tohex(he|
|00005140| 78 62 75 66 66 65 72 5b | 69 5d 2c 20 4d 41 43 52 |xbuffer[|i], MACR|
|00005150| 41 53 54 45 52 5f 42 49 | 54 57 49 44 54 48 2f 38 |ASTER_BI|TWIDTH/8|
|00005160| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00005170| 20 6f 75 74 73 74 72 69 | 6e 67 29 3b 0a 20 20 20 | outstri|ng);. |
|00005180| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 66 28 | | printf(|
|00005190| 22 25 73 22 2c 20 6f 75 | 74 73 74 72 69 6e 67 29 |"%s", ou|tstring)|
|000051a0| 3b 0a 20 20 20 20 20 20 | 20 20 20 7d 0a 09 09 2f |;. | }.../|
|000051b0| 2a 20 50 75 74 20 66 6f | 75 72 20 65 78 74 72 61 |* Put fo|ur extra|
|000051c0| 20 6e 69 62 62 6c 65 73 | 20 61 74 20 74 68 65 20 | nibbles| at the |
|000051d0| 65 6e 64 73 20 6f 66 20 | 6c 69 6e 65 73 2e 20 20 |ends of |lines. |
|000051e0| 49 20 74 68 69 6e 6b 20 | 2a 2f 0a 09 09 2f 2a 20 |I think |*/.../* |
|000051f0| 61 72 65 20 66 6f 72 20 | 73 6d 6f 6f 74 68 69 6e |are for |smoothin|
|00005200| 67 2e 20 20 2a 2f 0a 09 | 20 69 66 20 28 28 69 20 |g. */..| if ((i |
|00005210| 3d 3d 20 28 2d 32 29 29 | 20 7c 7c 20 62 6c 61 6e |== (-2))| || blan|
|00005220| 6b 5b 69 2b 31 5d 29 09 | 2f 2a 20 49 6e 63 6c 75 |k[i+1]).|/* Inclu|
|00005230| 64 65 20 74 68 65 20 66 | 69 72 73 74 20 66 6f 75 |de the f|irst fou|
|00005240| 72 20 6e 69 62 62 6c 65 | 73 20 6f 66 20 2a 2f 0a |r nibble|s of */.|
|00005250| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e | | prin|
|00005260| 74 66 28 22 30 30 30 30 | 5c 6e 22 29 3b 09 09 2f |tf("0000|\n");../|
|00005270| 2a 20 74 68 65 20 6e 65 | 78 74 20 6c 69 6e 65 2e |* the ne|xt line.|
|00005280| 20 20 2a 2f 0a 09 20 65 | 6c 73 65 20 7b 0a 09 20 | */.. e|lse {.. |
|00005290| 20 20 20 74 6f 68 65 78 | 28 68 65 78 62 75 66 66 | tohex|(hexbuff|
|000052a0| 65 72 5b 69 2b 31 5d 2c | 20 32 2c 20 6f 75 74 73 |er[i+1],| 2, outs|
|000052b0| 74 72 69 6e 67 29 3b 0a | 09 20 20 20 20 70 72 69 |tring);.|. pri|
|000052c0| 6e 74 66 28 22 25 73 5c | 6e 22 2c 20 6f 75 74 73 |ntf("%s\|n", outs|
|000052d0| 74 72 69 6e 67 29 3b 0a | 09 20 7d 0a 20 20 20 20 |tring);.|. }. |
|000052e0| 20 20 7d 0a 20 20 20 20 | 20 20 69 66 20 28 21 74 | }. | if (!t|
|000052f0| 6f 70 5f 6f 66 5f 73 65 | 63 74 29 0a 20 20 20 20 |op_of_se|ct). |
|00005300| 20 20 20 20 20 63 75 72 | 6c 69 6e 65 20 2d 3d 20 | cur|line -= |
|00005310| 34 3b 09 09 2f 2a 20 77 | 65 27 6c 6c 20 68 61 76 |4;../* w|e'll hav|
|00005320| 65 20 74 6f 20 6f 76 65 | 72 6c 61 70 20 74 68 65 |e to ove|rlap the|
|00005330| 20 6e 65 78 74 20 73 65 | 63 74 69 6f 6e 20 2a 2f | next se|ction */|
|00005340| 0a 20 20 20 7d 09 09 09 | 09 2f 2a 20 77 69 74 68 |. }...|./* with|
|00005350| 20 74 68 69 73 20 6f 6e | 65 2c 20 73 6f 20 62 61 | this on|e, so ba|
|00005360| 63 6b 20 75 70 20 66 6f | 75 72 20 6c 69 6e 65 73 |ck up fo|ur lines|
|00005370| 2e 20 2a 2f 0a 7d 0a 0a | 74 6f 68 65 78 28 68 65 |. */.}..|tohex(he|
|00005380| 78 6c 69 6e 65 2c 20 73 | 69 7a 65 2c 20 6f 75 74 |xline, s|ize, out|
|00005390| 73 74 72 69 6e 67 29 20 | 20 20 2f 2a 20 63 6f 6e |string) | /* con|
|000053a0| 76 65 72 74 20 62 69 6e | 61 72 79 20 62 79 74 65 |vert bin|ary byte|
|000053b0| 73 20 74 6f 20 61 20 68 | 65 78 20 73 74 72 69 6e |s to a h|ex strin|
|000053c0| 67 2e 20 2a 2f 0a 63 68 | 61 72 20 68 65 78 6c 69 |g. */.ch|ar hexli|
|000053d0| 6e 65 5b 5d 3b 0a 69 6e | 74 20 73 69 7a 65 3b 09 |ne[];.in|t size;.|
|000053e0| 09 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 79 |./* numb|er of by|
|000053f0| 74 65 73 20 74 6f 20 63 | 6f 6e 76 65 72 74 2e 20 |tes to c|onvert. |
|00005400| 2a 2f 0a 63 68 61 72 20 | 6f 75 74 73 74 72 69 6e |*/.char |outstrin|
|00005410| 67 5b 5d 3b 0a 7b 0a 20 | 20 20 69 6e 74 20 69 2c |g[];.{. | int i,|
|00005420| 20 6a 3b 0a 20 20 20 72 | 65 67 69 73 74 65 72 20 | j;. r|egister |
|00005430| 63 68 61 72 20 63 2c 20 | 63 31 3b 0a 0a 20 20 20 |char c, |c1;.. |
|00005440| 6a 20 3d 20 30 3b 0a 20 | 20 20 66 6f 72 20 28 69 |j = 0;. | for (i|
|00005450| 20 3d 20 30 20 3b 20 69 | 20 3c 20 73 69 7a 65 20 | = 0 ; i| < size |
|00005460| 3b 20 69 2b 2b 29 20 7b | 0a 20 20 20 20 20 20 63 |; i++) {|. c|
|00005470| 20 3d 20 68 65 78 6c 69 | 6e 65 5b 69 5d 3b 0a 20 | = hexli|ne[i];. |
|00005480| 20 20 20 20 20 63 31 20 | 3d 20 28 63 20 3e 3e 20 | c1 |= (c >> |
|00005490| 34 29 20 26 20 30 78 30 | 46 3b 0a 20 20 20 20 20 |4) & 0x0|F;. |
|000054a0| 20 63 31 20 3d 20 28 63 | 31 20 3c 3d 20 39 29 20 | c1 = (c|1 <= 9) |
|000054b0| 3f 20 28 63 31 20 2b 20 | 27 30 27 29 20 3a 20 28 |? (c1 + |'0') : (|
|000054c0| 63 31 20 2d 20 31 30 20 | 2b 20 27 41 27 29 3b 0a |c1 - 10 |+ 'A');.|
|000054d0| 20 20 20 20 20 20 6f 75 | 74 73 74 72 69 6e 67 5b | ou|tstring[|
|000054e0| 6a 2b 2b 5d 20 3d 20 63 | 31 3b 0a 20 20 20 20 20 |j++] = c|1;. |
|000054f0| 20 63 31 20 3d 20 63 20 | 26 20 30 78 30 46 3b 0a | c1 = c |& 0x0F;.|
|00005500| 20 20 20 20 20 20 63 31 | 20 3d 20 28 63 31 20 3c | c1| = (c1 <|
|00005510| 3d 20 39 29 20 3f 20 28 | 63 31 20 2b 20 27 30 27 |= 9) ? (|c1 + '0'|
|00005520| 29 20 3a 20 28 63 31 20 | 2d 20 31 30 20 2b 20 27 |) : (c1 |- 10 + '|
|00005530| 41 27 29 3b 0a 20 20 20 | 20 20 20 6f 75 74 73 74 |A');. | outst|
|00005540| 72 69 6e 67 5b 6a 2b 2b | 5d 20 3d 20 63 31 3b 0a |ring[j++|] = c1;.|
|00005550| 20 20 20 7d 0a 20 20 20 | 6f 75 74 73 74 72 69 6e | }. |outstrin|
|00005560| 67 5b 6a 5d 20 3d 20 4e | 55 4c 4c 3b 0a 7d 0a 00 |g[j] = N|ULL;.}..|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00005610| 73 63 72 69 70 74 2f 70 | 61 69 6e 74 70 73 2e 31 |script/p|aintps.1|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 32 |.... 6|64 . 2|
|00005670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005680| 20 20 20 33 32 33 30 20 | 20 34 34 30 33 36 31 37 | 3230 | 4403617|
|00005690| 34 35 31 20 20 31 32 32 | 37 31 00 20 00 00 00 00 |451 122|71. ....|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 2e 54 48 20 50 41 49 4e | 54 50 53 20 6c 6f 63 61 |.TH PAIN|TPS loca|
|00005810| 6c 20 22 32 33 20 41 70 | 72 69 6c 20 31 39 38 36 |l "23 Ap|ril 1986|
|00005820| 22 0a 2e 55 43 20 34 0a | 2e 53 48 20 4e 41 4d 45 |"..UC 4.|.SH NAME|
|00005830| 0a 70 61 69 6e 74 70 73 | 20 2d 20 43 6f 6e 76 65 |.paintps| - Conve|
|00005840| 72 74 20 4d 61 63 50 61 | 69 6e 74 20 64 6f 63 75 |rt MacPa|int docu|
|00005850| 6d 65 6e 74 20 69 6e 74 | 6f 20 50 6f 73 74 53 63 |ment int|o PostSc|
|00005860| 72 69 70 74 0a 2e 53 48 | 20 53 59 4e 4f 50 53 49 |ript..SH| SYNOPSI|
|00005870| 53 0a 2e 42 20 70 61 69 | 6e 74 70 73 0a 66 69 6c |S..B pai|ntps.fil|
|00005880| 65 0a 2e 62 72 0a 2e 42 | 20 70 61 69 6e 74 70 73 |e..br..B| paintps|
|00005890| 0a 5b 0a 2e 42 20 5c 2d | 64 0a 5d 20 5b 0a 2e 42 |.[..B \-|d.] [..B|
|000058a0| 49 20 5c 2d 23 3c 6e 3e | 0a 5d 20 5b 0a 2e 42 49 |I \-#<n>|.] [..BI|
|000058b0| 20 5c 2d 50 3c 70 72 69 | 6e 74 65 72 3e 0a 5d 20 | \-P<pri|nter>.] |
|000058c0| 66 69 6c 65 0a 2e 53 48 | 20 44 45 53 43 52 49 50 |file..SH| DESCRIP|
|000058d0| 54 49 4f 4e 0a 2e 49 20 | 50 61 69 6e 74 70 73 0a |TION..I |Paintps.|
|000058e0| 74 72 61 6e 73 6c 61 74 | 65 73 20 61 20 4d 61 63 |translat|es a Mac|
|000058f0| 50 61 69 6e 74 20 64 6f | 63 75 6d 65 6e 74 2c 20 |Paint do|cument, |
|00005900| 75 70 6c 6f 61 64 65 64 | 20 66 72 6f 6d 20 61 20 |uploaded| from a |
|00005910| 4d 61 63 69 6e 74 6f 73 | 68 20 76 69 61 20 6d 61 |Macintos|h via ma|
|00005920| 63 67 65 74 20 28 6c 6f | 63 61 6c 29 2c 0a 69 6e |cget (lo|cal),.in|
|00005930| 74 6f 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |to the P|ostScrip|
|00005940| 74 20 6c 61 6e 67 75 61 | 67 65 2e 20 20 49 74 20 |t langua|ge. It |
|00005950| 63 61 6e 20 61 6c 73 6f | 20 73 70 6f 6f 6c 20 6f |can also| spool o|
|00005960| 75 74 70 75 74 20 74 6f | 20 6d 61 63 6c 61 73 65 |utput to| maclase|
|00005970| 72 20 28 6c 6f 63 61 6c | 29 0a 66 6f 72 20 70 72 |r (local|).for pr|
|00005980| 69 6e 74 69 6e 67 20 6f | 6e 20 61 20 4c 61 73 65 |inting o|n a Lase|
|00005990| 72 57 72 69 74 65 72 20 | 6f 72 20 6f 74 68 65 72 |rWriter |or other|
|000059a0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 64 65 76 69 | PostScr|ipt devi|
|000059b0| 63 65 2e 0a 2e 50 50 0a | 49 66 20 74 68 65 20 6f |ce...PP.|If the o|
|000059c0| 75 74 70 75 74 20 6f 66 | 20 70 61 69 6e 74 70 73 |utput of| paintps|
|000059d0| 20 68 61 73 6e 27 74 20 | 62 65 65 6e 20 72 65 64 | hasn't |been red|
|000059e0| 69 72 65 63 74 65 64 20 | 6f 72 20 70 69 70 65 64 |irected |or piped|
|000059f0| 2c 20 74 68 65 6e 20 70 | 61 69 6e 74 70 73 0a 61 |, then p|aintps.a|
|00005a00| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 73 70 6f |utomatic|ally spo|
|00005a10| 6f 6c 73 20 74 68 65 20 | 6f 75 74 70 75 74 20 74 |ols the |output t|
|00005a20| 6f 20 74 68 65 20 4c 61 | 73 65 72 57 72 69 74 65 |o the La|serWrite|
|00005a30| 72 2e 0a 2e 50 50 0a 4e | 6f 74 65 20 74 68 61 74 |r...PP.N|ote that|
|00005a40| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 50 | the res|ulting P|
|00005a50| 6f 73 74 53 63 72 69 70 | 74 20 66 69 6c 65 20 72 |ostScrip|t file r|
|00005a60| 65 71 75 69 72 65 73 20 | 63 65 72 74 61 69 6e 20 |equires |certain |
|00005a70| 66 75 6e 63 74 69 6f 6e | 0a 64 65 66 69 6e 69 74 |function|.definit|
|00005a80| 69 6f 6e 73 20 74 68 61 | 74 20 61 72 65 6e 27 74 |ions tha|t aren't|
|00005a90| 20 6e 6f 72 6d 61 6c 6c | 79 20 70 72 65 73 65 6e | normall|y presen|
|00005aa0| 74 20 6f 6e 20 74 68 65 | 20 4c 61 73 65 72 57 72 |t on the| LaserWr|
|00005ab0| 69 74 65 72 2e 20 20 54 | 68 65 72 65 66 6f 72 65 |iter. T|herefore|
|00005ac0| 2c 0a 74 68 65 20 6f 75 | 74 70 75 74 20 6f 66 20 |,.the ou|tput of |
|00005ad0| 70 61 69 6e 74 70 73 20 | 6d 75 73 74 20 65 76 65 |paintps |must eve|
|00005ae0| 6e 74 75 61 6c 6c 79 20 | 62 65 20 70 72 69 6e 74 |ntually |be print|
|00005af0| 65 64 20 75 73 69 6e 67 | 20 22 6d 61 63 6c 61 73 |ed using| "maclas|
|00005b00| 65 72 22 20 69 6e 73 74 | 65 61 64 20 6f 66 2c 0a |er" inst|ead of,.|
|00005b10| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 22 6c 70 |for exam|ple, "lp|
|00005b20| 72 20 2d 50 6c 77 22 2e | 0a 2e 50 50 0a 54 68 65 |r -Plw".|..PP.The|
|00005b30| 20 6f 72 64 65 72 20 6f | 66 20 63 6f 6d 6d 61 6e | order o|f comman|
|00005b40| 64 20 6c 69 6e 65 20 61 | 72 67 75 6d 65 6e 74 73 |d line a|rguments|
|00005b50| 20 69 73 20 6e 6f 74 20 | 69 6d 70 6f 72 74 61 6e | is not |importan|
|00005b60| 74 2c 20 65 78 63 65 70 | 74 20 74 68 61 74 20 74 |t, excep|t that t|
|00005b70| 68 65 20 6f 70 74 69 6f | 6e 73 0a 6d 75 73 74 20 |he optio|ns.must |
|00005b80| 70 72 65 63 65 64 65 20 | 74 68 65 20 66 69 6c 65 |precede |the file|
|00005b90| 6e 61 6d 65 2e 20 20 54 | 68 65 20 61 76 61 69 6c |name. T|he avail|
|00005ba0| 61 62 6c 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |able com|mand lin|
|00005bb0| 65 20 6f 70 74 69 6f 6e | 73 20 61 72 65 3a 0a 2e |e option|s are:..|
|00005bc0| 54 50 0a 2e 42 20 2d 64 | 0a 53 70 65 63 69 66 69 |TP..B -d|.Specifi|
|00005bd0| 65 73 20 44 72 61 66 74 | 20 4d 6f 64 65 2e 20 20 |es Draft| Mode. |
|00005be0| 54 68 69 73 20 74 75 72 | 6e 73 20 6f 66 66 20 74 |This tur|ns off t|
|00005bf0| 68 65 20 73 6d 6f 6f 74 | 68 69 6e 67 20 66 75 6e |he smoot|hing fun|
|00005c00| 63 74 69 6f 6e 20 66 6f | 72 20 67 72 61 70 68 69 |ction fo|r graphi|
|00005c10| 63 73 2e 0a 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |cs..This| option |
|00005c20| 69 73 20 6f 66 20 64 75 | 62 69 6f 75 73 20 75 73 |is of du|bious us|
|00005c30| 65 66 75 6c 6e 65 73 73 | 20 73 69 6e 63 65 20 74 |efulness| since t|
|00005c40| 68 65 20 73 6d 6f 6f 74 | 68 69 6e 67 20 6f 76 65 |he smoot|hing ove|
|00005c50| 72 68 65 61 64 20 69 73 | 20 73 6d 61 6c 6c 2e 0a |rhead is| small..|
|00005c60| 2e 54 50 0a 2e 42 49 20 | 2d 23 3c 6e 3e 0a 53 70 |.TP..BI |-#<n>.Sp|
|00005c70| 65 63 69 66 69 65 73 20 | 6e 20 63 6f 70 69 65 73 |ecifies |n copies|
|00005c80| 20 73 68 6f 75 6c 64 20 | 62 65 20 70 72 69 6e 74 | should |be print|
|00005c90| 65 64 2e 0a 2e 54 50 0a | 2e 42 49 20 2d 50 3c 70 |ed...TP.|.BI -P<p|
|00005ca0| 72 69 6e 74 65 72 3e 0a | 53 70 65 63 69 66 69 65 |rinter>.|Specifie|
|00005cb0| 73 20 74 68 65 20 70 72 | 69 6e 74 65 72 20 74 6f |s the pr|inter to|
|00005cc0| 20 62 65 20 75 73 65 64 | 20 61 73 20 74 68 65 20 | be used| as the |
|00005cd0| 6f 75 74 70 75 74 20 64 | 65 76 69 63 65 2e 0a 2e |output d|evice...|
|00005ce0| 53 48 20 55 50 4c 4f 41 | 44 49 4e 47 5c 20 4d 41 |SH UPLOA|DING\ MA|
|00005cf0| 43 50 41 49 4e 54 5c 20 | 46 49 4c 45 53 5c 20 54 |CPAINT\ |FILES\ T|
|00005d00| 4f 5c 20 55 4e 49 58 0a | 59 6f 75 20 6d 61 79 20 |O\ UNIX.|You may |
|00005d10| 75 73 65 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 0a |use the |command.|
|00005d20| 2e 50 50 0a 25 20 6d 61 | 63 67 65 74 20 2d 64 0a |.PP.% ma|cget -d.|
|00005d30| 2e 50 50 0a 74 6f 20 75 | 70 6c 6f 61 64 20 4d 61 |.PP.to u|pload Ma|
|00005d40| 63 50 61 69 6e 74 20 66 | 69 6c 65 73 20 66 72 6f |cPaint f|iles fro|
|00005d50| 6d 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |m the Ma|cintosh |
|00005d60| 74 6f 20 55 4e 49 58 2e | 20 20 53 65 65 20 6d 61 |to UNIX.| See ma|
|00005d70| 63 67 65 74 28 6c 6f 63 | 61 6c 29 0a 66 6f 72 20 |cget(loc|al).for |
|00005d80| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00005d90| 2e 0a 2e 53 48 20 44 49 | 41 47 4e 4f 53 54 49 43 |...SH DI|AGNOSTIC|
|00005da0| 53 0a 49 66 20 74 68 65 | 20 4c 61 73 65 72 57 72 |S.If the| LaserWr|
|00005db0| 69 74 65 72 20 70 72 6f | 64 75 63 65 73 20 61 6e |iter pro|duces an|
|00005dc0| 20 65 72 72 6f 72 20 70 | 61 67 65 20 73 61 79 69 | error p|age sayi|
|00005dd0| 6e 67 20 22 2f 6d 64 20 | 75 6e 64 65 66 69 6e 65 |ng "/md |undefine|
|00005de0| 64 22 2c 20 74 68 69 73 | 0a 70 72 6f 62 61 62 6c |d", this|.probabl|
|00005df0| 79 20 6d 65 61 6e 73 20 | 79 6f 75 20 73 70 6f 6f |y means |you spoo|
|00005e00| 6c 65 64 20 74 68 65 20 | 6f 75 74 70 75 74 20 77 |led the |output w|
|00005e10| 69 74 68 20 6c 70 72 20 | 69 6e 73 74 65 61 64 20 |ith lpr |instead |
|00005e20| 6f 66 20 6d 61 63 6c 61 | 73 65 72 2e 0a 2e 53 48 |of macla|ser...SH|
|00005e30| 20 41 55 54 48 4f 52 0a | 42 72 69 61 6e 20 48 2e | AUTHOR.|Brian H.|
|00005e40| 20 50 6f 77 65 6c 6c 2c | 20 54 68 65 20 55 6e 69 | Powell,| The Uni|
|00005e50| 76 65 72 73 69 74 79 20 | 6f 66 20 54 65 78 61 73 |versity |of Texas|
|00005e60| 20 61 74 20 41 75 73 74 | 69 6e 0a 2e 53 48 20 53 | at Aust|in..SH S|
|00005e70| 45 45 5c 20 41 4c 53 4f | 0a 6d 61 63 6c 61 73 65 |EE\ ALSO|.maclase|
|00005e80| 72 28 6c 6f 63 61 6c 29 | 2c 20 6d 61 63 67 65 74 |r(local)|, macget|
|00005e90| 28 6c 6f 63 61 6c 29 0a | 65 2c 20 74 6f 70 5f 6f |(local).|e, top_o|
|00005ea0| 66 5f 73 65 63 74 2c 20 | 62 65 67 69 6e 5f 6c 69 |f_sect, |begin_li|
|00005eb0| 6e 65 2c 20 6e 75 6d 62 | 6c 61 6e 6b 73 2c 20 6c |ne, numb|lanks, l|
|00005ec0| 69 6e 65 73 5f 75 73 65 | 64 3b 0a 20 20 20 63 68 |ines_use|d;. ch|
|00005ed0| 61 72 20 6f 75 74 73 74 | 72 69 6e 67 5b 4d 41 43 |ar outst|ring[MAC|
|00005ee0| 52 41 53 54 45 52 5f 42 | 49 54 57 49 44 54 48 2f |RASTER_B|ITWIDTH/|
|00005ef0| 34 5d 3b 0a 0a 20 20 20 | 78 73 63 61 6c 65 20 3d |4];.. |xscale =|
|00005f00| 20 58 53 43 41 4c 45 3b | 09 09 2f 2a 20 50 6f 73 | XSCALE;|../* Pos|
|00005f10| 74 73 63 72 69 70 74 20 | 70 61 72 61 6d 65 74 65 |tscript |paramete|
|00005f20| 72 73 20 64 65 73 63 72 | 69 62 69 6e 67 20 74 68 |rs descr|ibing th|
|00005f30| 65 20 2a 2f 0a 20 20 20 | 78 6c 6f 63 20 3d 20 58 |e */. |xloc = X|
|00005f40| 4c 4f 43 3b 09 09 09 2f | 2a 20 73 69 7a 65 20 6f |LOC;.../|* size o|
|00005f50| 66 20 74 68 65 20 69 6d | 61 67 65 20 61 72 65 61 |f the im|age area|
|00005f60| 2e 20 20 2a 2f 0a 20 20 | 20 78 61 63 74 75 61 6c |. */. | xactual|
|00005f70| 20 3d 20 58 53 43 41 4c | 45 3b 0a 20 20 20 73 6d | = XSCAL|E;. sm|
|00005f80| 6f 6f 74 68 69 6e 67 20 | 3d 20 73 6d 6f 6f 74 68 |oothing |= smooth|
|00005f90| 20 3f 20 27 54 27 20 3a | 20 27 46 27 3b 0a 0a 2f | ? 'T' :| 'F';../|
|00005fa0| 2a 20 20 54 68 65 20 70 | 6f 73 74 73 63 72 69 70 |* The p|ostscrip|
|00005fb0| 74 20 6f 75 74 70 75 74 | 20 63 6f 6e 73 69 73 74 |t output| consist|
|00005fc0| 73 20 6f 66 20 63 61 6c | 6c 73 20 74 6f 20 22 64 |s of cal|ls to "d|
|00005fd0| 6f 62 69 74 73 22 20 66 | 6f 72 20 65 61 63 68 20 |obits" f|or each |
|00005fe0| 67 72 6f 75 70 20 6f 66 | 20 2a 2f 0a 2f 2a 20 6e |group of| */./* n|
|00005ff0| 6f 6e 2d 62 6c 61 6e 6b | 20 68 6f 72 69 7a 6f 6e |on-blank| horizon|
|00006000| 6d 61 63 70 61 69 6e 74 | 2d 74 6f 2d 70 6f 73 74 |macpaint|-to-post|
|00006010| 73 63 72 69 70 74 2f 4d | 61 6b 65 66 69 6c 65 00 |script/M|akefile.|
|00006020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 32 |.... 6|64 . 2|
|00006070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00006080| 20 20 20 20 35 37 31 20 | 20 34 34 30 33 36 31 37 | 571 | 4403617|
|00006090| 34 35 32 20 20 31 32 31 | 35 37 00 20 00 00 00 00 |452 121|57. ....|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 53 52 43 53 3d 20 70 61 | 69 6e 74 70 73 2e 63 0a |SRCS= pa|intps.c.|
|00006210| 4f 42 4a 53 3d 20 70 61 | 69 6e 74 70 73 2e 6f 0a |OBJS= pa|intps.o.|
|00006220| 43 4f 4d 4d 41 4e 44 53 | 3d 20 70 61 69 6e 74 70 |COMMANDS|= paintp|
|00006230| 73 0a 43 46 4c 41 47 53 | 3d 20 2d 4f 0a 42 49 4e |s.CFLAGS|= -O.BIN|
|00006240| 3d 20 2f 75 73 72 2f 6c | 6f 63 61 6c 0a 4d 41 4e |= /usr/l|ocal.MAN|
|00006250| 3d 20 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 6c 0a |= /usr/m|an/manl.|
|00006260| 0a 53 50 4f 4f 4c 43 4d | 44 3d 20 22 6d 61 63 6c |.SPOOLCM|D= "macl|
|00006270| 61 73 65 72 22 0a 0a 61 | 6c 6c 3a 20 24 28 43 4f |aser"..a|ll: $(CO|
|00006280| 4d 4d 41 4e 44 53 29 0a | 0a 70 61 69 6e 74 70 73 |MMANDS).|.paintps|
|00006290| 3a 20 70 61 69 6e 74 70 | 73 2e 63 0a 09 24 28 43 |: paintp|s.c..$(C|
|000062a0| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 70 61 69 |C) $(CFL|AGS) pai|
|000062b0| 6e 74 70 73 2e 63 20 2d | 6f 20 70 61 69 6e 74 70 |ntps.c -|o paintp|
|000062c0| 73 20 27 2d 44 53 50 4f | 4f 4c 43 4d 44 3d 24 28 |s '-DSPO|OLCMD=$(|
|000062d0| 53 50 4f 4f 4c 43 4d 44 | 29 27 0a 0a 69 6e 73 74 |SPOOLCMD|)'..inst|
|000062e0| 61 6c 6c 3a 20 24 28 43 | 4f 4d 4d 41 4e 44 53 29 |all: $(C|OMMANDS)|
|000062f0| 0a 09 69 6e 73 74 61 6c | 6c 20 2d 73 20 2d 6d 20 |..instal|l -s -m |
|00006300| 30 37 37 35 20 70 61 69 | 6e 74 70 73 20 24 7b 44 |0775 pai|ntps ${D|
|00006310| 45 53 54 44 49 52 7d 2f | 24 7b 42 49 4e 7d 0a 09 |ESTDIR}/|${BIN}..|
|00006320| 69 6e 73 74 61 6c 6c 20 | 2d 63 20 2d 6d 20 30 34 |install |-c -m 04|
|00006330| 34 34 20 70 61 69 6e 74 | 70 73 2e 31 20 24 7b 44 |44 paint|ps.1 ${D|
|00006340| 45 53 54 44 49 52 7d 2f | 24 7b 4d 41 4e 7d 0a 0a |ESTDIR}/|${MAN}..|
|00006350| 63 6c 65 61 6e 3a 0a 09 | 72 6d 20 2d 66 20 2a 2e |clean:..|rm -f *.|
|00006360| 6f 20 61 2e 6f 75 74 20 | 63 6f 72 65 20 24 28 43 |o a.out |core $(C|
|00006370| 4f 4d 4d 41 4e 44 53 29 | 0a 00 00 00 00 00 00 00 |OMMANDS)|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.