home *** CD-ROM | disk | FTP | other *** search
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: mcdrwtmg.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file macdraw-to-imagen/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4403617173
| 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 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00000010| 6e 2f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n/......|........|
|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| 31 37 33 20 20 20 37 33 | 31 35 00 20 00 00 00 00 |173 73|15. ....|
|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 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00000210| 6e 2f 52 45 41 44 4d 45 | 00 00 00 00 00 00 00 00 |n/README|........|
|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 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 31 31 36 34 37 20 | 20 34 34 30 33 36 31 37 | 11647 | 4403617|
|00000290| 31 32 36 20 20 31 30 33 | 31 31 00 20 00 00 00 00 |126 103|11. ....|
|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| 09 09 20 20 20 20 52 45 | 41 44 4d 45 20 66 6f 72 |.. RE|ADME for|
|00000410| 20 64 72 61 77 69 6d 70 | 20 64 69 73 74 72 69 62 | drawimp| distrib|
|00000420| 75 74 69 6f 6e 0a 0a 09 | 09 09 20 4c 61 73 74 20 |ution...|.. Last |
|00000430| 65 64 69 74 3a 20 31 39 | 2d 53 65 70 2d 38 36 0a |edit: 19|-Sep-86.|
|00000440| 0a 54 68 69 73 20 69 73 | 20 74 68 65 20 66 6f 75 |.This is| the fou|
|00000450| 72 74 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |rth vers|ion of t|
|00000460| 68 65 20 4d 61 63 44 72 | 61 77 20 74 6f 20 49 6d |he MacDr|aw to Im|
|00000470| 70 72 65 73 73 20 70 72 | 6f 67 72 61 6d 2c 20 22 |press pr|ogram, "|
|00000480| 64 72 61 77 69 6d 70 22 | 2e 0a 54 68 65 20 70 72 |drawimp"|..The pr|
|00000490| 6f 67 72 61 6d 20 69 73 | 20 75 73 65 64 20 74 6f |ogram is| used to|
|000004a0| 20 63 6f 6e 76 65 72 74 | 20 61 20 4d 61 63 44 72 | convert| a MacDr|
|000004b0| 61 77 20 70 69 63 74 75 | 72 65 20 74 6f 20 61 20 |aw pictu|re to a |
|000004c0| 63 6c 6f 73 65 20 61 70 | 70 72 6f 78 69 6d 61 74 |close ap|proximat|
|000004d0| 69 6f 6e 0a 74 68 61 74 | 20 77 69 6c 6c 20 70 72 |ion.that| will pr|
|000004e0| 69 6e 74 20 6f 6e 20 61 | 6e 20 49 6d 61 67 65 6e |int on a|n Imagen|
|000004f0| 20 6c 61 73 65 72 20 70 | 72 69 6e 74 65 72 2e 20 | laser p|rinter. |
|00000500| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 | The fol|lowing t|
|00000510| 68 69 6e 67 73 20 68 61 | 76 65 20 6e 6f 74 0a 62 |hings ha|ve not.b|
|00000520| 65 65 6e 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |een impl|emented |
|00000530| 79 65 74 20 62 75 74 20 | 68 6f 70 65 66 75 6c 6c |yet but |hopefull|
|00000540| 79 20 77 69 6c 6c 20 62 | 65 20 65 76 65 6e 74 75 |y will b|e eventu|
|00000550| 61 6c 6c 79 2e 0a 0a 09 | 53 6d 6f 6f 74 68 65 64 |ally....|Smoothed|
|00000560| 20 70 6f 6c 79 67 6f 6e | 73 0a 09 50 49 43 54 20 | polygon|s..PICT |
|00000570| 6f 62 6a 65 63 74 73 20 | 66 72 6f 6d 20 4d 61 63 |objects |from Mac|
|00000580| 50 61 69 6e 74 0a 09 43 | 6c 69 70 70 69 6e 67 20 |Paint..C|lipping |
|00000590| 6f 66 20 6f 62 6a 65 63 | 74 73 20 74 68 61 74 20 |of objec|ts that |
|000005a0| 63 72 6f 73 73 20 38 78 | 31 30 20 69 6e 63 68 20 |cross 8x|10 inch |
|000005b0| 70 61 67 65 20 62 6f 75 | 6e 64 61 72 69 65 73 0a |page bou|ndaries.|
|000005c0| 09 52 6f 74 61 74 65 64 | 2c 20 63 65 6e 74 65 72 |.Rotated|, center|
|000005d0| 65 64 2c 20 6f 72 20 66 | 6c 75 73 68 65 64 2d 72 |ed, or f|lushed-r|
|000005e0| 69 67 68 74 20 74 65 78 | 74 0a 0a 56 61 72 69 6f |ight tex|t..Vario|
|000005f0| 75 73 20 6e 6f 74 65 73 | 20 61 62 6f 75 74 20 74 |us notes| about t|
|00000600| 68 65 20 70 72 6f 67 72 | 61 6d 20 28 69 6e 20 6e |he progr|am (in n|
|00000610| 6f 20 70 61 72 74 69 63 | 75 6c 61 72 20 6f 72 64 |o partic|ular ord|
|00000620| 65 72 29 3a 0a 0a 31 2e | 20 20 54 68 65 20 66 69 |er):..1.| The fi|
|00000630| 6c 65 20 70 61 74 74 65 | 72 6e 73 2e 63 20 63 6f |le patte|rns.c co|
|00000640| 6e 74 61 69 6e 73 20 74 | 68 65 20 64 61 74 61 20 |ntains t|he data |
|00000650| 66 6f 72 20 74 68 65 20 | 33 36 20 70 61 74 74 65 |for the |36 patte|
|00000660| 72 6e 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f |rns avai|lable fo|
|00000670| 72 0a 66 69 6c 6c 69 6e | 67 20 61 6e 64 20 64 72 |r.fillin|g and dr|
|00000680| 61 77 69 6e 67 20 69 6e | 20 4d 61 63 44 72 61 77 |awing in| MacDraw|
|00000690| 2e 20 20 53 6f 6d 65 20 | 6f 66 20 74 68 65 20 70 |. Some |of the p|
|000006a0| 61 74 74 65 72 6e 73 20 | 74 68 61 74 20 72 65 70 |atterns |that rep|
|000006b0| 72 65 73 65 6e 74 20 61 | 20 31 2f 32 0a 6f 72 20 |resent a| 1/2.or |
|000006c0| 31 2f 34 20 64 65 6e 73 | 69 74 79 20 67 72 65 79 |1/4 dens|ity grey|
|000006d0| 20 6c 65 76 65 6c 20 68 | 61 76 65 20 62 65 65 6e | level h|ave been|
|000006e0| 20 65 6e 74 65 72 65 64 | 20 61 74 20 74 68 65 20 | entered| at the |
|000006f0| 68 69 67 68 65 72 20 72 | 65 73 6f 6c 75 74 69 6f |higher r|esolutio|
|00000700| 6e 20 6c 65 76 65 6c 0a | 73 6f 20 74 68 65 20 70 |n level.|so the p|
|00000710| 61 74 74 65 72 6e 20 77 | 69 6c 6c 20 6c 6f 6f 6b |attern w|ill look|
|00000720| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 61 6e 20 | differe|nt than |
|00000730| 74 68 61 74 20 66 72 6f | 6d 20 61 20 4d 61 63 50 |that fro|m a MacP|
|00000740| 61 69 6e 74 20 69 6d 61 | 67 65 2e 20 20 54 68 65 |aint ima|ge. The|
|00000750| 0a 70 61 74 74 65 72 6e | 73 20 61 72 65 20 61 6c |.pattern|s are al|
|00000760| 73 6f 20 73 6c 69 67 68 | 74 6c 79 20 73 6d 61 6c |so sligh|tly smal|
|00000770| 6c 65 72 20 74 68 61 6e | 20 74 68 65 79 20 73 68 |ler than| they sh|
|00000780| 6f 75 6c 64 20 62 65 20 | 73 69 6e 63 65 20 74 68 |ould be |since th|
|00000790| 65 79 20 68 61 76 65 20 | 62 65 65 6e 0a 65 78 70 |ey have |been.exp|
|000007a0| 61 6e 64 65 64 20 62 79 | 20 61 20 66 61 63 74 6f |anded by| a facto|
|000007b0| 72 20 6f 66 20 34 20 77 | 68 65 72 65 61 73 20 74 |r of 4 w|hereas t|
|000007c0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 69 |he rest |of the i|
|000007d0| 6d 61 67 65 20 68 61 73 | 20 62 65 65 6e 20 65 78 |mage has| been ex|
|000007e0| 70 61 6e 64 65 64 20 62 | 79 0a 61 62 6f 75 74 20 |panded b|y.about |
|000007f0| 34 2e 31 37 2e 20 20 42 | 65 63 61 75 73 65 20 6f |4.17. B|ecause o|
|00000800| 66 20 74 68 69 73 2c 20 | 61 6e 79 20 69 6d 61 67 |f this, |any imag|
|00000810| 65 20 74 68 61 74 20 72 | 65 6c 69 65 73 20 6f 6e |e that r|elies on|
|00000820| 20 74 68 65 20 70 68 61 | 73 65 20 6f 66 20 74 68 | the pha|se of th|
|00000830| 65 0a 70 61 74 74 65 72 | 6e 20 62 65 69 6e 67 20 |e.patter|n being |
|00000840| 63 6f 72 72 65 63 74 20 | 61 74 20 73 6f 6d 65 20 |correct |at some |
|00000850| 70 6f 69 6e 74 20 69 6e | 20 74 68 65 20 69 6d 61 |point in| the ima|
|00000860| 67 65 20 77 69 6c 6c 20 | 6e 6f 74 20 63 6f 6d 65 |ge will |not come|
|00000870| 20 6f 75 74 20 72 69 67 | 68 74 2e 0a 0a 32 2e 20 | out rig|ht...2. |
|00000880| 20 49 6d 70 72 65 73 73 | 20 6f 6e 20 74 68 65 20 | Impress| on the |
|00000890| 38 2f 33 30 30 20 68 61 | 73 20 61 20 6c 69 6d 69 |8/300 ha|s a limi|
|000008a0| 74 20 6f 66 20 31 34 20 | 70 61 74 74 65 72 6e 73 |t of 14 |patterns|
|000008b0| 20 74 68 61 74 20 63 61 | 6e 20 62 65 20 64 6f 77 | that ca|n be dow|
|000008c0| 6e 6c 6f 61 64 65 64 2c | 0a 6e 6f 74 20 63 6f 75 |nloaded,|.not cou|
|000008d0| 6e 74 69 6e 67 20 63 6c | 65 61 72 2c 20 77 68 69 |nting cl|ear, whi|
|000008e0| 74 65 2c 20 61 6e 64 20 | 62 6c 61 63 6b 2e 20 20 |te, and |black. |
|000008f0| 49 74 20 69 73 20 75 70 | 20 74 6f 20 74 68 65 20 |It is up| to the |
|00000900| 75 73 65 72 20 74 6f 20 | 6d 61 6b 65 20 73 75 72 |user to |make sur|
|00000910| 65 20 74 68 65 0a 70 69 | 63 74 75 72 65 20 64 6f |e the.pi|cture do|
|00000920| 65 73 20 6e 6f 74 20 65 | 78 63 65 65 64 20 74 68 |es not e|xceed th|
|00000930| 69 73 20 6c 69 6d 69 74 | 2e 0a 0a 33 2e 20 20 54 |is limit|...3. T|
|00000940| 68 65 20 66 69 6c 65 20 | 69 6d 70 72 65 73 73 2e |he file |impress.|
|00000950| 63 20 63 6f 6e 74 61 69 | 6e 73 20 66 75 6e 63 74 |c contai|ns funct|
|00000960| 69 6f 6e 73 20 74 6f 20 | 6f 75 74 70 75 74 20 74 |ions to |output t|
|00000970| 68 65 20 49 6d 70 72 65 | 73 73 20 63 6f 6d 6d 61 |he Impre|ss comma|
|00000980| 6e 64 0a 73 74 72 69 6e | 67 73 2e 20 20 53 6f 20 |nd.strin|gs. So |
|00000990| 66 61 72 20 69 74 20 6f | 6e 6c 79 20 63 6f 6e 74 |far it o|nly cont|
|000009a0| 61 69 6e 73 20 74 68 65 | 20 66 75 6e 63 74 69 6f |ains the| functio|
|000009b0| 6e 20 6e 65 65 64 65 64 | 20 62 79 20 64 72 61 77 |n needed| by draw|
|000009c0| 69 6d 70 2c 20 6f 74 68 | 65 72 73 0a 77 69 6c 6c |imp, oth|ers.will|
|000009d0| 20 62 65 20 61 64 64 65 | 64 20 77 68 65 6e 20 72 | be adde|d when r|
|000009e0| 65 71 75 69 72 65 64 2e | 0a 0a 34 2e 20 20 54 68 |equired.|..4. Th|
|000009f0| 65 20 74 65 78 74 20 6f | 75 74 70 75 74 20 75 73 |e text o|utput us|
|00000a00| 65 73 20 74 68 65 20 66 | 6f 6e 74 73 20 73 75 70 |es the f|onts sup|
|00000a10| 70 6c 69 65 64 20 77 69 | 74 68 20 74 68 65 20 55 |plied wi|th the U|
|00000a20| 6e 69 78 20 54 65 58 20 | 64 69 73 74 72 69 62 75 |nix TeX |distribu|
|00000a30| 74 69 6f 6e 2e 0a 49 66 | 20 79 6f 75 20 64 6f 6e |tion..If| you don|
|00000a40| 27 74 20 68 61 76 65 20 | 74 68 65 20 54 65 58 20 |'t have |the TeX |
|00000a50| 22 61 6d 22 20 66 6f 6e | 74 73 2c 20 69 74 20 70 |"am" fon|ts, it p|
|00000a60| 72 6f 62 61 62 6c 79 20 | 77 6f 6e 27 74 20 77 6f |robably |won't wo|
|00000a70| 72 6b 2e 20 20 54 68 65 | 20 70 72 6f 67 72 61 6d |rk. The| program|
|00000a80| 0a 77 69 6c 6c 20 6c 6f | 6f 6b 20 66 6f 72 20 66 |.will lo|ok for f|
|00000a90| 6f 6e 74 73 20 69 6e 20 | 74 68 65 20 64 69 72 65 |onts in |the dire|
|00000aa0| 63 74 6f 72 79 20 70 6f | 69 6e 74 65 64 20 74 6f |ctory po|inted to|
|00000ab0| 20 62 79 20 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d | by the |environm|
|00000ac0| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 0a 54 45 58 |ent vari|able.TEX|
|00000ad0| 46 4f 4e 54 53 2e 20 20 | 49 66 20 54 45 58 46 4f |FONTS. |If TEXFO|
|00000ae0| 4e 54 53 20 69 73 20 6e | 6f 74 20 64 65 66 69 6e |NTS is n|ot defin|
|00000af0| 65 64 2c 20 69 74 20 77 | 69 6c 6c 20 75 73 65 20 |ed, it w|ill use |
|00000b00| 74 68 65 20 64 65 66 61 | 75 6c 74 20 70 61 74 68 |the defa|ult path|
|00000b10| 20 73 70 65 63 69 66 65 | 64 0a 69 6e 20 70 78 6c | specife|d.in pxl|
|00000b20| 2e 68 2e 20 20 49 66 20 | 61 6e 64 20 77 68 65 6e |.h. If |and when|
|00000b30| 20 77 65 20 67 65 74 20 | 74 68 65 20 6e 65 77 65 | we get |the newe|
|00000b40| 72 20 54 65 58 20 64 69 | 73 74 72 69 62 75 74 69 |r TeX di|stributi|
|00000b50| 6f 6e 20 77 69 74 68 20 | 74 68 65 20 22 63 6d 22 |on with |the "cm"|
|00000b60| 20 66 6f 6e 74 73 0a 74 | 68 65 20 70 72 6f 67 72 | fonts.t|he progr|
|00000b70| 61 6d 20 77 69 6c 6c 20 | 62 65 20 63 68 61 6e 67 |am will |be chang|
|00000b80| 65 64 20 74 6f 20 75 73 | 65 20 74 68 65 6d 2e 0a |ed to us|e them..|
|00000b90| 0a 36 2e 20 20 54 68 65 | 20 72 6f 75 74 69 6e 65 |.6. The| routine|
|00000ba0| 73 20 66 6f 72 20 68 61 | 6e 64 6c 69 6e 67 20 74 |s for ha|ndling t|
|00000bb0| 68 65 20 74 65 78 74 20 | 66 6f 6e 74 73 20 77 65 |he text |fonts we|
|00000bc0| 72 65 20 74 61 6b 65 6e | 20 66 72 6f 6d 20 74 68 |re taken| from th|
|00000bd0| 65 20 49 6d 61 67 65 6e | 0a 64 72 69 76 65 72 20 |e Imagen|.driver |
|00000be0| 73 75 70 70 6c 69 65 64 | 20 77 69 74 68 20 74 68 |supplied| with th|
|00000bf0| 65 20 55 6e 69 78 20 54 | 65 78 20 64 69 73 74 72 |e Unix T|ex distr|
|00000c00| 69 62 75 74 69 6f 6e 2e | 20 20 54 68 65 73 65 20 |ibution.| These |
|00000c10| 66 69 6c 65 73 20 28 69 | 6e 63 6c 75 64 69 6e 67 |files (i|ncluding|
|00000c20| 20 6f 6e 65 0a 56 41 58 | 20 6d 61 63 68 69 6e 65 | one.VAX| machine|
|00000c30| 20 6c 61 6e 67 75 61 67 | 65 20 72 6f 75 74 69 6e | languag|e routin|
|00000c40| 65 29 20 6d 61 79 20 6e | 6f 74 20 62 65 20 74 6f |e) may n|ot be to|
|00000c50| 6f 20 70 6f 72 74 61 62 | 6c 65 20 74 6f 20 6f 74 |o portab|le to ot|
|00000c60| 68 65 72 20 6e 6f 6e 2d | 56 41 58 0a 73 79 73 74 |her non-|VAX.syst|
|00000c70| 65 6d 73 2e 20 20 54 68 | 65 20 72 65 73 74 20 6f |ems. Th|e rest o|
|00000c80| 66 20 64 72 61 77 69 6d | 70 20 73 68 6f 75 6c 64 |f drawim|p should|
|00000c90| 20 72 75 6e 20 6f 6e 20 | 6e 6f 6e 2d 56 41 58 20 | run on |non-VAX |
|00000ca0| 73 79 73 74 65 6d 73 20 | 77 69 74 68 20 66 65 77 |systems |with few|
|00000cb0| 0a 63 68 61 6e 67 65 73 | 2e 20 20 54 68 65 20 70 |.changes|. The p|
|00000cc0| 72 6f 67 72 61 6d 20 63 | 61 6e 20 62 65 20 72 75 |rogram c|an be ru|
|00000cd0| 6e 20 77 69 74 68 6f 75 | 74 20 74 68 65 20 74 65 |n withou|t the te|
|00000ce0| 78 74 20 72 6f 75 74 69 | 6e 65 73 20 62 79 20 64 |xt routi|nes by d|
|00000cf0| 65 66 69 6e 69 6e 67 0a | 4e 4f 5f 54 45 58 54 20 |efining.|NO_TEXT |
|00000d00| 69 6e 20 64 72 61 77 69 | 6d 70 2e 63 20 61 6e 64 |in drawi|mp.c and|
|00000d10| 20 6c 69 6e 6b 69 6e 67 | 20 6a 75 73 74 20 64 72 | linking| just dr|
|00000d20| 61 77 69 6d 70 2e 6f 2c | 20 70 61 74 74 65 72 6e |awimp.o,| pattern|
|00000d30| 73 2e 6f 2c 20 61 6e 64 | 20 69 6d 70 72 65 73 73 |s.o, and| impress|
|00000d40| 2e 6f 3a 0a 09 25 20 63 | 63 20 2d 6f 20 64 72 61 |.o:..% c|c -o dra|
|00000d50| 77 69 6d 70 20 2d 44 4e | 4f 5f 54 45 58 54 20 64 |wimp -DN|O_TEXT d|
|00000d60| 72 61 77 69 6d 70 2e 63 | 20 70 61 74 74 65 72 6e |rawimp.c| pattern|
|00000d70| 73 2e 6f 20 69 6d 70 72 | 65 73 73 2e 6f 20 2d 6c |s.o impr|ess.o -l|
|00000d80| 6d 0a 0a 37 2e 20 20 43 | 75 72 72 65 6e 74 6c 79 |m..7. C|urrently|
|00000d90| 20 61 6c 6c 20 4d 61 63 | 44 72 61 77 20 66 6f 6e | all Mac|Draw fon|
|00000da0| 74 73 20 64 65 66 61 75 | 6c 74 20 74 6f 20 74 68 |ts defau|lt to th|
|00000db0| 65 20 73 61 6d 65 20 74 | 69 6d 65 73 2d 72 6f 6d |e same t|imes-rom|
|00000dc0| 61 6e 20 74 79 70 65 20 | 6f 66 20 54 65 58 0a 66 |an type |of TeX.f|
|00000dd0| 6f 6e 74 2e 20 20 42 6f | 6c 64 20 61 6e 64 20 49 |ont. Bo|ld and I|
|00000de0| 74 61 6c 69 63 20 61 72 | 65 20 73 75 70 70 6f 72 |talic ar|e suppor|
|00000df0| 74 65 64 20 61 73 20 61 | 72 65 20 6d 6f 73 74 20 |ted as a|re most |
|00000e00| 6f 66 20 74 68 65 20 73 | 70 65 63 69 61 6c 20 63 |of the s|pecial c|
|00000e10| 68 61 72 61 63 74 65 72 | 73 0a 74 68 61 74 20 63 |haracter|s.that c|
|00000e20| 61 6e 20 62 65 20 70 72 | 69 6e 74 65 64 20 77 69 |an be pr|inted wi|
|00000e30| 74 68 20 6f 6e 65 20 63 | 68 61 72 61 63 74 65 72 |th one c|haracter|
|00000e40| 20 28 6e 6f 20 76 6f 77 | 65 6c 73 20 77 69 74 68 | (no vow|els with|
|00000e50| 20 61 63 63 65 6e 74 20 | 6d 61 72 6b 73 2c 20 65 | accent |marks, e|
|00000e60| 74 63 2e 29 2e 0a 54 68 | 65 20 73 65 6c 65 63 74 |tc.)..Th|e select|
|00000e70| 69 6f 6e 20 6f 66 20 77 | 68 69 63 68 20 63 68 61 |ion of w|hich cha|
|00000e80| 72 61 63 74 65 72 20 74 | 6f 20 75 73 65 20 66 6f |racter t|o use fo|
|00000e90| 72 20 65 61 63 68 20 4d | 61 63 44 72 61 77 20 63 |r each M|acDraw c|
|00000ea0| 68 61 72 61 63 74 65 72 | 20 69 73 20 64 6f 6e 65 |haracter| is done|
|00000eb0| 0a 69 6e 20 6d 61 63 74 | 65 78 74 2e 63 20 61 6e |.in mact|ext.c an|
|00000ec0| 64 20 63 61 6e 20 62 65 | 20 63 68 61 6e 67 65 64 |d can be| changed|
|00000ed0| 20 74 6f 20 73 75 69 74 | 20 69 6e 64 69 76 69 64 | to suit| individ|
|00000ee0| 75 61 6c 20 74 61 73 74 | 65 73 2e 20 20 0a 0a 38 |ual tast|es. ..8|
|00000ef0| 2e 20 20 54 68 65 20 54 | 65 58 20 63 68 61 72 61 |. The T|eX chara|
|00000f00| 63 74 65 72 73 20 61 72 | 65 20 73 6c 69 67 68 74 |cters ar|e slight|
|00000f10| 6c 79 20 64 69 66 66 65 | 72 65 6e 74 20 73 69 7a |ly diffe|rent siz|
|00000f20| 65 73 20 74 68 61 6e 20 | 74 68 65 20 4d 61 63 20 |es than |the Mac |
|00000f30| 63 68 61 72 61 63 74 65 | 72 73 0a 73 6f 20 74 65 |characte|rs.so te|
|00000f40| 78 74 20 73 74 72 69 6e | 67 73 20 77 69 6c 6c 20 |xt strin|gs will |
|00000f50| 6e 6f 74 20 63 6f 6d 65 | 20 6f 75 74 20 74 68 65 |not come| out the|
|00000f60| 20 73 61 6d 65 20 6c 65 | 6e 67 74 68 2e 20 20 54 | same le|ngth. T|
|00000f70| 68 69 6e 67 73 20 6c 69 | 6b 65 20 74 61 62 6c 65 |hings li|ke table|
|00000f80| 73 20 77 68 65 72 65 0a | 69 74 20 69 73 20 6e 65 |s where.|it is ne|
|00000f90| 63 65 73 73 61 72 79 20 | 74 6f 20 6c 69 6e 65 20 |cessary |to line |
|00000fa0| 74 68 69 6e 67 73 20 75 | 70 20 73 68 6f 75 6c 64 |things u|p should|
|00000fb0| 20 62 65 20 64 6f 6e 65 | 20 77 69 74 68 20 6d 75 | be done| with mu|
|00000fc0| 6c 74 69 70 6c 65 20 73 | 68 6f 72 74 20 74 65 78 |ltiple s|hort tex|
|00000fd0| 74 0a 73 74 72 69 6e 67 | 73 20 6f 6e 20 65 61 63 |t.string|s on eac|
|00000fe0| 68 20 6c 69 6e 65 20 72 | 61 74 68 65 72 20 74 68 |h line r|ather th|
|00000ff0| 61 6e 20 6f 6e 65 20 6c | 6f 6e 67 20 6c 69 6e 65 |an one l|ong line|
|00001000| 20 74 68 61 74 20 75 73 | 65 73 20 73 70 61 63 65 | that us|es space|
|00001010| 73 20 6f 72 20 74 61 62 | 73 20 74 6f 0a 61 63 68 |s or tab|s to.ach|
|00001020| 69 65 76 65 20 74 68 65 | 20 61 6c 69 67 6e 6d 65 |ieve the| alignme|
|00001030| 6e 74 2e 20 20 49 20 72 | 65 63 6f 6d 6d 65 6e 64 |nt. I r|ecommend|
|00001040| 20 75 73 69 6e 67 20 74 | 68 65 20 4e 65 77 20 59 | using t|he New Y|
|00001050| 6f 72 6b 20 66 6f 6e 74 | 20 77 68 65 6e 20 70 75 |ork font| when pu|
|00001060| 74 74 69 6e 67 0a 74 65 | 78 74 20 69 6e 20 74 68 |tting.te|xt in th|
|00001070| 65 20 64 72 61 77 69 6e | 67 20 73 69 6e 63 65 20 |e drawin|g since |
|00001080| 69 74 20 61 70 70 65 61 | 72 73 20 74 6f 20 62 65 |it appea|rs to be|
|00001090| 20 74 68 65 20 63 6c 6f | 73 65 73 74 20 69 6e 20 | the clo|sest in |
|000010a0| 73 69 7a 65 20 61 6e 64 | 20 77 69 6c 6c 20 67 69 |size and| will gi|
|000010b0| 76 65 0a 74 68 65 20 62 | 65 73 74 20 61 70 70 72 |ve.the b|est appr|
|000010c0| 6f 78 69 6d 61 74 69 6f | 6e 20 74 6f 20 74 68 65 |oximatio|n to the|
|000010d0| 20 63 6f 72 72 65 63 74 | 20 6c 65 6e 67 74 68 20 | correct| length |
|000010e0| 6f 66 20 74 65 78 74 20 | 73 74 72 69 6e 67 73 2e |of text |strings.|
|000010f0| 0a 0a 39 2e 20 20 49 4d | 50 4f 52 54 41 4e 54 21 |..9. IM|PORTANT!|
|00001100| 20 20 43 68 65 63 6b 20 | 74 68 65 20 66 6f 6e 74 | Check |the font|
|00001110| 20 66 69 6c 65 6e 61 6d | 65 20 64 65 66 69 6e 69 | filenam|e defini|
|00001120| 74 69 6f 6e 73 20 61 74 | 20 74 68 65 20 62 65 67 |tions at| the beg|
|00001130| 69 6e 6e 69 6e 67 20 6f | 66 0a 6d 61 63 74 65 78 |inning o|f.mactex|
|00001140| 74 2e 63 20 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |t.c to m|ake sure|
|00001150| 20 74 68 65 20 66 6f 6e | 74 20 66 69 6c 65 73 20 | the fon|t files |
|00001160| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 72 65 71 |that wil|l be req|
|00001170| 75 69 72 65 64 20 61 72 | 65 20 6f 6e 20 74 68 65 |uired ar|e on the|
|00001180| 0a 73 79 73 74 65 6d 2e | 20 20 54 68 65 20 70 61 |.system.| The pa|
|00001190| 72 61 6d 65 74 65 72 73 | 20 69 6e 20 74 68 65 20 |rameters| in the |
|000011a0| 74 61 62 6c 65 73 20 63 | 61 6e 20 62 65 20 63 68 |tables c|an be ch|
|000011b0| 61 6e 67 65 64 20 74 6f | 20 6d 61 74 63 68 20 65 |anged to| match e|
|000011c0| 78 69 73 74 69 6e 67 20 | 66 6f 6e 74 0a 66 69 6c |xisting |font.fil|
|000011d0| 65 73 2e 20 20 49 74 27 | 73 20 61 6c 6c 20 64 6f |es. It'|s all do|
|000011e0| 63 75 6d 65 6e 74 65 64 | 20 69 6e 20 6d 61 63 74 |cumented| in mact|
|000011f0| 65 78 74 2e 63 20 6e 65 | 61 72 20 74 68 65 20 74 |ext.c ne|ar the t|
|00001200| 61 62 6c 65 73 2e 20 20 | 54 68 65 20 77 61 79 20 |ables. |The way |
|00001210| 66 6f 6e 74 73 20 61 72 | 65 0a 73 70 65 63 69 66 |fonts ar|e.specif|
|00001220| 69 65 64 20 69 73 20 61 | 20 62 69 74 20 63 72 75 |ied is a| bit cru|
|00001230| 64 65 20 62 75 74 20 69 | 74 20 77 6f 72 6b 73 2e |de but i|t works.|
|00001240| 0a 0a 31 30 2e 20 20 54 | 68 65 20 2d 74 20 6f 70 |..10. T|he -t op|
|00001250| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 74 6f 20 |tion is |used to |
|00001260| 67 65 6e 65 72 61 74 65 | 20 69 6d 50 72 65 73 73 |generate| imPress|
|00001270| 20 66 69 6c 65 73 20 74 | 68 61 74 20 64 6f 20 6e | files t|hat do n|
|00001280| 6f 74 20 68 61 76 65 20 | 61 0a 68 65 61 64 65 72 |ot have |a.header|
|00001290| 20 61 6e 64 20 69 73 20 | 75 73 65 64 20 66 6f 72 | and is |used for|
|000012a0| 20 64 72 61 77 69 6e 67 | 73 20 74 68 61 74 20 61 | drawing|s that a|
|000012b0| 72 65 20 74 6f 20 62 65 | 20 69 6e 63 6c 75 64 65 |re to be| include|
|000012c0| 64 20 69 6e 20 61 20 4c | 61 54 65 78 20 64 6f 63 |d in a L|aTex doc|
|000012d0| 75 6d 65 6e 74 0a 75 73 | 69 6e 67 20 74 68 65 20 |ument.us|ing the |
|000012e0| 54 65 58 20 5c 73 70 65 | 63 69 61 6c 20 63 6f 6d |TeX \spe|cial com|
|000012f0| 6d 61 6e 64 2e 20 20 54 | 68 69 73 20 61 6c 6c 6f |mand. T|his allo|
|00001300| 77 73 20 6f 6e 65 20 74 | 6f 20 70 72 69 6e 74 20 |ws one t|o print |
|00001310| 61 20 4c 61 54 65 58 20 | 64 6f 63 75 6d 65 6e 74 |a LaTeX |document|
|00001320| 0a 6f 6e 20 74 68 65 20 | 49 6d 61 67 65 6e 2c 20 |.on the |Imagen, |
|00001330| 63 6f 6d 70 6c 65 74 65 | 20 77 69 74 68 20 66 69 |complete| with fi|
|00001340| 67 75 72 65 73 2c 20 73 | 6f 20 61 73 20 74 6f 20 |gures, s|o as to |
|00001350| 61 76 6f 69 64 20 64 6f | 69 6e 67 20 61 6e 79 20 |avoid do|ing any |
|00001360| 63 75 74 74 69 6e 67 20 | 61 6e 64 0a 70 61 73 74 |cutting |and.past|
|00001370| 69 6e 67 20 61 66 74 65 | 72 77 61 72 64 73 2e 20 |ing afte|rwards. |
|00001380| 20 54 68 65 20 64 69 73 | 74 72 69 62 75 74 69 6f | The dis|tributio|
|00001390| 6e 20 69 6e 63 6c 75 64 | 65 73 20 74 68 65 20 66 |n includ|es the f|
|000013a0| 69 6c 65 73 20 77 65 20 | 75 73 65 20 74 6f 20 6d |iles we |use to m|
|000013b0| 61 6b 65 20 74 68 69 73 | 0a 77 6f 72 6b 20 28 73 |ake this|.work (s|
|000013c0| 70 65 63 69 61 6c 2e 63 | 20 61 6e 64 20 50 69 63 |pecial.c| and Pic|
|000013d0| 4d 61 63 72 6f 73 2e 74 | 65 78 29 2e 20 20 53 65 |Macros.t|ex). Se|
|000013e0| 65 20 74 68 65 20 66 69 | 6c 65 20 52 45 41 44 4d |e the fi|le READM|
|000013f0| 45 2e 53 50 43 4c 20 66 | 6f 72 20 6d 6f 72 65 20 |E.SPCL f|or more |
|00001400| 69 6e 66 6f 2e 0a 0a 31 | 31 2e 20 20 53 6f 6d 65 |info...1|1. Some|
|00001410| 20 63 68 61 6e 67 65 73 | 20 69 6e 20 74 68 65 20 | changes| in the |
|00001420| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 28 |user int|erface (|
|00001430| 62 79 20 70 6f 70 75 6c | 61 72 20 64 65 6d 61 6e |by popul|ar deman|
|00001440| 64 29 20 73 69 6e 63 65 | 20 74 68 65 20 66 69 72 |d) since| the fir|
|00001450| 73 74 0a 76 65 72 73 69 | 6f 6e 2e 20 20 44 72 61 |st.versi|on. Dra|
|00001460| 77 69 6d 70 20 6e 6f 77 | 20 61 63 63 65 70 74 73 |wimp now| accepts|
|00001470| 20 6d 75 6c 74 69 70 6c | 65 20 69 6e 70 75 74 20 | multipl|e input |
|00001480| 66 69 6c 65 73 20 61 6e | 64 20 77 69 6c 6c 20 70 |files an|d will p|
|00001490| 72 6f 63 65 73 73 20 74 | 68 65 6d 20 6f 6e 65 0a |rocess t|hem one.|
|000014a0| 61 66 74 65 72 20 74 68 | 65 20 6f 74 68 65 72 20 |after th|e other |
|000014b0| 74 6f 20 63 72 65 61 74 | 65 20 61 20 73 69 6e 67 |to creat|e a sing|
|000014c0| 6c 65 20 6f 75 74 70 75 | 74 20 73 74 72 65 61 6d |le outpu|t stream|
|000014d0| 2e 20 20 54 68 65 20 69 | 6d 50 52 45 53 53 20 64 |. The i|mPRESS d|
|000014e0| 61 74 61 20 77 69 6c 6c | 0a 68 61 76 65 20 45 4e |ata will|.have EN|
|000014f0| 44 50 41 47 45 20 63 6f | 6d 6d 61 6e 64 73 20 73 |DPAGE co|mmands s|
|00001500| 65 70 61 72 61 74 69 6e | 67 20 74 68 65 20 64 61 |eparatin|g the da|
|00001510| 74 61 20 66 72 6f 6d 20 | 64 69 66 66 65 72 65 6e |ta from |differen|
|00001520| 74 20 66 69 6c 65 73 2e | 20 20 49 6e 70 75 74 20 |t files.| Input |
|00001530| 66 72 6f 6d 0a 73 74 64 | 69 6e 20 69 73 20 6e 6f |from.std|in is no|
|00001540| 20 6c 6f 6e 67 65 72 20 | 73 75 70 70 6f 72 74 65 | longer |supporte|
|00001550| 64 2e 20 20 49 6e 20 6e | 6f 72 6d 61 6c 20 6d 6f |d. In n|ormal mo|
|00001560| 64 65 2c 20 61 6c 6c 20 | 6f 75 74 70 75 74 20 67 |de, all |output g|
|00001570| 6f 65 73 20 74 6f 20 73 | 74 64 6f 75 74 20 28 2d |oes to s|tdout (-|
|00001580| 6f 0a 6f 70 74 69 6f 6e | 20 68 61 73 20 62 65 65 |o.option| has bee|
|00001590| 6e 20 72 65 6d 6f 76 65 | 64 29 2e 20 20 54 68 65 |n remove|d). The|
|000015a0| 20 2d 64 20 6f 70 74 69 | 6f 6e 20 6e 6f 77 20 63 | -d opti|on now c|
|000015b0| 61 75 73 65 73 20 74 68 | 65 20 64 65 62 75 67 67 |auses th|e debugg|
|000015c0| 69 6e 67 0a 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing.info|rmation |
|000015d0| 74 6f 20 62 65 20 77 72 | 69 74 74 65 6e 20 74 6f |to be wr|itten to|
|000015e0| 20 73 74 64 65 72 72 2c | 20 61 6e 64 20 64 6f 65 | stderr,| and doe|
|000015f0| 73 20 6e 6f 74 20 69 6e | 68 69 62 69 74 20 74 68 |s not in|hibit th|
|00001600| 65 20 69 6d 50 52 45 53 | 53 20 6f 75 74 70 75 74 |e imPRES|S output|
|00001610| 0a 66 72 6f 6d 20 62 65 | 69 6e 67 20 77 72 69 74 |.from be|ing writ|
|00001620| 74 65 6e 20 74 6f 20 73 | 74 64 6f 75 74 2e 20 20 |ten to s|tdout. |
|00001630| 49 66 20 61 6c 6c 20 79 | 6f 75 20 77 61 6e 74 20 |If all y|ou want |
|00001640| 69 73 20 61 20 6c 69 73 | 74 20 6f 66 20 6f 62 6a |is a lis|t of obj|
|00001650| 65 63 74 73 20 69 6e 20 | 74 68 65 0a 66 69 6c 65 |ects in |the.file|
|00001660| 2c 20 75 73 65 20 22 64 | 72 61 77 69 6d 70 20 2d |, use "d|rawimp -|
|00001670| 64 20 6d 79 66 69 6c 65 | 2e 64 61 74 61 20 3e 2f |d myfile|.data >/|
|00001680| 64 65 76 2f 6e 75 6c 6c | 22 2e 0a 0a 39 39 39 2e |dev/null|"...999.|
|00001690| 20 20 50 6c 65 61 73 65 | 20 73 65 6e 64 20 61 6e | Please| send an|
|000016a0| 79 20 71 75 65 73 74 69 | 6f 6e 2c 20 63 6f 6d 6d |y questi|on, comm|
|000016b0| 65 6e 74 73 20 6f 72 20 | 62 75 67 20 72 65 70 6f |ents or |bug repo|
|000016c0| 72 74 73 20 74 6f 20 6d | 65 20 61 74 20 6f 6e 65 |rts to m|e at one|
|000016d0| 20 6f 66 20 74 68 65 0a | 61 64 64 72 65 73 73 65 | of the.|addresse|
|000016e0| 73 20 73 68 6f 77 6e 20 | 62 65 6c 6f 77 2e 0a 0a |s shown |below...|
|000016f0| 41 6c 6c 61 6e 20 57 65 | 62 65 72 0a 55 53 43 20 |Allan We|ber.USC |
|00001700| 53 69 67 6e 61 6c 20 26 | 20 49 6d 61 67 65 20 50 |Signal &| Image P|
|00001710| 72 6f 63 65 73 73 69 6e | 67 20 49 6e 73 74 69 74 |rocessin|g Instit|
|00001720| 75 74 65 0a 50 6f 77 65 | 6c 6c 20 48 61 6c 6c 20 |ute.Powe|ll Hall |
|00001730| 33 30 36 2c 20 4d 43 2d | 30 32 37 32 0a 4c 6f 73 |306, MC-|0272.Los|
|00001740| 20 41 6e 67 65 6c 65 73 | 2c 20 43 41 20 39 30 30 | Angeles|, CA 900|
|00001750| 38 39 0a 28 32 31 33 29 | 20 37 34 33 2d 35 35 31 |89.(213)| 743-551|
|00001760| 39 0a 0a 41 72 70 61 3a | 09 57 65 62 65 72 25 42 |9..Arpa:|.Weber%B|
|00001770| 72 61 6e 64 40 55 53 43 | 2d 45 43 4c 0a 55 73 65 |rand@USC|-ECL.Use|
|00001780| 6e 65 74 3a 20 2e 2e 2e | 73 64 63 72 64 63 66 21 |net: ...|sdcrdcf!|
|00001790| 75 73 63 2d 6f 62 65 72 | 6f 6e 21 62 72 61 6e 64 |usc-ober|on!brand|
|000017a0| 21 77 65 62 65 72 0a 00 | 00 00 00 00 00 00 00 00 |!weber..|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 6d 61 63 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00001810| 6e 2f 4d 61 6b 65 66 69 | 6c 65 00 00 00 00 00 00 |n/Makefi|le......|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001880| 20 20 20 31 30 35 34 20 | 20 34 34 30 33 36 31 37 | 1054 | 4403617|
|00001890| 31 32 37 20 20 31 31 30 | 34 31 00 20 00 00 00 00 |127 110|41. ....|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 43 46 4c 41 47 53 20 3d | 20 2d 4f 20 2d 73 0a 23 |CFLAGS =| -O -s.#|
|00001a10| 20 43 46 4c 41 47 53 20 | 3d 20 2d 4f 20 2d 73 20 | CFLAGS |= -O -s |
|00001a20| 2d 66 36 38 38 38 31 0a | 0a 4f 42 4a 53 20 3d 20 |-f68881.|.OBJS = |
|00001a30| 64 72 61 77 69 6d 70 2e | 6f 20 69 6d 70 72 65 73 |drawimp.|o impres|
|00001a40| 73 2e 6f 20 70 61 74 74 | 65 72 6e 73 2e 6f 20 6d |s.o patt|erns.o m|
|00001a50| 61 63 74 65 78 74 2e 6f | 20 74 65 78 74 69 6d 70 |actext.o| textimp|
|00001a60| 2e 6f 20 5c 0a 20 20 20 | 20 20 20 20 20 70 78 6c |.o \. | pxl|
|00001a70| 2e 6f 20 73 63 61 6c 65 | 74 66 6d 2e 6f 20 65 72 |.o scale|tfm.o er|
|00001a80| 72 6f 72 2e 6f 20 6d 61 | 63 68 69 6e 74 2e 6f 0a |ror.o ma|chint.o.|
|00001a90| 23 20 4f 42 4a 53 20 3d | 20 64 72 61 77 69 6d 70 |# OBJS =| drawimp|
|00001aa0| 2e 6f 20 69 6d 70 72 65 | 73 73 2e 6f 20 70 61 74 |.o impre|ss.o pat|
|00001ab0| 74 65 72 6e 73 2e 6f 20 | 6d 61 63 74 65 78 74 2e |terns.o |mactext.|
|00001ac0| 6f 20 74 65 78 74 69 6d | 70 2e 6f 20 5c 0a 23 20 |o textim|p.o \.# |
|00001ad0| 20 20 20 20 20 20 20 70 | 78 6c 2e 6f 20 73 63 61 | p|xl.o sca|
|00001ae0| 6c 65 74 66 6d 2e 6f 20 | 65 72 72 6f 72 2e 6f 0a |letfm.o |error.o.|
|00001af0| 0a 64 72 61 77 69 6d 70 | 3a 20 20 24 28 4f 42 4a |.drawimp|: $(OBJ|
|00001b00| 53 29 0a 09 63 63 20 2d | 6f 20 64 72 61 77 69 6d |S)..cc -|o drawim|
|00001b10| 70 20 24 28 4f 42 4a 53 | 29 20 2d 6c 6d 0a 0a 64 |p $(OBJS|) -lm..d|
|00001b20| 72 61 77 69 6d 70 2e 6f | 3a 20 20 20 64 72 61 77 |rawimp.o|: draw|
|00001b30| 69 6d 70 2e 63 20 64 72 | 61 77 69 6d 70 2e 68 0a |imp.c dr|awimp.h.|
|00001b40| 69 6d 70 72 65 73 73 2e | 6f 3a 20 20 20 69 6d 70 |impress.|o: imp|
|00001b50| 72 65 73 73 2e 63 0a 70 | 61 74 74 65 72 6e 73 2e |ress.c.p|atterns.|
|00001b60| 6f 3a 20 20 70 61 74 74 | 65 72 6e 73 2e 63 0a 6d |o: patt|erns.c.m|
|00001b70| 61 63 74 65 78 74 2e 6f | 3a 20 20 20 6d 61 63 74 |actext.o|: mact|
|00001b80| 65 78 74 2e 63 20 64 72 | 61 77 69 6d 70 2e 68 0a |ext.c dr|awimp.h.|
|00001b90| 74 65 78 74 69 6d 70 2e | 6f 3a 20 20 20 74 65 78 |textimp.|o: tex|
|00001ba0| 74 69 6d 70 2e 63 20 70 | 78 6c 2e 68 20 74 79 70 |timp.c p|xl.h typ|
|00001bb0| 65 73 2e 68 20 64 72 61 | 77 69 6d 70 2e 68 0a 70 |es.h dra|wimp.h.p|
|00001bc0| 78 6c 2e 6f 3a 20 20 20 | 20 20 20 20 70 78 6c 2e |xl.o: | pxl.|
|00001bd0| 63 20 70 78 6c 2e 68 0a | 73 63 61 6c 65 74 66 6d |c pxl.h.|scaletfm|
|00001be0| 2e 6f 3a 20 20 73 63 61 | 6c 65 74 66 6d 2e 63 20 |.o: sca|letfm.c |
|00001bf0| 70 78 6c 2e 68 20 74 79 | 70 65 73 2e 68 0a 65 72 |pxl.h ty|pes.h.er|
|00001c00| 72 6f 72 2e 6f 3a 20 20 | 20 20 20 65 72 72 6f 72 |ror.o: | error|
|00001c10| 2e 63 0a 6d 61 63 68 69 | 6e 74 2e 6f 3a 20 20 20 |.c.machi|nt.o: |
|00001c20| 6d 61 63 68 69 6e 74 2e | 73 0a 0a 0a 65 20 66 69 |machint.|s...e fi|
|00001c30| 6c 65 20 70 61 74 74 65 | 72 6e 73 2e 63 20 63 6f |le patte|rns.c co|
|00001c40| 6e 74 61 69 6e 73 20 74 | 68 65 20 64 61 74 61 20 |ntains t|he data |
|00001c50| 66 6f 72 20 74 68 65 20 | 33 36 20 70 61 74 74 65 |for the |36 patte|
|00001c60| 72 6e 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f |rns avai|lable fo|
|00001c70| 72 0a 66 69 6c 6c 69 6e | 67 20 61 6e 64 20 64 72 |r.fillin|g and dr|
|00001c80| 61 77 69 6e 67 20 69 6e | 20 4d 61 63 44 72 61 77 |awing in| MacDraw|
|00001c90| 2e 20 20 53 6f 6d 65 20 | 6f 66 20 74 68 65 20 70 |. Some |of the p|
|00001ca0| 61 74 74 65 72 6e 73 20 | 74 68 61 74 20 72 65 70 |atterns |that rep|
|00001cb0| 72 65 73 65 6e 74 20 61 | 20 31 2f 32 0a 6f 72 20 |resent a| 1/2.or |
|00001cc0| 31 2f 34 20 64 65 6e 73 | 69 74 79 20 67 72 65 79 |1/4 dens|ity grey|
|00001cd0| 20 6c 65 76 65 6c 20 68 | 61 76 65 20 62 65 65 6e | level h|ave been|
|00001ce0| 20 65 6e 74 65 72 65 64 | 20 61 74 20 74 68 65 20 | entered| at the |
|00001cf0| 68 69 67 68 65 72 20 72 | 65 73 6f 6c 75 74 69 6f |higher r|esolutio|
|00001d00| 6e 20 6c 65 76 65 6c 0a | 73 6f 20 74 68 65 20 70 |n level.|so the p|
|00001d10| 61 74 74 65 72 6e 20 77 | 69 6c 6c 20 6c 6f 6f 6b |attern w|ill look|
|00001d20| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 61 6e 20 | differe|nt than |
|00001d30| 74 68 61 74 20 66 72 6f | 6d 20 61 20 4d 61 63 50 |that fro|m a MacP|
|00001d40| 61 69 6e 74 20 69 6d 61 | 67 65 2e 20 20 54 68 65 |aint ima|ge. The|
|00001d50| 0a 70 61 74 74 65 72 6e | 73 20 61 72 65 20 61 6c |.pattern|s are al|
|00001d60| 73 6f 20 73 6c 69 67 68 | 74 6c 79 20 73 6d 61 6c |so sligh|tly smal|
|00001d70| 6c 65 72 20 74 68 61 6e | 20 74 68 65 79 20 73 68 |ler than| they sh|
|00001d80| 6f 75 6c 64 20 62 65 20 | 73 69 6e 63 65 20 74 68 |ould be |since th|
|00001d90| 65 79 20 68 61 76 65 20 | 62 65 65 6e 0a 65 78 70 |ey have |been.exp|
|00001da0| 61 6e 64 65 64 20 62 79 | 20 61 20 66 61 63 74 6f |anded by| a facto|
|00001db0| 72 20 6f 66 20 34 20 77 | 68 65 72 65 61 73 20 74 |r of 4 w|hereas t|
|00001dc0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 69 |he rest |of the i|
|00001dd0| 6d 61 67 65 20 68 61 73 | 20 62 65 65 6e 20 65 78 |mage has| been ex|
|00001de0| 70 61 6e 64 65 64 20 62 | 79 0a 61 62 6f 75 74 20 |panded b|y.about |
|00001df0| 34 2e 31 37 2e 20 20 42 | 65 63 61 75 73 65 20 6f |4.17. B|ecause o|
|00001e00| 6d 61 63 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00001e10| 6e 2f 64 72 61 77 69 6d | 70 2e 68 00 00 00 00 00 |n/drawim|p.h.....|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001e70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001e80| 20 20 20 36 33 34 36 20 | 20 34 34 30 33 36 31 37 | 6346 | 4403617|
|00001e90| 31 33 30 20 20 31 31 32 | 32 30 00 20 00 00 00 00 |130 112|20. ....|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 2f 2a 0a 09 54 68 69 73 | 20 69 73 20 61 6e 20 69 |/*..This| is an i|
|00002010| 6e 63 6c 75 64 65 20 66 | 69 6c 65 20 66 6f 72 20 |nclude f|ile for |
|00002020| 74 68 65 20 4d 61 63 44 | 72 61 77 20 66 69 6c 65 |the MacD|raw file|
|00002030| 20 72 65 61 64 69 6e 67 | 20 70 72 6f 67 72 61 6d | reading| program|
|00002040| 2e 0a 09 53 6f 6d 65 20 | 6f 66 20 74 68 65 20 73 |...Some |of the s|
|00002050| 74 72 75 63 74 73 20 61 | 72 65 20 6e 6f 74 20 72 |tructs a|re not r|
|00002060| 65 61 6c 6c 79 20 75 73 | 65 64 20 62 75 74 20 61 |eally us|ed but a|
|00002070| 72 65 20 68 65 72 65 20 | 74 6f 20 73 68 6f 77 20 |re here |to show |
|00002080| 74 68 65 0a 09 77 61 79 | 20 64 61 74 61 20 69 73 |the..way| data is|
|00002090| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 20 66 | stored |in the f|
|000020a0| 69 6c 65 2e 0a 09 49 6e | 20 74 68 65 20 73 74 72 |ile...In| the str|
|000020b0| 75 63 74 73 2c 20 63 68 | 61 72 20 3d 20 31 20 62 |ucts, ch|ar = 1 b|
|000020c0| 79 74 65 2c 20 73 68 6f | 72 74 20 3d 20 32 20 62 |yte, sho|rt = 2 b|
|000020d0| 79 74 65 73 2e 0a 0a 09 | 41 6c 6c 61 6e 20 57 65 |ytes....|Allan We|
|000020e0| 62 65 72 20 28 57 65 62 | 65 72 25 42 72 61 6e 64 |ber (Web|er%Brand|
|000020f0| 40 55 53 43 2d 45 43 4c | 29 0a 09 55 53 43 20 53 |@USC-ECL|)..USC S|
|00002100| 69 67 6e 61 6c 20 61 6e | 64 20 49 6d 61 67 65 20 |ignal an|d Image |
|00002110| 50 72 6f 63 65 73 73 69 | 6e 67 20 49 6e 73 74 69 |Processi|ng Insti|
|00002120| 74 75 74 65 0a 0a 09 4c | 61 73 74 20 65 64 69 74 |tute...L|ast edit|
|00002130| 3a 20 35 2d 44 65 63 2d | 38 35 0a 2a 2f 0a 0a 23 |: 5-Dec-|85.*/..#|
|00002140| 64 65 66 69 6e 65 20 44 | 45 46 5f 52 45 53 09 09 |define D|EF_RES..|
|00002150| 33 30 30 09 09 2f 2a 20 | 64 65 66 61 75 6c 74 20 |300../* |default |
|00002160| 49 6d 61 67 65 6e 20 72 | 65 73 6f 6c 75 74 69 6f |Imagen r|esolutio|
|00002170| 6e 20 2a 2f 0a 23 64 65 | 66 69 6e 65 09 48 5f 53 |n */.#de|fine.H_S|
|00002180| 48 49 46 54 09 09 31 38 | 09 09 2f 2a 20 73 68 69 |HIFT..18|../* shi|
|00002190| 66 74 73 20 74 6f 20 63 | 65 6e 74 65 72 20 70 61 |fts to c|enter pa|
|000021a0| 67 65 20 6f 6e 20 70 61 | 70 65 72 20 2a 2f 0a 23 |ge on pa|per */.#|
|000021b0| 64 65 66 69 6e 65 09 56 | 5f 53 48 49 46 54 09 09 |define.V|_SHIFT..|
|000021c0| 33 36 0a 23 64 65 66 69 | 6e 65 20 54 45 58 54 55 |36.#defi|ne TEXTU|
|000021d0| 52 45 5f 46 41 4d 49 4c | 59 09 39 35 0a 23 64 65 |RE_FAMIL|Y.95.#de|
|000021e0| 66 69 6e 65 20 46 4f 4e | 54 5f 46 41 4d 49 4c 59 |fine FON|T_FAMILY|
|000021f0| 5f 54 4f 50 09 28 54 45 | 58 54 55 52 45 5f 46 41 |_TOP.(TE|XTURE_FA|
|00002200| 4d 49 4c 59 20 2d 20 31 | 29 0a 23 64 65 66 69 6e |MILY - 1|).#defin|
|00002210| 65 09 54 45 4d 50 5f 50 | 52 45 46 49 58 09 22 2f |e.TEMP_P|REFIX."/|
|00002220| 74 6d 70 2f 4d 63 44 58 | 58 58 58 58 58 22 0a 23 |tmp/McDX|XXXXX".#|
|00002230| 64 65 66 69 6e 65 20 54 | 45 58 5f 45 58 54 09 09 |define T|EX_EXT..|
|00002240| 22 2e 69 6d 70 22 09 09 | 2f 2a 20 66 69 6c 65 20 |".imp"..|/* file |
|00002250| 65 78 74 65 6e 73 69 6f | 6e 20 66 6f 72 20 4c 61 |extensio|n for La|
|00002260| 54 65 78 20 66 69 6c 65 | 73 20 2a 2f 0a 23 64 65 |Tex file|s */.#de|
|00002270| 66 69 6e 65 20 4d 41 43 | 5f 45 58 54 09 09 22 2e |fine MAC|_EXT..".|
|00002280| 64 61 74 61 22 09 09 2f | 2a 20 66 69 6c 65 20 65 |data"../|* file e|
|00002290| 78 74 65 6e 73 69 6f 6e | 20 66 6f 72 20 4d 61 63 |xtension| for Mac|
|000022a0| 44 72 61 77 20 66 69 6c | 65 20 2a 2f 0a 0a 23 64 |Draw fil|e */..#d|
|000022b0| 65 66 69 6e 65 09 4d 41 | 43 5f 48 5f 53 49 5a 45 |efine.MA|C_H_SIZE|
|000022c0| 09 35 37 36 0a 23 64 65 | 66 69 6e 65 20 4d 41 43 |.576.#de|fine MAC|
|000022d0| 5f 56 5f 53 49 5a 45 09 | 37 32 30 0a 23 64 65 66 |_V_SIZE.|720.#def|
|000022e0| 69 6e 65 20 4d 41 43 5f | 48 5f 50 41 47 45 53 09 |ine MAC_|H_PAGES.|
|000022f0| 31 32 0a 23 64 65 66 69 | 6e 65 20 4d 41 43 5f 56 |12.#defi|ne MAC_V|
|00002300| 5f 50 41 47 45 53 09 35 | 0a 23 64 65 66 69 6e 65 |_PAGES.5|.#define|
|00002310| 09 48 45 41 44 45 52 5f | 53 49 5a 45 09 35 31 32 |.HEADER_|SIZE.512|
|00002320| 0a 23 64 65 66 69 6e 65 | 09 41 52 52 4f 57 5f 41 |.#define|.ARROW_A|
|00002330| 4e 47 4c 45 09 31 35 0a | 0a 2f 2a 0a 54 68 65 20 |NGLE.15.|./*.The |
|00002340| 66 6f 6c 6c 6f 77 69 6e | 67 20 23 64 65 66 69 6e |followin|g #defin|
|00002350| 65 20 76 61 6c 75 65 73 | 20 72 65 6c 61 74 65 20 |e values| relate |
|00002360| 74 6f 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 74 |to the d|ifferent|
|00002370| 20 61 74 74 72 69 62 75 | 74 65 73 20 75 73 65 64 | attribu|tes used|
|00002380| 20 62 79 0a 4d 61 63 44 | 72 61 77 20 66 6f 72 20 | by.MacD|raw for |
|00002390| 76 61 72 69 6f 75 73 20 | 6f 62 6a 65 63 74 73 2e |various |objects.|
|000023a0| 0a 2a 2f 0a 0a 2f 2a 20 | 54 65 78 74 20 73 74 79 |.*/../* |Text sty|
|000023b0| 6c 65 20 2a 2f 0a 23 64 | 65 66 69 6e 65 09 50 4c |le */.#d|efine.PL|
|000023c0| 41 49 4e 09 09 30 0a 23 | 64 65 66 69 6e 65 20 42 |AIN..0.#|define B|
|000023d0| 4f 4c 44 09 09 31 0a 23 | 64 65 66 69 6e 65 09 49 |OLD..1.#|define.I|
|000023e0| 54 41 4c 49 43 09 09 32 | 0a 23 64 65 66 69 6e 65 |TALIC..2|.#define|
|000023f0| 09 55 4e 44 45 52 4c 49 | 4e 45 09 34 0a 23 64 65 |.UNDERLI|NE.4.#de|
|00002400| 66 69 6e 65 09 48 4f 4c | 4c 4f 57 09 09 38 0a 23 |fine.HOL|LOW..8.#|
|00002410| 64 65 66 69 6e 65 09 53 | 48 41 44 4f 57 09 20 20 |define.S|HADOW. |
|00002420| 20 20 20 20 20 31 36 0a | 0a 2f 2a 20 46 6f 6e 74 | 16.|./* Font|
|00002430| 20 74 79 70 65 20 2a 2f | 0a 23 64 65 66 69 6e 65 | type */|.#define|
|00002440| 20 43 48 49 43 41 47 4f | 09 09 31 0a 23 64 65 66 | CHICAGO|..1.#def|
|00002450| 69 6e 65 20 47 45 4e 45 | 56 41 09 09 32 0a 23 64 |ine GENE|VA..2.#d|
|00002460| 65 66 69 6e 65 09 4e 45 | 57 5f 59 4f 52 4b 09 33 |efine.NE|W_YORK.3|
|00002470| 0a 0a 2f 2a 20 46 6f 6e | 74 20 73 69 7a 65 20 2a |../* Fon|t size *|
|00002480| 2f 0a 23 64 65 66 69 6e | 65 09 53 49 5a 45 5f 39 |/.#defin|e.SIZE_9|
|00002490| 09 09 31 0a 23 64 65 66 | 69 6e 65 20 53 49 5a 45 |..1.#def|ine SIZE|
|000024a0| 5f 31 30 09 09 32 0a 23 | 64 65 66 69 6e 65 09 53 |_10..2.#|define.S|
|000024b0| 49 5a 45 5f 31 32 09 09 | 33 0a 23 64 65 66 69 6e |IZE_12..|3.#defin|
|000024c0| 65 09 53 49 5a 45 5f 31 | 34 09 09 34 0a 23 64 65 |e.SIZE_1|4..4.#de|
|000024d0| 66 69 6e 65 09 53 49 5a | 45 5f 31 38 09 09 35 0a |fine.SIZ|E_18..5.|
|000024e0| 0a 2f 2a 20 54 65 78 74 | 20 73 70 61 63 69 6e 67 |./* Text| spacing|
|000024f0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 09 53 49 4e 47 | */.#def|ine.SING|
|00002500| 4c 45 09 09 31 0a 23 64 | 65 66 69 6e 65 20 54 48 |LE..1.#d|efine TH|
|00002510| 52 45 45 5f 48 41 4c 46 | 09 32 0a 23 64 65 66 69 |REE_HALF|.2.#defi|
|00002520| 6e 65 09 44 4f 55 42 4c | 45 09 09 33 0a 0a 2f 2a |ne.DOUBL|E..3../*|
|00002530| 20 54 65 78 74 20 61 6c | 69 67 6e 6d 65 6e 74 20 | Text al|ignment |
|00002540| 2a 2f 0a 23 64 65 66 69 | 6e 65 09 4c 45 46 54 09 |*/.#defi|ne.LEFT.|
|00002550| 09 31 0a 23 64 65 66 69 | 6e 65 09 43 45 4e 54 45 |.1.#defi|ne.CENTE|
|00002560| 52 09 09 32 0a 23 64 65 | 66 69 6e 65 09 52 49 47 |R..2.#de|fine.RIG|
|00002570| 48 54 09 09 33 0a 0a 2f | 2a 20 4c 69 6e 65 20 77 |HT..3../|* Line w|
|00002580| 69 64 74 68 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |idth */.|#define |
|00002590| 4c 49 4e 45 5f 30 09 09 | 31 0a 23 64 65 66 69 6e |LINE_0..|1.#defin|
|000025a0| 65 09 4c 49 4e 45 5f 31 | 09 09 32 0a 23 64 65 66 |e.LINE_1|..2.#def|
|000025b0| 69 6e 65 09 4c 49 4e 45 | 5f 32 09 09 33 0a 23 64 |ine.LINE|_2..3.#d|
|000025c0| 65 66 69 6e 65 09 4c 49 | 4e 45 5f 34 09 09 34 0a |efine.LI|NE_4..4.|
|000025d0| 23 64 65 66 69 6e 65 09 | 4c 49 4e 45 5f 36 09 09 |#define.|LINE_6..|
|000025e0| 35 0a 0a 2f 2a 20 41 72 | 72 6f 77 20 64 69 72 65 |5../* Ar|row dire|
|000025f0| 63 74 69 6f 6e 20 2a 2f | 0a 23 64 65 66 69 6e 65 |ction */|.#define|
|00002600| 20 4e 4f 5f 41 52 52 4f | 57 09 30 0a 23 64 65 66 | NO_ARRO|W.0.#def|
|00002610| 69 6e 65 09 52 49 47 48 | 54 5f 41 52 52 4f 57 09 |ine.RIGH|T_ARROW.|
|00002620| 31 0a 23 64 65 66 69 6e | 65 09 4c 45 46 54 5f 41 |1.#defin|e.LEFT_A|
|00002630| 52 52 4f 57 09 32 0a 23 | 64 65 66 69 6e 65 09 42 |RROW.2.#|define.B|
|00002640| 4f 54 48 5f 41 52 52 4f | 57 09 33 0a 0a 2f 2a 0a |OTH_ARRO|W.3../*.|
|00002650| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 74 |The foll|owing st|
|00002660| 72 75 63 74 73 20 61 72 | 65 20 66 6f 72 20 76 61 |ructs ar|e for va|
|00002670| 72 69 6f 75 73 20 64 61 | 74 61 20 73 74 72 75 63 |rious da|ta struc|
|00002680| 74 75 72 65 73 20 75 73 | 65 64 20 69 6e 20 74 68 |tures us|ed in th|
|00002690| 65 0a 4d 61 63 44 72 61 | 77 20 64 61 74 61 20 72 |e.MacDra|w data r|
|000026a0| 65 63 6f 72 64 73 2e 0a | 2a 2f 0a 0a 73 74 72 75 |ecords..|*/..stru|
|000026b0| 63 74 20 6c 63 6f 6f 72 | 64 20 7b 09 09 2f 2a 20 |ct lcoor|d {../* |
|000026c0| 6c 6f 6e 67 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |long coo|rdinate |
|000026d0| 2d 20 72 61 64 69 78 20 | 70 6f 69 6e 74 20 62 65 |- radix |point be|
|000026e0| 74 77 65 65 6e 20 68 61 | 6c 76 65 73 20 2a 2f 0a |tween ha|lves */.|
|000026f0| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 20 |.unsigne|d short |
|00002700| 69 2c 66 3b 0a 7d 3b 0a | 0a 73 74 72 75 63 74 20 |i,f;.};.|.struct |
|00002710| 6c 70 6f 69 6e 74 20 7b | 09 09 2f 2a 20 6c 6f 6e |lpoint {|../* lon|
|00002720| 67 20 70 6f 69 6e 74 20 | 2a 2f 0a 09 73 74 72 75 |g point |*/..stru|
|00002730| 63 74 20 6c 63 6f 6f 72 | 64 20 76 2c 68 3b 0a 7d |ct lcoor|d v,h;.}|
|00002740| 3b 0a 0a 73 74 72 75 63 | 74 20 6c 72 65 63 74 20 |;..struc|t lrect |
|00002750| 7b 09 09 2f 2a 20 6c 6f | 6e 67 20 72 65 63 74 61 |{../* lo|ng recta|
|00002760| 6e 67 6c 65 20 2a 2f 0a | 09 73 74 72 75 63 74 20 |ngle */.|.struct |
|00002770| 6c 63 6f 6f 72 64 20 74 | 6f 70 2c 20 6c 65 66 74 |lcoord t|op, left|
|00002780| 2c 20 62 6f 74 74 6f 6d | 2c 20 72 69 67 68 74 3b |, bottom|, right;|
|00002790| 0a 7d 3b 0a 0a 73 74 72 | 75 63 74 20 73 72 65 63 |.};..str|uct srec|
|000027a0| 74 20 7b 09 09 2f 2a 20 | 73 68 6f 72 74 20 72 65 |t {../* |short re|
|000027b0| 63 74 61 6e 67 6c 65 20 | 2a 2f 0a 09 73 68 6f 72 |ctangle |*/..shor|
|000027c0| 74 20 74 6f 70 2c 20 6c | 65 66 74 2c 20 62 6f 74 |t top, l|eft, bot|
|000027d0| 74 6f 6d 2c 20 72 69 67 | 68 74 3b 0a 7d 3b 0a 0a |tom, rig|ht;.};..|
|000027e0| 73 74 72 75 63 74 20 66 | 72 65 63 74 20 7b 09 09 |struct f|rect {..|
|000027f0| 2f 2a 20 66 6c 6f 61 74 | 20 72 65 63 74 61 6e 67 |/* float| rectang|
|00002800| 6c 65 20 2a 2f 0a 09 66 | 6c 6f 61 74 20 74 6f 70 |le */..f|loat top|
|00002810| 2c 20 6c 65 66 74 2c 20 | 62 6f 74 74 6f 6d 2c 20 |, left, |bottom, |
|00002820| 72 69 67 68 74 3b 0a 7d | 3b 0a 0a 73 74 72 75 63 |right;.}|;..struc|
|00002830| 74 20 62 70 6f 69 6e 74 | 20 7b 09 2f 2a 20 69 6e |t bpoint| {./* in|
|00002840| 63 72 65 6d 65 6e 74 61 | 6c 20 70 6f 69 6e 74 20 |crementa|l point |
|00002850| 2a 2f 0a 09 63 68 61 72 | 20 78 2c 79 3b 0a 7d 3b |*/..char| x,y;.};|
|00002860| 0a 0a 2f 2a 0a 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |../*.The| followi|
|00002870| 6e 67 20 61 72 65 20 73 | 74 72 75 63 74 73 20 66 |ng are s|tructs f|
|00002880| 6f 72 20 74 68 65 20 64 | 61 74 61 20 72 65 63 6f |or the d|ata reco|
|00002890| 72 64 73 2e 0a 46 69 65 | 6c 64 73 20 77 69 74 68 |rds..Fie|lds with|
|000028a0| 20 75 6e 6b 6e 6f 77 6e | 20 70 75 72 70 6f 73 65 | unknown| purpose|
|000028b0| 73 20 61 72 65 20 6e 61 | 6d 65 64 20 5a 31 2c 20 |s are na|med Z1, |
|000028c0| 5a 32 2c 20 65 74 63 2e | 0a 2a 2f 0a 0a 73 74 72 |Z2, etc.|.*/..str|
|000028d0| 75 63 74 20 4d 44 68 65 | 61 64 65 72 20 7b 09 2f |uct MDhe|ader {./|
|000028e0| 2a 20 72 65 63 6f 72 64 | 20 68 65 61 64 65 72 20 |* record| header |
|000028f0| 66 6f 72 20 65 61 63 68 | 20 6f 62 6a 65 63 74 20 |for each| object |
|00002900| 2a 2f 0a 09 63 68 61 72 | 20 63 6f 64 65 3b 0a 09 |*/..char| code;..|
|00002910| 63 68 61 72 20 5a 31 2c | 5a 32 2c 5a 33 3b 0a 09 |char Z1,|Z2,Z3;..|
|00002920| 63 68 61 72 20 6c 69 6e | 65 3b 0a 09 63 68 61 72 |char lin|e;..char|
|00002930| 20 70 65 6e 3b 0a 09 63 | 68 61 72 20 66 69 6c 6c | pen;..c|har fill|
|00002940| 3b 0a 09 63 68 61 72 20 | 73 70 65 63 69 61 6c 3b |;..char |special;|
|00002950| 0a 7d 3b 0a 0a 73 74 72 | 75 63 74 20 4d 44 74 65 |.};..str|uct MDte|
|00002960| 78 74 20 7b 09 09 2f 2a | 20 54 65 78 74 20 72 65 |xt {../*| Text re|
|00002970| 63 6f 72 64 20 2a 2f 0a | 09 73 68 6f 72 74 20 5a |cord */.|.short Z|
|00002980| 31 2c 5a 32 3b 0a 09 63 | 68 61 72 20 73 74 79 6c |1,Z2;..c|har styl|
|00002990| 65 3b 0a 09 63 68 61 72 | 20 66 6f 6e 74 3b 0a 09 |e;..char| font;..|
|000029a0| 63 68 61 72 20 73 69 7a | 65 3b 0a 09 63 68 61 72 |char siz|e;..char|
|000029b0| 20 73 70 61 63 69 6e 67 | 3b 0a 09 63 68 61 72 20 | spacing|;..char |
|000029c0| 61 6c 69 67 6e 6d 65 6e | 74 3b 0a 09 63 68 61 72 |alignmen|t;..char|
|000029d0| 20 61 6e 67 6c 65 3b 0a | 09 73 68 6f 72 74 20 63 | angle;.|.short c|
|000029e0| 6f 75 6e 74 3b 0a 09 73 | 74 72 75 63 74 20 73 72 |ount;..s|truct sr|
|000029f0| 65 63 74 20 72 65 63 74 | 3b 0a 7d 3b 0a 0a 73 74 |ect rect|;.};..st|
|00002a00| 72 75 63 74 20 4d 44 76 | 65 63 74 6f 72 20 7b 09 |ruct MDv|ector {.|
|00002a10| 2f 2a 20 56 65 63 74 6f | 72 20 72 65 63 6f 72 64 |/* Vecto|r record|
|00002a20| 20 28 72 69 67 68 74 20 | 61 6e 67 6c 65 20 61 6e | (right |angle an|
|00002a30| 64 20 73 6c 6f 70 65 64 | 29 20 2a 2f 0a 09 73 74 |d sloped|) */..st|
|00002a40| 72 75 63 74 20 6c 70 6f | 69 6e 74 20 73 74 61 72 |ruct lpo|int star|
|00002a50| 74 2c 20 73 74 6f 70 3b | 0a 7d 3b 0a 0a 73 74 72 |t, stop;|.};..str|
|00002a60| 75 63 74 20 4d 44 62 6f | 78 20 7b 09 09 2f 2a 20 |uct MDbo|x {../* |
|00002a70| 52 65 63 74 61 6e 67 6c | 65 2c 20 45 6c 6c 69 70 |Rectangl|e, Ellip|
|00002a80| 73 65 2c 20 61 6e 64 20 | 52 6f 75 6e 64 52 65 63 |se, and |RoundRec|
|00002a90| 74 20 72 65 63 6f 72 64 | 20 2a 2f 0a 09 73 74 72 |t record| */..str|
|00002aa0| 75 63 74 20 6c 72 65 63 | 74 20 72 65 63 74 3b 0a |uct lrec|t rect;.|
|00002ab0| 7d 3b 0a 0a 73 74 72 75 | 63 74 20 4d 44 61 72 63 |};..stru|ct MDarc|
|00002ac0| 20 7b 09 09 2f 2a 20 41 | 72 63 20 72 65 63 6f 72 | {../* A|rc recor|
|00002ad0| 64 20 2a 2f 0a 09 73 74 | 72 75 63 74 20 6c 72 65 |d */..st|ruct lre|
|00002ae0| 63 74 20 72 65 63 74 3b | 0a 09 75 6e 73 69 67 6e |ct rect;|..unsign|
|00002af0| 65 64 20 73 68 6f 72 74 | 20 73 74 61 72 74 2c 20 |ed short| start, |
|00002b00| 61 6e 67 6c 65 3b 0a 7d | 3b 0a 0a 73 74 72 75 63 |angle;.}|;..struc|
|00002b10| 74 20 4d 44 67 72 6f 75 | 70 20 7b 09 2f 2a 20 47 |t MDgrou|p {./* G|
|00002b20| 72 6f 75 70 20 69 64 65 | 6e 74 69 66 69 65 72 20 |roup ide|ntifier |
|00002b30| 72 65 63 6f 72 64 20 2a | 2f 0a 09 73 74 72 75 63 |record *|/..struc|
|00002b40| 74 20 6c 72 65 63 74 20 | 72 65 63 74 3b 0a 09 75 |t lrect |rect;..u|
|00002b50| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 5a 31 |nsigned |short Z1|
|00002b60| 2c 20 5a 32 2c 20 5a 33 | 2c 20 5a 34 2c 20 5a 35 |, Z2, Z3|, Z4, Z5|
|00002b70| 2c 20 5a 36 2c 20 5a 37 | 2c 20 5a 38 3b 0a 7d 3b |, Z6, Z7|, Z8;.};|
|00002b80| 0a 0a 73 74 72 75 63 74 | 20 4d 44 70 6f 6c 79 67 |..struct| MDpolyg|
|00002b90| 6f 6e 20 7b 09 2f 2a 20 | 50 6f 6c 79 67 6f 6e 20 |on {./* |Polygon |
|00002ba0| 72 65 63 6f 72 64 20 2a | 2f 0a 09 75 6e 73 69 67 |record *|/..unsig|
|00002bb0| 6e 65 64 20 73 68 6f 72 | 74 20 5a 31 3b 0a 09 75 |ned shor|t Z1;..u|
|00002bc0| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 72 65 |nsigned |short re|
|00002bd0| 63 5f 73 69 7a 65 3b 0a | 09 75 6e 73 69 67 6e 65 |c_size;.|.unsigne|
|00002be0| 64 20 73 68 6f 72 74 20 | 70 6f 69 6e 74 73 3b 0a |d short |points;.|
|00002bf0| 09 73 74 72 75 63 74 20 | 6c 72 65 63 74 20 72 65 |.struct |lrect re|
|00002c00| 63 74 3b 0a 09 63 68 61 | 72 20 63 6c 6f 73 65 64 |ct;..cha|r closed|
|00002c10| 3b 0a 09 63 68 61 72 20 | 5a 32 3b 0a 7d 3b 0a 0a |;..char |Z2;.};..|
|00002c20| 73 74 72 75 63 74 20 4d | 44 63 75 72 76 65 20 7b |struct M|Dcurve {|
|00002c30| 09 2f 2a 20 43 75 72 76 | 65 20 72 65 63 6f 72 64 |./* Curv|e record|
|00002c40| 20 2a 2f 0a 09 75 6e 73 | 69 67 6e 65 64 20 73 68 | */..uns|igned sh|
|00002c50| 6f 72 74 20 5a 31 3b 0a | 09 75 6e 73 69 67 6e 65 |ort Z1;.|.unsigne|
|00002c60| 64 20 73 68 6f 72 74 20 | 72 65 63 5f 73 69 7a 65 |d short |rec_size|
|00002c70| 3b 0a 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |;..unsig|ned shor|
|00002c80| 74 20 70 6f 69 6e 74 73 | 3b 0a 09 73 74 72 75 63 |t points|;..struc|
|00002c90| 74 20 6c 72 65 63 74 20 | 72 65 63 74 3b 0a 09 63 |t lrect |rect;..c|
|00002ca0| 68 61 72 20 63 6c 6f 73 | 65 64 3b 0a 09 63 68 61 |har clos|ed;..cha|
|00002cb0| 72 20 5a 32 3b 0a 09 73 | 74 72 75 63 74 20 6c 70 |r Z2;..s|truct lp|
|00002cc0| 6f 69 6e 74 20 73 74 61 | 72 74 3b 0a 7d 3b 0a 0a |oint sta|rt;.};..|
|00002cd0| 23 64 65 66 69 6e 65 20 | 4d 41 58 5f 52 45 43 4f |#define |MAX_RECO|
|00002ce0| 52 44 20 34 30 0a 74 20 | 73 74 72 69 6e 67 73 2e |RD 40.t |strings.|
|00002cf0| 0a 0a 39 2e 20 20 49 4d | 50 4f 52 54 41 4e 54 21 |..9. IM|PORTANT!|
|00002d00| 20 20 43 68 65 63 6b 20 | 74 68 65 20 66 6f 6e 74 | Check |the font|
|00002d10| 20 66 69 6c 65 6e 61 6d | 65 20 64 65 66 69 6e 69 | filenam|e defini|
|00002d20| 74 69 6f 6e 73 20 61 74 | 20 74 68 65 20 62 65 67 |tions at| the beg|
|00002d30| 69 6e 6e 69 6e 67 20 6f | 66 0a 6d 61 63 74 65 78 |inning o|f.mactex|
|00002d40| 74 2e 63 20 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |t.c to m|ake sure|
|00002d50| 20 74 68 65 20 66 6f 6e | 74 20 66 69 6c 65 73 20 | the fon|t files |
|00002d60| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 72 65 71 |that wil|l be req|
|00002d70| 75 69 72 65 64 20 61 72 | 65 20 6f 6e 20 74 68 65 |uired ar|e on the|
|00002d80| 0a 73 79 73 74 65 6d 2e | 20 20 54 68 65 20 70 61 |.system.| The pa|
|00002d90| 72 61 6d 65 74 65 72 73 | 20 69 6e 20 74 68 65 20 |rameters| in the |
|00002da0| 74 61 62 6c 65 73 20 63 | 61 6e 20 62 65 20 63 68 |tables c|an be ch|
|00002db0| 61 6e 67 65 64 20 74 6f | 20 6d 61 74 63 68 20 65 |anged to| match e|
|00002dc0| 78 69 73 74 69 6e 67 20 | 66 6f 6e 74 0a 66 69 6c |xisting |font.fil|
|00002dd0| 65 73 2e 20 20 49 74 27 | 73 20 61 6c 6c 20 64 6f |es. It'|s all do|
|00002de0| 63 75 6d 65 6e 74 65 64 | 20 69 6e 20 6d 61 63 74 |cumented| in mact|
|00002df0| 65 78 74 2e 63 20 6e 65 | 61 72 20 74 68 65 20 74 |ext.c ne|ar the t|
|00002e00| 6d 61 63 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00002e10| 6e 2f 6d 61 63 64 72 61 | 77 2e 69 6e 66 6f 00 00 |n/macdra|w.info..|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002e70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002e80| 20 20 31 31 32 31 35 20 | 20 34 34 30 33 36 31 37 | 11215 | 4403617|
|00002e90| 31 33 32 20 20 31 31 37 | 31 30 00 20 00 00 00 00 |132 117|10. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 09 4d 61 63 44 72 61 77 | 20 64 61 74 61 20 66 69 |.MacDraw| data fi|
|00003010| 6c 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 0a |le infor|mation..|
|00003020| 09 41 6c 6c 61 6e 20 57 | 65 62 65 72 20 28 57 65 |.Allan W|eber (We|
|00003030| 62 65 72 25 42 72 61 6e | 64 40 55 53 43 2d 45 43 |ber%Bran|d@USC-EC|
|00003040| 4c 2e 41 52 50 41 29 0a | 09 55 53 43 20 53 69 67 |L.ARPA).|.USC Sig|
|00003050| 6e 61 6c 20 61 6e 64 20 | 49 6d 61 67 65 20 50 72 |nal and |Image Pr|
|00003060| 6f 63 65 73 73 69 6e 67 | 20 49 6e 73 74 69 74 75 |ocessing| Institu|
|00003070| 74 65 0a 0a 09 4c 61 73 | 74 20 65 64 69 74 3a 20 |te...Las|t edit: |
|00003080| 31 36 2d 44 65 63 2d 38 | 35 0a 0a 54 68 69 73 20 |16-Dec-8|5..This |
|00003090| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |file con|tains a |
|000030a0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 6f 66 20 74 |descript|ion of t|
|000030b0| 68 65 20 64 61 74 61 20 | 72 65 63 6f 72 64 73 20 |he data |records |
|000030c0| 70 72 6f 64 75 63 65 64 | 20 62 79 20 22 4d 61 63 |produced| by "Mac|
|000030d0| 64 72 61 77 0a 56 65 72 | 73 69 6f 6e 20 31 2e 37 |draw.Ver|sion 1.7|
|000030e0| 20 33 2f 31 38 2f 38 35 | 22 2e 20 20 53 6f 6d 65 | 3/18/85|". Some|
|000030f0| 20 6f 66 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 | of the |informat|
|00003100| 69 6f 6e 20 69 6e 20 74 | 68 65 20 64 61 74 61 20 |ion in t|he data |
|00003110| 72 65 63 6f 72 64 73 20 | 68 61 73 20 6e 6f 74 0a |records |has not.|
|00003120| 79 65 74 20 62 65 65 6e | 20 64 65 63 69 70 68 65 |yet been| deciphe|
|00003130| 72 65 64 20 61 6e 64 20 | 69 73 20 69 6e 64 69 63 |red and |is indic|
|00003140| 61 74 65 64 20 62 65 6c | 6f 77 20 62 79 20 71 75 |ated bel|ow by qu|
|00003150| 65 73 74 69 6f 6e 20 6d | 61 72 6b 73 2e 0a 0a 4e |estion m|arks...N|
|00003160| 6f 74 65 3a 20 20 4d 61 | 6e 79 20 6f 66 20 74 68 |ote: Ma|ny of th|
|00003170| 65 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |e data s|tructure|
|00003180| 73 20 66 6f 72 20 70 6f | 69 6e 74 73 20 61 6e 64 |s for po|ints and|
|00003190| 20 72 65 63 74 61 6e 67 | 6c 65 73 20 75 73 65 20 | rectang|les use |
|000031a0| 34 2d 62 79 74 65 0a 22 | 66 69 78 65 64 2d 70 6f |4-byte."|fixed-po|
|000031b0| 69 6e 74 20 6e 75 6d 62 | 65 72 73 22 20 69 6e 73 |int numb|ers" ins|
|000031c0| 74 65 61 64 20 6f 66 20 | 74 68 65 20 6e 6f 72 6d |tead of |the norm|
|000031d0| 61 6c 20 32 2d 62 79 74 | 65 20 69 6e 74 65 67 65 |al 2-byt|e intege|
|000031e0| 72 73 2e 20 20 46 69 78 | 65 64 2d 70 6f 69 6e 74 |rs. Fix|ed-point|
|000031f0| 0a 6e 75 6d 62 65 72 73 | 20 61 72 65 20 64 65 73 |.numbers| are des|
|00003200| 63 72 69 62 65 64 20 69 | 6e 20 22 49 6e 73 69 64 |cribed i|n "Insid|
|00003210| 65 20 4d 61 63 69 6e 74 | 6f 73 68 22 2c 20 70 61 |e Macint|osh", pa|
|00003220| 67 65 20 4d 49 2d 31 31 | 2e 20 20 54 68 65 79 20 |ge MI-11|. They |
|00003230| 61 72 65 20 73 69 6d 69 | 6c 61 72 0a 74 6f 20 69 |are simi|lar.to i|
|00003240| 6e 74 65 67 65 72 73 20 | 77 69 74 68 20 74 68 65 |ntegers |with the|
|00003250| 20 61 64 64 69 74 69 6f | 6e 20 6f 66 20 61 20 32 | additio|n of a 2|
|00003260| 2d 62 79 74 65 20 66 72 | 61 63 74 69 6f 6e 61 6c |-byte fr|actional|
|00003270| 20 70 61 72 74 2c 20 74 | 68 75 73 20 79 69 65 6c | part, t|hus yiel|
|00003280| 64 69 6e 67 20 61 0a 6e | 75 6d 62 65 72 20 77 69 |ding a.n|umber wi|
|00003290| 74 68 20 74 68 65 20 73 | 61 6d 65 20 72 61 6e 67 |th the s|ame rang|
|000032a0| 65 20 62 75 74 20 67 72 | 65 61 74 65 72 20 70 72 |e but gr|eater pr|
|000032b0| 65 63 69 73 69 6f 6e 2e | 0a 0a 0a 41 20 4d 61 63 |ecision.|...A Mac|
|000032c0| 44 72 61 77 20 66 69 6c | 65 20 73 74 61 72 74 73 |Draw fil|e starts|
|000032d0| 20 77 69 74 68 20 61 20 | 35 31 32 20 62 79 74 65 | with a |512 byte|
|000032e0| 20 68 65 61 64 65 72 2e | 20 20 54 68 65 72 65 20 | header.| There |
|000032f0| 64 6f 65 73 20 6e 6f 74 | 20 61 70 70 65 61 72 20 |does not| appear |
|00003300| 74 6f 20 62 65 0a 61 6e | 79 20 69 6e 66 6f 72 6d |to be.an|y inform|
|00003310| 61 74 69 6f 6e 20 69 6e | 20 74 68 65 20 68 65 61 |ation in| the hea|
|00003320| 64 65 72 20 72 65 71 75 | 69 72 65 64 20 66 6f 72 |der requ|ired for|
|00003330| 20 72 65 63 72 65 61 74 | 69 6e 67 20 74 68 65 20 | recreat|ing the |
|00003340| 69 6d 61 67 65 20 6f 6e | 20 61 20 64 65 76 69 63 |image on| a devic|
|00003350| 65 0a 6c 69 6b 65 20 61 | 20 6c 61 73 65 72 20 70 |e.like a| laser p|
|00003360| 72 69 6e 74 65 72 2e 20 | 20 0a 0a 09 09 09 46 69 |rinter. | .....Fi|
|00003370| 6c 65 20 68 65 61 64 65 | 72 20 28 35 31 32 20 62 |le heade|r (512 b|
|00003380| 79 74 65 73 29 0a 0a 4f | 66 66 73 65 74 0a 30 2e |ytes)..O|ffset.0.|
|00003390| 2e 32 31 33 09 09 3f 0a | 32 31 34 2e 2e 32 32 39 |.213..?.|214..229|
|000033a0| 09 45 6e 63 6c 6f 73 69 | 6e 67 20 72 65 63 74 61 |.Enclosi|ng recta|
|000033b0| 6e 67 6c 65 20 66 6f 72 | 20 65 6e 74 69 72 65 20 |ngle for| entire |
|000033c0| 64 72 61 77 69 6e 67 20 | 28 46 69 78 65 64 2d 70 |drawing |(Fixed-p|
|000033d0| 6f 69 6e 74 29 0a 32 33 | 30 2e 2e 35 31 31 09 3f |oint).23|0..511.?|
|000033e0| 0a 0a 0a 0a 41 66 74 65 | 72 20 74 68 65 20 66 69 |....Afte|r the fi|
|000033f0| 6c 65 20 68 65 61 64 65 | 72 20 69 73 20 61 20 73 |le heade|r is a s|
|00003400| 65 71 75 65 6e 63 65 20 | 6f 66 20 64 61 74 61 20 |equence |of data |
|00003410| 72 65 63 6f 72 64 73 2c | 20 6f 6e 65 20 66 6f 72 |records,| one for|
|00003420| 20 65 61 63 68 20 6f 62 | 6a 65 63 74 20 69 6e 0a | each ob|ject in.|
|00003430| 74 68 65 20 69 6d 61 67 | 65 2e 20 20 45 61 63 68 |the imag|e. Each|
|00003440| 20 6f 62 6a 65 63 74 20 | 64 61 74 61 20 72 65 63 | object |data rec|
|00003450| 6f 72 64 20 73 74 61 72 | 74 73 20 77 69 74 68 20 |ord star|ts with |
|00003460| 61 6e 20 38 2d 62 79 74 | 65 20 72 65 63 6f 72 64 |an 8-byt|e record|
|00003470| 20 68 65 61 64 65 72 2c | 0a 66 6f 6c 6c 6f 77 65 | header,|.followe|
|00003480| 64 20 69 6e 20 6d 6f 73 | 74 20 63 61 73 65 73 20 |d in mos|t cases |
|00003490| 62 79 20 76 61 72 69 62 | 6c 65 20 6c 65 6e 67 74 |by varib|le lengt|
|000034a0| 68 20 6f 62 6a 65 63 74 | 20 64 65 70 65 6e 64 65 |h object| depende|
|000034b0| 6e 74 20 64 61 74 61 2e | 20 20 54 68 65 20 66 69 |nt data.| The fi|
|000034c0| 72 73 74 0a 62 79 74 65 | 20 69 6e 20 65 61 63 68 |rst.byte| in each|
|000034d0| 20 6f 66 20 74 68 65 20 | 72 65 63 6f 72 64 20 68 | of the |record h|
|000034e0| 65 61 64 65 72 73 20 69 | 6e 64 69 63 61 74 65 73 |eaders i|ndicates|
|000034f0| 20 74 68 65 20 74 79 70 | 65 20 6f 66 20 6f 62 6a | the typ|e of obj|
|00003500| 65 63 74 2e 20 20 41 74 | 20 74 68 65 20 65 6e 64 |ect. At| the end|
|00003510| 0a 6f 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 |.of the |file is |
|00003520| 61 20 74 65 72 6d 69 6e | 61 74 6f 72 20 28 74 79 |a termin|ator (ty|
|00003530| 70 65 20 30 29 20 72 65 | 63 6f 72 64 2e 0a 0a 0a |pe 0) re|cord....|
|00003540| 09 09 20 20 20 20 20 20 | 20 52 65 63 6f 72 64 20 |.. | Record |
|00003550| 68 65 61 64 65 72 20 28 | 38 20 62 79 74 65 73 29 |header (|8 bytes)|
|00003560| 0a 0a 4f 66 66 73 65 74 | 0a 30 09 63 6f 64 65 20 |..Offset|.0.code |
|00003570| 09 30 20 3d 20 74 65 72 | 6d 69 6e 61 74 6f 72 09 |.0 = ter|minator.|
|00003580| 09 31 20 3d 20 74 65 78 | 74 0a 09 09 32 20 3d 20 |.1 = tex|t...2 = |
|00003590| 72 69 67 68 74 20 61 6e | 67 6c 65 20 76 65 63 74 |right an|gle vect|
|000035a0| 6f 72 09 33 20 3d 20 73 | 6c 6f 70 65 64 20 76 65 |or.3 = s|loped ve|
|000035b0| 63 74 6f 72 0a 09 09 34 | 20 3d 20 72 65 63 74 61 |ctor...4| = recta|
|000035c0| 6e 67 6c 65 09 09 35 20 | 3d 20 72 6f 75 6e 64 20 |ngle..5 |= round |
|000035d0| 72 65 63 74 61 6e 67 6c | 65 0a 09 09 36 20 3d 20 |rectangl|e...6 = |
|000035e0| 65 6c 6c 69 70 73 65 09 | 09 37 20 3d 20 61 72 63 |ellipse.|.7 = arc|
|000035f0| 0a 09 09 38 20 3d 20 63 | 75 72 76 65 09 09 39 20 |...8 = c|urve..9 |
|00003600| 3d 20 70 6f 6c 79 67 6f | 6e 0a 09 09 31 30 3d 20 |= polygo|n...10= |
|00003610| 67 72 6f 75 70 09 20 20 | 20 20 20 20 20 31 31 20 |group. | 11 |
|00003620| 3d 20 50 49 43 54 20 64 | 61 74 61 20 28 66 72 6f |= PICT d|ata (fro|
|00003630| 6d 20 4d 61 63 50 61 69 | 6e 74 29 0a 31 09 6c 6f |m MacPai|nt).1.lo|
|00003640| 63 6b 09 30 20 3d 20 75 | 6e 6c 6f 63 6b 65 64 2c |ck.0 = u|nlocked,|
|00003650| 20 31 20 3d 20 6c 6f 63 | 6b 65 64 0a 32 09 3f 0a | 1 = loc|ked.2.?.|
|00003660| 33 09 3f 0a 34 09 6c 69 | 6e 65 09 77 69 64 74 68 |3.?.4.li|ne.width|
|00003670| 20 63 6f 64 65 3a 20 20 | 31 20 3d 20 30 20 70 69 | code: |1 = 0 pi|
|00003680| 78 65 6c 73 2c 20 32 20 | 3d 20 31 20 70 69 78 65 |xels, 2 |= 1 pixe|
|00003690| 6c 2c 20 33 20 3d 20 32 | 20 70 69 78 65 6c 73 2c |l, 3 = 2| pixels,|
|000036a0| 0a 09 09 34 20 3d 20 34 | 20 70 69 78 65 6c 73 2c |...4 = 4| pixels,|
|000036b0| 20 35 20 3d 20 36 20 70 | 69 78 65 6c 73 0a 35 09 | 5 = 6 p|ixels.5.|
|000036c0| 70 65 6e 09 70 61 74 74 | 65 72 6e 20 6e 75 6d 62 |pen.patt|ern numb|
|000036d0| 65 72 3a 20 31 2e 2e 33 | 36 0a 36 09 66 69 6c 6c |er: 1..3|6.6.fill|
|000036e0| 09 70 61 74 74 65 72 6e | 20 6e 75 6d 62 65 72 3a |.pattern| number:|
|000036f0| 20 31 2e 2e 33 36 0a 37 | 09 73 70 65 63 69 61 6c | 1..36.7|.special|
|00003700| 0a 09 09 66 6f 72 20 76 | 65 63 74 6f 72 73 2c 20 |...for v|ectors, |
|00003710| 74 68 65 20 61 72 72 6f | 77 20 74 79 70 65 0a 09 |the arro|w type..|
|00003720| 09 20 30 20 3d 20 2d 2d | 2d 2d 2d 2d 2c 20 31 20 |. 0 = --|----, 1 |
|00003730| 3d 20 2d 2d 2d 2d 2d 3e | 2c 20 32 20 3d 20 3c 2d |= ----->|, 2 = <-|
|00003740| 2d 2d 2d 2d 2c 20 33 20 | 3d 20 3c 2d 2d 2d 2d 2d |----, 3 |= <-----|
|00003750| 3e 0a 09 09 66 6f 72 20 | 72 6f 75 6e 64 20 72 65 |>...for |round re|
|00003760| 63 74 61 6e 67 6c 65 73 | 2c 20 74 68 65 20 63 6f |ctangles|, the co|
|00003770| 72 6e 65 72 20 72 61 64 | 69 75 73 3a 0a 09 09 31 |rner rad|ius:...1|
|00003780| 20 3d 20 30 22 2c 20 32 | 20 3d 20 31 2f 38 2c 20 | = 0", 2| = 1/8, |
|00003790| 33 20 3d 20 33 2f 31 36 | 2c 20 34 20 3d 20 31 2f |3 = 3/16|, 4 = 1/|
|000037a0| 34 2c 20 35 20 3d 20 35 | 2f 31 36 2c 20 36 20 3d |4, 5 = 5|/16, 6 =|
|000037b0| 20 33 2f 38 0a 38 2e 2e | 09 41 6e 20 6f 62 6a 65 | 3/8.8..|.An obje|
|000037c0| 63 74 2d 73 70 65 63 69 | 66 69 63 20 72 65 63 6f |ct-speci|fic reco|
|000037d0| 72 64 20 28 69 66 20 61 | 6e 79 29 20 66 6f 6c 6c |rd (if a|ny) foll|
|000037e0| 6f 77 73 20 61 66 74 65 | 72 20 74 68 65 20 68 65 |ows afte|r the he|
|000037f0| 61 64 65 72 0a 0a 0a 09 | 20 20 20 20 20 4f 62 6a |ader....| Obj|
|00003800| 65 63 74 20 53 70 65 63 | 69 66 69 63 20 44 61 74 |ect Spec|ific Dat|
|00003810| 61 20 28 66 6f 6c 6c 6f | 77 73 20 72 65 63 6f 72 |a (follo|ws recor|
|00003820| 64 20 68 65 61 64 65 72 | 29 0a 0a 09 09 20 20 20 |d header|).... |
|00003830| 20 30 3a 20 54 65 72 6d | 69 6e 61 74 6f 72 20 72 | 0: Term|inator r|
|00003840| 65 63 6f 72 64 20 28 30 | 20 62 79 74 65 73 29 0a |ecord (0| bytes).|
|00003850| 0a 41 20 74 65 72 6d 69 | 6e 61 74 6f 72 20 72 65 |.A termi|nator re|
|00003860| 63 6f 72 64 20 69 73 20 | 75 73 65 64 20 74 6f 20 |cord is |used to |
|00003870| 6d 61 72 6b 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |mark the| end of |
|00003880| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 6f 62 6a 65 |the list| of obje|
|00003890| 63 74 73 20 6f 72 0a 74 | 68 65 20 65 6e 64 20 6f |cts or.t|he end o|
|000038a0| 66 20 61 20 73 65 74 20 | 6f 66 20 6f 62 6a 65 63 |f a set |of objec|
|000038b0| 74 73 20 74 68 61 74 20 | 68 61 76 65 20 62 65 65 |ts that |have bee|
|000038c0| 6e 20 67 72 6f 75 70 65 | 64 20 74 6f 67 65 74 68 |n groupe|d togeth|
|000038d0| 65 72 2e 0a 0a 0a 09 20 | 20 20 20 20 31 3a 20 54 |er..... | 1: T|
|000038e0| 65 78 74 20 72 65 63 6f | 72 64 20 28 32 30 20 62 |ext reco|rd (20 b|
|000038f0| 79 74 65 73 20 2b 20 6c | 65 6e 67 74 68 20 6f 66 |ytes + l|ength of|
|00003900| 20 73 74 72 69 6e 67 29 | 0a 0a 30 2e 2e 33 09 3f | string)|..0..3.?|
|00003910| 0a 34 09 73 74 79 6c 65 | 09 30 20 3d 20 70 6c 61 |.4.style|.0 = pla|
|00003920| 69 6e 2c 20 31 20 3d 20 | 62 6f 6c 64 2c 20 32 20 |in, 1 = |bold, 2 |
|00003930| 3d 20 69 74 61 6c 69 63 | 2c 20 34 20 3d 20 75 6e |= italic|, 4 = un|
|00003940| 64 65 72 6c 69 6e 65 2c | 20 38 20 3d 20 68 6f 6c |derline,| 8 = hol|
|00003950| 6c 6f 77 2c 0a 09 09 31 | 36 20 3d 20 73 68 61 64 |low,...1|6 = shad|
|00003960| 6f 77 0a 35 09 66 6f 6e | 74 09 31 20 3d 20 43 68 |ow.5.fon|t.1 = Ch|
|00003970| 69 63 61 67 6f 2c 20 32 | 20 3d 20 47 65 6e 65 76 |icago, 2| = Genev|
|00003980| 61 2c 20 33 20 3d 20 4e | 65 77 20 59 6f 72 6b 2c |a, 3 = N|ew York,|
|00003990| 20 34 20 3d 20 4d 6f 6e | 61 63 6f 2c 20 35 20 3d | 4 = Mon|aco, 5 =|
|000039a0| 20 56 65 6e 69 63 65 2c | 0a 09 09 36 20 3d 20 4c | Venice,|...6 = L|
|000039b0| 6f 6e 64 6f 6e 2c 20 37 | 20 3d 20 41 74 68 65 6e |ondon, 7| = Athen|
|000039c0| 73 0a 36 09 73 69 7a 65 | 09 31 20 3d 20 39 20 70 |s.6.size|.1 = 9 p|
|000039d0| 74 2c 20 32 20 3d 20 31 | 30 20 70 74 2c 20 33 20 |t, 2 = 1|0 pt, 3 |
|000039e0| 3d 20 31 32 20 70 74 2c | 20 34 20 3d 20 31 34 20 |= 12 pt,| 4 = 14 |
|000039f0| 70 74 2c 20 35 20 3d 20 | 31 38 20 70 74 2c 20 65 |pt, 5 = |18 pt, e|
|00003a00| 74 63 2e 0a 37 09 73 70 | 61 63 69 6e 67 09 31 20 |tc..7.sp|acing.1 |
|00003a10| 3d 20 73 69 6e 67 6c 65 | 2c 20 32 20 3d 20 74 68 |= single|, 2 = th|
|00003a20| 72 65 65 20 68 61 6c 76 | 65 73 2c 20 33 20 3d 20 |ree halv|es, 3 = |
|00003a30| 64 6f 75 62 6c 65 0a 38 | 09 61 6c 69 67 6e 09 31 |double.8|.align.1|
|00003a40| 20 3d 20 6c 65 66 74 2c | 20 32 20 3d 20 63 65 6e | = left,| 2 = cen|
|00003a50| 74 65 72 2c 20 33 20 3d | 20 72 69 67 68 74 0a 39 |ter, 3 =| right.9|
|00003a60| 09 61 6e 67 6c 65 09 30 | 20 3d 20 6e 6f 72 6d 61 |.angle.0| = norma|
|00003a70| 6c 09 09 34 20 3d 20 66 | 6c 69 70 20 68 6f 72 69 |l..4 = f|lip hori|
|00003a80| 7a 6f 6e 74 61 6c 0a 09 | 09 31 20 3d 20 72 6f 74 |zontal..|.1 = rot|
|00003a90| 61 74 65 20 72 69 67 68 | 74 09 35 20 3d 20 66 6c |ate righ|t.5 = fl|
|00003aa0| 69 70 20 76 65 72 74 69 | 63 61 6c 0a 09 09 32 20 |ip verti|cal...2 |
|00003ab0| 3d 20 75 70 73 69 64 65 | 64 6f 77 6e 09 09 36 20 |= upside|down..6 |
|00003ac0| 3d 20 72 6f 74 61 74 65 | 20 72 69 67 68 74 20 61 |= rotate| right a|
|00003ad0| 6e 64 20 66 6c 69 70 20 | 68 6f 72 69 7a 6f 6e 74 |nd flip |horizont|
|00003ae0| 61 6c 0a 09 09 33 20 3d | 20 72 6f 74 61 74 65 20 |al...3 =| rotate |
|00003af0| 6c 65 66 74 09 09 37 20 | 3d 20 72 6f 74 61 74 65 |left..7 |= rotate|
|00003b00| 20 6c 65 66 74 20 61 6e | 64 20 66 6c 69 70 20 68 | left an|d flip h|
|00003b10| 6f 72 69 7a 6f 6e 74 61 | 6c 0a 31 30 3a 31 31 09 |orizonta|l.10:11.|
|00003b20| 4e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 61 63 |Number o|f charac|
|00003b30| 74 65 72 73 20 69 6e 20 | 74 65 78 74 20 73 74 72 |ters in |text str|
|00003b40| 69 6e 67 0a 31 32 3a 31 | 39 09 52 65 63 74 61 6e |ing.12:1|9.Rectan|
|00003b50| 67 6c 65 20 65 6e 63 6c | 6f 73 69 6e 67 20 74 65 |gle encl|osing te|
|00003b60| 78 74 20 28 49 6e 74 65 | 67 65 72 29 0a 09 28 4e |xt (Inte|ger)..(N|
|00003b70| 6f 74 65 3a 20 74 68 65 | 20 72 65 63 74 61 6e 67 |ote: the| rectang|
|00003b80| 6c 65 20 67 69 76 65 73 | 20 74 68 65 20 6c 6f 63 |le gives| the loc|
|00003b90| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 74 65 78 |ation of| the tex|
|00003ba0| 74 20 42 45 46 4f 52 45 | 20 64 6f 69 6e 67 20 61 |t BEFORE| doing a|
|00003bb0| 6e 79 0a 09 72 6f 74 61 | 74 69 6e 67 20 61 6e 64 |ny..rota|ting and|
|00003bc0| 2f 6f 72 20 66 6c 69 70 | 70 69 6e 67 20 61 63 63 |/or flip|ping acc|
|00003bd0| 6f 72 64 69 6e 67 20 74 | 6f 20 62 79 74 65 20 39 |ording t|o byte 9|
|00003be0| 2e 29 0a 32 30 09 53 74 | 61 72 74 20 6f 66 20 74 |.).20.St|art of t|
|00003bf0| 65 78 74 20 73 74 72 69 | 6e 67 20 28 6e 6f 74 20 |ext stri|ng (not |
|00003c00| 74 65 72 6d 69 6e 61 74 | 65 64 20 77 69 74 68 20 |terminat|ed with |
|00003c10| 6e 75 6c 6c 29 0a 0a 0a | 09 09 20 20 20 20 20 32 |null)...|.. 2|
|00003c20| 2c 33 3a 20 56 65 63 74 | 6f 72 20 72 65 63 6f 72 |,3: Vect|or recor|
|00003c30| 64 20 28 31 36 20 62 79 | 74 65 73 29 0a 0a 30 3a |d (16 by|tes)..0:|
|00003c40| 37 09 53 74 61 72 74 20 | 70 6f 69 6e 74 20 28 46 |7.Start |point (F|
|00003c50| 69 78 65 64 2d 70 6f 69 | 6e 74 29 0a 38 3a 31 35 |ixed-poi|nt).8:15|
|00003c60| 09 45 6e 64 20 70 6f 69 | 6e 74 20 28 46 69 78 65 |.End poi|nt (Fixe|
|00003c70| 64 2d 70 6f 69 6e 74 29 | 0a 0a 0a 09 20 20 20 20 |d-point)|.... |
|00003c80| 34 2c 35 2c 36 3a 20 52 | 65 63 74 61 6e 67 6c 65 |4,5,6: R|ectangle|
|00003c90| 73 20 61 6e 64 20 45 6c | 6c 69 70 73 65 20 72 65 |s and El|lipse re|
|00003ca0| 63 6f 72 64 20 28 31 36 | 20 62 79 74 65 73 29 0a |cord (16| bytes).|
|00003cb0| 0a 30 3a 31 35 09 52 65 | 63 74 61 6e 67 6c 65 20 |.0:15.Re|ctangle |
|00003cc0| 65 6e 63 6c 6f 73 69 6e | 67 20 6f 62 6a 65 63 74 |enclosin|g object|
|00003cd0| 20 28 46 69 78 65 64 2d | 70 6f 69 6e 74 29 0a 0a | (Fixed-|point)..|
|00003ce0| 0a 09 09 20 20 20 20 20 | 20 20 37 3a 20 41 72 63 |... | 7: Arc|
|00003cf0| 20 72 65 63 6f 72 64 20 | 28 32 30 20 62 79 74 65 | record |(20 byte|
|00003d00| 73 29 0a 0a 30 3a 31 35 | 09 52 65 63 74 61 6e 67 |s)..0:15|.Rectang|
|00003d10| 6c 65 20 65 6e 63 6c 6f | 73 69 6e 67 20 65 6c 6c |le enclo|sing ell|
|00003d20| 69 70 73 65 20 75 73 65 | 64 20 74 6f 20 67 65 6e |ipse use|d to gen|
|00003d30| 65 72 61 74 65 20 61 72 | 63 20 28 46 69 78 65 64 |erate ar|c (Fixed|
|00003d40| 2d 70 6f 69 6e 74 29 0a | 31 36 3a 31 37 09 53 74 |-point).|16:17.St|
|00003d50| 61 72 74 20 61 6e 67 6c | 65 20 28 64 65 67 72 65 |art angl|e (degre|
|00003d60| 65 73 29 0a 31 38 3a 31 | 39 09 45 78 74 65 6e 74 |es).18:1|9.Extent|
|00003d70| 20 6f 66 20 61 72 63 20 | 28 64 65 67 72 65 65 73 | of arc |(degrees|
|00003d80| 29 0a 0a 0a 09 20 20 20 | 20 20 20 38 3a 20 43 75 |).... | 8: Cu|
|00003d90| 72 76 65 20 72 65 63 6f | 72 64 20 28 33 32 20 62 |rve reco|rd (32 b|
|00003da0| 79 74 65 73 20 2b 20 32 | 20 62 79 74 65 73 2f 70 |ytes + 2| bytes/p|
|00003db0| 6f 69 6e 74 29 0a 0a 30 | 2e 2e 31 09 3f 0a 32 3a |oint)..0|..1.?.2:|
|00003dc0| 33 09 4e 75 6d 62 65 72 | 20 6f 66 20 62 79 74 65 |3.Number| of byte|
|00003dd0| 73 20 69 6e 20 72 65 73 | 74 20 6f 66 20 72 65 63 |s in res|t of rec|
|00003de0| 6f 72 64 0a 34 3a 35 09 | 4e 75 6d 62 65 72 20 6f |ord.4:5.|Number o|
|00003df0| 66 20 70 6f 69 6e 74 73 | 20 69 6e 20 63 75 72 76 |f points| in curv|
|00003e00| 65 20 69 6e 63 6c 75 64 | 69 6e 67 20 73 74 61 72 |e includ|ing star|
|00003e10| 74 20 70 6f 69 6e 74 20 | 61 6e 64 20 65 6e 64 69 |t point |and endi|
|00003e20| 6e 67 20 6e 75 6c 6c 20 | 70 6f 69 6e 74 0a 36 3a |ng null |point.6:|
|00003e30| 32 31 09 52 65 63 74 61 | 6e 67 6c 65 20 65 6e 63 |21.Recta|ngle enc|
|00003e40| 6c 6f 73 69 6e 67 20 63 | 75 72 76 65 20 28 46 69 |losing c|urve (Fi|
|00003e50| 78 65 64 2d 70 6f 69 6e | 74 29 0a 32 32 09 31 20 |xed-poin|t).22.1 |
|00003e60| 3d 20 6d 61 6b 65 20 63 | 6c 6f 73 65 64 20 28 61 |= make c|losed (a|
|00003e70| 64 64 20 66 69 6e 61 6c | 20 70 6f 69 6e 74 20 73 |dd final| point s|
|00003e80| 61 6d 65 20 61 73 20 66 | 69 72 73 74 20 70 6f 69 |ame as f|irst poi|
|00003e90| 6e 74 29 0a 32 33 09 3f | 0a 32 34 3a 33 31 09 53 |nt).23.?|.24:31.S|
|00003ea0| 74 61 72 74 20 70 6f 69 | 6e 74 20 28 46 69 78 65 |tart poi|nt (Fixe|
|00003eb0| 64 2d 70 6f 69 6e 74 29 | 0a 33 32 09 53 74 61 72 |d-point)|.32.Star|
|00003ec0| 74 20 6f 66 20 58 2c 59 | 20 69 6e 63 72 65 6d 65 |t of X,Y| increme|
|00003ed0| 6e 74 20 70 61 69 72 73 | 20 28 32 20 62 79 74 65 |nt pairs| (2 byte|
|00003ee0| 73 2f 70 61 69 72 29 2c | 20 32 27 73 20 63 6f 6d |s/pair),| 2's com|
|00003ef0| 70 6c 65 6d 65 6e 74 2c | 0a 09 74 65 72 6d 69 6e |plement,|..termin|
|00003f00| 61 74 65 64 20 62 79 20 | 61 20 70 61 69 72 20 6f |ated by |a pair o|
|00003f10| 66 20 7a 65 72 6f 20 62 | 79 74 65 73 2e 0a 0a 0a |f zero b|ytes....|
|00003f20| 09 20 20 20 20 20 39 3a | 20 50 6f 6c 79 67 6f 6e |. 9:| Polygon|
|00003f30| 20 72 65 63 6f 72 64 20 | 28 32 34 20 62 79 74 65 | record |(24 byte|
|00003f40| 73 20 2b 20 38 20 62 79 | 74 65 73 2f 70 6f 69 6e |s + 8 by|tes/poin|
|00003f50| 74 29 0a 0a 30 2e 2e 31 | 09 3f 0a 32 3a 33 09 4e |t)..0..1|.?.2:3.N|
|00003f60| 75 6d 62 65 72 20 6f 66 | 20 62 79 74 65 73 20 69 |umber of| bytes i|
|00003f70| 6e 20 72 65 73 74 20 6f | 66 20 72 65 63 6f 72 64 |n rest o|f record|
|00003f80| 0a 34 3a 35 09 4e 75 6d | 62 65 72 20 6f 66 20 70 |.4:5.Num|ber of p|
|00003f90| 6f 69 6e 74 73 20 69 6e | 20 70 6f 6c 79 67 6f 6e |oints in| polygon|
|00003fa0| 0a 36 3a 32 31 09 52 65 | 63 74 61 6e 67 6c 65 20 |.6:21.Re|ctangle |
|00003fb0| 65 6e 63 6c 6f 73 69 6e | 67 20 63 75 72 76 65 20 |enclosin|g curve |
|00003fc0| 28 46 69 78 65 64 2d 70 | 6f 69 6e 74 29 0a 32 32 |(Fixed-p|oint).22|
|00003fd0| 09 31 20 3d 20 6d 61 6b | 65 20 63 6c 6f 73 65 64 |.1 = mak|e closed|
|00003fe0| 20 28 61 64 64 20 66 69 | 6e 61 6c 20 70 6f 69 6e | (add fi|nal poin|
|00003ff0| 74 20 73 61 6d 65 20 61 | 73 20 66 69 72 73 74 20 |t same a|s first |
|00004000| 70 6f 69 6e 74 29 0a 09 | 32 20 3d 20 73 6d 6f 6f |point)..|2 = smoo|
|00004010| 74 68 65 64 20 70 6f 6c | 79 67 6f 6e 0a 32 33 09 |thed pol|ygon.23.|
|00004020| 3f 0a 32 34 09 53 74 61 | 72 74 20 6f 66 20 6c 69 |?.24.Sta|rt of li|
|00004030| 73 74 20 6f 66 20 70 6f | 69 6e 74 73 20 69 6e 20 |st of po|ints in |
|00004040| 74 68 65 20 70 6f 6c 79 | 67 6f 6e 20 28 46 69 78 |the poly|gon (Fix|
|00004050| 65 64 2d 70 6f 69 6e 74 | 29 2c 20 38 20 62 79 74 |ed-point|), 8 byt|
|00004060| 65 73 2f 70 6e 74 0a 0a | 0a 09 09 20 20 20 20 20 |es/pnt..|... |
|00004070| 20 31 30 3a 20 47 72 6f | 75 70 20 72 65 63 6f 72 | 10: Gro|up recor|
|00004080| 64 20 28 33 32 20 62 79 | 74 65 73 29 0a 0a 41 20 |d (32 by|tes)..A |
|00004090| 67 72 6f 75 70 20 72 65 | 63 6f 72 64 20 69 73 20 |group re|cord is |
|000040a0| 75 73 65 64 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |used to |indicate|
|000040b0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|000040c0| 66 20 61 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 6f |f a coll|ection o|
|000040d0| 66 20 6f 62 6a 65 63 74 | 73 0a 74 68 61 74 20 68 |f object|s.that h|
|000040e0| 61 76 65 20 62 65 65 6e | 20 67 72 6f 75 70 65 64 |ave been| grouped|
|000040f0| 20 74 6f 67 65 74 68 65 | 72 20 75 73 69 6e 67 20 | togethe|r using |
|00004100| 74 68 65 20 47 72 6f 75 | 70 20 63 6f 6d 6d 61 6e |the Grou|p comman|
|00004110| 64 20 75 6e 64 65 72 20 | 74 68 65 20 41 72 72 61 |d under |the Arra|
|00004120| 6e 67 65 0a 6d 65 6e 75 | 2e 20 20 54 68 65 20 67 |nge.menu|. The g|
|00004130| 72 6f 75 70 20 63 6f 6e | 74 61 69 6e 73 20 61 6c |roup con|tains al|
|00004140| 6c 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |l the fo|llowing |
|00004150| 6f 62 6a 65 63 74 73 20 | 75 6e 74 69 6c 20 61 20 |objects |until a |
|00004160| 74 65 72 6d 69 6e 61 74 | 6f 72 20 0a 72 65 63 6f |terminat|or .reco|
|00004170| 72 64 20 69 73 20 65 6e | 63 6f 75 6e 74 65 72 65 |rd is en|countere|
|00004180| 64 2e 0a 0a 30 3a 31 35 | 09 52 65 63 74 61 6e 67 |d...0:15|.Rectang|
|00004190| 6c 65 20 65 6e 63 6c 6f | 73 69 6e 67 20 61 6c 6c |le enclo|sing all|
|000041a0| 20 6d 65 6d 62 65 72 73 | 20 69 6e 20 74 68 65 20 | members| in the |
|000041b0| 67 72 6f 75 70 20 28 46 | 69 78 65 64 2d 70 6f 69 |group (F|ixed-poi|
|000041c0| 6e 74 29 0a 31 36 2e 2e | 33 31 09 3f 0a 0a 0a 09 |nt).16..|31.?....|
|000041d0| 09 09 20 31 31 3a 20 50 | 49 43 54 20 72 65 63 6f |.. 11: P|ICT reco|
|000041e0| 72 64 20 28 34 32 2b 29 | 0a 0a 30 2e 2e 33 09 3f |rd (42+)|..0..3.?|
|000041f0| 0a 34 3a 31 31 09 3f 20 | 52 65 63 74 61 6e 67 6c |.4:11.? |Rectangl|
|00004200| 65 20 28 49 6e 74 65 67 | 65 72 29 0a 31 32 3a 32 |e (Integ|er).12:2|
|00004210| 37 09 52 65 63 74 61 6e | 67 6c 65 20 65 6e 63 6c |7.Rectan|gle encl|
|00004220| 6f 73 69 6e 67 20 70 69 | 63 74 75 72 65 20 28 46 |osing pi|cture (F|
|00004230| 69 78 65 64 2d 70 6f 69 | 6e 74 29 0a 32 38 2e 2e |ixed-poi|nt).28..|
|00004240| 33 31 09 3f 0a 33 32 3a | 33 33 09 57 69 64 74 68 |31.?.32:|33.Width|
|00004250| 20 6f 66 20 70 69 63 74 | 75 72 65 20 69 6e 20 62 | of pict|ure in b|
|00004260| 79 74 65 73 0a 33 34 3a | 34 31 09 3f 20 52 65 63 |ytes.34:|41.? Rec|
|00004270| 74 61 6e 67 6c 65 20 28 | 49 6e 74 65 67 65 72 29 |tangle (|Integer)|
|00004280| 0a 34 32 2e 2e 09 42 69 | 74 6d 61 70 0a 20 77 69 |.42...Bi|tmap. wi|
|00004290| 74 68 20 74 68 65 20 73 | 61 6d 65 20 72 61 6e 67 |th the s|ame rang|
|000042a0| 65 20 62 75 74 20 67 72 | 65 61 74 65 72 20 70 72 |e but gr|eater pr|
|000042b0| 65 63 69 73 69 6f 6e 2e | 0a 0a 0a 41 20 4d 61 63 |ecision.|...A Mac|
|000042c0| 44 72 61 77 20 66 69 6c | 65 20 73 74 61 72 74 73 |Draw fil|e starts|
|000042d0| 20 77 69 74 68 20 61 20 | 35 31 32 20 62 79 74 65 | with a |512 byte|
|000042e0| 20 68 65 61 64 65 72 2e | 20 20 54 68 65 72 65 20 | header.| There |
|000042f0| 64 6f 65 73 20 6e 6f 74 | 20 61 70 70 65 61 72 20 |does not| appear |
|00004300| 74 6f 20 62 65 0a 61 6e | 79 20 69 6e 66 6f 72 6d |to be.an|y inform|
|00004310| 61 74 69 6f 6e 20 69 6e | 20 74 68 65 20 68 65 61 |ation in| the hea|
|00004320| 64 65 72 20 72 65 71 75 | 69 72 65 64 20 66 6f 72 |der requ|ired for|
|00004330| 20 72 65 63 72 65 61 74 | 69 6e 67 20 74 68 65 20 | recreat|ing the |
|00004340| 69 6d 61 67 65 20 6f 6e | 20 61 20 64 65 76 69 63 |image on| a devic|
|00004350| 65 0a 6c 69 6b 65 20 61 | 20 6c 61 73 65 72 20 70 |e.like a| laser p|
|00004360| 72 69 6e 74 65 72 2e 20 | 20 0a 0a 09 09 09 46 69 |rinter. | .....Fi|
|00004370| 6c 65 20 68 65 61 64 65 | 72 20 28 35 31 32 20 62 |le heade|r (512 b|
|00004380| 79 74 65 73 29 0a 0a 4f | 66 66 73 65 74 0a 30 2e |ytes)..O|ffset.0.|
|00004390| 2e 32 31 33 09 09 3f 0a | 32 31 34 2e 2e 32 32 39 |.213..?.|214..229|
|000043a0| 09 45 6e 63 6c 6f 73 69 | 6e 67 20 72 65 63 74 61 |.Enclosi|ng recta|
|000043b0| 6e 67 6c 65 20 66 6f 72 | 20 65 6e 74 69 72 65 20 |ngle for| entire |
|000043c0| 64 72 61 77 69 6e 67 20 | 28 46 69 78 65 64 2d 70 |drawing |(Fixed-p|
|000043d0| 6f 69 6e 74 29 0a 32 33 | 30 2e 2e 35 31 31 09 3f |oint).23|0..511.?|
|000043e0| 0a 0a 0a 0a 41 66 74 65 | 72 20 74 68 65 20 66 69 |....Afte|r the fi|
|000043f0| 6c 65 20 68 65 61 64 65 | 72 20 69 73 20 61 20 73 |le heade|r is a s|
|00004400| 6d 61 63 64 72 61 77 2d | 74 6f 2d 69 6d 61 67 65 |macdraw-|to-image|
|00004410| 6e 2f 64 72 61 77 69 6d | 70 2e 63 00 00 00 00 00 |n/drawim|p.c.....|
|00004420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004480| 20 20 37 30 37 30 32 20 | 20 34 34 30 33 36 31 37 | 70702 | 4403617|
|00004490| 31 34 31 20 20 31 31 32 | 33 32 00 20 00 00 00 00 |141 112|32. ....|
|000044a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 2f 2a 0a 09 64 72 61 77 | 69 6d 70 20 2d 20 4d 61 |/*..draw|imp - Ma|
|00004610| 63 44 72 61 77 20 74 6f | 20 49 6d 70 72 65 73 73 |cDraw to| Impress|
|00004620| 20 74 72 61 6e 73 6c 61 | 74 6f 72 0a 0a 09 54 68 | transla|tor...Th|
|00004630| 69 73 20 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |is progr|am will |
|00004640| 72 65 61 64 20 61 20 4d | 61 63 44 72 61 77 20 66 |read a M|acDraw f|
|00004650| 69 6c 65 20 61 6e 64 20 | 6f 75 74 70 75 74 20 61 |ile and |output a|
|00004660| 20 73 65 71 75 65 6e 63 | 65 20 6f 66 0a 09 49 6d | sequenc|e of..Im|
|00004670| 70 72 65 73 73 20 63 6f | 6d 6d 61 6e 64 73 20 74 |press co|mmands t|
|00004680| 6f 20 64 72 61 77 20 74 | 68 65 20 70 69 63 74 75 |o draw t|he pictu|
|00004690| 72 65 20 6f 6e 20 61 6e | 20 49 6d 61 67 65 6e 20 |re on an| Imagen |
|000046a0| 6c 61 73 65 72 20 70 72 | 69 6e 74 65 72 2e 0a 09 |laser pr|inter...|
|000046b0| 50 72 6f 67 72 61 6d 20 | 69 73 20 63 6f 6d 70 61 |Program |is compa|
|000046c0| 74 69 62 6c 65 20 77 69 | 74 68 20 4d 61 63 44 72 |tible wi|th MacDr|
|000046d0| 61 77 20 66 69 6c 65 73 | 20 63 72 65 61 74 65 64 |aw files| created|
|000046e0| 0a 09 62 79 20 22 4d 61 | 63 44 72 61 77 20 56 65 |..by "Ma|cDraw Ve|
|000046f0| 72 73 69 6f 6e 20 31 2e | 37 20 33 2f 31 38 2f 38 |rsion 1.|7 3/18/8|
|00004700| 35 22 2e 20 20 0a 0a 09 | 44 72 61 77 69 6d 70 20 |5". ...|Drawimp |
|00004710| 68 61 73 20 74 77 6f 20 | 70 72 6f 63 65 73 73 69 |has two |processi|
|00004720| 6e 67 20 6d 6f 64 65 73 | 2e 20 20 54 68 65 20 6e |ng modes|. The n|
|00004730| 6f 72 6d 61 6c 20 6d 6f | 64 65 20 63 61 75 73 65 |ormal mo|de cause|
|00004740| 73 0a 09 74 68 65 20 4d | 61 63 44 72 61 77 20 66 |s..the M|acDraw f|
|00004750| 69 6c 65 73 20 6c 69 73 | 74 65 64 20 6f 6e 20 74 |iles lis|ted on t|
|00004760| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |he comma|nd line |
|00004770| 74 6f 20 62 65 20 70 72 | 6f 63 65 73 73 65 64 0a |to be pr|ocessed.|
|00004780| 09 69 6e 20 6f 72 64 65 | 72 20 6c 69 73 74 65 64 |.in orde|r listed|
|00004790| 20 77 69 74 68 20 74 68 | 65 20 49 6d 70 72 65 73 | with th|e Impres|
|000047a0| 73 20 64 61 74 61 20 77 | 72 69 74 74 65 6e 20 74 |s data w|ritten t|
|000047b0| 6f 20 73 74 64 6f 75 74 | 20 77 69 74 68 0a 09 45 |o stdout| with..E|
|000047c0| 4e 44 50 41 47 45 20 63 | 6f 6d 6d 61 6e 64 73 20 |NDPAGE c|ommands |
|000047d0| 62 65 74 77 65 65 6e 20 | 64 61 74 61 20 66 72 6f |between |data fro|
|000047e0| 6d 20 65 61 63 68 20 66 | 69 6c 65 2e 20 20 54 68 |m each f|ile. Th|
|000047f0| 69 73 20 77 69 6c 6c 20 | 70 75 74 0a 09 65 61 63 |is will |put..eac|
|00004800| 68 20 66 69 6c 65 20 6f | 6e 20 73 65 70 61 72 61 |h file o|n separa|
|00004810| 74 65 20 70 61 67 65 73 | 2e 0a 0a 09 49 6e 20 54 |te pages|....In T|
|00004820| 65 58 20 6d 6f 64 65 20 | 28 77 69 74 68 20 2d 74 |eX mode |(with -t|
|00004830| 20 73 77 69 74 63 68 29 | 20 65 61 63 68 20 69 6e | switch)| each in|
|00004840| 70 75 74 20 66 69 6c 65 | 2c 20 69 73 20 70 72 6f |put file|, is pro|
|00004850| 63 65 73 73 65 64 0a 09 | 61 6e 64 20 74 68 65 20 |cessed..|and the |
|00004860| 72 65 73 75 6c 74 73 20 | 61 72 65 20 77 72 69 74 |results |are writ|
|00004870| 74 65 6e 20 74 6f 20 61 | 20 73 65 70 61 72 61 74 |ten to a| separat|
|00004880| 65 20 6f 75 74 70 75 74 | 20 66 69 6c 65 20 77 69 |e output| file wi|
|00004890| 74 68 0a 09 74 68 65 20 | 65 78 74 65 6e 73 69 6f |th..the |extensio|
|000048a0| 6e 20 28 69 66 20 61 6e | 79 29 20 63 68 61 6e 67 |n (if an|y) chang|
|000048b0| 65 64 20 74 6f 20 2e 69 | 6d 70 2e 20 20 54 68 65 |ed to .i|mp. The|
|000048c0| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 73 20 68 61 | output |files ha|
|000048d0| 76 65 0a 09 6e 6f 20 68 | 65 61 64 65 72 20 6f 72 |ve..no h|eader or|
|000048e0| 20 74 72 61 69 6c 69 6e | 67 20 45 4e 44 50 41 47 | trailin|g ENDPAG|
|000048f0| 45 20 6f 72 20 45 4f 46 | 20 63 6f 6d 6d 61 6e 64 |E or EOF| command|
|00004900| 73 2e 0a 0a 09 54 68 65 | 20 2d 64 20 73 77 69 74 |s....The| -d swit|
|00004910| 63 68 20 63 61 75 73 65 | 73 20 64 65 62 75 67 67 |ch cause|s debugg|
|00004920| 69 6e 67 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing info|rmation |
|00004930| 74 6f 20 62 65 20 77 72 | 69 74 74 65 6e 20 74 6f |to be wr|itten to|
|00004940| 20 0a 09 73 74 64 65 72 | 72 2e 20 20 54 68 69 73 | ..stder|r. This|
|00004950| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 61 20 6c | consist|s of a l|
|00004960| 69 73 74 20 6f 66 20 6f | 62 6a 65 63 74 73 20 61 |ist of o|bjects a|
|00004970| 6e 64 20 73 6f 6d 65 20 | 69 6e 66 6f 20 61 62 6f |nd some |info abo|
|00004980| 75 74 0a 09 74 68 65 6d | 2e 0a 0a 09 54 68 65 20 |ut..them|....The |
|00004990| 2d 70 20 73 77 69 74 63 | 68 20 69 73 20 75 73 65 |-p switc|h is use|
|000049a0| 64 20 74 6f 20 73 65 6c | 65 63 74 20 77 68 69 63 |d to sel|ect whic|
|000049b0| 68 20 70 61 67 65 73 20 | 6f 66 20 74 68 65 20 4d |h pages |of the M|
|000049c0| 61 63 44 72 61 77 20 66 | 69 6c 65 0a 09 74 6f 20 |acDraw f|ile..to |
|000049d0| 6f 75 74 70 75 74 2e 20 | 20 53 79 6e 74 61 78 20 |output. | Syntax |
|000049e0| 69 73 3a 20 2d 70 72 31 | 2d 72 32 3a 63 31 2d 63 |is: -pr1|-r2:c1-c|
|000049f0| 32 5b 2c 72 31 2d 72 32 | 3a 63 31 2d 63 32 5d 0a |2[,r1-r2|:c1-c2].|
|00004a00| 0a 09 54 68 65 20 2d 52 | 20 73 77 69 74 63 68 20 |..The -R| switch |
|00004a10| 69 73 20 75 73 65 64 20 | 74 6f 20 73 70 65 63 69 |is used |to speci|
|00004a20| 66 79 20 74 68 65 20 49 | 6d 61 67 65 20 72 65 73 |fy the I|mage res|
|00004a30| 6f 6c 75 74 69 6f 6e 20 | 69 6e 20 64 6f 74 73 20 |olution |in dots |
|00004a40| 70 65 72 0a 09 69 6e 63 | 68 2e 20 20 54 68 65 20 |per..inc|h. The |
|00004a50| 64 65 66 61 75 6c 74 20 | 69 73 20 73 65 74 20 69 |default |is set i|
|00004a60| 6e 20 64 72 61 77 69 6d | 70 2e 68 0a 0a 09 41 20 |n drawim|p.h...A |
|00004a70| 66 65 77 20 65 78 61 6d | 70 6c 65 73 3a 0a 0a 09 |few exam|ples:...|
|00004a80| 09 64 72 61 77 69 6d 70 | 20 50 69 63 74 75 72 65 |.drawimp| Picture|
|00004a90| 2e 64 61 74 61 20 3e 50 | 69 63 74 75 72 65 2e 69 |.data >P|icture.i|
|00004aa0| 6d 70 0a 09 09 64 72 61 | 77 69 6d 70 20 2d 70 31 |mp...dra|wimp -p1|
|00004ab0| 3a 32 20 50 69 63 74 75 | 72 65 2e 64 61 74 61 20 |:2 Pictu|re.data |
|00004ac0| 3e 50 69 63 74 75 72 65 | 2e 69 6d 70 0a 09 09 64 |>Picture|.imp...d|
|00004ad0| 72 61 77 69 6d 70 20 2d | 64 20 50 69 63 74 75 72 |rawimp -|d Pictur|
|00004ae0| 65 2e 64 61 74 61 20 3e | 2f 64 65 76 2f 6e 75 6c |e.data >|/dev/nul|
|00004af0| 6c 0a 09 09 64 72 61 77 | 69 6d 70 20 2d 64 20 50 |l...draw|imp -d P|
|00004b00| 69 63 74 75 72 65 2e 64 | 61 74 61 20 3e 50 69 63 |icture.d|ata >Pic|
|00004b10| 74 75 72 65 2e 69 6d 70 | 0a 09 09 64 72 61 77 69 |ture.imp|...drawi|
|00004b20| 6d 70 20 2d 74 20 50 69 | 63 74 75 72 65 31 2e 64 |mp -t Pi|cture1.d|
|00004b30| 61 74 61 20 50 69 63 74 | 75 72 65 32 2e 64 61 74 |ata Pict|ure2.dat|
|00004b40| 61 0a 09 09 64 72 61 77 | 69 6d 70 20 2d 52 32 34 |a...draw|imp -R24|
|00004b50| 30 20 50 69 63 74 75 72 | 65 31 2e 64 61 74 61 20 |0 Pictur|e1.data |
|00004b60| 7c 20 69 70 72 0a 0a 09 | 4e 6f 74 20 28 79 65 74 || ipr...|Not (yet|
|00004b70| 29 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 3a 0a 09 |) implem|ented:..|
|00004b80| 09 53 6d 6f 6f 74 68 65 | 64 20 70 6f 6c 79 67 6f |.Smoothe|d polygo|
|00004b90| 6e 73 0a 09 09 50 49 43 | 54 20 6f 62 6a 65 63 74 |ns...PIC|T object|
|00004ba0| 73 20 66 72 6f 6d 20 4d | 61 63 50 61 69 6e 74 0a |s from M|acPaint.|
|00004bb0| 09 09 43 6c 69 70 70 69 | 6e 67 20 6f 66 20 6f 62 |..Clippi|ng of ob|
|00004bc0| 6a 65 63 74 73 20 74 68 | 61 74 20 63 72 6f 73 73 |jects th|at cross|
|00004bd0| 20 38 78 31 30 20 69 6e | 63 68 20 70 61 67 65 20 | 8x10 in|ch page |
|00004be0| 62 6f 75 6e 64 61 72 69 | 65 73 0a 0a 09 4e 6f 74 |boundari|es...Not|
|00004bf0| 65 3a 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |e: This |program |
|00004c00| 68 61 73 20 62 65 65 6e | 20 75 73 65 64 20 65 78 |has been| used ex|
|00004c10| 74 65 6e 73 69 76 65 6c | 79 20 6f 6e 20 56 41 58 |tensivel|y on VAX|
|00004c20| 20 73 79 73 74 65 6d 73 | 20 62 75 74 0a 09 6f 6e | systems| but..on|
|00004c30| 6c 79 20 66 6f 72 20 61 | 20 73 68 6f 72 74 20 74 |ly for a| short t|
|00004c40| 69 6d 65 20 6f 6e 20 53 | 55 4e 20 73 79 73 74 65 |ime on S|UN syste|
|00004c50| 6d 73 2e 20 20 49 74 20 | 73 65 65 6d 73 20 74 6f |ms. It |seems to|
|00004c60| 20 77 6f 72 6b 20 6f 6e | 20 53 55 4e 73 0a 09 62 | work on| SUNs..b|
|00004c70| 75 74 20 73 6f 6d 65 20 | 63 6f 6d 70 61 74 69 62 |ut some |compatib|
|00004c80| 69 6c 69 74 79 20 62 75 | 67 73 20 6d 61 79 20 73 |ility bu|gs may s|
|00004c90| 74 69 6c 6c 20 62 65 20 | 6c 65 66 74 20 69 6e 20 |till be |left in |
|00004ca0| 69 74 2e 20 20 54 68 65 | 20 6f 6e 6c 79 0a 09 63 |it. The| only..c|
|00004cb0| 6f 64 65 20 74 68 61 74 | 20 69 73 20 64 65 70 65 |ode that| is depe|
|00004cc0| 6e 64 65 6e 74 20 6f 6e | 20 74 68 65 20 56 41 58 |ndent on| the VAX|
|00004cd0| 20 62 79 74 65 20 6f 72 | 64 65 72 69 6e 67 20 69 | byte or|dering i|
|00004ce0| 73 20 69 6e 20 73 77 61 | 70 62 79 74 65 28 29 0a |s in swa|pbyte().|
|00004cf0| 09 61 6e 64 20 69 73 20 | 69 73 20 63 6f 6e 64 69 |.and is |is condi|
|00004d00| 74 69 6f 6e 61 6c 6c 79 | 20 63 6f 6d 70 69 6c 65 |tionally| compile|
|00004d10| 64 2e 20 20 54 68 65 72 | 65 20 6d 61 79 20 62 65 |d. Ther|e may be|
|00004d20| 20 6f 74 68 65 72 20 70 | 6c 61 63 65 73 20 77 68 | other p|laces wh|
|00004d30| 65 72 65 0a 09 74 68 65 | 20 70 72 6f 67 72 61 6d |ere..the| program|
|00004d40| 20 6e 65 65 64 73 20 74 | 6f 20 62 65 20 63 68 61 | needs t|o be cha|
|00004d50| 6e 67 65 64 20 66 6f 72 | 20 6f 74 68 65 72 20 6d |nged for| other m|
|00004d60| 61 63 68 69 6e 65 73 2e | 0a 0a 09 50 6c 65 61 73 |achines.|...Pleas|
|00004d70| 65 20 73 65 6e 64 20 61 | 6e 79 20 62 75 67 20 72 |e send a|ny bug r|
|00004d80| 65 70 6f 72 74 73 20 74 | 6f 20 57 65 62 65 72 25 |eports t|o Weber%|
|00004d90| 42 72 61 6e 64 40 55 53 | 43 2d 4f 62 65 72 6f 6e |Brand@US|C-Oberon|
|00004da0| 2e 55 53 43 2e 45 44 55 | 0a 0a 09 41 6c 6c 61 6e |.USC.EDU|...Allan|
|00004db0| 20 57 65 62 65 72 20 28 | 57 65 62 65 72 25 42 72 | Weber (|Weber%Br|
|00004dc0| 61 6e 64 40 55 53 43 2d | 4f 62 65 72 6f 6e 2e 55 |and@USC-|Oberon.U|
|00004dd0| 53 43 2e 45 44 55 29 0a | 09 55 53 43 20 53 69 67 |SC.EDU).|.USC Sig|
|00004de0| 6e 61 6c 20 61 6e 64 20 | 49 6d 61 67 65 20 50 72 |nal and |Image Pr|
|00004df0| 6f 63 65 73 73 69 6e 67 | 20 49 6e 73 74 69 74 75 |ocessing| Institu|
|00004e00| 74 65 0a 0a 09 48 69 73 | 74 6f 72 79 3a 0a 09 31 |te...His|tory:..1|
|00004e10| 36 2d 41 70 72 2d 38 35 | 09 56 65 72 73 69 6f 6e |6-Apr-85|.Version|
|00004e20| 20 31 0a 09 32 33 2d 41 | 70 72 2d 38 35 09 56 65 | 1..23-A|pr-85.Ve|
|00004e30| 72 73 69 6f 6e 20 32 20 | 2d 20 46 69 78 65 64 20 |rsion 2 |- Fixed |
|00004e40| 62 75 67 20 69 6e 20 61 | 72 63 73 2c 20 61 64 64 |bug in a|rcs, add|
|00004e50| 65 64 20 61 72 72 6f 77 | 73 2c 0a 09 09 09 61 64 |ed arrow|s,....ad|
|00004e60| 64 65 64 20 72 65 73 74 | 20 6f 66 20 70 61 74 74 |ded rest| of patt|
|00004e70| 65 72 6e 73 2c 20 63 68 | 61 6e 67 65 64 20 63 76 |erns, ch|anged cv|
|00004e80| 74 70 6e 74 20 74 6f 20 | 75 73 65 0a 09 09 09 33 |tpnt to |use....3|
|00004e90| 32 2d 62 69 74 20 63 6f | 6f 72 64 69 6e 61 74 65 |2-bit co|ordinate|
|00004ea0| 73 2c 20 61 64 64 65 64 | 20 2d 70 20 73 77 69 74 |s, added| -p swit|
|00004eb0| 63 68 20 66 6f 72 20 70 | 61 67 65 20 73 65 6c 65 |ch for p|age sele|
|00004ec0| 63 74 0a 09 32 38 2d 41 | 75 67 2d 38 35 09 56 65 |ct..28-A|ug-85.Ve|
|00004ed0| 72 73 69 6f 6e 20 33 20 | 2d 20 41 64 64 65 64 20 |rsion 3 |- Added |
|00004ee0| 74 65 78 74 20 75 73 69 | 6e 67 20 54 65 58 20 66 |text usi|ng TeX f|
|00004ef0| 6f 6e 74 73 20 61 6e 64 | 20 72 6f 75 74 69 6e 65 |onts and| routine|
|00004f00| 73 0a 09 09 09 66 72 6f | 6d 20 74 68 65 20 55 6e |s....fro|m the Un|
|00004f10| 69 78 20 54 65 58 20 64 | 69 73 74 72 69 62 75 74 |ix TeX d|istribut|
|00004f20| 69 6f 6e 2e 09 20 41 64 | 64 65 64 20 66 69 78 20 |ion.. Ad|ded fix |
|00004f30| 74 6f 20 61 72 63 0a 09 | 09 09 72 6f 75 74 69 6e |to arc..|..routin|
|00004f40| 65 20 66 72 6f 6d 20 52 | 69 63 68 61 72 64 20 52 |e from R|ichard R|
|00004f50| 6f 79 20 28 64 69 63 6b | 40 73 75 2d 64 69 74 29 |oy (dick|@su-dit)|
|00004f60| 2e 0a 09 31 36 2d 44 65 | 63 2d 38 35 09 56 65 72 |...16-De|c-85.Ver|
|00004f70| 73 69 6f 6e 20 34 0a 09 | 09 09 41 64 64 65 64 20 |sion 4..|..Added |
|00004f80| 2d 74 20 73 77 69 74 63 | 68 20 74 6f 20 70 72 6f |-t switc|h to pro|
|00004f90| 64 75 63 65 20 69 6d 70 | 72 65 73 73 20 66 69 6c |duce imp|ress fil|
|00004fa0| 65 20 77 69 74 68 6f 75 | 74 0a 09 09 09 68 65 61 |e withou|t....hea|
|00004fb0| 64 65 72 2c 20 65 6e 64 | 70 61 67 65 2c 20 6f 72 |der, end|page, or|
|00004fc0| 20 65 6f 66 20 62 79 74 | 65 73 20 66 6f 72 20 69 | eof byt|es for i|
|00004fd0| 6e 63 6c 75 64 69 6e 67 | 0a 09 09 09 6f 75 74 70 |ncluding|....outp|
|00004fe0| 75 74 20 66 69 6c 65 20 | 69 6e 20 54 65 58 20 64 |ut file |in TeX d|
|00004ff0| 6f 63 75 6d 65 6e 74 73 | 20 67 6f 69 6e 67 20 74 |ocuments| going t|
|00005000| 6f 20 49 6d 61 67 65 6e | 2e 0a 09 09 09 41 6c 73 |o Imagen|.....Als|
|00005010| 6f 20 6d 6f 76 65 73 20 | 77 68 61 74 65 76 65 72 |o moves |whatever|
|00005020| 20 69 73 20 6f 6e 20 70 | 61 67 65 20 74 6f 20 75 | is on p|age to u|
|00005030| 70 70 65 72 20 6c 65 66 | 74 20 63 6f 72 6e 65 72 |pper lef|t corner|
|00005040| 2e 0a 09 09 09 4d 6f 72 | 65 20 66 69 78 65 73 20 |.....Mor|e fixes |
|00005050| 74 6f 20 61 72 63 73 20 | 74 6f 20 68 61 6e 64 6c |to arcs |to handl|
|00005060| 65 20 66 69 6c 6c 65 64 | 20 61 72 63 73 20 61 6e |e filled| arcs an|
|00005070| 64 20 61 72 63 73 0a 09 | 09 09 6f 66 20 6f 74 68 |d arcs..|..of oth|
|00005080| 65 72 20 74 68 61 6e 20 | 39 30 20 64 65 67 72 65 |er than |90 degre|
|00005090| 65 73 2e 0a 09 09 09 49 | 6d 70 6c 65 6d 65 6e 74 |es.....I|mplement|
|000050a0| 65 64 20 64 69 66 66 65 | 72 65 6e 74 20 72 61 64 |ed diffe|rent rad|
|000050b0| 69 75 73 20 63 6f 72 6e | 65 72 73 20 66 6f 72 20 |ius corn|ers for |
|000050c0| 74 68 65 20 72 6f 75 6e | 64 65 64 0a 09 09 09 72 |the roun|ded....r|
|000050d0| 65 63 74 61 6e 67 6c 65 | 73 2e 0a 09 31 30 2d 41 |ectangle|s...10-A|
|000050e0| 70 72 2d 38 36 09 46 69 | 78 65 64 20 62 75 67 20 |pr-86.Fi|xed bug |
|000050f0| 69 6e 20 54 65 58 20 6d | 6f 64 65 20 73 74 75 66 |in TeX m|ode stuf|
|00005100| 66 20 74 6f 20 73 68 69 | 66 74 20 70 69 63 74 75 |f to shi|ft pictu|
|00005110| 72 65 0a 09 09 09 74 6f | 20 74 6f 70 2d 6c 65 66 |re....to| top-lef|
|00005120| 74 2e 0a 09 32 37 2d 4a | 61 6e 2d 38 37 20 20 20 |t...27-J|an-87 |
|00005130| 20 20 20 20 50 6f 72 74 | 65 64 20 74 6f 20 53 55 | Port|ed to SU|
|00005140| 4e 20 73 79 73 74 65 6d | 73 2e 20 20 46 69 78 65 |N system|s. Fixe|
|00005150| 64 20 61 20 63 6f 75 70 | 6c 65 20 6f 66 20 62 75 |d a coup|le of bu|
|00005160| 67 73 20 0a 09 20 20 20 | 20 20 20 20 20 20 20 20 |gs .. | |
|00005170| 20 20 20 20 20 74 68 61 | 74 20 73 68 6f 77 65 64 | tha|t showed|
|00005180| 20 75 70 2e 0a 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 | up..*/.|.#includ|
|00005190| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 23 69 6e 63 |e <stdio|.h>.#inc|
|000051a0| 6c 75 64 65 20 3c 63 74 | 79 70 65 2e 68 3e 0a 23 |lude <ct|ype.h>.#|
|000051b0| 69 6e 63 6c 75 64 65 20 | 3c 6d 61 74 68 2e 68 3e |include |<math.h>|
|000051c0| 0a 23 69 6e 63 6c 75 64 | 65 20 22 64 72 61 77 69 |.#includ|e "drawi|
|000051d0| 6d 70 2e 68 22 0a 0a 2f | 2a 20 23 64 65 66 69 6e |mp.h"../|* #defin|
|000051e0| 65 20 44 45 42 55 47 20 | 2a 2f 09 09 2f 2a 20 64 |e DEBUG |*/../* d|
|000051f0| 65 66 69 6e 65 20 44 45 | 42 55 47 20 74 6f 20 67 |efine DE|BUG to g|
|00005200| 65 74 20 70 6f 69 6e 74 | 20 63 6f 6e 76 65 72 73 |et point| convers|
|00005210| 69 6f 6e 73 0a 09 09 09 | 09 20 20 20 70 72 69 6e |ions....|. prin|
|00005220| 74 65 64 20 6f 75 74 20 | 2a 2f 0a 2f 2a 20 23 64 |ted out |*/./* #d|
|00005230| 65 66 69 6e 65 20 4e 4f | 5f 54 45 58 54 20 2a 2f |efine NO|_TEXT */|
|00005240| 09 09 2f 2a 20 64 65 66 | 69 6e 65 20 4e 4f 5f 54 |../* def|ine NO_T|
|00005250| 45 58 54 20 74 6f 20 62 | 75 69 6c 64 20 77 69 74 |EXT to b|uild wit|
|00005260| 68 6f 75 74 0a 09 09 09 | 09 20 20 20 74 65 78 74 |hout....|. text|
|00005270| 20 63 61 70 61 62 69 6c | 69 74 79 20 2a 2f 0a 0a | capabil|ity */..|
|00005280| 46 49 4c 45 20 2a 69 6e | 66 70 2c 20 2a 6f 75 74 |FILE *in|fp, *out|
|00005290| 66 70 2c 20 2a 66 6f 6e | 74 66 70 3b 0a 69 6e 74 |fp, *fon|tfp;.int|
|000052a0| 20 67 64 65 70 74 68 2c | 20 64 6f 6e 65 3b 0a 69 | gdepth,| done;.i|
|000052b0| 6e 74 20 64 65 62 75 67 | 20 3d 20 30 3b 0a 69 6e |nt debug| = 0;.in|
|000052c0| 74 20 74 65 78 5f 6f 75 | 74 70 75 74 20 3d 20 30 |t tex_ou|tput = 0|
|000052d0| 3b 0a 69 6e 74 20 64 72 | 61 77 5f 74 6f 70 2c 20 |;.int dr|aw_top, |
|000052e0| 64 72 61 77 5f 6c 65 66 | 74 3b 0a 69 6e 74 20 6c |draw_lef|t;.int l|
|000052f0| 69 6e 65 5f 74 61 62 6c | 65 5b 5d 20 3d 20 7b 20 |ine_tabl|e[] = { |
|00005300| 30 2c 20 30 2c 20 31 2c | 20 38 2c 20 31 36 2c 20 |0, 0, 1,| 8, 16, |
|00005310| 32 30 20 7d 3b 09 2f 2a | 20 6c 69 6e 65 20 77 69 |20 };./*| line wi|
|00005320| 64 74 68 20 74 61 62 6c | 65 20 2a 2f 0a 69 6e 74 |dth tabl|e */.int|
|00005330| 20 61 72 5f 73 69 7a 65 | 5b 5d 20 3d 20 7b 20 30 | ar_size|[] = { 0|
|00005340| 2c 20 30 2c 20 31 30 2c | 20 31 35 2c 20 32 30 2c |, 0, 10,| 15, 20,|
|00005350| 20 32 35 7d 3b 09 2f 2a | 20 61 72 72 6f 77 68 65 | 25};./*| arrowhe|
|00005360| 61 64 20 73 69 7a 65 20 | 74 61 62 6c 65 20 2a 2f |ad size |table */|
|00005370| 0a 69 6e 74 20 63 6f 72 | 6e 65 72 5f 72 61 64 5b |.int cor|ner_rad[|
|00005380| 5d 20 3d 20 7b 20 30 2c | 20 30 2c 20 39 2c 20 31 |] = { 0,| 0, 9, 1|
|00005390| 34 2c 20 31 38 2c 20 32 | 33 2c 20 32 37 20 7d 3b |4, 18, 2|3, 27 };|
|000053a0| 20 2f 2a 20 63 6f 72 6e | 65 72 20 72 61 64 69 75 | /* corn|er radiu|
|000053b0| 73 20 74 61 62 6c 65 20 | 2a 2f 0a 69 6e 74 20 74 |s table |*/.int t|
|000053c0| 65 78 74 75 72 65 5f 74 | 61 62 6c 65 5b 33 37 5d |exture_t|able[37]|
|000053d0| 3b 0a 63 68 61 72 20 2a | 50 72 6f 67 4e 61 6d 65 |;.char *|ProgName|
|000053e0| 3b 0a 63 68 61 72 20 66 | 68 65 61 64 65 72 5b 48 |;.char f|header[H|
|000053f0| 45 41 44 45 52 5f 53 49 | 5a 45 5d 3b 0a 63 68 61 |EADER_SI|ZE];.cha|
|00005400| 72 20 74 6d 70 5b 4d 41 | 58 5f 52 45 43 4f 52 44 |r tmp[MA|X_RECORD|
|00005410| 5d 3b 0a 63 68 61 72 20 | 66 69 6c 65 6e 61 6d 65 |];.char |filename|
|00005420| 5b 38 30 5d 3b 0a 73 74 | 72 75 63 74 20 4d 44 68 |[80];.st|ruct MDh|
|00005430| 65 61 64 65 72 20 72 68 | 65 61 64 65 72 3b 0a 73 |eader rh|eader;.s|
|00005440| 74 72 75 63 74 20 73 72 | 65 63 74 20 63 75 72 5f |truct sr|ect cur_|
|00005450| 70 61 67 65 3b 0a 64 6f | 75 62 6c 65 20 61 72 5f |page;.do|uble ar_|
|00005460| 61 6e 67 6c 65 2c 20 61 | 72 5f 73 69 7a 65 32 5b |angle, a|r_size2[|
|00005470| 36 5d 2c 20 61 72 5f 72 | 61 64 69 75 73 5b 36 5d |6], ar_r|adius[6]|
|00005480| 3b 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 70 61 |;.extern| char pa|
|00005490| 74 74 65 72 6e 5b 33 37 | 5d 5b 31 32 38 5d 3b 0a |ttern[37|][128];.|
|000054a0| 0a 2f 2a 0a 54 68 69 73 | 20 61 72 72 61 79 20 63 |./*.This| array c|
|000054b0| 6f 6e 74 61 69 6e 73 20 | 69 6e 66 6f 20 61 62 6f |ontains |info abo|
|000054c0| 75 74 20 65 61 63 68 20 | 70 61 67 65 20 6f 66 20 |ut each |page of |
|000054d0| 74 68 65 20 66 69 6c 65 | 20 62 65 67 69 6e 20 64 |the file| begin d|
|000054e0| 72 61 77 6e 2e 20 20 54 | 68 65 20 6f 62 6a 65 63 |rawn. T|he objec|
|000054f0| 74 73 0a 69 6e 20 74 68 | 65 20 4d 61 63 44 72 61 |ts.in th|e MacDra|
|00005500| 77 20 66 69 6c 65 20 63 | 61 6e 20 6f 63 63 75 72 |w file c|an occur|
|00005510| 20 69 6e 20 61 6e 79 20 | 6f 72 64 65 72 20 61 6e | in any |order an|
|00005520| 64 20 77 65 20 68 61 76 | 65 20 74 6f 20 73 6f 72 |d we hav|e to sor|
|00005530| 74 20 74 68 65 6d 20 6f | 75 74 20 69 6e 74 6f 0a |t them o|ut into.|
|00005540| 73 65 70 61 72 61 74 65 | 20 70 61 67 65 20 66 6f |separate| page fo|
|00005550| 72 20 6f 75 74 70 75 74 | 2e 20 20 54 68 65 20 2e |r output|. The .|
|00005560| 66 6c 61 67 20 69 6e 64 | 69 63 61 74 65 73 20 77 |flag ind|icates w|
|00005570| 68 65 74 68 65 72 20 74 | 68 69 73 20 70 61 67 65 |hether t|his page|
|00005580| 20 69 73 20 74 6f 20 62 | 65 20 0a 6f 75 74 70 75 | is to b|e .outpu|
|00005590| 74 20 6f 72 20 6e 6f 74 | 20 28 66 72 6f 6d 20 2d |t or not| (from -|
|000055a0| 70 20 6f 70 74 69 6f 6e | 29 2e 20 20 54 68 65 20 |p option|). The |
|000055b0| 2e 66 6f 6e 74 20 66 69 | 65 6c 64 20 69 73 20 75 |.font fi|eld is u|
|000055c0| 73 65 64 20 74 6f 20 73 | 74 6f 72 65 20 74 68 65 |sed to s|tore the|
|000055d0| 20 49 6d 46 61 6d 69 6c | 79 0a 76 61 6c 75 65 20 | ImFamil|y.value |
|000055e0| 66 72 6f 6d 20 74 68 65 | 20 74 65 78 74 69 6d 70 |from the| textimp|
|000055f0| 2e 63 20 66 69 6c 65 20 | 74 68 61 74 20 77 61 73 |.c file |that was|
|00005600| 20 69 6e 20 75 73 65 20 | 74 68 65 20 6c 61 73 74 | in use |the last|
|00005610| 20 74 69 6d 65 20 77 65 | 20 77 65 72 65 20 64 6f | time we| were do|
|00005620| 69 6e 67 20 74 68 61 74 | 0a 70 61 67 65 2e 20 20 |ing that|.page. |
|00005630| 42 79 20 72 65 6d 65 6d | 62 65 72 69 6e 67 20 77 |By remem|bering w|
|00005640| 68 69 63 68 20 66 6f 6e | 74 20 77 61 73 20 69 6e |hich fon|t was in|
|00005650| 20 75 73 65 20 6f 6e 20 | 61 20 70 61 67 65 2c 20 | use on |a page, |
|00005660| 77 65 20 64 6f 6e 27 74 | 20 68 61 76 65 20 74 6f |we don't| have to|
|00005670| 20 73 65 6e 64 0a 74 68 | 65 20 69 6d 50 72 65 73 | send.th|e imPres|
|00005680| 73 20 53 65 74 46 61 6d | 69 6c 79 20 63 6f 6d 6d |s SetFam|ily comm|
|00005690| 61 6e 64 73 20 65 61 63 | 68 20 74 69 6d 65 20 77 |ands eac|h time w|
|000056a0| 65 20 67 6f 20 62 61 63 | 6b 20 74 6f 20 70 75 74 |e go bac|k to put|
|000056b0| 20 6d 6f 72 65 20 73 74 | 75 66 66 20 6f 6e 20 74 | more st|uff on t|
|000056c0| 68 61 74 0a 70 61 67 65 | 20 69 66 20 74 68 65 20 |hat.page| if the |
|000056d0| 66 6f 6e 74 20 68 61 73 | 6e 27 74 20 63 68 61 6e |font has|n't chan|
|000056e0| 67 65 64 2e 20 20 54 68 | 65 20 2e 6e 61 6d 65 20 |ged. Th|e .name |
|000056f0| 66 69 65 6c 64 20 68 6f | 6c 64 73 20 74 68 65 20 |field ho|lds the |
|00005700| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 0a 74 65 6d |name of |the .tem|
|00005710| 70 6f 72 61 72 79 20 66 | 69 6c 65 20 73 6f 20 77 |porary f|ile so w|
|00005720| 65 20 63 61 6e 20 64 65 | 6c 65 74 65 20 69 74 20 |e can de|lete it |
|00005730| 6c 61 74 65 72 2e 20 20 | 54 68 65 20 66 69 6c 65 |later. |The file|
|00005740| 20 70 6f 69 6e 74 65 72 | 20 69 73 20 69 6e 20 2e | pointer| is in .|
|00005750| 66 70 20 61 6e 64 20 69 | 73 0a 30 20 69 66 20 6e |fp and i|s.0 if n|
|00005760| 6f 20 66 69 6c 65 20 6f | 70 65 6e 20 66 6f 72 20 |o file o|pen for |
|00005770| 74 68 61 74 20 70 61 67 | 65 20 79 65 74 2e 20 20 |that pag|e yet. |
|00005780| 54 68 65 20 70 61 67 65 | 5f 70 74 72 20 76 61 72 |The page|_ptr var|
|00005790| 69 61 62 6c 65 20 70 6f | 69 6e 74 73 20 74 6f 20 |iable po|ints to |
|000057a0| 74 68 65 0a 65 6e 74 72 | 79 20 66 6f 72 20 74 68 |the.entr|y for th|
|000057b0| 65 20 70 61 67 65 20 63 | 75 72 72 65 6e 74 6c 79 |e page c|urrently|
|000057c0| 20 62 65 69 6e 67 20 77 | 6f 72 6b 65 64 20 6f 6e | being w|orked on|
|000057d0| 2e 0a 2a 2f 0a 73 74 72 | 75 63 74 20 70 61 67 65 |..*/.str|uct page|
|000057e0| 20 7b 09 09 2f 2a 20 74 | 61 62 6c 65 20 6f 66 20 | {../* t|able of |
|000057f0| 64 72 61 77 69 6e 67 20 | 70 61 67 65 73 20 2a 2f |drawing |pages */|
|00005800| 0a 09 69 6e 74 20 66 6c | 61 67 3b 09 2f 2a 20 66 |..int fl|ag;./* f|
|00005810| 6c 61 67 20 66 6f 72 20 | 70 61 67 65 20 69 6e 20 |lag for |page in |
|00005820| 75 73 65 20 2a 2f 0a 09 | 69 6e 74 20 66 6f 6e 74 |use */..|int font|
|00005830| 3b 09 2f 2a 20 66 6f 6e | 74 20 69 6e 20 75 73 65 |;./* fon|t in use|
|00005840| 20 6f 6e 20 74 68 69 73 | 20 70 61 67 65 20 2a 2f | on this| page */|
|00005850| 0a 09 63 68 61 72 20 6e | 61 6d 65 5b 32 30 5d 3b |..char n|ame[20];|
|00005860| 09 2f 2a 20 66 69 6c 65 | 20 6e 61 6d 65 20 6f 66 |./* file| name of|
|00005870| 20 77 68 65 72 65 20 74 | 68 65 20 64 61 74 61 20 | where t|he data |
|00005880| 77 65 6e 74 20 2a 2f 0a | 09 46 49 4c 45 20 2a 66 |went */.|.FILE *f|
|00005890| 70 3b 09 2f 2a 20 66 69 | 6c 65 20 70 6f 69 6e 74 |p;./* fi|le point|
|000058a0| 65 72 20 2a 2f 0a 7d 20 | 70 61 67 65 74 62 6c 5b |er */.} |pagetbl[|
|000058b0| 4d 41 43 5f 56 5f 50 41 | 47 45 53 5d 5b 4d 41 43 |MAC_V_PA|GES][MAC|
|000058c0| 5f 48 5f 50 41 47 45 53 | 5d 2c 20 2a 70 61 67 65 |_H_PAGES|], *page|
|000058d0| 5f 70 74 72 3b 0a 0a 2f | 2a 20 54 68 69 73 20 74 |_ptr;../|* This t|
|000058e0| 61 62 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |able con|tains th|
|000058f0| 65 20 76 61 6c 75 65 73 | 20 75 73 65 64 20 74 6f |e values| used to|
|00005900| 20 63 6f 6e 76 65 72 74 | 20 66 72 6f 6d 20 4d 61 | convert| from Ma|
|00005910| 63 44 72 61 77 20 75 6e | 69 74 73 0a 28 31 2f 37 |cDraw un|its.(1/7|
|00005920| 32 20 69 6e 63 68 29 20 | 74 6f 20 74 68 65 20 72 |2 inch) |to the r|
|00005930| 65 73 6f 6c 75 74 69 6f | 6e 20 6f 66 20 74 68 65 |esolutio|n of the|
|00005940| 20 49 6d 61 67 65 6e 2e | 20 20 54 68 65 20 2e 72 | Imagen.| The .r|
|00005950| 65 73 20 66 69 65 6c 64 | 20 69 73 20 74 68 65 0a |es field| is the.|
|00005960| 49 6d 61 67 65 6e 20 72 | 65 73 6f 6c 75 74 69 6f |Imagen r|esolutio|
|00005970| 6e 20 69 6e 20 70 69 78 | 65 6c 73 2f 69 6e 63 68 |n in pix|els/inch|
|00005980| 2e 20 20 54 68 65 20 2e | 6e 75 6d 20 61 6e 64 20 |. The .|num and |
|00005990| 2e 64 65 6e 20 66 69 65 | 6c 64 73 20 61 72 65 20 |.den fie|lds are |
|000059a0| 74 68 65 20 0a 6e 75 6d | 65 72 61 74 6f 72 20 61 |the .num|erator a|
|000059b0| 6e 64 20 64 65 6e 6f 6e | 69 6e 61 74 6f 72 20 75 |nd denon|inator u|
|000059c0| 73 65 64 20 74 6f 20 64 | 6f 20 74 68 65 20 6d 75 |sed to d|o the mu|
|000059d0| 6c 74 69 70 6c 69 63 61 | 74 69 6f 6e 2c 20 61 73 |ltiplica|tion, as|
|000059e0| 20 69 6e 3a 0a 09 49 6d | 61 67 65 6e 20 3d 20 4d | in:..Im|agen = M|
|000059f0| 61 63 44 72 61 77 20 2a | 20 2e 6e 75 6d 20 2f 20 |acDraw *| .num / |
|00005a00| 2e 64 65 6e 0a 54 68 65 | 20 73 63 61 6c 69 6e 67 |.den.The| scaling|
|00005a10| 20 66 61 63 74 6f 72 20 | 69 73 20 73 70 6c 69 74 | factor |is split|
|00005a20| 20 69 6e 74 6f 20 73 65 | 70 61 72 61 74 65 20 6e | into se|parate n|
|00005a30| 75 6d 65 72 61 74 6f 72 | 20 61 6e 64 20 64 65 6e |umerator| and den|
|00005a40| 6f 6d 69 6e 61 74 6f 72 | 0a 74 6f 20 61 6c 6c 6f |ominator|.to allo|
|00005a50| 77 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 77 69 74 |w conver|sion wit|
|00005a60| 68 6f 75 74 20 6f 76 65 | 72 66 6c 6f 77 20 70 72 |hout ove|rflow pr|
|00005a70| 6f 62 6c 65 6d 73 2e 0a | 2a 2f 0a 73 74 72 75 63 |oblems..|*/.struc|
|00005a80| 74 20 7b 0a 09 69 6e 74 | 20 72 65 73 3b 0a 09 69 |t {..int| res;..i|
|00005a90| 6e 74 20 6e 75 6d 2c 64 | 65 6e 3b 0a 7d 20 72 65 |nt num,d|en;.} re|
|00005aa0| 73 74 62 6c 5b 5d 20 3d | 20 7b 0a 09 32 34 30 2c |stbl[] =| {..240,|
|00005ab0| 20 31 30 2c 20 33 2c 0a | 09 33 30 30 2c 20 32 35 | 10, 3,.|.300, 25|
|00005ac0| 2c 20 36 2c 0a 09 2d 31 | 2c 20 30 2c 20 30 0a 09 |, 6,..-1|, 0, 0..|
|00005ad0| 7d 3b 0a 69 6e 74 20 6d | 64 32 69 6d 5f 6e 75 6d |};.int m|d2im_num|
|00005ae0| 2c 20 6d 64 32 69 6d 5f | 64 65 6e 3b 0a 69 6e 74 |, md2im_|den;.int|
|00005af0| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 3d 20 44 45 | resolut|ion = DE|
|00005b00| 46 5f 52 45 53 3b 0a 0a | 63 68 61 72 20 2a 67 65 |F_RES;..|char *ge|
|00005b10| 74 70 61 67 65 73 28 29 | 3b 0a 69 6e 74 20 74 65 |tpages()|;.int te|
|00005b20| 72 6d 69 6e 61 6c 28 29 | 2c 20 74 65 78 74 28 29 |rminal()|, text()|
|00005b30| 2c 20 76 65 63 74 6f 72 | 28 29 2c 20 72 65 63 74 |, vector|(), rect|
|00005b40| 61 6e 67 6c 65 28 29 2c | 20 72 6f 75 6e 64 72 65 |angle(),| roundre|
|00005b50| 63 74 28 29 3b 0a 69 6e | 74 20 65 6c 6c 69 70 73 |ct();.in|t ellips|
|00005b60| 65 28 29 2c 20 61 72 63 | 28 29 2c 20 63 75 72 76 |e(), arc|(), curv|
|00005b70| 65 28 29 2c 20 70 6f 6c | 79 67 6f 6e 28 29 2c 20 |e(), pol|ygon(), |
|00005b80| 67 72 6f 75 70 28 29 3b | 0a 69 6e 74 20 28 2a 6f |group();|.int (*o|
|00005b90| 70 66 75 6e 5b 5d 29 28 | 29 20 3d 20 7b 74 65 72 |pfun[])(|) = {ter|
|00005ba0| 6d 69 6e 61 6c 2c 20 74 | 65 78 74 2c 20 76 65 63 |minal, t|ext, vec|
|00005bb0| 74 6f 72 2c 20 76 65 63 | 74 6f 72 2c 20 72 65 63 |tor, vec|tor, rec|
|00005bc0| 74 61 6e 67 6c 65 2c 20 | 72 6f 75 6e 64 72 65 63 |tangle, |roundrec|
|00005bd0| 74 2c 0a 09 09 20 20 20 | 20 65 6c 6c 69 70 73 65 |t,... | ellipse|
|00005be0| 2c 20 61 72 63 2c 20 63 | 75 72 76 65 2c 20 70 6f |, arc, c|urve, po|
|00005bf0| 6c 79 67 6f 6e 2c 20 67 | 72 6f 75 70 20 7d 3b 0a |lygon, g|roup };.|
|00005c00| 0a 63 68 61 72 20 2a 55 | 53 41 47 45 20 3d 20 22 |.char *U|SAGE = "|
|00005c10| 5b 2d 52 72 65 73 5d 20 | 5b 2d 64 5d 20 5b 2d 74 |[-Rres] |[-d] [-t|
|00005c20| 5d 20 5b 2d 70 70 61 67 | 65 73 5d 20 69 6e 5f 66 |] [-ppag|es] in_f|
|00005c30| 69 6c 65 20 3e 20 6f 75 | 74 5f 66 69 6c 65 22 3b |ile > ou|t_file";|
|00005c40| 0a 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 6d |..extern| char *m|
|00005c50| 61 6c 6c 6f 63 28 29 3b | 0a 65 78 74 65 72 6e 20 |alloc();|.extern |
|00005c60| 63 68 61 72 20 2a 6d 6b | 74 65 6d 70 28 29 3b 0a |char *mk|temp();.|
|00005c70| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 73 74 72 |extern c|har *str|
|00005c80| 63 70 79 28 29 3b 0a 65 | 78 74 65 72 6e 20 46 49 |cpy();.e|xtern FI|
|00005c90| 4c 45 20 2a 69 6d 70 6f | 75 74 28 29 3b 0a 23 69 |LE *impo|ut();.#i|
|00005ca0| 66 6e 64 65 66 20 4e 4f | 5f 54 45 58 54 0a 65 78 |fndef NO|_TEXT.ex|
|00005cb0| 74 65 72 6e 20 69 6e 74 | 20 49 6d 46 61 6d 69 6c |tern int| ImFamil|
|00005cc0| 79 3b 09 2f 2a 20 63 75 | 72 72 65 6e 74 20 49 6d |y;./* cu|rrent Im|
|00005cd0| 61 67 65 6e 20 66 6f 6e | 74 20 6e 75 6d 62 65 72 |agen fon|t number|
|00005ce0| 20 66 72 6f 6d 20 74 65 | 78 74 69 6d 70 20 2a 2f | from te|xtimp */|
|00005cf0| 0a 23 65 6e 64 69 66 0a | 0a 6d 61 69 6e 28 61 72 |.#endif.|.main(ar|
|00005d00| 67 63 2c 61 72 67 76 29 | 0a 69 6e 74 20 61 72 67 |gc,argv)|.int arg|
|00005d10| 63 3b 0a 63 68 61 72 20 | 2a 61 72 67 76 5b 5d 3b |c;.char |*argv[];|
|00005d20| 0a 7b 09 0a 09 69 6e 74 | 20 69 3b 0a 09 69 6e 74 |.{...int| i;..int|
|00005d30| 20 68 2c 68 31 2c 68 32 | 3b 0a 09 69 6e 74 20 76 | h,h1,h2|;..int v|
|00005d40| 2c 76 31 2c 76 32 3b 0a | 09 69 6e 74 20 67 6f 74 |,v1,v2;.|.int got|
|00005d50| 70 61 67 65 73 20 3d 20 | 30 3b 0a 09 63 68 61 72 |pages = |0;..char|
|00005d60| 20 2a 73 2c 63 3b 0a 09 | 73 74 72 75 63 74 20 6c | *s,c;..|struct l|
|00005d70| 72 65 63 74 20 72 3b 0a | 09 73 74 72 75 63 74 20 |rect r;.|.struct |
|00005d80| 70 61 67 65 20 2a 70 70 | 3b 0a 09 50 72 6f 67 4e |page *pp|;..ProgN|
|00005d90| 61 6d 65 20 3d 20 61 72 | 67 76 5b 30 5d 3b 0a 0a |ame = ar|gv[0];..|
|00005da0| 09 77 68 69 6c 65 28 2d | 2d 61 72 67 63 20 3e 20 |.while(-|-argc > |
|00005db0| 30 20 26 26 20 28 2a 2b | 2b 61 72 67 76 29 5b 30 |0 && (*+|+argv)[0|
|00005dc0| 5d 20 3d 3d 20 27 2d 27 | 29 20 7b 0a 09 09 66 6f |] == '-'|) {...fo|
|00005dd0| 72 20 28 73 20 3d 20 61 | 72 67 76 5b 30 5d 2b 31 |r (s = a|rgv[0]+1|
|00005de0| 3b 20 2a 73 20 21 3d 20 | 27 5c 30 27 3b 20 73 2b |; *s != |'\0'; s+|
|00005df0| 2b 29 0a 09 09 09 73 77 | 69 74 63 68 28 2a 73 29 |+)....sw|itch(*s)|
|00005e00| 20 7b 0a 09 09 09 63 61 | 73 65 20 27 64 27 3a 09 | {....ca|se 'd':.|
|00005e10| 2f 2a 20 64 65 62 75 67 | 20 2a 2f 0a 09 09 09 09 |/* debug| */.....|
|00005e20| 64 65 62 75 67 20 3d 20 | 31 3b 0a 09 09 09 09 62 |debug = |1;.....b|
|00005e30| 72 65 61 6b 3b 0a 09 09 | 09 63 61 73 65 20 27 70 |reak;...|.case 'p|
|00005e40| 27 3a 09 2f 2a 20 70 61 | 67 65 20 73 65 6c 65 63 |':./* pa|ge selec|
|00005e50| 74 20 2a 2f 0a 09 09 09 | 09 2b 2b 73 3b 0a 09 09 |t */....|.++s;...|
|00005e60| 09 09 77 68 69 6c 65 20 | 28 2a 73 20 21 3d 20 27 |..while |(*s != '|
|00005e70| 5c 30 27 29 20 7b 0a 09 | 09 09 09 09 76 31 20 3d |\0') {..|....v1 =|
|00005e80| 20 31 3b 20 76 32 20 3d | 20 35 3b 0a 09 09 09 09 | 1; v2 =| 5;.....|
|00005e90| 09 73 20 3d 20 67 65 74 | 70 61 67 65 73 28 73 2c |.s = get|pages(s,|
|00005ea0| 26 76 31 2c 26 76 32 29 | 3b 0a 09 09 09 09 09 69 |&v1,&v2)|;......i|
|00005eb0| 66 20 28 2a 73 20 21 3d | 20 27 3a 27 29 20 7b 0a |f (*s !=| ':') {.|
|00005ec0| 09 09 09 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |......fp|rintf(st|
|00005ed0| 64 65 72 72 2c 0a 09 09 | 09 09 09 09 22 25 73 3a |derr,...|...."%s:|
|00005ee0| 20 65 72 72 6f 72 20 69 | 6e 20 70 61 67 65 20 6c | error i|n page l|
|00005ef0| 69 73 74 5c 6e 22 2c 0a | 09 09 09 09 09 09 50 72 |ist\n",.|......Pr|
|00005f00| 6f 67 4e 61 6d 65 29 3b | 0a 09 09 09 09 09 09 61 |ogName);|.......a|
|00005f10| 72 67 63 20 3d 20 2d 31 | 3b 0a 09 09 09 09 09 09 |rgc = -1|;.......|
|00005f20| 77 68 69 6c 65 20 28 2a | 73 20 21 3d 20 27 5c 30 |while (*|s != '\0|
|00005f30| 27 29 0a 09 09 09 09 09 | 09 09 73 2b 2b 3b 0a 09 |')......|..s++;..|
|00005f40| 09 09 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 09 09 |.....bre|ak;.....|
|00005f50| 09 7d 0a 09 09 09 09 09 | 65 6c 73 65 0a 09 09 09 |.}......|else....|
|00005f60| 09 09 09 73 2b 2b 3b 0a | 09 09 09 09 09 68 31 20 |...s++;.|.....h1 |
|00005f70| 3d 20 31 3b 20 68 32 20 | 3d 20 31 32 3b 0a 09 09 |= 1; h2 |= 12;...|
|00005f80| 09 09 09 73 20 3d 20 67 | 65 74 70 61 67 65 73 28 |...s = g|etpages(|
|00005f90| 73 2c 26 68 31 2c 26 68 | 32 29 3b 0a 09 09 09 09 |s,&h1,&h|2);.....|
|00005fa0| 09 69 66 20 28 76 31 20 | 3d 3d 20 30 29 0a 09 09 |.if (v1 |== 0)...|
|00005fb0| 09 09 09 09 76 31 20 3d | 20 31 3b 0a 09 09 09 09 |....v1 =| 1;.....|
|00005fc0| 09 69 66 20 28 68 31 20 | 3d 3d 20 30 29 0a 09 09 |.if (h1 |== 0)...|
|00005fd0| 09 09 09 09 68 31 20 3d | 20 31 3b 0a 09 09 09 09 |....h1 =| 1;.....|
|00005fe0| 09 66 6f 72 20 28 76 20 | 3d 20 76 31 3b 20 76 20 |.for (v |= v1; v |
|00005ff0| 3c 3d 20 76 32 3b 20 76 | 2b 2b 29 0a 09 09 09 09 |<= v2; v|++).....|
|00006000| 09 09 66 6f 72 20 28 68 | 20 3d 20 68 31 3b 20 68 |..for (h| = h1; h|
|00006010| 20 3c 3d 20 68 32 3b 20 | 68 2b 2b 29 0a 09 09 09 | <= h2; |h++)....|
|00006020| 09 09 09 20 20 20 20 70 | 61 67 65 74 62 6c 5b 76 |... p|agetbl[v|
|00006030| 2d 31 5d 5b 68 2d 31 5d | 2e 66 6c 61 67 3d 31 3b |-1][h-1]|.flag=1;|
|00006040| 0a 09 09 09 09 09 69 66 | 20 28 2a 73 20 3d 3d 20 |......if| (*s == |
|00006050| 27 2c 27 29 0a 09 09 09 | 09 09 09 73 2b 2b 3b 0a |',')....|...s++;.|
|00006060| 09 09 09 09 7d 0a 09 09 | 09 09 73 2d 2d 3b 09 2f |....}...|..s--;./|
|00006070| 2a 20 62 61 63 6b 20 70 | 6f 69 6e 74 65 72 20 75 |* back p|ointer u|
|00006080| 70 20 6f 6e 65 20 70 6c | 61 63 65 20 2a 2f 0a 09 |p one pl|ace */..|
|00006090| 09 09 09 67 6f 74 70 61 | 67 65 73 20 3d 20 31 3b |...gotpa|ges = 1;|
|000060a0| 0a 09 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 09 63 |.....bre|ak;....c|
|000060b0| 61 73 65 20 27 74 27 3a | 0a 09 09 09 09 74 65 78 |ase 't':|.....tex|
|000060c0| 5f 6f 75 74 70 75 74 20 | 3d 20 31 3b 0a 09 09 09 |_output |= 1;....|
|000060d0| 09 62 72 65 61 6b 3b 0a | 09 09 09 63 61 73 65 20 |.break;.|...case |
|000060e0| 27 52 27 3a 09 2f 2a 20 | 49 6d 61 67 65 20 72 65 |'R':./* |Image re|
|000060f0| 73 6f 6c 75 74 69 6f 6e | 20 2a 2f 0a 20 09 09 09 |solution| */. ...|
|00006100| 09 73 2b 2b 3b 0a 09 09 | 09 09 69 66 20 28 73 73 |.s++;...|..if (ss|
|00006110| 63 61 6e 66 28 73 2c 22 | 25 64 22 2c 26 72 65 73 |canf(s,"|%d",&res|
|00006120| 6f 6c 75 74 69 6f 6e 29 | 20 21 3d 20 31 29 20 7b |olution)| != 1) {|
|00006130| 0a 09 09 09 09 20 20 20 | 20 66 70 72 69 6e 74 66 |..... | fprintf|
|00006140| 28 73 74 64 65 72 72 2c | 22 25 73 3a 20 42 61 64 |(stderr,|"%s: Bad|
|00006150| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 2d 20 25 73 | resolut|ion - %s|
|00006160| 5c 6e 22 2c 0a 09 09 09 | 09 09 50 72 6f 67 4e 61 |\n",....|..ProgNa|
|00006170| 6d 65 2c 73 29 3b 0a 09 | 09 09 09 20 20 20 20 61 |me,s);..|... a|
|00006180| 72 67 63 20 3d 20 2d 31 | 3b 0a 09 09 09 09 7d 0a |rgc = -1|;.....}.|
|00006190| 09 09 09 09 77 68 69 6c | 65 20 28 2a 73 20 21 3d |....whil|e (*s !=|
|000061a0| 20 27 5c 30 27 29 0a 09 | 09 09 09 09 73 2b 2b 3b | '\0')..|....s++;|
|000061b0| 0a 09 09 09 09 73 2d 2d | 3b 0a 09 09 09 09 62 72 |.....s--|;.....br|
|000061c0| 65 61 6b 3b 0a 09 09 09 | 64 65 66 61 75 6c 74 3a |eak;....|default:|
|000061d0| 0a 09 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.....fpr|intf(std|
|000061e0| 65 72 72 2c 22 25 73 3a | 20 69 6c 6c 65 67 61 6c |err,"%s:| illegal|
|000061f0| 20 6f 70 74 69 6f 6e 20 | 2d 20 25 63 5c 6e 22 2c | option |- %c\n",|
|00006200| 0a 09 09 09 09 20 20 20 | 20 50 72 6f 67 4e 61 6d |..... | ProgNam|
|00006210| 65 2c 2a 73 29 3b 0a 09 | 09 09 09 61 72 67 63 20 |e,*s);..|...argc |
|00006220| 3d 20 2d 31 3b 0a 09 09 | 09 09 62 72 65 61 6b 3b |= -1;...|..break;|
|00006230| 0a 09 09 7d 0a 09 7d 0a | 0a 09 69 66 20 28 61 72 |...}..}.|..if (ar|
|00006240| 67 63 20 3c 3d 20 30 29 | 20 7b 0a 09 09 75 73 61 |gc <= 0)| {...usa|
|00006250| 67 65 28 29 3b 0a 09 09 | 65 78 69 74 28 31 29 3b |ge();...|exit(1);|
|00006260| 0a 09 7d 0a 0a 09 69 66 | 20 28 74 65 78 5f 6f 75 |..}...if| (tex_ou|
|00006270| 74 70 75 74 29 20 7b 0a | 09 09 69 66 20 28 67 6f |tput) {.|..if (go|
|00006280| 74 70 61 67 65 73 20 3d | 3d 20 30 29 0a 09 09 09 |tpages =|= 0)....|
|00006290| 70 61 67 65 74 62 6c 5b | 30 5d 5b 30 5d 2e 66 6c |pagetbl[|0][0].fl|
|000062a0| 61 67 20 3d 20 31 3b 09 | 2f 2a 20 6f 6e 6c 79 20 |ag = 1;.|/* only |
|000062b0| 66 69 72 73 74 20 70 61 | 67 65 20 66 6f 72 20 74 |first pa|ge for t|
|000062c0| 65 78 20 2a 2f 0a 09 09 | 65 6c 73 65 20 7b 0a 09 |ex */...|else {..|
|000062d0| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|000062e0| 2c 0a 09 09 09 09 22 43 | 61 6e 6e 6f 74 20 75 73 |,....."C|annot us|
|000062f0| 65 20 2d 74 20 61 6e 64 | 20 2d 70 20 6f 70 74 69 |e -t and| -p opti|
|00006300| 6f 6e 73 20 61 74 20 73 | 61 6d 65 20 74 69 6d 65 |ons at s|ame time|
|00006310| 5c 6e 22 29 3b 0a 09 09 | 09 75 73 61 67 65 28 29 |\n");...|.usage()|
|00006320| 3b 0a 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |;....exi|t(1);...|
|00006330| 7d 0a 09 7d 0a 09 65 6c | 73 65 0a 09 09 69 66 20 |}..}..el|se...if |
|00006340| 28 67 6f 74 70 61 67 65 | 73 20 3d 3d 20 30 29 20 |(gotpage|s == 0) |
|00006350| 7b 0a 09 09 09 66 6f 72 | 20 28 76 20 3d 20 30 3b |{....for| (v = 0;|
|00006360| 20 76 20 3c 20 4d 41 43 | 5f 56 5f 50 41 47 45 53 | v < MAC|_V_PAGES|
|00006370| 3b 20 76 2b 2b 29 20 20 | 2f 2a 20 64 6f 20 61 6c |; v++) |/* do al|
|00006380| 6c 20 2a 2f 0a 09 09 09 | 09 66 6f 72 20 28 68 20 |l */....|.for (h |
|00006390| 3d 20 30 3b 20 68 20 3c | 20 4d 41 43 5f 48 5f 50 |= 0; h <| MAC_H_P|
|000063a0| 41 47 45 53 3b 20 68 2b | 2b 29 0a 09 09 09 09 09 |AGES; h+|+)......|
|000063b0| 70 61 67 65 74 62 6c 5b | 76 5d 5b 68 5d 2e 66 6c |pagetbl[|v][h].fl|
|000063c0| 61 67 20 3d 20 31 3b 0a | 09 09 7d 0a 0a 09 2f 2a |ag = 1;.|..}.../*|
|000063d0| 20 66 69 67 75 72 65 20 | 6f 75 74 20 77 68 61 74 | figure |out what|
|000063e0| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 61 6e 64 20 | resolut|ion and |
|000063f0| 63 6f 6e 76 65 72 73 69 | 6f 6e 20 66 61 63 74 6f |conversi|on facto|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.