home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| BinHex (archive/binHex)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 31 32 2d 46 65 62 2d 38 | 37 20 30 32 3a 31 32 3a |12-Feb-8|7 02:12:|
|00000010| 32 34 2d 4d 53 54 2c 39 | 39 39 35 3b 30 30 30 30 |24-MST,9|995;0000|
|00000020| 30 30 30 30 30 30 30 30 | 0a 52 65 74 75 72 6e 2d |00000000|.Return-|
|00000030| 50 61 74 68 3a 20 3c 49 | 4e 46 4f 2d 4d 41 43 2d |Path: <I|NFO-MAC-|
|00000040| 52 45 51 55 45 53 54 40 | 53 55 4d 45 58 2d 41 49 |REQUEST@|SUMEX-AI|
|00000050| 4d 2e 53 54 41 4e 46 4f | 52 44 2e 45 44 55 3e 0a |M.STANFO|RD.EDU>.|
|00000060| 52 65 63 65 69 76 65 64 | 3a 20 66 72 6f 6d 20 53 |Received|: from S|
|00000070| 55 4d 45 58 2d 41 49 4d | 2e 53 54 41 4e 46 4f 52 |UMEX-AIM|.STANFOR|
|00000080| 44 2e 45 44 55 20 62 79 | 20 53 49 4d 54 45 4c 32 |D.EDU by| SIMTEL2|
|00000090| 30 2e 41 52 50 41 20 77 | 69 74 68 20 54 43 50 3b |0.ARPA w|ith TCP;|
|000000a0| 20 54 68 75 20 31 32 20 | 46 65 62 20 38 37 20 30 | Thu 12 |Feb 87 0|
|000000b0| 32 3a 31 31 3a 35 37 2d | 4d 53 54 0a 52 65 74 75 |2:11:57-|MST.Retu|
|000000c0| 72 6e 2d 50 61 74 68 3a | 20 3c 77 65 62 65 72 25 |rn-Path:| <weber%|
|000000d0| 62 72 61 6e 64 40 75 73 | 63 2d 6f 62 65 72 6f 6e |brand@us|c-oberon|
|000000e0| 2e 41 52 50 41 3e 0a 52 | 65 63 65 69 76 65 64 3a |.ARPA>.R|eceived:|
|000000f0| 20 66 72 6f 6d 20 75 73 | 63 2d 6f 62 65 72 6f 6e | from us|c-oberon|
|00000100| 2e 41 52 50 41 20 62 79 | 20 53 55 4d 45 58 2d 41 |.ARPA by| SUMEX-A|
|00000110| 49 4d 2e 53 54 41 4e 46 | 4f 52 44 2e 45 44 55 20 |IM.STANF|ORD.EDU |
|00000120| 77 69 74 68 20 54 43 50 | 3b 20 4d 6f 6e 20 32 20 |with TCP|; Mon 2 |
|00000130| 46 65 62 20 38 37 20 31 | 31 3a 35 37 3a 31 30 2d |Feb 87 1|1:57:10-|
|00000140| 50 53 54 0a 52 65 63 65 | 69 76 65 64 3a 20 66 72 |PST.Rece|ived: fr|
|00000150| 6f 6d 20 62 72 61 6e 64 | 20 62 79 20 75 73 63 2d |om brand| by usc-|
|00000160| 6f 62 65 72 6f 6e 2e 41 | 52 50 41 20 28 35 2e 35 |oberon.A|RPA (5.5|
|00000170| 31 2f 35 2e 35 29 20 69 | 64 20 41 41 30 38 32 38 |1/5.5) i|d AA0828|
|00000180| 36 3b 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |6; . | |
|00000190| 20 20 20 20 4d 6f 6e 2c | 20 32 20 46 65 62 20 38 | Mon,| 2 Feb 8|
|000001a0| 37 20 31 31 3a 34 34 3a | 34 35 20 50 53 54 0a 52 |7 11:44:|45 PST.R|
|000001b0| 65 63 65 69 76 65 64 3a | 20 62 79 20 62 72 61 6e |eceived:| by bran|
|000001c0| 64 20 28 34 2e 31 32 2f | 35 2e 32 29 20 69 64 20 |d (4.12/|5.2) id |
|000001d0| 41 41 30 34 38 38 30 3b | 20 0a 20 20 20 20 20 20 |AA04880;| . |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 4d 6f 6e 2c 20 32 | | Mon, 2|
|000001f0| 20 46 65 62 20 38 37 20 | 31 31 3a 34 34 3a 31 34 | Feb 87 |11:44:14|
|00000200| 20 70 73 74 0a 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 | pst.Dat|e: Mon, |
|00000210| 32 20 46 65 62 20 38 37 | 20 31 31 3a 34 34 3a 31 |2 Feb 87| 11:44:1|
|00000220| 34 20 70 73 74 0a 46 72 | 6f 6d 3a 20 41 6c 6c 61 |4 pst.Fr|om: Alla|
|00000230| 6e 20 47 2e 20 57 65 62 | 65 72 20 3c 77 65 62 65 |n G. Web|er <webe|
|00000240| 72 25 62 72 61 6e 64 40 | 75 73 63 2d 6f 62 65 72 |r%brand@|usc-ober|
|00000250| 6f 6e 2e 41 52 50 41 3e | 0a 4d 65 73 73 61 67 65 |on.ARPA>|.Message|
|00000260| 2d 49 64 3a 20 3c 38 37 | 30 32 30 32 31 39 34 34 |-Id: <87|02021944|
|00000270| 2e 41 41 30 34 38 38 30 | 40 62 72 61 6e 64 3e 0a |.AA04880|@brand>.|
|00000280| 53 75 62 6a 65 63 74 3a | 20 55 6e 69 78 20 70 72 |Subject:| Unix pr|
|00000290| 6f 67 72 61 6d 20 66 6f | 72 20 4d 61 63 44 72 61 |ogram fo|r MacDra|
|000002a0| 77 2d 3e 49 6d 61 67 65 | 6e 20 28 33 20 6f 66 20 |w->Image|n (3 of |
|000002b0| 33 29 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 6d |3).Newsg|roups: m|
|000002c0| 6f 64 2e 6d 61 63 2e 73 | 6f 75 72 63 65 73 0a 44 |od.mac.s|ources.D|
|000002d0| 69 73 74 72 69 62 75 74 | 69 6f 6e 3a 20 6e 61 0a |istribut|ion: na.|
|000002e0| 54 6f 3a 20 69 6e 66 6f | 2d 6d 61 63 40 73 75 6d |To: info|-mac@sum|
|000002f0| 65 78 2d 61 69 6d 2e 61 | 72 70 61 0a 52 65 53 65 |ex-aim.a|rpa.ReSe|
|00000300| 6e 74 2d 44 61 74 65 3a | 20 57 65 64 20 31 31 20 |nt-Date:| Wed 11 |
|00000310| 46 65 62 20 38 37 20 32 | 33 3a 33 39 3a 31 38 2d |Feb 87 2|3:39:18-|
|00000320| 50 53 54 0a 52 65 53 65 | 6e 74 2d 46 72 6f 6d 3a |PST.ReSe|nt-From:|
|00000330| 20 44 77 61 79 6e 65 20 | 56 69 72 6e 61 75 2e 2e | Dwayne |Virnau..|
|00000340| 2e 20 3c 49 4e 46 4f 2d | 4d 41 43 2d 52 45 51 55 |. <INFO-|MAC-REQU|
|00000350| 45 53 54 40 53 55 4d 45 | 58 2d 41 49 4d 2e 53 54 |EST@SUME|X-AIM.ST|
|00000360| 41 4e 46 4f 52 44 2e 45 | 44 55 3e 0a 52 65 53 65 |ANFORD.E|DU>.ReSe|
|00000370| 6e 74 2d 54 6f 3a 20 69 | 6e 66 6f 2d 6d 61 63 2d |nt-To: i|nfo-mac-|
|00000380| 72 65 64 69 73 74 3a 20 | 3b 0a 52 65 53 65 6e 74 |redist: |;.ReSent|
|00000390| 2d 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 31 32 |-Message|-ID: <12|
|000003a0| 32 37 38 33 38 34 32 38 | 35 2e 32 36 2e 49 4e 46 |27838428|5.26.INF|
|000003b0| 4f 2d 4d 41 43 2d 52 45 | 51 55 45 53 54 40 53 55 |O-MAC-RE|QUEST@SU|
|000003c0| 4d 45 58 2d 41 49 4d 2e | 53 54 41 4e 46 4f 52 44 |MEX-AIM.|STANFORD|
|000003d0| 2e 45 44 55 3e 0a 0a 54 | 68 69 73 20 69 73 20 70 |.EDU>..T|his is p|
|000003e0| 61 72 74 20 31 20 6f 66 | 20 33 20 6f 66 20 22 64 |art 1 of| 3 of "d|
|000003f0| 72 61 77 69 6d 70 22 2c | 20 61 20 70 72 6f 67 72 |rawimp",| a progr|
|00000400| 61 6d 20 74 68 61 74 20 | 72 75 6e 73 20 6f 6e 20 |am that |runs on |
|00000410| 55 6e 69 78 20 74 6f 20 | 63 6f 6e 76 65 72 74 0a |Unix to |convert.|
|00000420| 4d 61 63 44 72 61 77 20 | 66 69 6c 65 73 20 69 6e |MacDraw |files in|
|00000430| 74 6f 20 49 6d 70 72 65 | 73 73 20 63 6f 6d 6d 61 |to Impre|ss comma|
|00000440| 6e 64 73 20 66 6f 72 20 | 70 72 69 6e 74 69 6e 67 |nds for |printing|
|00000450| 20 6f 6e 20 49 6d 61 67 | 65 6e 20 6c 61 73 65 72 | on Imag|en laser|
|00000460| 20 70 72 69 6e 74 65 72 | 73 2e 0a 0a 09 09 09 09 | printer|s.......|
|00000470| 41 6c 6c 61 6e 20 57 65 | 62 65 72 0a 09 09 09 09 |Allan We|ber.....|
|00000480| 55 53 43 20 53 69 67 6e | 61 6c 20 61 6e 64 20 49 |USC Sign|al and I|
|00000490| 6d 61 67 65 20 50 72 6f | 63 65 73 73 69 6e 67 20 |mage Pro|cessing |
|000004a0| 49 6e 73 74 69 74 75 74 | 65 0a 09 09 09 09 28 32 |Institut|e.....(2|
|000004b0| 31 33 29 20 37 34 33 2d | 35 35 31 39 0a 09 09 09 |13) 743-|5519....|
|000004c0| 09 41 72 70 61 3a 09 57 | 65 62 65 72 25 42 72 61 |.Arpa:.W|eber%Bra|
|000004d0| 6e 64 40 55 53 43 2d 4f | 62 65 72 6f 6e 2e 41 52 |nd@USC-O|beron.AR|
|000004e0| 50 41 0a 09 09 09 09 55 | 55 43 50 3a 09 2e 2e 2e |PA.....U|UCP:....|
|000004f0| 73 64 63 72 64 63 66 21 | 75 73 63 2d 6f 62 65 72 |sdcrdcf!|usc-ober|
|00000500| 6f 6e 21 62 72 61 6e 64 | 21 77 65 62 65 72 0a 0a |on!brand|!weber..|
|00000510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000550| 2d 2d 2d 2d 2d 2d 0a 23 | 21 20 2f 62 69 6e 2f 73 |------.#|! /bin/s|
|00000560| 68 0a 23 20 54 68 69 73 | 20 69 73 20 61 20 73 68 |h.# This| is a sh|
|00000570| 65 6c 6c 20 61 72 63 68 | 69 76 65 2c 20 6d 65 61 |ell arch|ive, mea|
|00000580| 6e 69 6e 67 3a 0a 23 20 | 31 2e 20 52 65 6d 6f 76 |ning:.# |1. Remov|
|00000590| 65 20 65 76 65 72 79 74 | 68 69 6e 67 20 61 62 6f |e everyt|hing abo|
|000005a0| 76 65 20 74 68 65 20 23 | 21 20 2f 62 69 6e 2f 73 |ve the #|! /bin/s|
|000005b0| 68 20 6c 69 6e 65 2e 0a | 23 20 32 2e 20 53 61 76 |h line..|# 2. Sav|
|000005c0| 65 20 74 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |e the re|sulting |
|000005d0| 74 65 78 74 20 69 6e 20 | 61 20 66 69 6c 65 2e 0a |text in |a file..|
|000005e0| 23 20 33 2e 20 45 78 65 | 63 75 74 65 20 74 68 65 |# 3. Exe|cute the|
|000005f0| 20 66 69 6c 65 20 77 69 | 74 68 20 2f 62 69 6e 2f | file wi|th /bin/|
|00000600| 73 68 20 28 6e 6f 74 20 | 63 73 68 29 20 74 6f 20 |sh (not |csh) to |
|00000610| 63 72 65 61 74 65 20 74 | 68 65 20 66 69 6c 65 73 |create t|he files|
|00000620| 3a 0a 23 09 52 45 41 44 | 4d 45 2e 53 50 43 4c 0a |:.#.READ|ME.SPCL.|
|00000630| 23 09 73 70 65 63 69 61 | 6c 2e 63 0a 23 09 50 69 |#.specia|l.c.#.Pi|
|00000640| 63 4d 61 63 72 6f 73 2e | 74 65 78 0a 23 20 54 68 |cMacros.|tex.# Th|
|00000650| 69 73 20 61 72 63 68 69 | 76 65 20 63 72 65 61 74 |is archi|ve creat|
|00000660| 65 64 3a 20 4d 6f 6e 20 | 46 65 62 20 20 32 20 31 |ed: Mon |Feb 2 1|
|00000670| 31 3a 30 36 3a 35 36 20 | 31 39 38 37 0a 65 78 70 |1:06:56 |1987.exp|
|00000680| 6f 72 74 20 50 41 54 48 | 3b 20 50 41 54 48 3d 2f |ort PATH|; PATH=/|
|00000690| 62 69 6e 3a 24 50 41 54 | 48 0a 69 66 20 74 65 73 |bin:$PAT|H.if tes|
|000006a0| 74 20 2d 66 20 27 52 45 | 41 44 4d 45 2e 53 50 43 |t -f 'RE|ADME.SPC|
|000006b0| 4c 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |L'.then.|.echo sh|
|000006c0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000006d0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000006e0| 20 66 69 6c 65 20 22 27 | 52 45 41 44 4d 45 2e 53 | file "'|README.S|
|000006f0| 50 43 4c 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |PCL'".el|se.cat <|
|00000700| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 52 |< \SHAR_|EOF > 'R|
|00000710| 45 41 44 4d 45 2e 53 50 | 43 4c 27 0a 20 20 20 20 |EADME.SP|CL'. |
|00000720| 49 6e 73 74 72 75 63 74 | 69 6f 6e 20 66 6f 72 20 |Instruct|ion for |
|00000730| 75 73 69 6e 67 20 70 75 | 74 74 69 6e 67 20 4d 61 |using pu|tting Ma|
|00000740| 63 44 72 61 77 20 66 69 | 6c 65 73 20 69 6e 20 4c |cDraw fi|les in L|
|00000750| 61 54 65 58 20 64 6f 63 | 75 6d 65 6e 74 73 0a 0a |aTeX doc|uments..|
|00000760| 0a 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 |.The fol|lowing f|
|00000770| 69 6c 65 73 20 61 72 65 | 20 6e 65 65 64 65 64 20 |iles are| needed |
|00000780| 74 6f 20 75 73 65 20 74 | 68 65 20 54 65 58 2f 4c |to use t|he TeX/L|
|00000790| 61 54 65 58 20 6f 70 74 | 69 6f 6e 20 6f 66 20 64 |aTeX opt|ion of d|
|000007a0| 72 61 77 69 6d 70 2e 0a | 0a 09 73 70 65 63 69 61 |rawimp..|..specia|
|000007b0| 6c 2e 63 20 2d 20 48 61 | 6e 64 6c 65 73 20 74 68 |l.c - Ha|ndles th|
|000007c0| 65 20 5c 73 70 65 63 69 | 61 6c 20 63 6f 6d 6d 61 |e \speci|al comma|
|000007d0| 6e 64 20 66 6f 72 20 69 | 6e 63 6c 75 64 69 6e 67 |nd for i|ncluding|
|000007e0| 20 66 69 6c 65 73 0a 09 | 09 77 69 74 68 20 49 6d | files..|.with Im|
|000007f0| 70 72 65 73 73 20 63 6f | 6d 6d 61 6e 64 73 20 69 |press co|mmands i|
|00000800| 6e 20 74 68 65 20 6f 75 | 74 70 75 74 20 73 74 72 |n the ou|tput str|
|00000810| 65 61 6d 2e 0a 09 50 69 | 63 4d 61 63 72 6f 73 2e |eam...Pi|cMacros.|
|00000820| 74 65 78 20 2d 20 54 65 | 58 20 61 6e 64 20 4c 61 |tex - Te|X and La|
|00000830| 54 65 58 20 6d 61 63 72 | 6f 73 0a 0a 59 6f 75 20 |TeX macr|os..You |
|00000840| 6d 75 73 74 20 62 65 20 | 75 73 69 6e 67 20 74 68 |must be |using th|
|00000850| 65 20 22 69 6d 61 67 65 | 6e 31 22 20 64 76 69 2d |e "image|n1" dvi-|
|00000860| 74 6f 2d 69 6d 70 72 65 | 73 73 20 64 72 69 76 65 |to-impre|ss drive|
|00000870| 72 20 69 6e 20 6f 72 64 | 65 72 20 74 6f 20 6d 61 |r in ord|er to ma|
|00000880| 6b 65 20 74 68 69 73 0a | 73 74 75 66 66 20 77 6f |ke this.|stuff wo|
|00000890| 72 6b 2e 20 20 54 68 69 | 73 20 77 61 73 20 74 68 |rk. Thi|s was th|
|000008a0| 65 20 64 72 69 76 65 72 | 20 74 68 61 74 20 63 61 |e driver| that ca|
|000008b0| 6d 65 20 77 69 74 68 20 | 74 68 65 20 54 65 58 20 |me with |the TeX |
|000008c0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 74 61 70 |distribu|tion tap|
|000008d0| 65 20 77 65 0a 70 75 72 | 63 68 61 73 65 64 2e 20 |e we.pur|chased. |
|000008e0| 20 54 68 65 72 65 20 6d | 61 79 20 62 65 20 6f 74 | There m|ay be ot|
|000008f0| 68 65 72 73 20 74 68 61 | 74 20 63 6f 75 6c 64 20 |hers tha|t could |
|00000900| 62 65 20 6d 61 64 65 20 | 74 6f 20 77 6f 72 6b 20 |be made |to work |
|00000910| 61 6c 73 6f 2e 20 20 49 | 6d 61 67 65 6e 31 0a 68 |also. I|magen1.h|
|00000920| 61 6e 64 6c 65 73 20 5c | 73 70 65 63 69 61 6c 27 |andles \|special'|
|00000930| 73 20 77 69 74 68 20 61 | 20 72 6f 75 74 69 6e 65 |s with a| routine|
|00000940| 20 74 68 61 74 20 72 65 | 61 64 73 20 74 68 65 20 | that re|ads the |
|00000950| 64 61 74 61 20 61 6e 64 | 20 69 67 6e 6f 72 65 73 |data and| ignores|
|00000960| 20 69 74 2e 0a 53 70 65 | 63 69 61 6c 2e 63 20 68 | it..Spe|cial.c h|
|00000970| 61 73 20 61 20 6e 65 77 | 20 72 6f 75 74 69 6e 65 |as a new| routine|
|00000980| 20 66 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 74 68 | for han|dling th|
|00000990| 65 20 5c 73 70 65 63 69 | 61 6c 20 63 6f 6d 6d 61 |e \speci|al comma|
|000009a0| 6e 64 20 61 6e 64 20 6e | 65 65 64 73 20 74 6f 0a |nd and n|eeds to.|
|000009b0| 62 65 20 6c 69 6e 6b 65 | 64 20 69 6e 20 77 69 74 |be linke|d in wit|
|000009c0| 68 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 69 6d |h the re|st of im|
|000009d0| 61 67 65 6e 31 2e 63 20 | 46 69 72 73 74 2c 20 67 |agen1.c |First, g|
|000009e0| 6f 20 69 6e 74 6f 20 79 | 6f 75 72 20 63 6f 70 79 |o into y|our copy|
|000009f0| 20 6f 66 0a 69 6d 61 67 | 65 6e 31 2e 63 20 61 6e | of.imag|en1.c an|
|00000a00| 64 20 66 69 6e 64 20 74 | 68 65 20 72 6f 75 74 69 |d find t|he routi|
|00000a10| 6e 65 20 22 44 6f 53 70 | 65 63 69 61 6c 22 2e 20 |ne "DoSp|ecial". |
|00000a20| 20 44 65 6c 65 74 65 20 | 6f 72 20 63 6f 6d 6d 65 | Delete |or comme|
|00000a30| 6e 74 20 6f 75 74 20 74 | 68 65 0a 44 6f 53 70 65 |nt out t|he.DoSpe|
|00000a40| 63 69 61 6c 20 69 6e 20 | 69 6d 61 67 65 6e 31 2e |cial in |imagen1.|
|00000a50| 63 20 73 6f 20 74 68 65 | 20 6f 6e 65 20 69 6e 20 |c so the| one in |
|00000a60| 73 70 65 63 69 61 6c 2e | 63 20 77 69 6c 6c 20 62 |special.|c will b|
|00000a70| 65 20 75 73 65 64 20 69 | 6e 73 74 65 61 64 2e 0a |e used i|nstead..|
|00000a80| 43 6f 6d 70 69 6c 65 20 | 69 6d 61 67 65 6e 31 2e |Compile |imagen1.|
|00000a90| 63 20 61 6e 64 20 73 70 | 65 63 69 61 6c 2e 63 2c |c and sp|ecial.c,|
|00000aa0| 20 6c 69 6e 6b 20 74 68 | 65 6d 20 74 6f 67 65 74 | link th|em toget|
|00000ab0| 68 65 72 20 77 69 74 68 | 20 77 68 61 74 65 76 65 |her with| whateve|
|00000ac0| 72 20 65 6c 73 65 20 69 | 73 0a 6e 65 65 64 65 64 |r else i|s.needed|
|00000ad0| 2c 20 61 6e 64 20 6d 6f | 76 65 20 69 6d 61 67 65 |, and mo|ve image|
|00000ae0| 6e 31 20 74 6f 20 77 68 | 65 72 65 20 69 74 20 77 |n1 to wh|ere it w|
|00000af0| 69 6c 6c 20 62 65 20 66 | 6f 75 6e 64 20 62 79 20 |ill be f|ound by |
|00000b00| 74 68 65 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 |the shel|l script|
|00000b10| 73 20 74 68 61 74 0a 64 | 72 69 76 65 20 74 68 65 |s that.d|rive the|
|00000b20| 20 49 6d 61 67 65 6e 20 | 70 72 69 6e 74 65 72 2e | Imagen |printer.|
|00000b30| 0a 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |..The fo|llowing |
|00000b40| 61 73 73 75 6d 65 73 20 | 73 6f 6d 65 74 68 69 6e |assumes |somethin|
|00000b50| 67 20 6c 69 6b 65 20 4d | 61 63 54 65 72 6d 69 6e |g like M|acTermin|
|00000b60| 61 6c 20 61 6e 64 20 6d | 61 63 67 65 74 20 68 61 |al and m|acget ha|
|00000b70| 76 65 20 62 65 65 6e 20 | 75 73 65 64 0a 74 6f 20 |ve been |used.to |
|00000b80| 75 70 6c 6f 61 64 20 74 | 68 65 20 4d 61 63 44 72 |upload t|he MacDr|
|00000b90| 61 77 20 66 69 6c 65 73 | 20 74 6f 20 55 6e 69 78 |aw files| to Unix|
|00000ba0| 2e 20 20 4e 6f 72 6d 61 | 6c 6c 79 20 74 68 69 73 |. Norma|lly this|
|00000bb0| 20 6c 65 61 76 65 73 20 | 74 68 72 65 65 20 66 69 | leaves |three fi|
|00000bc0| 6c 65 73 20 6f 6e 0a 55 | 6e 69 78 20 66 6f 72 20 |les on.U|nix for |
|00000bd0| 65 61 63 68 20 4d 61 63 | 20 66 69 6c 65 2c 20 77 |each Mac| file, w|
|00000be0| 69 74 68 20 65 78 74 65 | 6e 73 69 6f 6e 73 20 2e |ith exte|nsions .|
|00000bf0| 64 61 74 61 2c 20 2e 69 | 6e 66 6f 2c 20 61 6e 64 |data, .i|nfo, and|
|00000c00| 20 2e 72 73 72 63 2e 20 | 20 54 68 65 20 2e 69 6e | .rsrc. | The .in|
|00000c10| 66 6f 0a 61 6e 64 20 2e | 72 73 72 63 20 66 69 6c |fo.and .|rsrc fil|
|00000c20| 65 73 20 63 61 6e 20 62 | 65 20 64 65 6c 65 74 65 |es can b|e delete|
|00000c30| 64 2e 20 20 4d 6f 76 65 | 20 61 6c 6c 20 74 68 65 |d. Move| all the|
|00000c40| 20 2e 64 61 74 61 20 66 | 69 6c 65 73 20 74 6f 20 | .data f|iles to |
|00000c50| 6f 6e 65 20 70 6c 61 63 | 65 20 61 6e 64 0a 64 6f |one plac|e and.do|
|00000c60| 20 0a 0a 09 25 20 64 72 | 61 77 69 6d 70 20 2d 74 | ...% dr|awimp -t|
|00000c70| 20 2a 2e 64 61 74 61 0a | 0a 54 68 69 73 20 77 69 | *.data.|.This wi|
|00000c80| 6c 6c 20 63 61 75 73 65 | 20 64 72 61 77 69 6d 70 |ll cause| drawimp|
|00000c90| 20 74 6f 20 70 72 6f 63 | 65 73 73 20 65 61 63 68 | to proc|ess each|
|00000ca0| 20 4d 61 63 44 72 61 77 | 20 2e 64 61 74 61 20 66 | MacDraw| .data f|
|00000cb0| 69 6c 65 20 69 6e 74 6f | 20 61 20 73 65 70 61 72 |ile into| a separ|
|00000cc0| 61 74 65 0a 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |ate.file| contain|
|00000cd0| 69 6e 67 20 49 6d 70 72 | 65 73 73 20 63 6f 6d 6d |ing Impr|ess comm|
|00000ce0| 61 6e 64 73 20 77 69 74 | 68 20 74 68 65 20 73 61 |ands wit|h the sa|
|00000cf0| 6d 65 20 6e 61 6d 65 20 | 65 78 63 65 70 74 20 65 |me name |except e|
|00000d00| 6e 64 69 6e 67 20 69 6e | 20 2e 69 6d 70 2e 0a 49 |nding in| .imp..I|
|00000d10| 66 20 74 68 65 72 65 20 | 61 72 65 20 74 65 78 74 |f there |are text|
|00000d20| 20 6f 62 6a 65 63 74 73 | 20 69 6e 20 61 6e 79 20 | objects| in any |
|00000d30| 6f 66 20 74 68 65 20 70 | 69 63 74 75 72 65 73 2c |of the p|ictures,|
|00000d40| 20 69 74 20 69 73 20 69 | 6d 70 6f 72 74 61 6e 74 | it is i|mportant|
|00000d50| 20 74 68 61 74 20 61 6c | 6c 0a 74 68 65 20 4d 61 | that al|l.the Ma|
|00000d60| 63 44 72 61 77 20 66 69 | 6c 65 73 20 62 65 20 70 |cDraw fi|les be p|
|00000d70| 72 6f 63 65 73 73 65 64 | 20 74 6f 67 65 74 68 65 |rocessed| togethe|
|00000d80| 72 20 69 6e 20 74 68 69 | 73 20 77 61 79 2e 20 20 |r in thi|s way. |
|00000d90| 49 66 20 61 20 6e 65 77 | 20 70 69 63 74 75 72 65 |If a new| picture|
|00000da0| 20 69 73 0a 61 64 64 65 | 64 20 6c 61 74 65 72 2c | is.adde|d later,|
|00000db0| 20 74 68 65 79 20 73 68 | 6f 75 6c 64 20 61 6c 6c | they sh|ould all|
|00000dc0| 20 62 65 20 70 72 6f 63 | 65 73 73 65 64 20 61 67 | be proc|essed ag|
|00000dd0| 61 69 6e 20 6f 72 20 74 | 68 65 20 66 6f 6e 74 73 |ain or t|he fonts|
|00000de0| 20 75 73 65 64 20 69 6e | 20 74 68 65 0a 70 69 63 | used in| the.pic|
|00000df0| 74 75 72 65 73 20 77 69 | 6c 6c 20 67 65 74 20 6d |tures wi|ll get m|
|00000e00| 69 78 65 64 20 75 70 2e | 20 20 0a 0a 49 6e 20 74 |ixed up.| ..In t|
|00000e10| 68 65 20 4c 61 54 65 58 | 20 66 69 6c 65 2c 20 70 |he LaTeX| file, p|
|00000e20| 69 63 74 75 72 65 73 20 | 61 72 65 20 69 6e 63 6c |ictures |are incl|
|00000e30| 75 64 65 20 77 69 74 68 | 20 6c 69 6e 65 73 20 6c |ude with| lines l|
|00000e40| 69 6b 65 0a 0a 09 5c 44 | 72 61 77 50 69 63 74 75 |ike...\D|rawPictu|
|00000e50| 72 65 7b 35 30 30 7d 7b | 32 30 30 7d 7b 66 69 6c |re{500}{|200}{fil|
|00000e60| 65 6e 61 6d 65 7d 0a 0a | 54 68 65 20 66 69 72 73 |ename}..|The firs|
|00000e70| 74 20 61 6e 64 20 73 65 | 63 6f 6e 64 20 61 72 67 |t and se|cond arg|
|00000e80| 75 6d 65 6e 74 73 20 61 | 72 65 20 74 68 65 20 77 |uments a|re the w|
|00000e90| 69 64 74 68 20 61 6e 64 | 20 68 65 69 67 68 74 20 |idth and| height |
|00000ea0| 72 65 73 70 65 63 74 69 | 76 65 6c 79 20 6f 66 20 |respecti|vely of |
|00000eb0| 74 68 65 0a 62 6f 78 20 | 61 72 65 61 20 74 6f 20 |the.box |area to |
|00000ec0| 72 65 73 65 72 76 65 20 | 66 6f 72 20 74 68 65 20 |reserve |for the |
|00000ed0| 70 69 63 74 75 72 65 2e | 20 20 54 68 65 79 20 61 |picture.| They a|
|00000ee0| 72 65 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |re speci|fied in |
|00000ef0| 74 68 65 20 63 75 72 72 | 65 6e 74 0a 75 6e 69 74 |the curr|ent.unit|
|00000f00| 73 20 61 73 20 73 65 74 | 20 62 79 20 5c 73 65 74 |s as set| by \set|
|00000f10| 6c 65 6e 67 74 68 7b 5c | 75 6e 69 74 6c 65 6e 67 |length{\|unitleng|
|00000f20| 74 68 7d 7b 30 2e 30 31 | 69 6e 7d 20 6f 72 20 73 |th}{0.01|in} or s|
|00000f30| 6f 6d 65 74 68 69 6e 67 | 20 73 69 6d 69 6c 61 72 |omething| similar|
|00000f40| 2e 20 20 54 68 65 0a 70 | 69 63 74 75 72 65 20 63 |. The.p|icture c|
|00000f50| 61 6e 20 62 65 20 6c 61 | 72 67 65 72 20 6f 72 20 |an be la|rger or |
|00000f60| 73 6d 61 6c 6c 65 72 20 | 74 68 61 6e 20 74 68 69 |smaller |than thi|
|00000f70| 73 2c 20 62 75 74 20 4c | 61 54 65 58 20 77 69 6c |s, but L|aTeX wil|
|00000f80| 6c 20 72 65 73 65 72 76 | 65 20 73 70 61 63 65 0a |l reserv|e space.|
|00000f90| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|00000fa0| 73 65 20 70 61 72 61 6d | 65 74 65 72 73 2e 20 20 |se param|eters. |
|00000fb0| 54 68 65 20 74 6f 70 2d | 6c 65 66 74 20 63 6f 72 |The top-|left cor|
|00000fc0| 6e 65 72 20 6f 66 20 74 | 68 65 20 61 63 74 69 76 |ner of t|he activ|
|00000fd0| 65 20 61 72 65 61 20 6f | 66 0a 74 68 65 20 70 69 |e area o|f.the pi|
|00000fe0| 63 74 75 72 65 20 77 69 | 6c 6c 20 62 65 20 70 6c |cture wi|ll be pl|
|00000ff0| 61 63 65 64 20 6f 6e 20 | 74 68 65 20 70 61 67 65 |aced on |the page|
|00001000| 20 61 74 20 74 68 65 20 | 74 6f 70 2d 6c 65 66 74 | at the |top-left|
|00001010| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 0a 72 | corner |of the.r|
|00001020| 65 73 65 72 76 65 64 20 | 61 72 65 61 2e 20 20 54 |eserved |area. T|
|00001030| 68 65 20 70 69 63 74 75 | 72 65 20 64 6f 65 73 20 |he pictu|re does |
|00001040| 6e 6f 74 20 68 61 76 65 | 20 74 6f 20 62 65 20 70 |not have| to be p|
|00001050| 75 73 68 65 64 20 74 6f | 20 74 68 65 20 74 6f 70 |ushed to| the top|
|00001060| 2d 6c 65 66 74 20 6f 66 | 0a 74 68 65 20 4d 61 63 |-left of|.the Mac|
|00001070| 44 72 61 77 20 64 6f 63 | 75 6d 65 6e 74 20 70 61 |Draw doc|ument pa|
|00001080| 67 65 20 69 6e 20 6f 72 | 64 65 72 20 66 6f 72 20 |ge in or|der for |
|00001090| 64 72 61 77 69 6d 70 20 | 74 6f 20 66 69 6e 64 20 |drawimp |to find |
|000010a0| 69 74 2e 20 20 54 68 65 | 20 44 72 61 77 50 69 63 |it. The| DrawPic|
|000010b0| 74 75 72 65 0a 6d 61 63 | 72 6f 20 77 69 6c 6c 20 |ture.mac|ro will |
|000010c0| 63 65 6e 74 65 72 20 74 | 68 65 20 72 65 73 65 72 |center t|he reser|
|000010d0| 76 65 64 20 70 69 63 74 | 75 72 65 20 61 72 65 61 |ved pict|ure area|
|000010e0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 6c 79 20 6f 6e | horizon|tally on|
|000010f0| 20 74 68 65 20 70 61 67 | 65 2e 20 20 54 68 65 0a | the pag|e. The.|
|00001100| 74 68 69 72 64 20 70 61 | 72 61 6d 65 74 65 72 20 |third pa|rameter |
|00001110| 69 73 20 74 68 65 20 66 | 69 6c 65 20 6e 61 6d 65 |is the f|ile name|
|00001120| 20 6f 66 20 74 68 65 20 | 70 69 63 74 75 72 65 20 | of the |picture |
|00001130| 66 69 6c 65 20 61 73 20 | 70 72 6f 63 65 73 73 65 |file as |processe|
|00001140| 64 20 62 79 0a 22 64 72 | 61 77 69 6d 70 20 2d 74 |d by."dr|awimp -t|
|00001150| 22 2e 20 20 53 65 65 20 | 74 68 65 20 6d 61 63 72 |". See |the macr|
|00001160| 6f 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 66 6f 72 |o defini|tion for|
|00001170| 20 6d 6f 72 65 20 69 6e | 66 6f 2e 0a 0a 0a 53 65 | more in|fo....Se|
|00001180| 6e 64 20 61 6e 79 20 63 | 6f 6d 6d 65 6e 74 73 20 |nd any c|omments |
|00001190| 6f 72 20 62 75 67 20 72 | 65 70 6f 72 74 73 20 74 |or bug r|eports t|
|000011a0| 6f 20 22 57 65 62 65 72 | 25 42 72 61 6e 64 40 55 |o "Weber|%Brand@U|
|000011b0| 53 43 2d 45 43 4c 2e 41 | 52 50 41 22 0a 0a 09 09 |SC-ECL.A|RPA"....|
|000011c0| 09 09 41 6c 6c 61 6e 20 | 57 65 62 65 72 0a 09 09 |..Allan |Weber...|
|000011d0| 09 09 55 53 43 20 53 69 | 67 6e 61 6c 20 61 6e 64 |..USC Si|gnal and|
|000011e0| 20 49 6d 61 67 65 20 50 | 72 6f 63 65 73 73 69 6e | Image P|rocessin|
|000011f0| 67 20 49 6e 73 74 2e 0a | 09 09 09 09 50 48 45 20 |g Inst..|....PHE |
|00001200| 33 30 36 2c 20 4d 43 2d | 30 32 37 32 0a 09 09 09 |306, MC-|0272....|
|00001210| 09 4c 2e 41 2e 2c 20 43 | 41 20 20 39 30 30 38 39 |.L.A., C|A 90089|
|00001220| 2d 30 32 37 32 0a 09 09 | 09 09 28 32 31 33 29 20 |-0272...|..(213) |
|00001230| 37 34 33 2d 35 35 31 39 | 0a 53 48 41 52 5f 45 4f |743-5519|.SHAR_EO|
|00001240| 46 0a 66 69 20 23 20 65 | 6e 64 20 6f 66 20 6f 76 |F.fi # e|nd of ov|
|00001250| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|00001260| 69 66 20 74 65 73 74 20 | 2d 66 20 27 73 70 65 63 |if test |-f 'spec|
|00001270| 69 61 6c 2e 63 27 0a 74 | 68 65 6e 0a 09 65 63 68 |ial.c'.t|hen..ech|
|00001280| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00001290| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|000012a0| 74 69 6e 67 20 66 69 6c | 65 20 22 27 73 70 65 63 |ting fil|e "'spec|
|000012b0| 69 61 6c 2e 63 27 22 0a | 65 6c 73 65 0a 63 61 74 |ial.c'".|else.cat|
|000012c0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000012d0| 27 73 70 65 63 69 61 6c | 2e 63 27 0a 2f 2a 0a 09 |'special|.c'./*..|
|000012e0| 52 6f 75 74 69 6e 65 73 | 20 66 6f 72 20 68 61 6e |Routines| for han|
|000012f0| 64 6c 69 6e 67 20 5c 73 | 70 65 63 69 61 6c 20 63 |dling \s|pecial c|
|00001300| 6f 6d 6d 61 6e 64 73 2e | 20 20 43 75 72 72 65 6e |ommands.| Curren|
|00001310| 74 6c 79 20 6f 6e 6c 79 | 20 73 75 70 70 6f 72 74 |tly only| support|
|00001320| 73 0a 09 69 6e 73 65 72 | 74 69 6e 67 20 69 6d 70 |s..inser|ting imp|
|00001330| 72 65 73 73 20 64 61 74 | 61 20 66 72 6f 6d 20 65 |ress dat|a from e|
|00001340| 78 74 65 72 6e 61 6c 20 | 66 69 6c 65 73 2e 20 20 |xternal |files. |
|00001350| 42 69 74 6d 61 70 20 73 | 74 75 66 66 20 69 73 20 |Bitmap s|tuff is |
|00001360| 6e 6f 74 0a 09 63 6f 6d | 70 6c 65 74 65 2e 0a 09 |not..com|plete...|
|00001370| 0a 09 41 6c 6c 61 6e 20 | 57 65 62 65 72 20 28 57 |..Allan |Weber (W|
|00001380| 65 62 65 72 25 42 72 61 | 6e 64 40 55 53 43 2d 45 |eber%Bra|nd@USC-E|
|00001390| 43 4c 2e 41 52 50 41 29 | 20 2d 20 39 2f 31 32 2f |CL.ARPA)| - 9/12/|
|000013a0| 38 36 0a 2a 2f 0a 0a 2f | 2a 20 23 64 65 66 69 6e |86.*/../|* #defin|
|000013b0| 65 20 44 45 42 55 47 20 | 2a 2f 0a 0a 23 69 6e 63 |e DEBUG |*/..#inc|
|000013c0| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|000013d0| 69 6e 63 6c 75 64 65 20 | 3c 63 74 79 70 65 2e 68 |include |<ctype.h|
|000013e0| 3e 0a 0a 65 78 74 65 72 | 6e 20 63 68 61 72 20 2a |>..exter|n char *|
|000013f0| 6d 61 6c 6c 6f 63 28 29 | 3b 0a 65 78 74 65 72 6e |malloc()|;.extern|
|00001400| 20 69 6e 74 20 20 20 65 | 72 72 6e 6f 3b 0a 65 78 | int e|rrno;.ex|
|00001410| 74 65 72 6e 20 69 6e 74 | 20 49 6d 48 48 2c 20 49 |tern int| ImHH, I|
|00001420| 6d 56 56 2c 20 68 68 2c | 20 76 76 3b 0a 0a 69 6e |mVV, hh,| vv;..in|
|00001430| 74 20 53 5f 62 69 74 6d | 61 70 28 29 3b 0a 69 6e |t S_bitm|ap();.in|
|00001440| 74 20 53 5f 69 6d 70 72 | 65 73 73 28 29 3b 0a 63 |t S_impr|ess();.c|
|00001450| 68 61 72 20 2a 6e 62 28 | 29 3b 0a 0a 73 74 72 75 |har *nb(|);..stru|
|00001460| 63 74 20 73 70 65 63 20 | 7b 0a 09 63 68 61 72 20 |ct spec |{..char |
|00001470| 2a 6e 61 6d 65 3b 0a 09 | 69 6e 74 20 20 28 2a 66 |*name;..|int (*f|
|00001480| 75 6e 63 29 28 29 3b 0a | 7d 20 73 70 65 63 74 62 |unc)();.|} spectb|
|00001490| 6c 5b 5d 20 3d 20 7b 0a | 09 22 62 69 74 6d 61 70 |l[] = {.|."bitmap|
|000014a0| 22 2c 20 20 53 5f 62 69 | 74 6d 61 70 2c 0a 09 22 |", S_bi|tmap,.."|
|000014b0| 69 6d 70 72 65 73 73 22 | 2c 20 53 5f 69 6d 70 72 |impress"|, S_impr|
|000014c0| 65 73 73 2c 0a 09 22 22 | 2c 20 4e 55 4c 4c 0a 7d |ess,..""|, NULL.}|
|000014d0| 3b 0a 0a 2f 2a 20 50 65 | 72 66 6f 72 6d 20 61 20 |;../* Pe|rform a |
|000014e0| 5c 73 70 65 63 69 61 6c | 20 2a 2f 0a 44 6f 53 70 |\special| */.DoSp|
|000014f0| 65 63 69 61 6c 20 28 6c | 65 6e 29 0a 69 6e 74 20 |ecial (l|en).int |
|00001500| 6c 65 6e 3b 09 09 09 2f | 2a 20 6c 65 6e 67 74 68 |len;.../|* length|
|00001510| 20 6f 66 20 74 68 65 20 | 5c 73 70 65 63 69 61 6c | of the |\special|
|00001520| 20 73 74 72 69 6e 67 20 | 2a 2f 0a 7b 0a 09 73 74 | string |*/.{..st|
|00001530| 72 75 63 74 20 73 70 65 | 63 20 2a 73 3b 0a 09 63 |ruct spe|c *s;..c|
|00001540| 68 61 72 20 2a 70 3b 0a | 09 72 65 67 69 73 74 65 |har *p;.|.registe|
|00001550| 72 20 63 68 61 72 20 63 | 68 2c 20 2a 70 31 2c 20 |r char c|h, *p1, |
|00001560| 2a 70 32 3b 0a 09 69 66 | 20 28 49 6d 48 48 20 21 |*p2;..if| (ImHH !|
|00001570| 3d 20 68 68 20 7c 7c 20 | 49 6d 56 56 20 21 3d 20 |= hh || |ImVV != |
|00001580| 76 76 29 09 2f 2a 20 66 | 6c 75 73 68 20 6f 75 74 |vv)./* f|lush out|
|00001590| 20 61 6e 79 20 70 65 6e | 64 69 6e 67 20 6d 6f 76 | any pen|ding mov|
|000015a0| 65 73 20 2a 2f 0a 09 09 | 49 6d 53 65 74 50 6f 73 |es */...|ImSetPos|
|000015b0| 69 74 69 6f 6e 20 28 68 | 68 2c 20 76 76 29 3b 0a |ition (h|h, vv);.|
|000015c0| 09 70 31 20 3d 20 70 20 | 3d 20 6d 61 6c 6c 6f 63 |.p1 = p |= malloc|
|000015d0| 28 6c 65 6e 20 2b 20 31 | 29 3b 0a 09 77 68 69 6c |(len + 1|);..whil|
|000015e0| 65 20 28 6c 65 6e 2d 2d | 29 09 09 09 2f 2a 20 72 |e (len--|).../* r|
|000015f0| 65 61 64 20 74 68 65 20 | 73 70 65 63 69 61 6c 20 |ead the |special |
|00001600| 73 74 72 69 6e 67 20 2a | 2f 0a 09 09 2a 70 31 2b |string *|/...*p1+|
|00001610| 2b 20 3d 20 67 65 74 63 | 28 73 74 64 69 6e 29 3b |+ = getc|(stdin);|
|00001620| 0a 09 2a 70 31 20 3d 20 | 27 5c 30 27 3b 0a 23 69 |..*p1 = |'\0';.#i|
|00001630| 66 64 65 66 20 44 45 42 | 55 47 0a 09 66 70 72 69 |fdef DEB|UG..fpri|
|00001640| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 73 70 65 63 |ntf(stde|rr,"spec|
|00001650| 69 61 6c 3a 20 27 25 73 | 27 5c 6e 22 2c 70 29 3b |ial: '%s|'\n",p);|
|00001660| 0a 23 65 6e 64 69 66 0a | 09 70 31 20 3d 20 6e 62 |.#endif.|.p1 = nb|
|00001670| 28 70 29 3b 09 09 2f 2a | 20 73 6b 69 70 20 6c 65 |(p);../*| skip le|
|00001680| 61 64 69 6e 67 20 62 6c | 61 6e 6b 73 20 2a 2f 09 |ading bl|anks */.|
|00001690| 0a 09 69 66 20 28 2a 70 | 31 20 3d 3d 20 27 5c 30 |..if (*p|1 == '\0|
|000016a0| 27 29 09 2f 2a 20 69 66 | 20 6e 6f 74 68 69 6e 67 |')./* if| nothing|
|000016b0| 20 6c 65 66 74 2c 20 72 | 65 74 75 72 6e 20 2a 2f | left, r|eturn */|
|000016c0| 0a 09 09 72 65 74 75 72 | 6e 3b 0a 09 70 32 20 3d |...retur|n;..p2 =|
|000016d0| 20 70 31 3b 0a 09 77 68 | 69 6c 65 20 28 28 63 68 | p1;..wh|ile ((ch|
|000016e0| 20 3d 20 2a 70 32 29 20 | 21 3d 20 27 5c 30 27 20 | = *p2) |!= '\0' |
|000016f0| 26 26 20 21 69 73 73 70 | 61 63 65 28 63 68 29 29 |&& !issp|ace(ch))|
|00001700| 20 2f 2a 20 66 69 6e 64 | 20 65 6e 64 20 6f 66 20 | /* find| end of |
|00001710| 31 73 74 20 77 6f 72 64 | 20 2a 2f 0a 09 09 70 32 |1st word| */...p2|
|00001720| 2b 2b 3b 0a 09 69 66 20 | 28 63 68 20 21 3d 20 27 |++;..if |(ch != '|
|00001730| 5c 30 27 29 20 7b 09 2f | 2a 20 6d 6f 72 65 20 74 |\0') {./|* more t|
|00001740| 68 61 6e 20 6f 6e 65 20 | 77 6f 72 64 3f 20 2a 2f |han one |word? */|
|00001750| 0a 09 09 2a 70 32 2b 2b | 20 3d 20 27 5c 30 27 3b |...*p2++| = '\0';|
|00001760| 09 2f 2a 20 6d 61 72 6b | 20 65 6e 64 20 6f 66 20 |./* mark| end of |
|00001770| 66 69 72 73 74 20 77 6f | 72 64 20 2a 2f 0a 09 09 |first wo|rd */...|
|00001780| 70 32 20 3d 20 6e 62 28 | 70 32 29 3b 09 2f 2a 20 |p2 = nb(|p2);./* |
|00001790| 70 6f 69 6e 74 20 74 6f | 20 73 74 61 72 74 20 6f |point to| start o|
|000017a0| 66 20 72 65 73 74 20 6f | 66 20 73 74 72 69 6e 67 |f rest o|f string|
|000017b0| 20 2a 2f 0a 09 7d 0a 09 | 73 20 3d 20 73 70 65 63 | */..}..|s = spec|
|000017c0| 74 62 6c 3b 0a 09 77 68 | 69 6c 65 20 28 73 2d 3e |tbl;..wh|ile (s->|
|000017d0| 66 75 6e 63 20 21 3d 20 | 4e 55 4c 4c 29 20 7b 0a |func != |NULL) {.|
|000017e0| 09 09 69 66 20 28 73 74 | 72 63 6d 70 28 70 31 2c |..if (st|rcmp(p1,|
|000017f0| 73 2d 3e 6e 61 6d 65 29 | 20 3d 3d 20 30 29 20 7b |s->name)| == 0) {|
|00001800| 0a 09 09 09 28 73 2d 3e | 66 75 6e 63 29 28 70 31 |....(s->|func)(p1|
|00001810| 2c 70 32 29 3b 0a 09 09 | 09 72 65 74 75 72 6e 3b |,p2);...|.return;|
|00001820| 0a 09 09 7d 0a 09 09 65 | 6c 73 65 0a 09 09 09 73 |...}...e|lse....s|
|00001830| 2b 2b 3b 0a 09 7d 0a 09 | 66 72 65 65 28 70 29 3b |++;..}..|free(p);|
|00001840| 09 0a 7d 0a 0a 2f 2a 20 | 0a 73 70 6c 69 74 20 2d |..}../* |.split -|
|00001850| 20 73 65 70 61 72 61 74 | 65 20 74 68 65 20 77 6f | separat|e the wo|
|00001860| 72 64 73 20 69 6e 20 73 | 74 72 69 6e 67 20 73 2c |rds in s|tring s,|
|00001870| 20 70 6c 61 63 69 6e 67 | 20 61 20 27 5c 30 27 20 | placing| a '\0' |
|00001880| 61 66 74 65 72 20 65 61 | 63 68 20 6f 6e 65 0a 61 |after ea|ch one.a|
|00001890| 6e 64 20 73 65 74 74 69 | 6e 67 20 74 68 65 20 65 |nd setti|ng the e|
|000018a0| 6c 65 6d 65 6e 74 73 20 | 6f 66 20 74 6f 6b 20 74 |lements |of tok t|
|000018b0| 6f 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 20 62 |o point |to the b|
|000018c0| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 65 61 63 68 |eginning| of each|
|000018d0| 20 77 6f 72 64 2e 0a 4f | 6e 6c 79 20 64 6f 20 74 | word..O|nly do t|
|000018e0| 68 69 73 20 66 6f 72 20 | 75 70 20 74 6f 20 6d 61 |his for |up to ma|
|000018f0| 78 20 77 6f 72 64 73 2e | 20 20 52 65 74 75 72 6e |x words.| Return|
|00001900| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 77 | the num|ber of w|
|00001910| 6f 72 64 73 20 66 6f 75 | 6e 64 2e 0a 2a 2f 09 0a |ords fou|nd..*/..|
|00001920| 73 74 61 74 69 63 20 73 | 70 6c 69 74 28 73 2c 74 |static s|plit(s,t|
|00001930| 6f 6b 2c 6d 61 78 29 0a | 72 65 67 69 73 74 65 72 |ok,max).|register|
|00001940| 20 63 68 61 72 20 2a 73 | 3b 0a 63 68 61 72 20 2a | char *s|;.char *|
|00001950| 74 6f 6b 5b 5d 3b 0a 7b | 0a 09 69 6e 74 20 69 2c |tok[];.{|..int i,|
|00001960| 20 6e 3b 0a 09 72 65 67 | 69 73 74 65 72 20 63 68 | n;..reg|ister ch|
|00001970| 61 72 20 63 68 3b 0a 09 | 6e 20 3d 20 30 3b 0a 09 |ar ch;..|n = 0;..|
|00001980| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|00001990| 6d 61 78 3b 20 69 2b 2b | 29 20 7b 0a 09 09 73 20 |max; i++|) {...s |
|000019a0| 3d 20 6e 62 28 73 29 3b | 09 09 09 2f 2a 20 66 69 |= nb(s);|.../* fi|
|000019b0| 6e 64 20 77 6f 72 64 20 | 73 74 61 72 74 20 2a 2f |nd word |start */|
|000019c0| 0a 09 09 69 66 20 28 28 | 63 68 20 3d 20 2a 73 29 |...if ((|ch = *s)|
|000019d0| 20 21 3d 20 27 5c 30 27 | 29 20 7b 09 2f 2a 20 64 | != '\0'|) {./* d|
|000019e0| 69 64 20 77 65 20 66 69 | 6e 64 20 6f 6e 65 3f 20 |id we fi|nd one? |
|000019f0| 2a 2f 0a 09 09 09 74 6f | 6b 5b 69 5d 20 3d 20 73 |*/....to|k[i] = s|
|00001a00| 3b 0a 09 09 09 6e 2b 2b | 3b 0a 09 09 09 77 68 69 |;....n++|;....whi|
|00001a10| 6c 65 20 28 28 63 68 20 | 3d 20 2a 73 29 20 21 3d |le ((ch |= *s) !=|
|00001a20| 20 27 5c 30 27 20 26 26 | 20 21 69 73 73 70 61 63 | '\0' &&| !isspac|
|00001a30| 65 28 63 68 29 29 0a 09 | 09 09 09 73 2b 2b 3b 09 |e(ch))..|...s++;.|
|00001a40| 09 2f 2a 20 66 69 6e 64 | 20 65 6e 64 20 6f 66 20 |./* find| end of |
|00001a50| 77 6f 72 64 20 2a 2f 0a | 09 09 09 69 66 20 28 63 |word */.|...if (c|
|00001a60| 68 20 21 3d 20 27 5c 30 | 27 29 09 09 2f 2a 20 6d |h != '\0|')../* m|
|00001a70| 61 72 6b 20 65 6e 64 20 | 6f 66 20 77 6f 72 64 20 |ark end |of word |
|00001a80| 2a 2f 0a 09 09 09 09 2a | 73 2b 2b 20 3d 20 27 5c |*/.....*|s++ = '\|
|00001a90| 30 27 3b 0a 09 09 7d 0a | 09 09 65 6c 73 65 0a 09 |0';...}.|..else..|
|00001aa0| 09 09 74 6f 6b 5b 69 5d | 20 3d 20 4e 55 4c 4c 3b |..tok[i]| = NULL;|
|00001ab0| 0a 09 7d 0a 09 72 65 74 | 75 72 6e 28 6e 29 3b 0a |..}..ret|urn(n);.|
|00001ac0| 7d 0a 0a 63 68 61 72 20 | 2a 6e 62 28 73 29 0a 63 |}..char |*nb(s).c|
|00001ad0| 68 61 72 20 2a 73 3b 0a | 7b 0a 09 72 65 67 69 73 |har *s;.|{..regis|
|00001ae0| 74 65 72 20 63 68 61 72 | 20 63 68 3b 0a 09 77 68 |ter char| ch;..wh|
|00001af0| 69 6c 65 20 28 28 63 68 | 20 3d 20 2a 73 29 20 21 |ile ((ch| = *s) !|
|00001b00| 3d 20 27 5c 30 27 20 26 | 26 20 69 73 73 70 61 63 |= '\0' &|& isspac|
|00001b10| 65 28 63 68 29 29 0a 09 | 09 73 2b 2b 3b 0a 09 72 |e(ch))..|.s++;..r|
|00001b20| 65 74 75 72 6e 28 73 29 | 3b 0a 7d 0a 0a 2f 2a 20 |eturn(s)|;.}../* |
|00001b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b70| 2d 2d 2d 2d 2d 20 2a 2f | 0a 0a 73 74 61 74 69 63 |----- */|..static|
|00001b80| 20 53 5f 62 69 74 6d 61 | 70 28 73 31 2c 20 73 32 | S_bitma|p(s1, s2|
|00001b90| 29 0a 63 68 61 72 20 2a | 73 31 2c 20 2a 73 32 3b |).char *|s1, *s2;|
|00001ba0| 0a 7b 0a 09 69 6e 74 20 | 69 2c 20 6e 2c 20 66 64 |.{..int |i, n, fd|
|00001bb0| 3b 0a 09 69 6e 74 20 72 | 6f 77 73 2c 20 63 6f 6c |;..int r|ows, col|
|00001bc0| 73 2c 20 77 72 6f 77 73 | 2c 20 77 63 6f 6c 73 2c |s, wrows|, wcols,|
|00001bd0| 20 77 72 6f 66 66 2c 20 | 77 63 6f 66 66 3b 0a 09 | wroff, |wcoff;..|
|00001be0| 63 68 61 72 20 2a 70 2c | 20 2a 77 6f 72 64 5b 37 |char *p,| *word[7|
|00001bf0| 5d 3b 0a 23 69 66 64 65 | 66 20 44 45 42 55 47 0a |];.#ifde|f DEBUG.|
|00001c00| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00001c10| 22 69 6e 20 62 69 74 6d | 61 70 3a 20 73 31 3d 27 |"in bitm|ap: s1='|
|00001c20| 25 73 27 2c 20 73 32 3d | 27 25 73 27 5c 6e 22 2c |%s', s2=|'%s'\n",|
|00001c30| 73 31 2c 73 32 29 3b 0a | 23 65 6e 64 69 66 0a 09 |s1,s2);.|#endif..|
|00001c40| 70 20 3d 20 6d 61 6c 6c | 6f 63 28 73 74 72 6c 65 |p = mall|oc(strle|
|00001c50| 6e 28 73 32 29 20 2b 20 | 31 29 3b 0a 09 73 74 72 |n(s2) + |1);..str|
|00001c60| 63 70 79 28 70 2c 73 32 | 29 3b 0a 09 6e 20 3d 20 |cpy(p,s2|);..n = |
|00001c70| 73 70 6c 69 74 28 70 2c | 77 6f 72 64 2c 37 29 3b |split(p,|word,7);|
|00001c80| 0a 23 69 66 64 65 66 20 | 44 45 42 55 47 0a 09 66 |.#ifdef |DEBUG..f|
|00001c90| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00001ca0| 73 70 6c 69 74 20 69 6e | 74 6f 20 25 64 20 77 6f |split in|to %d wo|
|00001cb0| 72 64 73 5c 6e 22 2c 6e | 29 3b 0a 09 66 6f 72 20 |rds\n",n|);..for |
|00001cc0| 28 69 20 3d 20 30 3b 20 | 69 20 3c 20 6e 3b 20 69 |(i = 0; |i < n; i|
|00001cd0| 2b 2b 29 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |++)...fp|rintf(st|
|00001ce0| 64 65 72 72 2c 22 25 64 | 3a 20 27 25 73 27 5c 6e |derr,"%d|: '%s'\n|
|00001cf0| 22 2c 69 2c 77 6f 72 64 | 5b 69 5d 29 3b 0a 23 65 |",i,word|[i]);.#e|
|00001d00| 6e 64 69 66 0a 23 69 66 | 6e 64 65 66 20 44 45 42 |ndif.#if|ndef DEB|
|00001d10| 55 47 0a 09 69 66 20 28 | 28 66 64 20 3d 20 6f 70 |UG..if (|(fd = op|
|00001d20| 65 6e 28 77 6f 72 64 5b | 30 5d 2c 20 30 29 29 20 |en(word[|0], 0)) |
|00001d30| 3d 3d 20 2d 31 29 20 7b | 0a 09 09 65 72 72 6f 72 |== -1) {|...error|
|00001d40| 20 28 31 2c 20 65 72 72 | 6e 6f 2c 20 22 63 61 6e | (1, err|no, "can|
|00001d50| 27 74 20 6f 70 65 6e 20 | 25 73 22 2c 20 73 32 29 |'t open |%s", s2)|
|00001d60| 3b 0a 0a 09 7d 0a 09 69 | 66 20 28 6e 20 3c 20 37 |;...}..i|f (n < 7|
|00001d70| 29 09 09 2f 2a 20 6e 6f | 20 77 69 6e 64 6f 77 20 |)../* no| window |
|00001d80| 6f 66 66 73 65 74 20 2a | 2f 0a 09 09 77 6f 72 64 |offset *|/...word|
|00001d90| 5b 36 5d 20 3d 20 77 6f | 72 64 5b 35 5d 20 3d 20 |[6] = wo|rd[5] = |
|00001da0| 22 30 22 3b 0a 09 69 66 | 20 28 6e 20 3c 20 35 29 |"0";..if| (n < 5)|
|00001db0| 20 7b 09 09 2f 2a 20 66 | 75 6c 6c 20 77 69 6e 64 | {../* f|ull wind|
|00001dc0| 6f 77 20 2a 2f 0a 09 09 | 77 6f 72 64 5b 33 5d 20 |ow */...|word[3] |
|00001dd0| 3d 20 77 6f 72 64 5b 31 | 5d 3b 0a 09 09 77 6f 72 |= word[1|];...wor|
|00001de0| 64 5b 34 5d 20 3d 20 77 | 6f 72 64 5b 32 5d 3b 0a |d[4] = w|ord[2];.|
|00001df0| 09 7d 0a 09 69 66 20 28 | 6e 20 3c 20 33 29 20 7b |.}..if (|n < 3) {|
|00001e00| 09 09 2f 2a 20 6e 65 65 | 64 20 61 74 20 6c 65 61 |../* nee|d at lea|
|00001e10| 73 74 20 74 68 65 20 64 | 69 6d 65 6e 73 69 6f 6e |st the d|imension|
|00001e20| 73 20 2a 2f 0a 09 09 65 | 72 72 6f 72 28 31 2c 20 |s */...e|rror(1, |
|00001e30| 30 2c 20 22 5c 22 5c 5c | 73 70 65 63 69 61 6c 20 |0, "\"\\|special |
|00001e40| 62 69 74 6d 61 70 5c 22 | 20 6e 6f 74 20 65 6e 6f |bitmap\"| not eno|
|00001e50| 75 67 68 20 61 72 67 75 | 6d 65 6e 74 73 22 29 3b |ugh argu|ments");|
|00001e60| 0a 09 09 66 72 65 65 28 | 70 29 3b 0a 09 09 72 65 |...free(|p);...re|
|00001e70| 74 75 72 6e 3b 0a 09 7d | 0a 09 72 6f 77 73 20 3d |turn;..}|..rows =|
|00001e80| 20 61 74 6f 69 28 77 6f | 72 64 5b 31 5d 29 3b 20 | atoi(wo|rd[1]); |
|00001e90| 63 6f 6c 73 20 3d 20 61 | 74 6f 69 28 77 6f 72 64 |cols = a|toi(word|
|00001ea0| 5b 32 5d 29 3b 0a 09 77 | 72 6f 77 73 20 3d 20 61 |[2]);..w|rows = a|
|00001eb0| 74 6f 69 28 77 6f 72 64 | 5b 33 5d 29 3b 20 77 63 |toi(word|[3]); wc|
|00001ec0| 6f 6c 73 20 3d 20 61 74 | 6f 69 28 77 6f 72 64 5b |ols = at|oi(word[|
|00001ed0| 34 5d 29 3b 0a 09 77 72 | 6f 66 66 20 3d 20 61 74 |4]);..wr|off = at|
|00001ee0| 6f 69 28 77 6f 72 64 5b | 35 5d 29 3b 20 77 63 6f |oi(word[|5]); wco|
|00001ef0| 66 66 20 3d 20 61 74 6f | 69 28 77 6f 72 64 5b 36 |ff = ato|i(word[6|
|00001f00| 5d 29 3b 0a 09 63 6c 6f | 73 65 28 66 64 29 3b 0a |]);..clo|se(fd);.|
|00001f10| 23 65 6e 64 69 66 0a 09 | 66 72 65 65 28 70 29 3b |#endif..|free(p);|
|00001f20| 0a 7d 0a 0a 73 74 61 74 | 69 63 20 53 5f 69 6d 70 |.}..stat|ic S_imp|
|00001f30| 72 65 73 73 28 73 31 2c | 20 73 32 29 0a 63 68 61 |ress(s1,| s2).cha|
|00001f40| 72 20 2a 73 31 2c 20 2a | 73 32 3b 0a 7b 0a 09 46 |r *s1, *|s2;.{..F|
|00001f50| 49 4c 45 20 2a 66 70 3b | 0a 09 69 6e 74 20 6e 2c |ILE *fp;|..int n,|
|00001f60| 20 68 2c 20 76 2c 20 63 | 68 3b 0a 09 63 68 61 72 | h, v, c|h;..char|
|00001f70| 20 2a 70 2c 20 2a 77 6f | 72 64 5b 33 5d 3b 0a 23 | *p, *wo|rd[3];.#|
|00001f80| 69 66 64 65 66 20 44 45 | 42 55 47 0a 09 66 70 72 |ifdef DE|BUG..fpr|
|00001f90| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 69 6e 20 |intf(std|err,"in |
|00001fa0| 69 6d 70 72 65 73 73 3a | 20 73 31 3d 27 25 73 27 |impress:| s1='%s'|
|00001fb0| 2c 20 73 32 3d 27 25 73 | 27 5c 6e 22 2c 73 31 2c |, s2='%s|'\n",s1,|
|00001fc0| 73 32 29 3b 0a 23 65 6e | 64 69 66 0a 23 69 66 6e |s2);.#en|dif.#ifn|
|00001fd0| 64 65 66 20 44 45 42 55 | 47 0a 09 70 20 3d 20 6d |def DEBU|G..p = m|
|00001fe0| 61 6c 6c 6f 63 28 73 74 | 72 6c 65 6e 28 73 32 29 |alloc(st|rlen(s2)|
|00001ff0| 20 2b 20 31 29 3b 0a 09 | 73 74 72 63 70 79 28 70 | + 1);..|strcpy(p|
|00002000| 2c 73 32 29 3b 0a 09 6e | 20 3d 20 73 70 6c 69 74 |,s2);..n| = split|
|00002010| 28 70 2c 77 6f 72 64 2c | 33 29 3b 0a 09 69 66 20 |(p,word,|3);..if |
|00002020| 28 28 66 70 20 3d 20 66 | 6f 70 65 6e 28 77 6f 72 |((fp = f|open(wor|
|00002030| 64 5b 30 5d 2c 20 22 72 | 22 29 29 20 3d 3d 20 4e |d[0], "r|")) == N|
|00002040| 55 4c 4c 29 20 7b 0a 09 | 09 65 72 72 6f 72 20 28 |ULL) {..|.error (|
|00002050| 31 2c 20 65 72 72 6e 6f | 2c 20 22 63 61 6e 27 74 |1, errno|, "can't|
|00002060| 20 6f 70 65 6e 20 25 73 | 22 2c 20 77 6f 72 64 5b | open %s|", word[|
|00002070| 30 5d 29 3b 0a 09 7d 0a | 09 70 75 74 63 68 61 72 |0]);..}.|.putchar|
|00002080| 28 32 31 31 29 3b 09 09 | 2f 2a 20 70 75 73 68 20 |(211);..|/* push |
|00002090| 2a 2f 0a 09 69 66 20 28 | 6e 20 3d 3d 20 33 29 20 |*/..if (|n == 3) |
|000020a0| 7b 09 09 2f 2a 20 61 62 | 73 6f 6c 75 74 65 20 6d |{../* ab|solute m|
|000020b0| 6f 76 65 20 73 70 65 63 | 69 66 69 65 64 20 2a 2f |ove spec|ified */|
|000020c0| 0a 09 09 69 66 20 28 73 | 73 63 61 6e 66 28 77 6f |...if (s|scanf(wo|
|000020d0| 72 64 5b 31 5d 2c 22 25 | 64 22 2c 20 26 68 29 20 |rd[1],"%|d", &h) |
|000020e0| 3d 3d 20 31 29 20 7b 0a | 09 09 09 70 75 74 63 68 |== 1) {.|...putch|
|000020f0| 61 72 28 31 33 35 29 3b | 0a 09 09 09 70 75 74 63 |ar(135);|....putc|
|00002100| 68 61 72 28 28 68 20 3e | 3e 20 38 29 20 26 20 32 |har((h >|> 8) & 2|
|00002110| 35 35 29 3b 0a 09 09 09 | 70 75 74 63 68 61 72 28 |55);....|putchar(|
|00002120| 68 20 26 20 32 35 35 29 | 3b 0a 09 09 7d 0a 09 09 |h & 255)|;...}...|
|00002130| 69 66 20 28 73 73 63 61 | 6e 66 28 77 6f 72 64 5b |if (ssca|nf(word[|
|00002140| 32 5d 2c 22 25 64 22 2c | 20 26 76 29 20 3d 3d 20 |2],"%d",| &v) == |
|00002150| 31 29 20 7b 0a 09 09 09 | 70 75 74 63 68 61 72 28 |1) {....|putchar(|
|00002160| 31 33 37 29 3b 0a 09 09 | 09 70 75 74 63 68 61 72 |137);...|.putchar|
|00002170| 28 28 76 20 3e 3e 20 38 | 29 20 26 20 32 35 35 29 |((v >> 8|) & 255)|
|00002180| 3b 0a 09 09 09 70 75 74 | 63 68 61 72 28 76 20 26 |;....put|char(v &|
|00002190| 20 32 35 35 29 3b 0a 09 | 09 7d 0a 09 7d 0a 09 77 | 255);..|.}..}..w|
|000021a0| 68 69 6c 65 20 28 28 63 | 68 20 3d 20 67 65 74 63 |hile ((c|h = getc|
|000021b0| 28 66 70 29 29 20 21 3d | 20 45 4f 46 20 7c 7c 20 |(fp)) !=| EOF || |
|000021c0| 21 66 65 6f 66 28 66 70 | 29 29 0a 09 09 70 75 74 |!feof(fp|))...put|
|000021d0| 63 68 61 72 28 63 68 29 | 3b 0a 09 70 75 74 63 68 |char(ch)|;..putch|
|000021e0| 61 72 28 32 31 32 29 3b | 09 09 2f 2a 20 70 6f 70 |ar(212);|../* pop|
|000021f0| 20 2a 2f 0a 09 66 63 6c | 6f 73 65 28 66 70 29 3b | */..fcl|ose(fp);|
|00002200| 0a 23 65 6e 64 69 66 0a | 7d 0a 0a 53 48 41 52 5f |.#endif.|}..SHAR_|
|00002210| 45 4f 46 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |EOF.fi #| end of |
|00002220| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00002230| 6b 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 50 69 |k.if tes|t -f 'Pi|
|00002240| 63 4d 61 63 72 6f 73 2e | 74 65 78 27 0a 74 68 65 |cMacros.|tex'.the|
|00002250| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00002260| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00002270| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00002280| 22 27 50 69 63 4d 61 63 | 72 6f 73 2e 74 65 78 27 |"'PicMac|ros.tex'|
|00002290| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|000022a0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 50 69 63 4d 61 |HAR_EOF |> 'PicMa|
|000022b0| 63 72 6f 73 2e 74 65 78 | 27 0a 5c 64 65 66 5c 69 |cros.tex|'.\def\i|
|000022c0| 66 75 6e 64 65 66 69 6e | 65 64 23 31 7b 5c 65 78 |fundefin|ed#1{\ex|
|000022d0| 70 61 6e 64 61 66 74 65 | 72 5c 69 66 78 5c 63 73 |pandafte|r\ifx\cs|
|000022e0| 6e 61 6d 65 23 31 5c 65 | 6e 64 63 73 6e 61 6d 65 |name#1\e|ndcsname|
|000022f0| 5c 72 65 6c 61 78 7d 0a | 0a 5c 69 66 75 6e 64 65 |\relax}.|.\ifunde|
|00002300| 66 69 6e 65 64 7b 6e 65 | 77 63 6f 6d 6d 61 6e 64 |fined{ne|wcommand|
|00002310| 7d 0a 09 09 09 25 20 64 | 65 66 69 6e 65 20 44 72 |}....% d|efine Dr|
|00002320| 61 77 50 69 63 74 75 72 | 65 20 66 6f 72 20 54 65 |awPictur|e for Te|
|00002330| 58 0a 5c 6c 6f 6e 67 5c | 67 64 65 66 5c 44 72 61 |X.\long\|gdef\Dra|
|00002340| 77 50 69 63 74 75 72 65 | 23 31 23 32 23 33 0a 20 |wPicture|#1#2#3. |
|00002350| 7b 5c 63 65 6e 74 65 72 | 6c 69 6e 65 0a 09 7b 5c |{\center|line..{\|
|00002360| 76 62 6f 78 20 74 6f 20 | 23 31 70 74 0a 09 09 7b |vbox to |#1pt...{|
|00002370| 5c 68 62 6f 78 20 74 6f | 20 23 32 70 74 0a 09 09 |\hbox to| #2pt...|
|00002380| 7b 5c 73 70 65 63 69 61 | 6c 7b 69 6d 70 72 65 73 |{\specia|l{impres|
|00002390| 73 20 23 33 7d 7d 0a 09 | 09 7d 0a 09 7d 0a 20 7d |s #3}}..|.}..}. }|
|000023a0| 0a 0a 5c 65 6c 73 65 0a | 09 09 09 25 20 64 65 66 |..\else.|...% def|
|000023b0| 69 6e 65 20 44 72 61 77 | 50 69 63 74 75 72 65 20 |ine Draw|Picture |
|000023c0| 66 6f 72 20 4c 61 54 65 | 58 0a 0a 25 20 6f 75 74 |for LaTe|X..% out|
|000023d0| 70 75 74 20 73 6f 6d 65 | 20 69 6d 70 72 65 73 73 |put some| impress|
|000023e0| 20 64 61 74 61 20 61 74 | 20 63 75 72 72 65 6e 74 | data at| current|
|000023f0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 6e 20 70 61 67 | locatio|n on pag|
|00002400| 65 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 49 |e.\newco|mmand{\I|
|00002410| 6d 70 72 65 73 73 7d 5b | 31 5d 0a 7b 0a 20 20 5c |mpress}[|1].{. \|
|00002420| 6d 61 6b 65 62 6f 78 28 | 30 2c 30 29 7b 5c 73 70 |makebox(|0,0){\sp|
|00002430| 65 63 69 61 6c 7b 69 6d | 70 72 65 73 73 20 23 31 |ecial{im|press #1|
|00002440| 7d 7d 0a 7d 0a 0a 25 20 | 70 75 74 20 61 20 70 69 |}}.}..% |put a pi|
|00002450| 63 74 75 72 65 20 6f 6e | 20 70 61 67 65 20 28 75 |cture on| page (u|
|00002460| 73 65 20 66 6f 72 20 6d | 75 6c 74 69 70 6c 65 20 |se for m|ultiple |
|00002470| 70 69 63 74 75 72 65 73 | 20 61 63 72 6f 73 73 20 |pictures| across |
|00002480| 70 61 67 65 29 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |page).\n|ewcomman|
|00002490| 64 7b 5c 50 75 74 50 69 | 63 74 75 72 65 7d 5b 33 |d{\PutPi|cture}[3|
|000024a0| 5d 0a 7b 0a 20 20 5c 62 | 65 67 69 6e 7b 70 69 63 |].{. \b|egin{pic|
|000024b0| 74 75 72 65 7d 28 23 31 | 2c 23 32 29 0a 20 20 20 |ture}(#1|,#2). |
|000024c0| 20 5c 70 75 74 28 30 2c | 23 32 29 7b 5c 49 6d 70 | \put(0,|#2){\Imp|
|000024d0| 72 65 73 73 7b 23 33 7d | 7d 0a 20 20 5c 65 6e 64 |ress{#3}|}. \end|
|000024e0| 7b 70 69 63 74 75 72 65 | 7d 0a 7d 0a 0a 25 20 70 |{picture|}.}..% p|
|000024f0| 75 74 20 61 20 63 65 6e | 74 65 72 65 64 20 70 69 |ut a cen|tered pi|
|00002500| 63 74 75 72 65 20 6f 6e | 20 70 61 67 65 20 28 75 |cture on| page (u|
|00002510| 73 65 20 66 6f 72 20 73 | 69 6e 67 6c 65 20 70 69 |se for s|ingle pi|
|00002520| 63 74 75 72 65 20 61 63 | 72 6f 73 73 20 70 61 67 |cture ac|ross pag|
|00002530| 65 29 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |e).\newc|ommand{\|
|00002540| 44 72 61 77 50 69 63 74 | 75 72 65 7d 5b 33 5d 0a |DrawPict|ure}[3].|
|00002550| 7b 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |{. \beg|in{cente|
|00002560| 72 7d 0a 20 20 20 20 5c | 50 75 74 50 69 63 74 75 |r}. \|PutPictu|
|00002570| 72 65 7b 23 31 7d 7b 23 | 32 7d 7b 23 33 7d 0a 20 |re{#1}{#|2}{#3}. |
|00002580| 20 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0a 7d 0a | \end{ce|nter}.}.|
|00002590| 0a 5c 66 69 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |.\fi.SHA|R_EOF.fi|
|000025a0| 20 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 | # end o|f overwr|
|000025b0| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 23 09 45 6e |iting ch|eck.#.En|
|000025c0| 64 20 6f 66 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |d of she|ll archi|
|000025d0| 76 65 0a 65 78 69 74 20 | 30 0a |ve.exit |0. |
+--------+-------------------------+-------------------------+--------+--------+