home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / pstscrpt / up.tar < prev    next >
Tape Archive  |  1989-11-03  |  48.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: up.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file up/, mode 755 , uid 1524 , gid 13 , size 0 , seconds 4523365336 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 75 70 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |up/.....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 31 35 |.... 7|55 . 15|
|00000070| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 35 32 33 33 36 35 | 0 | 4523365|
|00000090| 33 33 36 20 20 20 34 34 | 37 35 00 20 00 00 00 00 |336 44|75. ....|
|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| 75 70 2f 53 68 61 72 46 | 69 6c 65 2e 48 65 61 64 |up/SharF|ile.Head|
|00000210| 65 72 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ers.....|........|
|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 31 35 |.... 6|44 . 15|
|00000270| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000280| 20 20 20 32 30 30 33 20 | 20 34 35 32 33 33 36 35 | 2003 | 4523365|
|00000290| 33 33 37 20 20 20 37 35 | 35 30 00 20 00 00 00 00 |337 75|50. ....|
|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| 3d 3d 3d 20 75 70 2e 73 | 68 61 72 20 3d 3d 3d 3d |=== up.s|har ====|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 0a 46 72 | 6f 6d 20 73 70 61 72 6b |=====.Fr|om spark|
|00000430| 79 66 73 21 61 6d 65 73 | 21 61 70 70 6c 65 21 62 |yfs!ames|!apple!b|
|00000440| 72 75 74 75 73 2e 63 73 | 2e 75 69 75 63 2e 65 64 |rutus.cs|.uiuc.ed|
|00000450| 75 21 73 61 6d 73 75 6e | 67 21 67 69 6e 6f 73 6b |u!samsun|g!ginosk|
|00000460| 6f 21 75 75 6e 65 74 21 | 61 6c 6c 62 65 72 79 20 |o!uunet!|allbery |
|00000470| 54 75 65 20 4f 63 74 20 | 33 31 20 31 30 3a 34 39 |Tue Oct |31 10:49|
|00000480| 3a 33 34 20 50 53 54 20 | 31 39 38 39 0a 0a 50 6f |:34 PST |1989..Po|
|00000490| 73 74 69 6e 67 2d 6e 75 | 6d 62 65 72 3a 20 56 6f |sting-nu|mber: Vo|
|000004a0| 6c 75 6d 65 20 38 2c 20 | 49 73 73 75 65 20 39 35 |lume 8, |Issue 95|
|000004b0| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 6a |.Submitt|ed-by: j|
|000004c0| 67 72 65 65 6c 79 40 63 | 69 73 2e 6f 68 69 6f 2d |greely@c|is.ohio-|
|000004d0| 73 74 61 74 65 2e 65 64 | 75 20 28 4a 20 47 72 65 |state.ed|u (J Gre|
|000004e0| 65 6c 79 29 0a 41 72 63 | 68 69 76 65 2d 6e 61 6d |ely).Arc|hive-nam|
|000004f0| 65 3a 20 75 70 0a 0a 54 | 68 69 73 20 70 61 63 6b |e: up..T|his pack|
|00000500| 61 67 65 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |age allo|ws you t|
|00000510| 6f 20 70 72 69 6e 74 20 | 63 6f 6e 66 6f 72 6d 69 |o print |conformi|
|00000520| 6e 67 20 50 53 20 66 69 | 6c 65 73 20 6e 2d 75 70 |ng PS fi|les n-up|
|00000530| 2c 20 77 69 74 68 20 74 | 68 65 0a 73 63 61 6c 69 |, with t|he.scali|
|00000540| 6e 67 2c 20 72 6f 74 61 | 74 69 6f 6e 2c 20 61 6e |ng, rota|tion, an|
|00000550| 64 20 70 61 67 65 20 70 | 6f 73 69 74 69 6f 6e 69 |d page p|ositioni|
|00000560| 6e 67 20 63 6f 64 65 20 | 6b 65 70 74 20 69 6e 20 |ng code |kept in |
|00000570| 61 20 72 65 61 64 61 62 | 6c 65 0a 63 6f 6e 66 69 |a readab|le.confi|
|00000580| 67 75 72 61 74 69 6f 6e | 20 66 69 6c 65 2e 20 20 |guration| file. |
|00000590| 49 74 20 69 6e 63 6c 75 | 64 65 73 20 61 20 75 74 |It inclu|des a ut|
|000005a0| 69 6c 69 74 79 20 74 6f | 20 63 72 65 61 74 65 20 |ility to| create |
|000005b0| 6e 75 6d 62 65 72 65 64 | 20 74 65 73 74 0a 70 61 |numbered| test.pa|
|000005c0| 67 65 73 2c 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |ges, as |well as |
|000005d0| 6f 6e 65 20 74 68 61 74 | 20 72 65 61 72 72 61 6e |one that| rearran|
|000005e0| 67 65 73 20 74 68 65 20 | 70 61 67 65 73 20 69 6e |ges the |pages in|
|000005f0| 20 61 20 50 6f 73 74 53 | 63 72 69 70 74 20 66 69 | a PostS|cript fi|
|00000600| 6c 65 0a 69 6e 74 6f 20 | 73 69 67 6e 61 74 75 72 |le.into |signatur|
|00000610| 65 20 6f 72 64 65 72 2c | 20 66 6f 72 20 70 72 6f |e order,| for pro|
|00000620| 64 75 63 69 6e 67 20 74 | 77 6f 2d 75 70 2c 20 64 |ducing t|wo-up, d|
|00000630| 6f 75 62 6c 65 2d 73 69 | 64 65 64 20 62 6f 6f 6b |ouble-si|ded book|
|00000640| 6c 65 74 73 2e 0a 54 68 | 65 20 73 63 72 69 70 74 |lets..Th|e script|
|00000650| 73 20 61 72 65 20 77 72 | 69 74 74 65 6e 20 69 6e |s are wr|itten in|
|00000660| 20 50 65 72 6c 2c 20 61 | 6e 64 20 72 65 71 75 69 | Perl, a|nd requi|
|00000670| 72 65 20 74 68 61 74 20 | 76 65 72 73 69 6f 6e 20 |re that |version |
|00000680| 33 2e 30 20 62 65 0a 61 | 76 61 69 6c 61 62 6c 65 |3.0 be.a|vailable|
|00000690| 2e 20 20 49 66 20 79 6f | 75 20 64 6f 6e 27 74 20 |. If yo|u don't |
|000006a0| 68 61 76 65 20 50 65 72 | 6c 2c 20 68 6f 77 2d 74 |have Per|l, how-t|
|000006b0| 6f 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 61 |o instru|ctions a|
|000006c0| 72 65 20 70 72 6f 76 69 | 64 65 64 0a 66 6f 72 20 |re provi|ded.for |
|000006d0| 63 6f 6e 76 65 72 74 69 | 6e 67 20 74 6f 20 61 6e |converti|ng to an|
|000006e0| 6f 74 68 65 72 20 6c 61 | 6e 67 75 61 67 65 2e 20 |other la|nguage. |
|000006f0| 20 49 74 20 69 73 20 6b | 6e 6f 77 6e 20 74 6f 20 | It is k|nown to |
|00000700| 77 6f 72 6b 20 6f 6e 20 | 74 68 65 20 6f 75 74 70 |work on |the outp|
|00000710| 75 74 0a 6f 66 20 65 6e | 73 63 72 69 70 74 2c 20 |ut.of en|script, |
|00000720| 70 73 63 61 74 2c 20 70 | 73 64 69 74 20 28 61 6c |pscat, p|sdit (al|
|00000730| 6c 20 66 72 6f 6d 20 74 | 68 65 20 41 64 6f 62 65 |l from t|he Adobe|
|00000740| 20 54 72 61 6e 53 63 72 | 69 70 74 20 70 61 63 6b | TranScr|ipt pack|
|00000750| 61 67 65 29 2c 20 74 68 | 65 0a 41 64 6f 62 65 20 |age), th|e.Adobe |
|00000760| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 73 75 |document|ation su|
|00000770| 70 70 6c 69 65 64 20 77 | 69 74 68 20 4e 65 58 54 |pplied w|ith NeXT|
|00000780| 20 72 65 6c 65 61 73 65 | 20 31 2e 30 2c 20 61 6e | release| 1.0, an|
|00000790| 64 20 61 62 73 6f 6c 75 | 74 65 6c 79 0a 2a 6e 6f |d absolu|tely.*no|
|000007a0| 2a 20 64 76 69 2d 74 6f | 2d 50 53 20 63 6f 6e 76 |* dvi-to|-PS conv|
|000007b0| 65 72 74 65 72 20 28 64 | 76 69 70 73 20 34 2e 32 |erter (d|vips 4.2|
|000007c0| 20 73 65 65 6d 73 20 74 | 68 65 20 6d 6f 73 74 20 | seems t|he most |
|000007d0| 70 72 6f 6d 69 73 69 6e | 67 2c 20 61 6e 64 20 49 |promisin|g, and I|
|000007e0| 27 6d 0a 77 6f 72 6b 69 | 6e 67 20 6f 6e 20 61 70 |'m.worki|ng on ap|
|000007f0| 70 72 6f 70 72 69 61 74 | 65 20 68 61 63 6b 73 29 |propriat|e hacks)|
|00000800| 2e 0a 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 75 70 2f 52 45 41 44 4d | 45 00 00 00 00 00 00 00 |up/READM|E.......|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00000a70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000a80| 20 20 20 36 33 32 36 20 | 20 34 35 32 33 33 36 35 | 6326 | 4523365|
|00000a90| 33 32 35 20 20 20 35 34 | 34 37 00 20 00 00 00 00 |325 54|47. ....|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 09 09 20 20 20 20 55 70 | 2c 20 61 20 50 6f 73 74 |.. Up|, a Post|
|00000c10| 53 63 72 69 70 74 20 70 | 72 69 6e 74 20 75 74 69 |Script p|rint uti|
|00000c20| 6c 69 74 79 0a 09 20 20 | 20 20 68 61 63 6b 65 64 |lity.. | hacked|
|00000c30| 20 74 6f 67 65 74 68 65 | 72 20 77 69 74 68 20 61 | togethe|r with a|
|00000c40| 20 74 77 6f 2d 62 79 2d | 66 6f 75 72 20 62 79 20 | two-by-|four by |
|00000c50| 4a 20 47 72 65 65 6c 79 | 0a 09 09 20 20 20 20 20 |J Greely|... |
|00000c60| 28 6a 67 72 65 65 6c 79 | 40 63 69 73 2e 6f 68 69 |(jgreely|@cis.ohi|
|00000c70| 6f 2d 73 74 61 74 65 2e | 65 64 75 29 0a 0a 0a 54 |o-state.|edu)...T|
|00000c80| 68 69 73 20 70 61 63 6b | 61 67 65 20 61 6c 6c 6f |his pack|age allo|
|00000c90| 77 73 20 79 6f 75 20 74 | 6f 20 70 72 69 6e 74 20 |ws you t|o print |
|00000ca0| 63 6f 6e 66 6f 72 6d 69 | 6e 67 20 50 53 20 66 69 |conformi|ng PS fi|
|00000cb0| 6c 65 73 20 6e 2d 75 70 | 2c 20 77 69 74 68 20 74 |les n-up|, with t|
|00000cc0| 68 65 0a 73 63 61 6c 69 | 6e 67 2c 20 72 6f 74 61 |he.scali|ng, rota|
|00000cd0| 74 69 6f 6e 2c 20 61 6e | 64 20 70 61 67 65 20 70 |tion, an|d page p|
|00000ce0| 6f 73 69 74 69 6f 6e 69 | 6e 67 20 63 6f 64 65 20 |ositioni|ng code |
|00000cf0| 6b 65 70 74 20 69 6e 20 | 61 20 72 65 61 64 61 62 |kept in |a readab|
|00000d00| 6c 65 0a 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |le.confi|guration|
|00000d10| 20 66 69 6c 65 2e 20 20 | 49 74 20 68 61 73 20 73 | file. |It has s|
|00000d20| 75 63 63 65 73 73 66 75 | 6c 6c 79 20 62 65 65 6e |uccessfu|lly been|
|00000d30| 20 75 73 65 64 20 6f 6e | 20 74 68 65 20 6f 75 74 | used on| the out|
|00000d40| 70 75 74 20 6f 66 0a 70 | 74 72 6f 66 66 2c 20 65 |put of.p|troff, e|
|00000d50| 6e 73 63 72 69 70 74 2c | 20 70 73 64 69 74 20 28 |nscript,| psdit (|
|00000d60| 61 6c 6c 20 66 72 6f 6d | 20 41 64 6f 62 65 27 73 |all from| Adobe's|
|00000d70| 20 54 72 61 6e 53 63 72 | 69 70 74 20 70 61 63 6b | TranScr|ipt pack|
|00000d80| 61 67 65 29 2c 20 61 6e | 64 20 74 68 65 0a 41 64 |age), an|d the.Ad|
|00000d90| 6f 62 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |obe docu|mentatio|
|00000da0| 6e 20 73 75 70 70 6c 69 | 65 64 20 77 69 74 68 20 |n suppli|ed with |
|00000db0| 4e 65 58 54 20 72 65 6c | 65 61 73 65 20 31 2e 30 |NeXT rel|ease 1.0|
|00000dc0| 2c 20 61 6e 64 20 73 68 | 6f 75 6c 64 20 77 6f 72 |, and sh|ould wor|
|00000dd0| 6b 20 6f 6e 0a 61 6e 79 | 20 66 69 6c 65 20 74 68 |k on.any| file th|
|00000de0| 61 74 20 6f 62 65 79 73 | 20 74 68 65 20 72 75 6c |at obeys| the rul|
|00000df0| 65 73 20 74 68 65 20 77 | 61 79 20 49 20 61 73 73 |es the w|ay I ass|
|00000e00| 75 6d 65 20 28 6e 6f 74 | 65 3a 20 69 74 20 64 6f |ume (not|e: it do|
|00000e10| 65 73 20 6e 6f 74 0a 63 | 75 72 72 65 6e 74 6c 79 |es not.c|urrently|
|00000e20| 20 77 6f 72 6b 20 77 69 | 74 68 20 61 6e 79 20 6b | work wi|th any k|
|00000e30| 6e 6f 77 6e 20 64 76 69 | 2d 74 6f 2d 50 53 20 63 |nown dvi|-to-PS c|
|00000e40| 6f 6e 76 65 72 74 65 72 | 3b 20 49 27 6d 20 6d 61 |onverter|; I'm ma|
|00000e50| 6b 69 6e 67 20 73 6f 6d | 65 0a 63 68 61 6e 67 65 |king som|e.change|
|00000e60| 73 20 74 6f 20 6d 61 6b | 65 20 69 74 20 77 6f 72 |s to mak|e it wor|
|00000e70| 6b 20 77 69 74 68 20 64 | 76 69 70 73 20 34 2e 32 |k with d|vips 4.2|
|00000e80| 20 28 61 76 61 69 6c 61 | 62 6c 65 20 66 6f 72 20 | (availa|ble for |
|00000e90| 61 6e 6f 6e 79 6d 6f 75 | 73 20 66 74 70 20 61 74 |anonymou|s ftp at|
|00000ea0| 0a 6c 61 62 72 65 61 2e | 73 74 61 6e 66 6f 72 64 |.labrea.|stanford|
|00000eb0| 2e 65 64 75 29 2c 20 62 | 75 74 20 74 68 65 79 27 |.edu), b|ut they'|
|00000ec0| 72 65 20 6e 6f 74 20 64 | 6f 6e 65 20 79 65 74 29 |re not d|one yet)|
|00000ed0| 2e 20 20 54 68 65 20 6d | 61 6a 6f 72 20 66 65 61 |. The m|ajor fea|
|00000ee0| 74 75 72 65 20 69 73 0a | 74 68 65 20 61 62 69 6c |ture is.|the abil|
|00000ef0| 69 74 79 20 74 6f 20 63 | 72 65 61 74 65 20 79 6f |ity to c|reate yo|
|00000f00| 75 72 20 6f 77 6e 20 6c | 61 79 6f 75 74 73 2c 20 |ur own l|ayouts, |
|00000f10| 77 69 74 68 20 61 72 62 | 69 74 72 61 72 79 20 73 |with arb|itrary s|
|00000f20| 63 61 6c 69 6e 67 2c 0a | 74 72 61 6e 73 6c 61 74 |caling,.|translat|
|00000f30| 69 6f 6e 73 2c 20 61 6e | 64 20 72 6f 74 61 74 69 |ions, an|d rotati|
|00000f40| 6f 6e 73 2e 20 20 54 68 | 65 20 6f 75 74 70 75 74 |ons. Th|e output|
|00000f50| 20 63 61 6e 20 62 65 20 | 66 65 64 20 62 61 63 6b | can be |fed back|
|00000f60| 20 74 68 72 6f 75 67 68 | 2c 20 66 6f 72 0a 66 75 | through|, for.fu|
|00000f70| 72 74 68 65 72 20 72 65 | 64 75 63 74 69 6f 6e 2f |rther re|duction/|
|00000f80| 64 65 73 74 72 75 63 74 | 69 6f 6e 2e 0a 0a 20 20 |destruct|ion... |
|00000f90| 57 61 72 6e 69 6e 67 3a | 20 69 66 20 79 6f 75 20 |Warning:| if you |
|00000fa0| 64 6f 6e 27 74 20 68 61 | 76 65 20 4c 61 72 72 79 |don't ha|ve Larry|
|00000fb0| 20 57 61 6c 6c 27 73 20 | 50 65 72 6c 20 6c 61 6e | Wall's |Perl lan|
|00000fc0| 67 75 61 67 65 20 69 6e | 73 74 61 6c 6c 65 64 2c |guage in|stalled,|
|00000fd0| 0a 74 68 69 73 20 75 74 | 69 6c 69 74 79 20 77 69 |.this ut|ility wi|
|00000fe0| 6c 6c 20 62 65 20 75 73 | 65 6c 65 73 73 20 74 6f |ll be us|eless to|
|00000ff0| 20 79 6f 75 2e 20 20 49 | 74 27 73 20 6e 6f 74 20 | you. I|t's not |
|00001000| 68 61 72 64 20 28 6f 6b | 2c 20 74 72 69 76 69 61 |hard (ok|, trivia|
|00001010| 6c 29 20 74 6f 0a 63 6f | 6e 76 65 72 74 20 69 74 |l) to.co|nvert it|
|00001020| 20 74 6f 20 4e 61 77 6b | 20 6f 72 20 43 2c 20 61 | to Nawk| or C, a|
|00001030| 6e 64 20 49 27 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |nd I'll |probably|
|00001040| 20 67 65 74 20 61 72 6f | 75 6e 64 20 74 6f 20 69 | get aro|und to i|
|00001050| 74 20 73 6f 6f 6e 2c 20 | 62 75 74 0a 66 6f 72 20 |t soon, |but.for |
|00001060| 6e 6f 77 20 79 6f 75 20 | 6e 65 65 64 20 50 65 72 |now you |need Per|
|00001070| 6c 20 28 76 65 72 73 69 | 6f 6e 20 33 2e 30 29 2e |l (versi|on 3.0).|
|00001080| 20 20 44 65 62 61 74 65 | 73 20 6f 6e 20 74 68 65 | Debate|s on the|
|00001090| 20 6d 65 72 69 74 73 20 | 6f 66 20 50 65 72 6c 20 | merits |of Perl |
|000010a0| 61 73 0a 61 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |as.a pro|gramming|
|000010b0| 20 6c 61 6e 67 75 61 67 | 65 20 61 72 65 20 64 69 | languag|e are di|
|000010c0| 73 63 6f 75 72 61 67 65 | 64 20 62 79 20 74 68 65 |scourage|d by the|
|000010d0| 20 61 75 74 68 6f 72 2e | 20 20 49 66 20 50 65 72 | author.| If Per|
|000010e0| 6c 20 69 73 20 6e 6f 74 | 0a 6c 6f 63 61 74 65 64 |l is not|.located|
|000010f0| 20 69 6e 20 2f 75 73 72 | 2f 62 69 6e 2c 20 79 6f | in /usr|/bin, yo|
|00001100| 75 27 6c 6c 20 6e 65 65 | 64 20 74 6f 20 63 68 61 |u'll nee|d to cha|
|00001110| 6e 67 65 20 74 68 65 20 | 66 69 72 73 74 20 6c 69 |nge the |first li|
|00001120| 6e 65 20 6f 66 20 65 61 | 63 68 0a 65 78 65 63 75 |ne of ea|ch.execu|
|00001130| 74 61 62 6c 65 2e 0a 0a | 20 20 54 6f 20 75 73 65 |table...| To use|
|00001140| 2c 20 75 6e 70 61 63 6b | 20 74 68 65 20 73 68 61 |, unpack| the sha|
|00001150| 72 20 66 69 6c 65 20 73 | 6f 6d 65 77 68 65 72 65 |r file s|omewhere|
|00001160| 2c 20 65 64 69 74 20 74 | 68 65 20 74 6f 70 20 6f |, edit t|he top o|
|00001170| 66 20 4d 61 6b 65 66 69 | 6c 65 20 74 6f 0a 69 6e |f Makefi|le to.in|
|00001180| 64 69 63 61 74 65 20 77 | 68 65 72 65 20 74 68 69 |dicate w|here thi|
|00001190| 6e 67 73 20 73 68 6f 75 | 6c 64 20 67 6f 2c 20 61 |ngs shou|ld go, a|
|000011a0| 6e 64 20 74 79 70 65 20 | 22 6d 61 6b 65 20 69 6e |nd type |"make in|
|000011b0| 73 74 61 6c 6c 22 2e 20 | 49 74 20 77 69 6c 6c 0a |stall". |It will.|
|000011c0| 69 6e 73 74 61 6c 6c 20 | 73 65 76 65 72 61 6c 20 |install |several |
|000011d0| 73 79 6d 6c 69 6e 6b 73 | 20 74 6f 20 74 68 65 20 |symlinks| to the |
|000011e0| 73 63 72 69 70 74 2c 20 | 61 73 20 77 65 6c 6c 20 |script, |as well |
|000011f0| 61 73 20 61 20 67 65 6e | 65 72 61 6c 0a 63 6f 6e |as a gen|eral.con|
|00001200| 66 69 67 75 72 61 74 69 | 6f 6e 20 66 69 6c 65 2c |figurati|on file,|
|00001210| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 6f 76 | which c|an be ov|
|00001220| 65 72 72 69 64 64 65 6e | 20 62 79 20 74 68 65 20 |erridden| by the |
|00001230| 75 73 65 72 2e 0a 0a 20 | 20 43 75 72 72 65 6e 74 |user... | Current|
|00001240| 6c 79 2c 20 69 74 20 69 | 6e 73 74 61 6c 6c 73 20 |ly, it i|nstalls |
|00001250| 6c 69 6e 6b 73 20 74 6f | 20 70 72 69 6e 74 20 32 |links to| print 2|
|00001260| 2c 20 34 2c 20 36 2c 20 | 61 6e 64 20 31 36 20 70 |, 4, 6, |and 16 p|
|00001270| 61 67 65 73 20 70 65 72 | 0a 73 68 65 65 74 2c 20 |ages per|.sheet, |
|00001280| 61 6e 64 20 74 68 65 20 | 73 75 70 70 6c 69 65 64 |and the |supplied|
|00001290| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 66 | configu|ration f|
|000012a0| 69 6c 65 20 68 61 73 20 | 73 61 6d 70 6c 65 20 6c |ile has |sample l|
|000012b0| 61 79 6f 75 74 73 20 66 | 6f 72 0a 64 6f 69 6e 67 |ayouts f|or.doing|
|000012c0| 20 28 61 6d 6f 6e 67 20 | 6f 74 68 65 72 73 29 20 | (among |others) |
|000012d0| 38 2d 75 70 2c 20 34 2d | 75 70 20 69 6e 20 67 72 |8-up, 4-|up in gr|
|000012e0| 65 65 74 69 6e 67 2d 63 | 61 72 64 20 70 6f 73 69 |eeting-c|ard posi|
|000012f0| 74 69 6f 6e 73 2c 20 31 | 30 2d 75 70 20 69 6e 20 |tions, 1|0-up in |
|00001300| 61 0a 73 68 72 69 6e 6b | 69 6e 67 20 73 70 69 72 |a.shrink|ing spir|
|00001310| 61 6c 2c 20 61 6e 64 20 | 6d 6f 72 65 2e 20 20 34 |al, and |more. 4|
|00001320| 75 70 20 61 6e 64 20 31 | 36 75 70 20 73 69 6d 70 |up and 1|6up simp|
|00001330| 6c 79 20 73 63 61 6c 65 | 20 74 68 65 20 70 61 67 |ly scale| the pag|
|00001340| 65 20 62 79 20 2e 35 0a | 61 6e 64 20 2e 32 35 2c |e by .5.|and .25,|
|00001350| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 20 28 77 | respect|ively (w|
|00001360| 68 69 74 65 20 6c 69 65 | 3b 20 72 65 61 64 20 6d |hite lie|; read m|
|00001370| 79 20 65 78 63 75 73 65 | 20 69 6e 20 74 68 65 20 |y excuse| in the |
|00001380| 63 6f 6e 66 69 67 20 66 | 69 6c 65 29 2e 0a 32 75 |config f|ile)..2u|
|00001390| 70 20 61 6e 64 20 36 75 | 70 20 61 72 65 20 72 6f |p and 6u|p are ro|
|000013a0| 74 61 74 65 64 2c 20 61 | 6e 64 20 74 68 65 20 70 |tated, a|nd the p|
|000013b0| 61 67 65 20 70 6f 73 69 | 74 69 6f 6e 69 6e 67 20 |age posi|tioning |
|000013c0| 69 73 20 67 69 76 65 6e | 20 62 65 6c 6f 77 3a 0a |is given| below:.|
|000013d0| 0a 09 09 20 20 20 20 2b | 2d 2d 2d 2d 2d 2b 2d 2d |... +|-----+--|
|000013e0| 2d 2d 2d 2b 20 20 20 2b | 2d 2d 2d 2b 2d 2d 2d 2b |---+ +|---+---+|
|000013f0| 2d 2d 2d 2b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |---+. | |
|00001400| 20 20 20 20 20 20 20 20 | 20 7c 20 20 20 20 20 7c | | | ||
|00001410| 20 20 20 20 20 7c 20 20 | 20 7c 20 31 20 7c 20 32 | | | | 1 | 2|
|00001420| 20 7c 20 33 20 7c 0a 20 | 20 20 20 20 20 20 20 20 | | 3 |. | |
|00001430| 20 20 20 20 20 20 20 20 | 20 20 20 7c 20 20 31 20 | | | 1 |
|00001440| 20 7c 20 20 32 20 20 7c | 20 20 20 2b 2d 2d 2d 2b | | 2 || +---+|
|00001450| 2d 2d 2d 2b 2d 2d 2d 2b | 0a 20 20 20 20 20 20 20 |---+---+|. |
|00001460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 20 | | | |
|00001470| 20 20 20 7c 20 20 20 20 | 20 7c 20 20 20 7c 20 34 | | | | | 4|
|00001480| 20 7c 20 35 20 7c 20 36 | 20 7c 0a 20 20 20 20 20 | | 5 | 6| |. |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2b | | +|
|000014a0| 2d 2d 2d 2d 2d 2b 2d 2d | 2d 2d 2d 2b 20 20 20 2b |-----+--|---+ +|
|000014b0| 2d 2d 2d 2b 2d 2d 2d 2b | 2d 2d 2d 2b 0a 0a 0a 20 |---+---+|---+... |
|000014c0| 20 4e 6f 74 65 20 74 6f | 20 4e 65 58 54 20 75 73 | Note to| NeXT us|
|000014d0| 65 72 73 3a 20 62 6f 74 | 68 20 50 72 65 76 69 65 |ers: bot|h Previe|
|000014e0| 77 20 61 6e 64 20 59 61 | 70 20 63 61 6e 20 62 65 |w and Ya|p can be|
|000014f0| 20 75 73 65 64 20 74 6f | 20 70 72 65 76 69 65 77 | used to| preview|
|00001500| 0a 6f 75 74 70 75 74 20 | 75 6e 64 65 72 20 72 65 |.output |under re|
|00001510| 6c 65 61 73 65 20 31 2e | 30 2e 20 20 50 72 65 76 |lease 1.|0. Prev|
|00001520| 69 6f 75 73 20 76 65 72 | 73 69 6f 6e 73 20 77 6f |ious ver|sions wo|
|00001530| 75 6c 64 6e 27 74 20 77 | 6f 72 6b 20 71 75 69 74 |uldn't w|ork quit|
|00001540| 65 0a 72 69 67 68 74 2e | 0a 0a 20 20 4e 6f 74 65 |e.right.|.. Note|
|00001550| 20 74 6f 20 70 65 6f 70 | 6c 65 20 69 6e 20 67 65 | to peop|le in ge|
|00001560| 6e 65 72 61 6c 3a 20 61 | 66 74 65 72 20 49 20 66 |neral: a|fter I f|
|00001570| 69 6e 69 73 68 65 64 20 | 77 72 69 74 69 6e 67 20 |inished |writing |
|00001580| 74 68 69 73 2c 20 73 6f | 6d 65 6f 6e 65 0a 74 6f |this, so|meone.to|
|00001590| 6c 64 20 6d 65 20 6f 66 | 20 61 74 20 6c 65 61 73 |ld me of| at leas|
|000015a0| 74 20 6f 6e 65 20 6f 74 | 68 65 72 20 6e 2d 75 70 |t one ot|her n-up|
|000015b0| 20 75 74 69 6c 69 74 79 | 2e 20 20 54 68 65 20 6f | utility|. The o|
|000015c0| 6e 65 20 49 27 76 65 20 | 73 65 65 6e 20 77 6f 72 |ne I've |seen wor|
|000015d0| 6b 73 0a 62 79 20 77 68 | 61 74 20 6d 69 67 68 74 |ks.by wh|at might|
|000015e0| 20 62 65 20 63 61 6c 6c | 65 64 20 65 6c 65 67 61 | be call|ed elega|
|000015f0| 6e 74 20 50 6f 73 74 53 | 63 72 69 70 74 20 68 61 |nt PostS|cript ha|
|00001600| 63 6b 69 6e 67 2c 20 62 | 75 74 20 49 20 74 68 69 |cking, b|ut I thi|
|00001610| 6e 6b 20 6d 69 6e 65 0a | 73 6f 6c 76 65 73 20 61 |nk mine.|solves a|
|00001620| 20 64 69 66 66 65 72 65 | 6e 74 20 70 72 6f 62 6c | differe|nt probl|
|00001630| 65 6d 2e 0a 0a 20 20 42 | 75 67 73 2c 20 73 75 67 |em... B|ugs, sug|
|00001640| 67 65 73 74 69 6f 6e 73 | 2c 20 6f 66 66 65 72 73 |gestions|, offers|
|00001650| 20 6f 66 20 6d 6f 6e 65 | 79 20 61 6e 64 20 73 61 | of mone|y and sa|
|00001660| 63 72 69 66 69 63 65 73 | 2c 20 61 6e 64 20 61 6e |crifices|, and an|
|00001670| 79 74 68 69 6e 67 0a 69 | 6e 74 65 72 65 73 74 69 |ything.i|nteresti|
|00001680| 6e 67 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 69 |ng done |with thi|
|00001690| 73 20 70 61 63 6b 61 67 | 65 20 77 69 6c 6c 20 62 |s packag|e will b|
|000016a0| 65 20 63 68 65 65 72 66 | 75 6c 6c 79 20 61 63 63 |e cheerf|ully acc|
|000016b0| 65 70 74 65 64 2e 0a 44 | 65 73 70 69 74 65 20 72 |epted..D|espite r|
|000016c0| 75 6d 6f 72 73 20 74 6f | 20 74 68 65 20 63 6f 6e |umors to| the con|
|000016d0| 74 72 61 72 79 2c 20 49 | 20 61 6d 20 2a 6e 6f 74 |trary, I| am *not|
|000016e0| 2a 20 61 20 62 6c 61 63 | 6b 20 68 6f 6c 65 20 66 |* a blac|k hole f|
|000016f0| 6f 72 20 65 2d 6d 61 69 | 6c 2e 0a 0a 0a 41 64 64 |or e-mai|l....Add|
|00001700| 69 74 69 6f 6e 61 6c 20 | 75 74 69 6c 69 74 69 65 |itional |utilitie|
|00001710| 73 20 73 75 70 70 6c 69 | 65 64 3a 0a 0a 70 61 72 |s suppli|ed:..par|
|00001720| 72 09 2d 20 50 61 67 65 | 20 41 52 52 61 6e 67 65 |r.- Page| ARRange|
|00001730| 72 2e 20 20 46 6f 72 20 | 61 72 62 69 74 72 61 72 |r. For |arbitrar|
|00001740| 79 20 72 65 6f 72 64 65 | 72 69 6e 67 20 6f 66 20 |y reorde|ring of |
|00001750| 70 61 67 65 73 20 69 6e | 20 61 0a 09 20 20 63 6f |pages in| a.. co|
|00001760| 6e 66 6f 72 6d 69 6e 67 | 20 50 53 20 66 69 6c 65 |nforming| PS file|
|00001770| 2e 20 20 53 77 69 74 63 | 68 65 73 20 61 72 65 20 |. Switc|hes are |
|00001780| 70 72 6f 76 69 64 65 64 | 20 74 6f 20 61 75 74 6f |provided| to auto|
|00001790| 6d 61 74 69 63 61 6c 6c | 79 0a 09 20 20 64 6f 20 |maticall|y.. do |
|000017a0| 73 69 67 6e 61 74 75 72 | 65 2d 6f 72 64 65 72 20 |signatur|e-order |
|000017b0| 70 72 69 6e 74 69 6e 67 | 20 66 6f 72 20 74 77 6f |printing| for two|
|000017c0| 2d 75 70 2c 20 6c 65 66 | 74 2d 74 6f 2d 72 69 67 |-up, lef|t-to-rig|
|000017d0| 68 74 0a 09 20 20 6c 61 | 79 6f 75 74 73 20 28 22 |ht.. la|youts ("|
|000017e0| 75 70 20 2d 6e 20 70 75 | 70 22 29 2e 20 20 50 61 |up -n pu|p"). Pa|
|000017f0| 67 65 73 20 63 61 6e 20 | 62 65 20 70 72 69 6e 74 |ges can |be print|
|00001800| 65 64 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 63 |ed more |than onc|
|00001810| 65 0a 09 20 20 6f 72 20 | 6e 6f 74 20 61 74 20 61 |e.. or |not at a|
|00001820| 6c 6c 2c 20 61 6e 64 20 | 62 6c 61 6e 6b 20 70 61 |ll, and |blank pa|
|00001830| 67 65 73 20 6d 61 79 20 | 62 65 20 69 6e 73 65 72 |ges may |be inser|
|00001840| 74 65 64 20 61 6e 79 77 | 68 65 72 65 2e 0a 0a 6d |ted anyw|here...m|
|00001850| 61 6b 65 75 70 09 2d 20 | 67 65 6e 65 72 61 74 65 |akeup.- |generate|
|00001860| 73 20 6e 75 6d 62 65 72 | 65 64 20 74 65 73 74 20 |s number|ed test |
|00001870| 70 61 67 65 73 2c 20 66 | 6f 72 20 64 65 62 75 67 |pages, f|or debug|
|00001880| 67 69 6e 67 20 6e 65 77 | 20 6c 61 79 6f 75 74 73 |ging new| layouts|
|00001890| 0a 0a 2d 2d 0a 4a 20 47 | 72 65 65 6c 79 20 28 6a |..--.J G|reely (j|
|000018a0| 67 72 65 65 6c 79 40 63 | 69 73 2e 6f 68 69 6f 2d |greely@c|is.ohio-|
|000018b0| 73 74 61 74 65 2e 65 64 | 75 3b 20 6f 73 75 2d 63 |state.ed|u; osu-c|
|000018c0| 69 73 21 6a 67 72 65 65 | 6c 79 29 2c 20 38 39 2f |is!jgree|ly), 89/|
|000018d0| 31 30 2f 32 33 0a 00 00 | 00 00 00 00 00 00 00 00 |10/23...|........|
|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| 75 70 2f 48 6f 77 54 6f | 00 00 00 00 00 00 00 00 |up/HowTo|........|
|00001a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00001a70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00001a80| 20 20 31 33 32 32 30 20 | 20 34 35 32 33 33 36 35 | 13220 | 4523365|
|00001a90| 33 32 37 20 20 20 35 35 | 36 33 00 20 00 00 00 00 |327 55|63. ....|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 51 75 69 63 6b 20 73 75 | 6d 6d 61 72 79 20 6f 66 |Quick su|mmary of|
|00001c10| 20 77 68 61 74 20 74 68 | 69 73 20 70 61 63 6b 61 | what th|is packa|
|00001c20| 67 65 20 64 6f 65 73 2c | 20 61 6e 64 20 68 6f 77 |ge does,| and how|
|00001c30| 20 74 6f 20 64 75 70 6c | 69 63 61 74 65 20 69 74 | to dupl|icate it|
|00001c40| 73 0a 65 66 66 65 63 74 | 73 20 69 66 20 79 6f 75 |s.effect|s if you|
|00001c50| 20 64 6f 6e 27 74 20 6c | 69 6b 65 20 6d 79 20 63 | don't l|ike my c|
|00001c60| 6f 64 65 2e 0a 0a 41 20 | 63 6f 6e 66 6f 72 6d 69 |ode...A |conformi|
|00001c70| 6e 67 20 50 6f 73 74 53 | 63 72 69 70 74 20 66 69 |ng PostS|cript fi|
|00001c80| 6c 65 2c 20 66 6f 72 20 | 6d 79 20 70 75 72 70 6f |le, for |my purpo|
|00001c90| 73 65 73 2c 20 69 73 20 | 61 6e 79 74 68 69 6e 67 |ses, is |anything|
|00001ca0| 20 74 68 61 74 20 6d 65 | 65 74 73 0a 61 6c 6c 20 | that me|ets.all |
|00001cb0| 6f 66 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |of the f|ollowing|
|00001cc0| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 73 3a 0a 0a | require|ments:..|
|00001cd0| 31 29 20 66 69 72 73 74 | 20 6c 69 6e 65 20 6d 75 |1) first| line mu|
|00001ce0| 73 74 20 62 65 67 69 6e | 20 77 69 74 68 20 74 68 |st begin| with th|
|00001cf0| 65 20 73 74 72 69 6e 67 | 20 27 25 21 50 53 2d 41 |e string| '%!PS-A|
|00001d00| 64 6f 62 65 27 2e 0a 32 | 29 20 45 61 63 68 20 70 |dobe'..2|) Each p|
|00001d10| 61 67 65 20 6d 75 73 74 | 20 62 65 67 69 6e 20 77 |age must| begin w|
|00001d20| 69 74 68 20 61 20 27 25 | 25 50 61 67 65 3a 27 20 |ith a '%|%Page:' |
|00001d30| 6c 69 6e 65 2c 20 61 6e | 64 20 74 68 65 20 67 72 |line, an|d the gr|
|00001d40| 61 70 68 69 63 73 20 73 | 74 61 74 65 0a 20 20 20 |aphics s|tate. |
|00001d50| 6d 75 73 74 20 62 65 20 | 74 68 65 20 64 65 66 61 |must be |the defa|
|00001d60| 75 6c 74 20 61 74 20 74 | 68 61 74 20 70 6f 69 6e |ult at t|hat poin|
|00001d70| 74 20 28 6e 6f 20 74 72 | 61 6e 73 6c 61 74 69 6f |t (no tr|anslatio|
|00001d80| 6e 2c 20 73 63 61 6c 69 | 6e 67 2c 20 6f 72 0a 20 |n, scali|ng, or. |
|00001d90| 20 20 72 6f 74 61 74 69 | 6f 6e 20 6f 66 20 74 68 | rotati|on of th|
|00001da0| 65 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 73 70 61 |e coordi|nate spa|
|00001db0| 63 65 20 63 61 6e 20 63 | 61 72 72 79 20 6f 76 65 |ce can c|arry ove|
|00001dc0| 72 20 62 65 74 77 65 65 | 6e 20 70 61 67 65 73 29 |r betwee|n pages)|
|00001dd0| 2e 0a 20 20 20 54 68 65 | 20 70 61 67 65 73 20 6d |.. The| pages m|
|00001de0| 75 73 74 20 62 65 20 6e | 75 6d 62 65 72 65 64 20 |ust be n|umbered |
|00001df0| 73 74 61 72 74 69 6e 67 | 20 61 74 20 31 2c 20 77 |starting| at 1, w|
|00001e00| 68 69 63 68 20 69 73 20 | 61 20 62 69 74 20 70 65 |hich is |a bit pe|
|00001e10| 64 61 6e 74 69 63 0a 20 | 20 20 6f 66 20 6d 65 2e |dantic. | of me.|
|00001e20| 20 20 49 74 27 73 20 70 | 61 72 74 20 6f 66 20 74 | It's p|art of t|
|00001e30| 68 65 20 73 70 65 63 2c | 20 62 75 74 20 69 74 20 |he spec,| but it |
|00001e40| 69 73 20 62 79 20 6e 6f | 20 6d 65 61 6e 73 20 6e |is by no| means n|
|00001e50| 65 63 65 73 73 61 72 79 | 20 66 6f 72 0a 20 20 20 |ecessary| for. |
|00001e60| 74 68 65 20 63 6f 64 65 | 20 74 6f 20 77 6f 72 6b |the code| to work|
|00001e70| 2e 20 20 49 74 27 73 20 | 61 20 6f 6e 65 2d 6c 69 |. It's |a one-li|
|00001e80| 6e 65 20 63 68 65 63 6b | 2c 20 61 6e 64 20 49 27 |ne check|, and I'|
|00001e90| 6d 20 74 68 69 6e 6b 69 | 6e 67 20 6f 66 20 6a 75 |m thinki|ng of ju|
|00001ea0| 73 74 0a 20 20 20 73 63 | 72 61 70 70 69 6e 67 20 |st. sc|rapping |
|00001eb0| 69 74 2e 0a 33 29 20 54 | 68 65 72 65 20 6d 75 73 |it..3) T|here mus|
|00001ec0| 74 20 62 65 20 61 20 27 | 25 25 54 72 61 69 6c 65 |t be a '|%%Traile|
|00001ed0| 72 27 20 6c 69 6e 65 2e | 0a 0a 0a 41 73 20 66 6f |r' line.|...As fo|
|00001ee0| 72 20 77 68 61 74 20 49 | 20 2a 64 6f 2a 20 77 69 |r what I| *do* wi|
|00001ef0| 74 68 20 61 6c 6c 20 74 | 68 69 73 2c 20 69 74 27 |th all t|his, it'|
|00001f00| 73 20 73 69 6d 70 6c 65 | 3a 0a 0a 31 29 20 57 68 |s simple|:..1) Wh|
|00001f10| 65 6e 20 49 20 73 65 65 | 20 74 68 65 20 27 25 21 |en I see| the '%!|
|00001f20| 50 53 2d 41 64 6f 62 65 | 27 20 6c 69 6e 65 2c 20 |PS-Adobe|' line, |
|00001f30| 49 20 69 6e 73 65 72 74 | 20 74 68 65 20 66 6f 6c |I insert| the fol|
|00001f40| 6c 6f 77 69 6e 67 20 6c | 69 6e 65 73 0a 20 20 20 |lowing l|ines. |
|00001f50| 28 69 67 6e 6f 72 69 6e | 67 20 74 68 65 20 6f 6c |(ignorin|g the ol|
|00001f60| 64 20 27 25 21 50 53 27 | 20 6c 69 6e 65 29 3a 0a |d '%!PS'| line):.|
|00001f70| 09 25 21 50 53 2d 41 64 | 6f 62 65 2d 32 2e 30 0a |.%!PS-Ad|obe-2.0.|
|00001f80| 09 25 25 50 61 67 65 73 | 3a 20 28 61 74 65 6e 64 |.%%Pages|: (atend|
|00001f90| 29 0a 20 20 20 50 61 67 | 65 20 63 6f 75 6e 74 73 |). Pag|e counts|
|00001fa0| 20 69 6e 20 74 68 65 20 | 68 65 61 64 65 72 20 61 | in the |header a|
|00001fb0| 72 65 20 66 69 72 73 74 | 2d 63 6f 6d 65 73 2c 20 |re first|-comes, |
|00001fc0| 66 69 72 73 74 2d 73 65 | 72 76 65 64 2c 20 73 6f |first-se|rved, so|
|00001fd0| 20 70 75 74 74 69 6e 67 | 0a 20 20 20 6d 69 6e 65 | putting|. mine|
|00001fe0| 20 61 74 20 74 68 65 20 | 76 65 72 79 20 74 6f 70 | at the |very top|
|00001ff0| 20 77 69 6c 6c 20 6f 76 | 65 72 72 69 64 65 20 61 | will ov|erride a|
|00002000| 6e 79 74 68 69 6e 67 20 | 74 68 61 74 20 77 61 73 |nything |that was|
|00002010| 20 69 6e 20 74 68 65 0a | 20 20 20 6f 72 69 67 69 | in the.| origi|
|00002020| 6e 61 6c 20 66 69 6c 65 | 20 28 61 6e 64 20 73 69 |nal file| (and si|
|00002030| 6e 63 65 20 74 68 65 20 | 77 68 6f 6c 65 20 69 64 |nce the |whole id|
|00002040| 65 61 20 69 73 20 74 6f | 20 63 68 61 6e 67 65 20 |ea is to| change |
|00002050| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 0a 20 20 |the numb|er of. |
|00002060| 20 70 61 67 65 73 2c 20 | 74 68 69 73 20 69 73 20 | pages, |this is |
|00002070| 27 61 20 67 6f 6f 64 20 | 74 68 69 6e 67 27 29 2e |'a good |thing').|
|00002080| 20 20 53 69 6e 63 65 20 | 49 20 64 6f 20 65 76 65 | Since |I do eve|
|00002090| 72 79 74 68 69 6e 67 20 | 69 6e 20 6f 6e 65 20 70 |rything |in one p|
|000020a0| 61 73 73 2c 0a 20 20 20 | 49 20 68 61 76 65 20 6e |ass,. |I have n|
|000020b0| 6f 20 69 64 65 61 20 68 | 6f 77 20 6d 61 6e 79 20 |o idea h|ow many |
|000020c0| 70 61 67 65 73 20 74 68 | 65 72 65 20 77 69 6c 6c |pages th|ere will|
|000020d0| 20 62 65 2c 20 73 6f 20 | 49 20 64 65 66 65 72 20 | be, so |I defer |
|000020e0| 69 74 20 75 6e 74 69 6c | 0a 20 20 20 74 68 65 20 |it until|. the |
|000020f0| 65 6e 64 2e 0a 32 29 20 | 57 68 65 6e 20 49 20 72 |end..2) |When I r|
|00002100| 65 61 63 68 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |each the| end of |
|00002110| 74 68 65 20 68 65 61 64 | 65 72 20 63 6f 6d 6d 65 |the head|er comme|
|00002120| 6e 74 73 20 28 73 69 67 | 6e 69 66 69 65 64 20 62 |nts (sig|nified b|
|00002130| 79 20 74 68 65 20 66 69 | 72 73 74 0a 20 20 20 6e |y the fi|rst. n|
|00002140| 6f 6e 2d 25 25 20 6c 69 | 6e 65 20 6f 72 20 61 6e |on-%% li|ne or an|
|00002150| 20 65 78 70 6c 69 63 69 | 74 20 25 25 45 6e 64 43 | explici|t %%EndC|
|00002160| 6f 6d 6d 65 6e 74 73 20 | 6c 69 6e 65 29 2c 20 49 |omments |line), I|
|00002170| 20 69 6e 73 65 72 74 20 | 74 68 65 0a 20 20 20 75 | insert |the. u|
|00002180| 73 65 72 2d 64 65 66 69 | 6e 65 64 20 70 72 6f 6c |ser-defi|ned prol|
|00002190| 6f 67 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 69 |og defin|itions i|
|000021a0| 6e 74 6f 20 74 68 65 69 | 72 20 6f 77 6e 20 64 69 |nto thei|r own di|
|000021b0| 63 74 69 6f 6e 61 72 79 | 2e 20 20 54 6f 0a 20 20 |ctionary|. To. |
|000021c0| 20 73 69 6d 70 6c 69 66 | 79 20 6e 65 73 74 69 6e | simplif|y nestin|
|000021d0| 67 2c 20 49 20 75 73 65 | 20 74 68 65 20 63 75 72 |g, I use| the cur|
|000021e0| 72 65 6e 74 20 50 49 44 | 20 61 73 20 70 61 72 74 |rent PID| as part|
|000021f0| 20 6f 66 20 74 68 65 20 | 64 69 63 74 69 6f 6e 61 | of the |dictiona|
|00002200| 72 79 0a 20 20 20 6e 61 | 6d 65 2e 20 20 49 20 73 |ry. na|me. I s|
|00002210| 61 76 65 20 74 68 65 20 | 6f 6c 64 20 76 61 6c 75 |ave the |old valu|
|00002220| 65 20 6f 66 20 73 68 6f | 77 70 61 67 65 20 68 65 |e of sho|wpage he|
|00002230| 72 65 2c 20 61 6e 64 20 | 72 65 64 65 66 69 6e 65 |re, and |redefine|
|00002240| 20 69 74 20 74 6f 0a 20 | 20 20 70 72 69 6e 74 20 | it to. | print |
|00002250| 6e 6f 74 68 69 6e 67 2e | 20 20 49 74 20 6c 6f 6f |nothing.| It loo|
|00002260| 6b 73 20 6c 69 6b 65 20 | 74 68 69 73 20 28 6d 6f |ks like |this (mo|
|00002270| 64 75 6c 6f 20 69 6e 74 | 65 72 70 72 65 74 61 74 |dulo int|erpretat|
|00002280| 69 6f 6e 20 6f 66 0a 20 | 20 20 76 61 72 69 61 62 |ion of. | variab|
|00002290| 6c 65 73 20 6d 61 72 6b | 65 64 20 62 79 20 3c 3e |les mark|ed by <>|
|000022a0| 29 3a 0a 09 25 25 42 65 | 67 69 6e 50 72 6f 63 53 |):..%%Be|ginProcS|
|000022b0| 65 74 3a 20 75 70 5f 70 | 72 6f 6c 6f 67 20 31 20 |et: up_p|rolog 1 |
|000022c0| 3c 70 69 64 3e 0a 09 2f | 55 70 44 69 63 74 3c 70 |<pid>../|UpDict<p|
|000022d0| 69 64 3e 20 24 70 6c 69 | 6e 65 73 20 33 20 61 64 |id> $pli|nes 3 ad|
|000022e0| 64 20 64 69 63 74 20 64 | 65 66 0a 09 55 70 44 69 |d dict d|ef..UpDi|
|000022f0| 63 74 3c 70 69 64 3e 20 | 62 65 67 69 6e 0a 09 3c |ct<pid> |begin..<|
|00002300| 75 73 65 72 20 70 72 6f | 6c 6f 67 3e 0a 09 2f 55 |user pro|log>../U|
|00002310| 70 53 68 6f 77 70 61 67 | 65 20 7b 73 68 6f 77 70 |pShowpag|e {showp|
|00002320| 61 67 65 7d 20 62 69 6e | 64 20 64 65 66 0a 09 2f |age} bin|d def../|
|00002330| 55 70 53 74 61 74 65 20 | 7b 7d 20 64 65 66 0a 09 |UpState |{} def..|
|00002340| 65 6e 64 0a 09 2f 73 68 | 6f 77 70 61 67 65 20 7b |end../sh|owpage {|
|00002350| 7d 20 64 65 66 0a 09 25 | 25 45 6e 64 50 72 6f 63 |} def..%|%EndProc|
|00002360| 53 65 74 3a 20 75 70 5f | 70 72 6f 6c 6f 67 20 31 |Set: up_|prolog 1|
|00002370| 20 3c 70 69 64 3e 0a 33 | 29 20 46 6f 72 20 65 76 | <pid>.3|) For ev|
|00002380| 65 72 79 20 27 25 25 50 | 61 67 65 3a 27 20 6c 69 |ery '%%P|age:' li|
|00002390| 6e 65 2c 20 49 20 66 69 | 72 73 74 20 64 65 6c 65 |ne, I fi|rst dele|
|000023a0| 74 65 20 69 74 2c 20 61 | 6e 64 20 74 68 65 6e 2c |te it, a|nd then,|
|000023b0| 20 69 66 20 69 74 20 69 | 73 20 74 68 65 0a 20 20 | if it i|s the. |
|000023c0| 20 66 69 72 73 74 20 70 | 61 67 65 20 6f 6e 20 61 | first p|age on a|
|000023d0| 20 73 68 65 65 74 2c 20 | 49 20 73 61 76 65 20 74 | sheet, |I save t|
|000023e0| 68 65 20 63 75 72 72 65 | 6e 74 20 56 4d 20 73 74 |he curre|nt VM st|
|000023f0| 61 74 65 2c 20 61 6e 64 | 20 69 6e 73 65 72 74 20 |ate, and| insert |
|00002400| 74 68 65 0a 20 20 20 75 | 73 65 72 2d 73 70 65 63 |the. u|ser-spec|
|00002410| 69 66 69 65 64 20 73 63 | 61 6c 69 6e 67 2c 20 72 |ified sc|aling, r|
|00002420| 6f 74 61 74 69 6f 6e 2c | 20 61 6e 64 20 74 72 61 |otation,| and tra|
|00002430| 6e 73 6c 61 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |nslation| command|
|00002440| 73 2e 20 20 49 74 0a 20 | 20 20 6c 6f 6f 6b 73 20 |s. It. | looks |
|00002450| 6c 69 6b 65 20 74 68 69 | 73 20 28 6d 6f 64 75 6c |like thi|s (modul|
|00002460| 6f 20 74 68 65 20 69 6e | 74 65 72 70 6f 6c 61 74 |o the in|terpolat|
|00002470| 69 6f 6e 20 6f 66 20 74 | 68 65 20 76 61 72 69 61 |ion of t|he varia|
|00002480| 62 6c 65 73 20 6d 61 72 | 6b 65 64 0a 20 20 20 62 |bles mar|ked. b|
|00002490| 79 20 3c 3e 29 3a 0a 09 | 25 25 50 61 67 65 3a 20 |y <>):..|%%Page: |
|000024a0| 3f 20 3c 73 68 65 65 74 | 20 6e 75 6d 62 65 72 3e |? <sheet| number>|
|000024b0| 0a 09 55 70 44 69 63 74 | 3c 70 69 64 3e 20 62 65 |..UpDict|<pid> be|
|000024c0| 67 69 6e 0a 09 73 61 76 | 65 20 2f 55 70 53 74 61 |gin..sav|e /UpSta|
|000024d0| 74 65 20 65 78 63 68 20 | 64 65 66 0a 09 3c 65 76 |te exch |def..<ev|
|000024e0| 65 6e 2f 6f 64 64 3e 0a | 09 3c 73 63 61 6c 65 2c |en/odd>.|.<scale,|
|000024f0| 20 74 72 61 6e 73 6c 61 | 74 65 2c 20 72 6f 74 61 | transla|te, rota|
|00002500| 74 65 3e 0a 09 3c 70 61 | 67 65 20 70 6f 73 69 74 |te>..<pa|ge posit|
|00002510| 69 6f 6e 69 6e 67 3e 0a | 09 65 6e 64 0a 20 20 20 |ioning>.|.end. |
|00002520| 46 6f 72 20 70 61 67 65 | 73 20 74 68 61 74 20 64 |For page|s that d|
|00002530| 6f 6e 27 74 20 73 74 61 | 72 74 20 61 20 73 68 65 |on't sta|rt a she|
|00002540| 65 74 2c 20 49 20 6a 75 | 73 74 20 69 6e 73 65 72 |et, I ju|st inser|
|00002550| 74 3a 0a 09 55 70 44 69 | 63 74 3c 70 69 64 3e 20 |t:..UpDi|ct<pid> |
|00002560| 62 65 67 69 6e 0a 09 3c | 70 61 67 65 20 70 6f 73 |begin..<|page pos|
|00002570| 69 74 69 6f 6e 69 6e 67 | 3e 0a 09 65 6e 64 0a 35 |itioning|>..end.5|
|00002580| 29 20 41 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |) At the| end of |
|00002590| 65 76 65 72 79 20 73 68 | 65 65 74 2c 20 49 20 72 |every sh|eet, I r|
|000025a0| 65 73 74 6f 72 65 20 74 | 68 65 20 56 4d 20 73 74 |estore t|he VM st|
|000025b0| 61 74 65 2c 20 61 6e 64 | 20 70 65 72 66 6f 72 6d |ate, and| perform|
|000025c0| 20 61 0a 20 20 20 72 65 | 61 6c 20 73 68 6f 77 70 | a. re|al showp|
|000025d0| 61 67 65 2c 20 6c 69 6b | 65 20 73 6f 3a 0a 09 55 |age, lik|e so:..U|
|000025e0| 70 44 69 63 74 3c 70 69 | 64 3e 20 62 65 67 69 6e |pDict<pi|d> begin|
|000025f0| 20 55 70 53 74 61 74 65 | 20 72 65 73 74 6f 72 65 | UpState| restore|
|00002600| 20 55 70 53 68 6f 77 70 | 61 67 65 20 65 6e 64 0a | UpShowp|age end.|
|00002610| 36 29 20 57 68 65 6e 20 | 49 20 73 65 65 20 74 68 |6) When |I see th|
|00002620| 65 20 27 25 25 54 72 61 | 69 6c 65 72 27 20 6c 69 |e '%%Tra|iler' li|
|00002630| 6e 65 2c 20 49 20 72 65 | 70 6c 61 63 65 20 69 74 |ne, I re|place it|
|00002640| 20 77 69 74 68 3a 0a 09 | 55 70 44 69 63 74 3c 70 | with:..|UpDict<p|
|00002650| 69 64 3e 20 62 65 67 69 | 6e 20 55 70 53 74 61 74 |id> begi|n UpStat|
|00002660| 65 20 72 65 73 74 6f 72 | 65 20 55 70 53 68 6f 77 |e restor|e UpShow|
|00002670| 70 61 67 65 20 65 6e 64 | 0a 09 25 25 54 72 61 69 |page end|..%%Trai|
|00002680| 6c 65 72 0a 20 20 20 59 | 6f 75 20 6d 69 67 68 74 |ler. Y|ou might|
|00002690| 20 73 75 73 70 65 63 74 | 20 74 68 61 74 20 74 68 | suspect| that th|
|000026a0| 69 73 20 63 61 75 73 65 | 73 20 61 6e 20 65 72 72 |is cause|s an err|
|000026b0| 6f 72 2c 20 6f 72 20 74 | 68 65 20 70 72 69 6e 74 |or, or t|he print|
|000026c0| 69 6e 67 20 6f 66 20 61 | 0a 20 20 20 62 6c 61 6e |ing of a|. blan|
|000026d0| 6b 20 70 61 67 65 2c 20 | 61 6e 64 20 69 66 20 65 |k page, |and if e|
|000026e0| 76 65 72 79 74 68 69 6e | 67 20 49 20 73 61 69 64 |verythin|g I said|
|000026f0| 20 61 62 6f 76 65 20 77 | 65 72 65 20 74 72 75 65 | above w|ere true|
|00002700| 2c 20 79 6f 75 27 64 20 | 62 65 0a 20 20 20 72 69 |, you'd |be. ri|
|00002710| 67 68 74 2e 20 20 54 68 | 65 20 63 61 74 63 68 20 |ght. Th|e catch |
|00002720| 69 73 20 74 68 61 74 20 | 23 35 20 69 73 20 61 20 |is that |#5 is a |
|00002730| 6c 69 65 2e 20 20 49 20 | 64 65 74 65 63 74 20 74 |lie. I |detect t|
|00002740| 68 65 20 65 6e 64 20 6f | 66 20 61 20 73 68 65 65 |he end o|f a shee|
|00002750| 74 0a 20 20 20 62 79 20 | 66 69 6e 64 69 6e 67 20 |t. by |finding |
|00002760| 6d 79 73 65 6c 66 20 61 | 74 20 74 68 65 20 62 65 |myself a|t the be|
|00002770| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6e 65 77 |ginning |of a new|
|00002780| 20 6f 6e 65 2c 20 73 6f | 20 74 68 65 20 6c 61 73 | one, so| the las|
|00002790| 74 20 73 68 65 65 74 0a | 20 20 20 6e 65 76 65 72 |t sheet.| never|
|000027a0| 20 67 65 74 73 20 70 72 | 69 6e 74 65 64 2c 20 75 | gets pr|inted, u|
|000027b0| 6e 6c 65 73 73 20 69 74 | 27 73 20 64 6f 6e 65 20 |nless it|'s done |
|000027c0| 6a 75 73 74 20 62 65 66 | 6f 72 65 20 74 68 65 20 |just bef|ore the |
|000027d0| 74 72 61 69 6c 65 72 2e | 0a 37 29 20 54 68 65 20 |trailer.|.7) The |
|000027e0| 6c 61 73 74 20 62 69 74 | 20 69 73 20 73 69 6d 70 |last bit| is simp|
|000027f0| 6c 65 2e 20 20 41 66 74 | 65 72 20 74 68 65 20 76 |le. Aft|er the v|
|00002800| 65 72 79 20 6c 61 73 74 | 20 6c 69 6e 65 20 6f 66 |ery last| line of|
|00002810| 20 74 68 65 20 69 6e 70 | 75 74 20 69 73 0a 20 20 | the inp|ut is. |
|00002820| 20 70 72 69 6e 74 65 64 | 2c 20 74 68 65 20 61 63 | printed|, the ac|
|00002830| 74 75 61 6c 20 73 68 65 | 65 74 20 63 6f 75 6e 74 |tual she|et count|
|00002840| 20 69 73 20 61 64 64 65 | 64 2e 20 20 54 68 69 73 | is adde|d. This|
|00002850| 20 68 61 73 20 74 6f 20 | 62 65 20 74 68 69 73 20 | has to |be this |
|00002860| 77 61 79 2c 0a 20 20 20 | 73 69 6e 63 65 20 74 68 |way,. |since th|
|00002870| 65 20 2a 6c 61 73 74 2a | 20 69 6e 20 61 20 73 65 |e *last*| in a se|
|00002880| 72 69 65 73 20 6f 66 20 | 74 72 61 69 6c 65 72 20 |ries of |trailer |
|00002890| 63 6f 6d 6d 65 6e 74 73 | 20 69 73 20 74 68 65 20 |comments| is the |
|000028a0| 6f 6e 65 20 68 65 65 64 | 65 64 2e 0a 20 20 20 49 |one heed|ed.. I|
|000028b0| 74 20 6c 6f 6f 6b 73 20 | 6c 69 6b 65 20 74 68 69 |t looks |like thi|
|000028c0| 73 3a 0a 09 25 25 50 61 | 67 65 73 3a 20 3c 73 68 |s:..%%Pa|ges: <sh|
|000028d0| 65 65 74 20 63 6f 75 6e | 74 3e 0a 0a 0a 49 66 20 |eet coun|t>...If |
|000028e0| 74 68 69 73 20 69 73 6e | 27 74 20 65 6e 74 69 72 |this isn|'t entir|
|000028f0| 65 6c 79 20 63 6c 65 61 | 72 2c 20 68 65 72 65 27 |ely clea|r, here'|
|00002900| 73 20 61 20 62 65 66 6f | 72 65 2f 61 66 74 65 72 |s a befo|re/after|
|00002910| 2e 0a 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 43 6f |...-----|-----.Co|
|00002920| 6e 66 6f 72 6d 69 6e 67 | 20 50 53 20 66 69 6c 65 |nforming| PS file|
|00002930| 2c 20 77 68 69 63 68 20 | 70 72 69 6e 74 73 20 34 |, which |prints 4|
|00002940| 20 6e 75 6d 62 65 72 65 | 64 20 70 61 67 65 73 20 | numbere|d pages |
|00002950| 28 6f 75 74 70 75 74 20 | 6f 66 20 22 6d 61 6b 65 |(output |of "make|
|00002960| 75 70 20 34 22 29 3a 0a | 0a 25 21 50 53 2d 41 64 |up 4"):.|.%!PS-Ad|
|00002970| 6f 62 65 2d 31 2e 30 0a | 25 25 43 72 65 61 74 6f |obe-1.0.|%%Creato|
|00002980| 72 3a 20 6d 61 6b 65 75 | 70 0a 25 25 54 69 74 6c |r: makeu|p.%%Titl|
|00002990| 65 3a 20 50 61 67 65 20 | 4c 61 79 6f 75 74 20 54 |e: Page |Layout T|
|000029a0| 65 73 74 0a 25 25 43 72 | 65 61 74 69 6f 6e 44 61 |est.%%Cr|eationDa|
|000029b0| 74 65 3a 20 54 75 65 20 | 4f 63 74 20 32 34 20 30 |te: Tue |Oct 24 0|
|000029c0| 32 3a 33 33 3a 33 36 20 | 45 44 54 20 31 39 38 39 |2:33:36 |EDT 1989|
|000029d0| 0a 25 25 50 61 67 65 73 | 3a 20 28 61 74 65 6e 64 |.%%Pages|: (atend|
|000029e0| 29 0a 25 25 44 6f 63 75 | 6d 65 6e 74 46 6f 6e 74 |).%%Docu|mentFont|
|000029f0| 73 3a 20 54 69 6d 65 73 | 2d 52 6f 6d 61 6e 0a 25 |s: Times|-Roman.%|
|00002a00| 25 42 6f 75 6e 64 69 6e | 67 42 6f 78 3a 20 30 20 |%Boundin|gBox: 0 |
|00002a10| 30 20 36 31 32 20 37 39 | 32 0a 25 25 45 6e 64 43 |0 612 79|2.%%EndC|
|00002a20| 6f 6d 6d 65 6e 74 73 0a | 2f 69 6e 63 68 20 7b 37 |omments.|/inch {7|
|00002a30| 32 20 6d 75 6c 7d 20 64 | 65 66 0a 2f 4e 66 6f 6e |2 mul} d|ef./Nfon|
|00002a40| 74 20 2f 54 69 6d 65 73 | 2d 52 6f 6d 61 6e 20 66 |t /Times|-Roman f|
|00002a50| 69 6e 64 66 6f 6e 74 20 | 35 20 69 6e 63 68 20 73 |indfont |5 inch s|
|00002a60| 63 61 6c 65 66 6f 6e 74 | 20 64 65 66 0a 2f 64 72 |calefont| def./dr|
|00002a70| 61 77 70 61 67 65 20 7b | 0a 09 32 20 73 65 74 6c |awpage {|..2 setl|
|00002a80| 69 6e 65 63 61 70 20 33 | 20 73 65 74 6c 69 6e 65 |inecap 3| setline|
|00002a90| 77 69 64 74 68 20 30 20 | 73 65 74 67 72 61 79 0a |width 0 |setgray.|
|00002aa0| 09 4e 66 6f 6e 74 20 73 | 65 74 66 6f 6e 74 0a 09 |.Nfont s|etfont..|
|00002ab0| 64 75 70 20 73 74 72 69 | 6e 67 77 69 64 74 68 0a |dup stri|ngwidth.|
|00002ac0| 09 31 31 20 69 6e 63 68 | 20 65 78 63 68 20 73 75 |.11 inch| exch su|
|00002ad0| 62 20 32 20 64 69 76 0a | 09 65 78 63 68 20 38 2e |b 2 div.|.exch 8.|
|00002ae0| 35 20 69 6e 63 68 20 65 | 78 63 68 20 73 75 62 20 |5 inch e|xch sub |
|00002af0| 32 20 64 69 76 0a 09 65 | 78 63 68 20 6d 6f 76 65 |2 div..e|xch move|
|00002b00| 74 6f 20 73 68 6f 77 0a | 09 30 2e 32 35 20 69 6e |to show.|.0.25 in|
|00002b10| 63 68 20 64 75 70 20 6d | 6f 76 65 74 6f 0a 09 38 |ch dup m|oveto..8|
|00002b20| 20 69 6e 63 68 20 30 20 | 72 6c 69 6e 65 74 6f 0a | inch 0 |rlineto.|
|00002b30| 09 30 20 31 30 2e 35 20 | 69 6e 63 68 20 72 6c 69 |.0 10.5 |inch rli|
|00002b40| 6e 65 74 6f 0a 09 2d 38 | 20 69 6e 63 68 20 30 20 |neto..-8| inch 0 |
|00002b50| 72 6c 69 6e 65 74 6f 0a | 09 30 20 2d 31 30 2e 35 |rlineto.|.0 -10.5|
|00002b60| 20 69 6e 63 68 20 72 6c | 69 6e 65 74 6f 0a 09 63 | inch rl|ineto..c|
|00002b70| 6c 6f 73 65 70 61 74 68 | 20 73 74 72 6f 6b 65 0a |losepath| stroke.|
|00002b80| 09 73 68 6f 77 70 61 67 | 65 0a 7d 20 64 65 66 0a |.showpag|e.} def.|
|00002b90| 25 25 45 6e 64 50 72 6f | 6c 6f 67 0a 25 25 50 61 |%%EndPro|log.%%Pa|
|00002ba0| 67 65 3a 20 3f 20 31 0a | 28 31 29 20 64 72 61 77 |ge: ? 1.|(1) draw|
|00002bb0| 70 61 67 65 0a 25 25 50 | 61 67 65 3a 20 3f 20 32 |page.%%P|age: ? 2|
|00002bc0| 0a 28 32 29 20 64 72 61 | 77 70 61 67 65 0a 25 25 |.(2) dra|wpage.%%|
|00002bd0| 50 61 67 65 3a 20 3f 20 | 33 0a 28 33 29 20 64 72 |Page: ? |3.(3) dr|
|00002be0| 61 77 70 61 67 65 0a 25 | 25 50 61 67 65 3a 20 3f |awpage.%|%Page: ?|
|00002bf0| 20 34 0a 28 34 29 20 64 | 72 61 77 70 61 67 65 0a | 4.(4) d|rawpage.|
|00002c00| 25 25 54 72 61 69 6c 65 | 72 0a 25 25 50 61 67 65 |%%Traile|r.%%Page|
|00002c10| 73 3a 20 34 0a 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |s: 4..--|--------|
|00002c20| 0a 50 72 65 76 69 6f 75 | 73 20 66 69 6c 65 2c 20 |.Previou|s file, |
|00002c30| 66 69 6c 74 65 72 65 64 | 20 74 6f 20 70 72 69 6e |filtered| to prin|
|00002c40| 74 20 74 77 6f 20 70 61 | 67 65 73 20 70 65 72 20 |t two pa|ges per |
|00002c50| 73 68 65 65 74 20 28 22 | 75 70 20 2d 6e 20 32 75 |sheet ("|up -n 2u|
|00002c60| 70 22 29 3a 0a 0a 25 21 | 50 53 2d 41 64 6f 62 65 |p"):..%!|PS-Adobe|
|00002c70| 2d 32 2e 30 0a 25 25 50 | 61 67 65 73 3a 20 28 61 |-2.0.%%P|ages: (a|
|00002c80| 74 65 6e 64 29 0a 25 25 | 43 72 65 61 74 6f 72 3a |tend).%%|Creator:|
|00002c90| 20 6d 61 6b 65 75 70 0a | 25 25 54 69 74 6c 65 3a | makeup.|%%Title:|
|00002ca0| 20 50 61 67 65 20 4c 61 | 79 6f 75 74 20 54 65 73 | Page La|yout Tes|
|00002cb0| 74 0a 25 25 43 72 65 61 | 74 69 6f 6e 44 61 74 65 |t.%%Crea|tionDate|
|00002cc0| 3a 20 54 75 65 20 4f 63 | 74 20 32 34 20 30 32 3a |: Tue Oc|t 24 02:|
|00002cd0| 33 33 3a 33 36 20 45 44 | 54 20 31 39 38 39 0a 25 |33:36 ED|T 1989.%|
|00002ce0| 25 50 61 67 65 73 3a 20 | 28 61 74 65 6e 64 29 0a |%Pages: |(atend).|
|00002cf0| 25 25 44 6f 63 75 6d 65 | 6e 74 46 6f 6e 74 73 3a |%%Docume|ntFonts:|
|00002d00| 20 54 69 6d 65 73 2d 52 | 6f 6d 61 6e 0a 25 25 42 | Times-R|oman.%%B|
|00002d10| 6f 75 6e 64 69 6e 67 42 | 6f 78 3a 20 30 20 30 20 |oundingB|ox: 0 0 |
|00002d20| 36 31 32 20 37 39 32 0a | 25 25 45 6e 64 43 6f 6d |612 792.|%%EndCom|
|00002d30| 6d 65 6e 74 73 0a 25 25 | 42 65 67 69 6e 50 72 6f |ments.%%|BeginPro|
|00002d40| 63 53 65 74 3a 20 75 70 | 5f 70 72 6f 6c 6f 67 20 |cSet: up|_prolog |
|00002d50| 31 20 37 34 38 32 0a 2f | 55 70 44 69 63 74 37 34 |1 7482./|UpDict74|
|00002d60| 38 32 20 32 33 20 33 20 | 61 64 64 20 64 69 63 74 |82 23 3 |add dict|
|00002d70| 20 64 65 66 0a 55 70 44 | 69 63 74 37 34 38 32 20 | def.UpD|ict7482 |
|00002d80| 62 65 67 69 6e 0a 2f 69 | 6e 63 68 20 7b 37 32 20 |begin./i|nch {72 |
|00002d90| 6d 75 6c 7d 20 64 65 66 | 0a 2f 6d 6f 76 65 55 20 |mul} def|./moveU |
|00002da0| 7b 30 20 31 31 20 69 6e | 63 68 20 74 72 61 6e 73 |{0 11 in|ch trans|
|00002db0| 6c 61 74 65 7d 20 64 65 | 66 0a 2f 6d 6f 76 65 52 |late} de|f./moveR|
|00002dc0| 20 7b 38 2e 35 20 69 6e | 63 68 20 30 20 74 72 61 | {8.5 in|ch 0 tra|
|00002dd0| 6e 73 6c 61 74 65 7d 20 | 64 65 66 0a 2f 6d 6f 76 |nslate} |def./mov|
|00002de0| 65 44 20 7b 30 20 2d 31 | 31 20 69 6e 63 68 20 74 |eD {0 -1|1 inch t|
|00002df0| 72 61 6e 73 6c 61 74 65 | 7d 20 64 65 66 0a 2f 6d |ranslate|} def./m|
|00002e00| 6f 76 65 4c 20 7b 2d 38 | 2e 35 20 69 6e 63 68 20 |oveL {-8|.5 inch |
|00002e10| 30 20 74 72 61 6e 73 6c | 61 74 65 7d 20 64 65 66 |0 transl|ate} def|
|00002e20| 0a 2f 72 6f 74 52 20 7b | 2d 39 30 20 72 6f 74 61 |./rotR {|-90 rota|
|00002e30| 74 65 7d 20 64 65 66 0a | 2f 72 6f 74 4c 20 7b 39 |te} def.|/rotL {9|
|00002e40| 30 20 72 6f 74 61 74 65 | 7d 20 64 65 66 0a 2f 64 |0 rotate|} def./d|
|00002e50| 6f 53 70 69 72 61 6c 20 | 7b 6d 6f 76 65 55 20 6d |oSpiral |{moveU m|
|00002e60| 6f 76 65 52 20 72 6f 74 | 52 20 30 2e 36 37 20 64 |oveR rot|R 0.67 d|
|00002e70| 75 70 20 73 63 61 6c 65 | 7d 20 64 65 66 0a 2f 6d |up scale|} def./m|
|00002e80| 6f 76 65 48 55 20 7b 20 | 30 20 35 2e 35 20 69 6e |oveHU { |0 5.5 in|
|00002e90| 63 68 20 74 72 61 6e 73 | 6c 61 74 65 7d 20 64 65 |ch trans|late} de|
|00002ea0| 66 0a 2f 64 6f 52 65 76 | 53 70 69 72 61 6c 20 7b |f./doRev|Spiral {|
|00002eb0| 6d 6f 76 65 48 55 20 72 | 6f 74 4c 20 30 2e 36 37 |moveHU r|otL 0.67|
|00002ec0| 20 64 75 70 20 73 63 61 | 6c 65 7d 20 64 65 66 0a | dup sca|le} def.|
|00002ed0| 2f 55 70 53 68 6f 77 70 | 61 67 65 20 7b 73 68 6f |/UpShowp|age {sho|
|00002ee0| 77 70 61 67 65 7d 20 62 | 69 6e 64 20 64 65 66 0a |wpage} b|ind def.|
|00002ef0| 2f 55 70 53 74 61 74 65 | 20 7b 7d 20 64 65 66 0a |/UpState| {} def.|
|00002f00| 65 6e 64 0a 2f 73 68 6f | 77 70 61 67 65 20 7b 7d |end./sho|wpage {}|
|00002f10| 20 64 65 66 0a 25 25 45 | 6e 64 50 72 6f 63 53 65 | def.%%E|ndProcSe|
|00002f20| 74 3a 20 75 70 5f 70 72 | 6f 6c 6f 67 20 31 20 37 |t: up_pr|olog 1 7|
|00002f30| 34 38 32 0a 2f 69 6e 63 | 68 20 7b 37 32 20 6d 75 |482./inc|h {72 mu|
|00002f40| 6c 7d 20 64 65 66 0a 2f | 4e 66 6f 6e 74 20 2f 54 |l} def./|Nfont /T|
|00002f50| 69 6d 65 73 2d 52 6f 6d | 61 6e 20 66 69 6e 64 66 |imes-Rom|an findf|
|00002f60| 6f 6e 74 20 35 20 69 6e | 63 68 20 73 63 61 6c 65 |ont 5 in|ch scale|
|00002f70| 66 6f 6e 74 20 64 65 66 | 0a 2f 64 72 61 77 70 61 |font def|./drawpa|
|00002f80| 67 65 20 7b 0a 09 32 20 | 73 65 74 6c 69 6e 65 63 |ge {..2 |setlinec|
|00002f90| 61 70 20 33 20 73 65 74 | 6c 69 6e 65 77 69 64 74 |ap 3 set|linewidt|
|00002fa0| 68 20 30 20 73 65 74 67 | 72 61 79 0a 09 4e 66 6f |h 0 setg|ray..Nfo|
|00002fb0| 6e 74 20 73 65 74 66 6f | 6e 74 0a 09 64 75 70 20 |nt setfo|nt..dup |
|00002fc0| 73 74 72 69 6e 67 77 69 | 64 74 68 0a 09 31 31 20 |stringwi|dth..11 |
|00002fd0| 69 6e 63 68 20 65 78 63 | 68 20 73 75 62 20 32 20 |inch exc|h sub 2 |
|00002fe0| 64 69 76 0a 09 65 78 63 | 68 20 38 2e 35 20 69 6e |div..exc|h 8.5 in|
|00002ff0| 63 68 20 65 78 63 68 20 | 73 75 62 20 32 20 64 69 |ch exch |sub 2 di|
|00003000| 76 0a 09 65 78 63 68 20 | 6d 6f 76 65 74 6f 20 73 |v..exch |moveto s|
|00003010| 68 6f 77 0a 09 30 2e 32 | 35 20 69 6e 63 68 20 64 |how..0.2|5 inch d|
|00003020| 75 70 20 6d 6f 76 65 74 | 6f 0a 09 38 20 69 6e 63 |up movet|o..8 inc|
|00003030| 68 20 30 20 72 6c 69 6e | 65 74 6f 0a 09 30 20 31 |h 0 rlin|eto..0 1|
|00003040| 30 2e 35 20 69 6e 63 68 | 20 72 6c 69 6e 65 74 6f |0.5 inch| rlineto|
|00003050| 0a 09 2d 38 20 69 6e 63 | 68 20 30 20 72 6c 69 6e |..-8 inc|h 0 rlin|
|00003060| 65 74 6f 0a 09 30 20 2d | 31 30 2e 35 20 69 6e 63 |eto..0 -|10.5 inc|
|00003070| 68 20 72 6c 69 6e 65 74 | 6f 0a 09 63 6c 6f 73 65 |h rlinet|o..close|
|00003080| 70 61 74 68 20 73 74 72 | 6f 6b 65 0a 09 73 68 6f |path str|oke..sho|
|00003090| 77 70 61 67 65 0a 7d 20 | 64 65 66 0a 25 25 45 6e |wpage.} |def.%%En|
|000030a0| 64 50 72 6f 6c 6f 67 0a | 25 25 50 61 67 65 3a 20 |dProlog.|%%Page: |
|000030b0| 3f 20 31 0a 55 70 44 69 | 63 74 37 34 38 32 20 62 |? 1.UpDi|ct7482 b|
|000030c0| 65 67 69 6e 0a 73 61 76 | 65 20 2f 55 70 53 74 61 |egin.sav|e /UpSta|
|000030d0| 74 65 20 65 78 63 68 20 | 64 65 66 0a 37 2e 37 35 |te exch |def.7.75|
|000030e0| 20 69 6e 63 68 20 30 20 | 74 72 61 6e 73 6c 61 74 | inch 0 |translat|
|000030f0| 65 20 72 6f 74 4c 20 31 | 31 20 31 37 20 64 69 76 |e rotL 1|1 17 div|
|00003100| 20 64 75 70 20 73 63 61 | 6c 65 0a 65 6e 64 0a 28 | dup sca|le.end.(|
|00003110| 31 29 20 64 72 61 77 70 | 61 67 65 0a 55 70 44 69 |1) drawp|age.UpDi|
|00003120| 63 74 37 34 38 32 20 62 | 65 67 69 6e 0a 6d 6f 76 |ct7482 b|egin.mov|
|00003130| 65 52 0a 65 6e 64 0a 28 | 32 29 20 64 72 61 77 70 |eR.end.(|2) drawp|
|00003140| 61 67 65 0a 55 70 44 69 | 63 74 37 34 38 32 20 62 |age.UpDi|ct7482 b|
|00003150| 65 67 69 6e 20 55 70 53 | 74 61 74 65 20 72 65 73 |egin UpS|tate res|
|00003160| 74 6f 72 65 20 55 70 53 | 68 6f 77 70 61 67 65 20 |tore UpS|howpage |
|00003170| 65 6e 64 0a 25 25 50 61 | 67 65 3a 20 3f 20 32 0a |end.%%Pa|ge: ? 2.|
|00003180| 55 70 44 69 63 74 37 34 | 38 32 20 62 65 67 69 6e |UpDict74|82 begin|
|00003190| 0a 73 61 76 65 20 2f 55 | 70 53 74 61 74 65 20 65 |.save /U|pState e|
|000031a0| 78 63 68 20 64 65 66 0a | 37 2e 37 35 20 69 6e 63 |xch def.|7.75 inc|
|000031b0| 68 20 30 20 74 72 61 6e | 73 6c 61 74 65 20 72 6f |h 0 tran|slate ro|
|000031c0| 74 4c 20 31 31 20 31 37 | 20 64 69 76 20 64 75 70 |tL 11 17| div dup|
|000031d0| 20 73 63 61 6c 65 0a 65 | 6e 64 0a 28 33 29 20 64 | scale.e|nd.(3) d|
|000031e0| 72 61 77 70 61 67 65 0a | 55 70 44 69 63 74 37 34 |rawpage.|UpDict74|
|000031f0| 38 32 20 62 65 67 69 6e | 0a 6d 6f 76 65 52 0a 65 |82 begin|.moveR.e|
|00003200| 6e 64 0a 28 34 29 20 64 | 72 61 77 70 61 67 65 0a |nd.(4) d|rawpage.|
|00003210| 55 70 44 69 63 74 37 34 | 38 32 20 62 65 67 69 6e |UpDict74|82 begin|
|00003220| 20 55 70 53 74 61 74 65 | 20 72 65 73 74 6f 72 65 | UpState| restore|
|00003230| 20 55 70 53 68 6f 77 70 | 61 67 65 20 65 6e 64 0a | UpShowp|age end.|
|00003240| 25 25 54 72 61 69 6c 65 | 72 0a 25 25 50 61 67 65 |%%Traile|r.%%Page|
|00003250| 73 3a 20 32 0a 0a 2d 2d | 0a 4a 20 47 72 65 65 6c |s: 2..--|.J Greel|
|00003260| 79 20 28 6a 67 72 65 65 | 6c 79 40 63 69 73 2e 6f |y (jgree|ly@cis.o|
|00003270| 68 69 6f 2d 73 74 61 74 | 65 2e 65 64 75 3b 20 6f |hio-stat|e.edu; o|
|00003280| 73 75 2d 63 69 73 21 6a | 67 72 65 65 6c 79 29 0a |su-cis!j|greely).|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 75 70 2f 4d 61 6b 65 66 | 69 6c 65 00 00 00 00 00 |up/Makef|ile.....|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00003470| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00003480| 20 20 20 32 30 34 33 20 | 20 34 35 32 33 33 36 35 | 2043 | 4523365|
|00003490| 33 33 30 20 20 20 36 32 | 31 33 00 20 00 00 00 00 |330 62|13. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 23 20 4d 61 6b 65 66 69 | 6c 65 20 74 6f 20 69 6e |# Makefi|le to in|
|00003610| 73 74 61 6c 6c 20 27 75 | 70 27 0a 23 0a 4c 49 42 |stall 'u|p'.#.LIB|
|00003620| 44 49 52 3d 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 6c |DIR=/usr|/local/l|
|00003630| 69 62 0a 42 49 4e 44 49 | 52 3d 2f 75 73 72 2f 6c |ib.BINDI|R=/usr/l|
|00003640| 6f 63 61 6c 2f 62 69 6e | 0a 4d 41 4e 44 49 52 3d |ocal/bin|.MANDIR=|
|00003650| 2f 75 73 72 2f 6d 61 6e | 0a 53 59 4d 4c 49 4e 4b |/usr/man|.SYMLINK|
|00003660| 3d 6c 6e 20 2d 73 0a 0a | 50 52 4f 47 3d 75 70 0a |=ln -s..|PROG=up.|
|00003670| 55 54 49 4c 3d 6d 61 6b | 65 75 70 20 70 61 72 72 |UTIL=mak|eup parr|
|00003680| 0a 4c 49 42 3d 75 70 2e | 72 63 0a 4c 49 4e 4b 53 |.LIB=up.|rc.LINKS|
|00003690| 3d 32 75 70 20 34 75 70 | 20 36 75 70 20 31 36 75 |=2up 4up| 6up 16u|
|000036a0| 70 0a 4d 41 4e 31 3d 75 | 70 2e 31 20 6d 61 6b 65 |p.MAN1=u|p.1 make|
|000036b0| 75 70 2e 31 20 70 61 72 | 72 2e 31 0a 4d 41 4e 35 |up.1 par|r.1.MAN5|
|000036c0| 3d 75 70 72 63 2e 35 0a | 0a 46 49 4c 45 53 3d 52 |=uprc.5.|.FILES=R|
|000036d0| 45 41 44 4d 45 20 48 6f | 77 54 6f 20 4d 61 6b 65 |EADME Ho|wTo Make|
|000036e0| 66 69 6c 65 20 24 28 50 | 52 4f 47 29 20 24 28 55 |file $(P|ROG) $(U|
|000036f0| 54 49 4c 29 20 24 28 4c | 49 42 29 20 24 28 4d 41 |TIL) $(L|IB) $(MA|
|00003700| 4e 31 29 20 24 28 4d 41 | 4e 35 29 0a 0a 64 65 66 |N1) $(MA|N5)..def|
|00003710| 61 75 6c 74 3a 0a 09 40 | 65 63 68 6f 20 45 64 69 |ault:..@|echo Edi|
|00003720| 74 20 4d 61 6b 65 66 69 | 6c 65 2c 20 63 68 61 6e |t Makefi|le, chan|
|00003730| 67 69 6e 67 20 74 68 65 | 20 76 61 6c 75 65 73 20 |ging the| values |
|00003740| 6f 66 20 4c 49 42 44 49 | 52 2c 20 42 49 4e 44 49 |of LIBDI|R, BINDI|
|00003750| 52 2c 0a 09 40 65 63 68 | 6f 20 4d 41 4e 44 49 52 |R,..@ech|o MANDIR|
|00003760| 2c 20 61 6e 64 20 53 59 | 4d 4c 49 4e 4b 2c 20 74 |, and SY|MLINK, t|
|00003770| 68 65 6e 20 74 79 70 65 | 20 5c 22 6d 61 6b 65 20 |hen type| \"make |
|00003780| 69 6e 73 74 61 6c 6c 5c | 22 0a 0a 69 6e 73 74 61 |install\|"..insta|
|00003790| 6c 6c 3a 20 24 28 50 52 | 4f 47 29 20 24 28 55 54 |ll: $(PR|OG) $(UT|
|000037a0| 49 4c 29 20 24 28 4c 49 | 42 29 20 24 28 4d 41 4e |IL) $(LI|B) $(MAN|
|000037b0| 31 29 20 24 28 4d 41 4e | 35 29 0a 09 63 70 20 24 |1) $(MAN|5)..cp $|
|000037c0| 28 50 52 4f 47 29 20 24 | 28 55 54 49 4c 29 20 24 |(PROG) $|(UTIL) $|
|000037d0| 28 42 49 4e 44 49 52 29 | 0a 09 63 70 20 24 28 4c |(BINDIR)|..cp $(L|
|000037e0| 49 42 29 20 24 28 4c 49 | 42 44 49 52 29 0a 09 66 |IB) $(LI|BDIR)..f|
|000037f0| 6f 72 20 69 20 69 6e 20 | 24 28 4c 49 4e 4b 53 29 |or i in |$(LINKS)|
|00003800| 3b 20 64 6f 20 24 28 53 | 59 4d 4c 49 4e 4b 29 20 |; do $(S|YMLINK) |
|00003810| 24 28 42 49 4e 44 49 52 | 29 2f 24 28 50 52 4f 47 |$(BINDIR|)/$(PROG|
|00003820| 29 20 24 28 42 49 4e 44 | 49 52 29 2f 24 24 69 3b |) $(BIND|IR)/$$i;|
|00003830| 20 64 6f 6e 65 0a 09 40 | 2d 6d 6b 64 69 72 20 24 | done..@|-mkdir $|
|00003840| 28 4d 41 4e 44 49 52 29 | 0a 09 40 2d 6d 6b 64 69 |(MANDIR)|..@-mkdi|
|00003850| 72 20 24 28 4d 41 4e 44 | 49 52 29 2f 6d 61 6e 31 |r $(MAND|IR)/man1|
|00003860| 0a 09 40 2d 6d 6b 64 69 | 72 20 24 28 4d 41 4e 44 |..@-mkdi|r $(MAND|
|00003870| 49 52 29 2f 6d 61 6e 35 | 0a 09 63 70 20 24 28 4d |IR)/man5|..cp $(M|
|00003880| 41 4e 31 29 20 24 28 4d | 41 4e 44 49 52 29 2f 6d |AN1) $(M|ANDIR)/m|
|00003890| 61 6e 31 0a 09 63 70 20 | 24 28 4d 41 4e 35 29 20 |an1..cp |$(MAN5) |
|000038a0| 24 28 4d 41 4e 44 49 52 | 29 2f 6d 61 6e 35 0a 0a |$(MANDIR|)/man5..|
|000038b0| 63 6c 65 61 6e 3a 0a 09 | 72 6d 20 2d 66 20 63 6f |clean:..|rm -f co|
|000038c0| 72 65 20 75 70 2e 73 68 | 61 72 2a 20 2a 7e 0a 0a |re up.sh|ar* *~..|
|000038d0| 75 6e 69 6e 73 74 61 6c | 6c 3a 0a 09 2d 66 6f 72 |uninstal|l:..-for|
|000038e0| 20 69 20 69 6e 20 24 28 | 50 52 4f 47 29 20 24 28 | i in $(|PROG) $(|
|000038f0| 55 54 49 4c 29 20 24 28 | 4c 49 4e 4b 53 29 3b 20 |UTIL) $(|LINKS); |
|00003900| 64 6f 20 72 6d 20 24 28 | 42 49 4e 44 49 52 29 2f |do rm $(|BINDIR)/|
|00003910| 24 24 69 3b 20 64 6f 6e | 65 0a 09 2d 72 6d 20 24 |$$i; don|e..-rm $|
|00003920| 28 4c 49 42 44 49 52 29 | 2f 24 28 4c 49 42 29 0a |(LIBDIR)|/$(LIB).|
|00003930| 09 2d 66 6f 72 20 69 20 | 69 6e 20 24 28 4d 41 4e |.-for i |in $(MAN|
|00003940| 31 29 3b 20 64 6f 20 72 | 6d 20 24 28 4d 41 4e 44 |1); do r|m $(MAND|
|00003950| 49 52 29 2f 6d 61 6e 31 | 2f 24 24 69 3b 20 64 6f |IR)/man1|/$$i; do|
|00003960| 6e 65 0a 09 2d 66 6f 72 | 20 69 20 69 6e 20 24 28 |ne..-for| i in $(|
|00003970| 4d 41 4e 35 29 3b 20 64 | 6f 20 72 6d 20 24 28 4d |MAN5); d|o rm $(M|
|00003980| 41 4e 44 49 52 29 2f 6d | 61 6e 35 2f 24 24 69 3b |ANDIR)/m|an5/$$i;|
|00003990| 20 64 6f 6e 65 0a 0a 75 | 70 2e 73 68 61 72 3a 20 | done..u|p.shar: |
|000039a0| 24 28 46 49 4c 45 53 29 | 0a 09 73 68 61 72 20 24 |$(FILES)|..shar $|
|000039b0| 28 46 49 4c 45 53 29 20 | 3e 75 70 2e 73 68 61 72 |(FILES) |>up.shar|
|000039c0| 0a 09 70 65 72 6c 20 2d | 69 2e 6f 6c 64 20 2d 70 |..perl -|i.old -p|
|000039d0| 65 20 27 73 2f 6a 67 72 | 65 65 6c 79 40 5b 2d 2e |e 's/jgr|eely@[-.|
|000039e0| 5c 77 5d 2b 5b 2d 5c 77 | 5d 2f 6a 67 72 65 65 6c |\w]+[-\w|]/jgreel|
|000039f0| 79 40 63 69 73 2e 6f 68 | 69 6f 2d 73 74 61 74 65 |y@cis.oh|io-state|
|00003a00| 2e 65 64 75 2f 67 3b 27 | 5c 0a 09 75 70 2e 73 68 |.edu/g;'|\..up.sh|
|00003a10| 61 72 0a 09 72 6d 20 75 | 70 2e 73 68 61 72 2e 6f |ar..rm u|p.shar.o|
|00003a20| 6c 64 0a 74 69 6f 6e 2c | 20 61 6e 64 20 74 72 61 |ld.tion,| and tra|
|00003a30| 6e 73 6c 61 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |nslation| command|
|00003a40| 73 2e 20 20 49 74 0a 20 | 20 20 6c 6f 6f 6b 73 20 |s. It. | looks |
|00003a50| 6c 69 6b 65 20 74 68 69 | 73 20 28 6d 6f 64 75 6c |like thi|s (modul|
|00003a60| 6f 20 74 68 65 20 69 6e | 74 65 72 70 6f 6c 61 74 |o the in|terpolat|
|00003a70| 69 6f 6e 20 6f 66 20 74 | 68 65 20 76 61 72 69 61 |ion of t|he varia|
|00003a80| 62 6c 65 73 20 6d 61 72 | 6b 65 64 0a 20 20 20 62 |bles mar|ked. b|
|00003a90| 79 20 3c 3e 29 3a 0a 09 | 25 25 50 61 67 65 3a 20 |y <>):..|%%Page: |
|00003aa0| 3f 20 3c 73 68 65 65 74 | 20 6e 75 6d 62 65 72 3e |? <sheet| number>|
|00003ab0| 0a 09 55 70 44 69 63 74 | 3c 70 69 64 3e 20 62 65 |..UpDict|<pid> be|
|00003ac0| 67 69 6e 0a 09 73 61 76 | 65 20 2f 55 70 53 74 61 |gin..sav|e /UpSta|
|00003ad0| 74 65 20 65 78 63 68 20 | 64 65 66 0a 09 3c 65 76 |te exch |def..<ev|
|00003ae0| 65 6e 2f 6f 64 64 3e 0a | 09 3c 73 63 61 6c 65 2c |en/odd>.|.<scale,|
|00003af0| 20 74 72 61 6e 73 6c 61 | 74 65 2c 20 72 6f 74 61 | transla|te, rota|
|00003b00| 74 65 3e 0a 09 3c 70 61 | 67 65 20 70 6f 73 69 74 |te>..<pa|ge posit|
|00003b10| 69 6f 6e 69 6e 67 3e 0a | 09 65 6e 64 0a 20 20 20 |ioning>.|.end. |
|00003b20| 46 6f 72 20 70 61 67 65 | 73 20 74 68 61 74 20 64 |For page|s that d|
|00003b30| 6f 6e 27 74 20 73 74 61 | 72 74 20 61 20 73 68 65 |on't sta|rt a she|
|00003b40| 65 74 2c 20 49 20 6a 75 | 73 74 20 69 6e 73 65 72 |et, I ju|st inser|
|00003b50| 74 3a 0a 09 55 70 44 69 | 63 74 3c 70 69 64 3e 20 |t:..UpDi|ct<pid> |
|00003b60| 62 65 67 69 6e 0a 09 3c | 70 61 67 65 20 70 6f 73 |begin..<|page pos|
|00003b70| 69 74 69 6f 6e 69 6e 67 | 3e 0a 09 65 6e 64 0a 35 |itioning|>..end.5|
|00003b80| 29 20 41 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |) At the| end of |
|00003b90| 65 76 65 72 79 20 73 68 | 65 65 74 2c 20 49 20 72 |every sh|eet, I r|
|00003ba0| 65 73 74 6f 72 65 20 74 | 68 65 20 56 4d 20 73 74 |estore t|he VM st|
|00003bb0| 61 74 65 2c 20 61 6e 64 | 20 70 65 72 66 6f 72 6d |ate, and| perform|
|00003bc0| 20 61 0a 20 20 20 72 65 | 61 6c 20 73 68 6f 77 70 | a. re|al showp|
|00003bd0| 61 67 65 2c 20 6c 69 6b | 65 20 73 6f 3a 0a 09 55 |age, lik|e so:..U|
|00003be0| 70 44 69 63 74 3c 70 69 | 64 3e 20 62 65 67 69 6e |pDict<pi|d> begin|
|00003bf0| 20 55 70 53 74 61 74 65 | 20 72 65 73 74 6f 72 65 | UpState| restore|
|00003c00| 75 70 2f 75 70 00 00 00 | 00 00 00 00 00 00 00 00 |up/up...|........|
|00003c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 31 35 |.... 7|55 . 15|
|00003c70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00003c80| 20 20 31 31 33 31 32 20 | 20 34 35 32 33 33 36 35 | 11312 | 4523365|
|00003c90| 33 33 31 20 20 20 35 31 | 34 35 00 20 00 00 00 00 |331 51|45. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 23 21 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 62 69 6e |#!/usr/l|ocal/bin|
|00003e10| 2f 70 65 72 6c 0a 23 20 | 75 70 3a 0a 23 20 50 6f |/perl.# |up:.# Po|
|00003e20| 73 74 53 63 72 69 70 74 | 20 6e 2d 75 70 20 70 72 |stScript| n-up pr|
|00003e30| 69 6e 74 20 75 74 69 6c | 69 74 79 2e 20 20 54 68 |int util|ity. Th|
|00003e40| 69 73 20 73 63 72 69 70 | 74 20 74 61 6b 65 73 20 |is scrip|t takes |
|00003e50| 63 6f 6e 66 6f 72 6d 69 | 6e 67 20 50 53 0a 23 20 |conformi|ng PS.# |
|00003e60| 66 69 6c 65 73 2c 20 61 | 6e 64 20 70 72 69 6e 74 |files, a|nd print|
|00003e70| 73 20 74 68 65 6d 20 6e | 2d 75 70 2c 20 77 68 65 |s them n|-up, whe|
|00003e80| 72 65 20 6e 20 69 73 20 | 63 6f 6e 74 72 6f 6c 6c |re n is |controll|
|00003e90| 65 64 20 62 79 20 61 20 | 73 79 6d 62 6f 6c 69 63 |ed by a |symbolic|
|00003ea0| 0a 23 20 6e 61 6d 65 20 | 28 74 61 6b 65 6e 20 66 |.# name |(taken f|
|00003eb0| 72 6f 6d 20 61 72 67 76 | 5b 30 5d 20 6f 72 20 74 |rom argv|[0] or t|
|00003ec0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 29 |he comma|nd line)|
|00003ed0| 2c 20 61 6e 64 20 74 68 | 65 20 70 61 67 65 0a 23 |, and th|e page.#|
|00003ee0| 20 70 6f 73 69 74 69 6f | 6e 69 6e 67 20 61 6e 64 | positio|ning and|
|00003ef0| 20 73 63 61 6c 69 6e 67 | 20 61 72 65 20 6c 6f 6f | scaling| are loo|
|00003f00| 6b 65 64 20 75 70 20 69 | 6e 20 61 20 63 6f 6e 66 |ked up i|n a conf|
|00003f10| 69 67 75 72 61 74 69 6f | 6e 20 66 69 6c 65 2e 0a |iguratio|n file..|
|00003f20| 23 0a 23 20 75 73 61 67 | 65 3a 20 75 70 20 5b 2d |#.# usag|e: up [-|
|00003f30| 6e 20 6e 61 6d 65 5d 20 | 5b 2d 66 20 63 6f 6e 66 |n name] |[-f conf|
|00003f40| 69 67 5d 20 5b 66 69 6c | 65 20 2e 2e 2e 5d 0a 23 |ig] [fil|e ...].#|
|00003f50| 0a 23 20 6a 67 72 65 65 | 6c 79 40 63 69 73 2e 6f |.# jgree|ly@cis.o|
|00003f60| 68 69 6f 2d 73 74 61 74 | 65 2e 65 64 75 2c 20 38 |hio-stat|e.edu, 8|
|00003f70| 39 2f 31 30 2f 32 33 0a | 23 0a 0a 23 20 73 65 74 |9/10/23.|#..# set|
|00003f80| 20 74 68 65 20 6e 61 6d | 65 20 66 72 6f 6d 20 24 | the nam|e from $|
|00003f90| 30 20 28 61 72 67 76 5b | 30 5d 29 2c 20 61 66 74 |0 (argv[|0]), aft|
|00003fa0| 65 72 20 73 74 72 69 70 | 70 69 6e 67 20 61 20 70 |er strip|ping a p|
|00003fb0| 61 74 68 0a 23 0a 40 66 | 6f 6f 20 3d 20 73 70 6c |ath.#.@f|oo = spl|
|00003fc0| 69 74 28 2f 5c 2f 2f 2c | 24 30 29 3b 0a 24 6e 61 |it(/\//,|$0);.$na|
|00003fd0| 6d 65 3d 70 6f 70 28 40 | 66 6f 6f 29 3b 0a 0a 24 |me=pop(@|foo);..$|
|00003fe0| 48 4f 4d 45 3d 24 45 4e | 56 7b 22 48 4f 4d 45 22 |HOME=$EN|V{"HOME"|
|00003ff0| 7d 3b 0a 0a 23 20 73 65 | 74 20 61 20 64 65 66 61 |};..# se|t a defa|
|00004000| 75 6c 74 20 70 72 6f 6c | 6f 67 20 69 6e 20 63 61 |ult prol|og in ca|
|00004010| 73 65 20 74 68 65 20 63 | 6f 6e 66 69 67 20 66 69 |se the c|onfig fi|
|00004020| 6c 65 20 64 6f 65 73 6e | 27 74 20 68 61 76 65 20 |le doesn|'t have |
|00004030| 6f 6e 65 0a 23 20 6d 61 | 6b 65 20 73 75 72 65 20 |one.# ma|ke sure |
|00004040| 74 68 61 74 20 70 6c 69 | 6e 65 73 20 69 73 20 32 |that pli|nes is 2|
|00004050| 20 6c 61 72 67 65 72 20 | 74 68 61 6e 20 74 68 65 | larger |than the|
|00004060| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 65 66 69 6e | number |of defin|
|00004070| 69 74 69 6f 6e 73 20 69 | 6e 0a 23 20 74 68 65 20 |itions i|n.# the |
|00004080| 70 72 6f 6c 6f 67 20 28 | 75 73 65 64 20 74 6f 20 |prolog (|used to |
|00004090| 67 65 74 20 64 69 63 74 | 69 6f 6e 61 72 79 20 73 |get dict|ionary s|
|000040a0| 69 7a 65 29 2e 0a 23 0a | 24 70 6c 69 6e 65 73 3d |ize)..#.|$plines=|
|000040b0| 31 30 3b 0a 24 70 72 6f | 6c 6f 67 20 3d 20 3c 3c |10;.$pro|log = <<|
|000040c0| 45 4f 46 3b 0a 2f 69 6e | 63 68 20 7b 37 32 20 6d |EOF;./in|ch {72 m|
|000040d0| 75 6c 7d 20 64 65 66 0a | 2f 6d 6f 76 65 55 20 7b |ul} def.|/moveU {|
|000040e0| 30 20 31 31 20 69 6e 63 | 68 20 74 72 61 6e 73 6c |0 11 inc|h transl|
|000040f0| 61 74 65 7d 20 64 65 66 | 0a 2f 6d 6f 76 65 52 20 |ate} def|./moveR |
|00004100| 7b 38 2e 35 20 69 6e 63 | 68 20 30 20 74 72 61 6e |{8.5 inc|h 0 tran|
|00004110| 73 6c 61 74 65 7d 20 64 | 65 66 0a 2f 6d 6f 76 65 |slate} d|ef./move|
|00004120| 44 20 7b 30 20 2d 31 31 | 20 69 6e 63 68 20 74 72 |D {0 -11| inch tr|
|00004130| 61 6e 73 6c 61 74 65 7d | 20 64 65 66 0a 2f 6d 6f |anslate}| def./mo|
|00004140| 76 65 4c 20 7b 2d 38 2e | 35 20 69 6e 63 68 20 30 |veL {-8.|5 inch 0|
|00004150| 20 74 72 61 6e 73 6c 61 | 74 65 7d 20 64 65 66 0a | transla|te} def.|
|00004160| 2f 72 6f 74 52 20 7b 2d | 39 30 20 72 6f 74 61 74 |/rotR {-|90 rotat|
|00004170| 65 7d 20 64 65 66 0a 2f | 72 6f 74 4c 20 7b 39 30 |e} def./|rotL {90|
|00004180| 20 72 6f 74 61 74 65 7d | 20 64 65 66 0a 45 4f 46 | rotate}| def.EOF|
|00004190| 0a 0a 23 20 73 65 61 72 | 63 68 20 66 6f 72 20 61 |..# sear|ch for a|
|000041a0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 66 | configu|ration f|
|000041b0| 69 6c 65 2e 20 20 54 68 | 65 20 2a 6c 61 73 74 2a |ile. Th|e *last*|
|000041c0| 20 6f 6e 65 20 66 6f 75 | 6e 64 20 69 73 20 75 73 | one fou|nd is us|
|000041d0| 65 64 0a 23 0a 24 63 6f | 6e 66 69 67 20 3d 20 22 |ed.#.$co|nfig = "|
|000041e0| 2e 2f 75 70 2e 72 63 22 | 3b 0a 40 73 65 61 72 63 |./up.rc"|;.@searc|
|000041f0| 68 5f 70 61 74 68 20 3d | 20 28 22 2f 75 73 72 2f |h_path =| ("/usr/|
|00004200| 6c 69 62 2f 75 70 2e 72 | 63 22 2c 22 2f 75 73 72 |lib/up.r|c","/usr|
|00004210| 2f 6c 6f 63 61 6c 2f 6c | 69 62 2f 75 70 2e 72 63 |/local/l|ib/up.rc|
|00004220| 22 2c 22 24 48 4f 4d 45 | 2f 2e 75 70 72 63 22 2c |","$HOME|/.uprc",|
|00004230| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004240| 20 22 2e 2f 75 70 2e 72 | 63 22 29 3b 20 0a 66 6f | "./up.r|c"); .fo|
|00004250| 72 65 61 63 68 20 24 66 | 69 6c 65 20 28 40 73 65 |reach $f|ile (@se|
|00004260| 61 72 63 68 5f 70 61 74 | 68 29 20 7b 0a 09 24 63 |arch_pat|h) {..$c|
|00004270| 6f 6e 66 69 67 20 3d 20 | 24 66 69 6c 65 20 69 66 |onfig = |$file if|
|00004280| 20 28 2d 66 20 24 66 69 | 6c 65 20 26 26 20 2d 72 | (-f $fi|le && -r|
|00004290| 20 24 66 69 6c 65 29 3b | 0a 7d 0a 0a 23 20 63 68 | $file);|.}..# ch|
|000042a0| 65 63 6b 20 66 6f 72 20 | 6f 70 74 69 6f 6e 73 20 |eck for |options |
|000042b0| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |on comma|nd line.|
|000042c0| 0a 23 0a 77 68 69 6c 65 | 20 28 24 5f 20 3d 20 24 |.#.while| ($_ = $|
|000042d0| 41 52 47 56 5b 30 5d 2c | 2f 5e 2d 2f 29 20 7b 0a |ARGV[0],|/^-/) {.|
|000042e0| 09 73 68 69 66 74 3b 0a | 09 6c 61 73 74 20 69 66 |.shift;.|.last if|
|000042f0| 20 2f 5e 2d 5c 2d 24 2f | 3b 0a 09 2f 5e 2d 5b 46 | /^-\-$/|;../^-[F|
|00004300| 66 5d 2f 20 26 26 20 28 | 24 63 6f 6e 66 69 67 20 |f]/ && (|$config |
|00004310| 3d 20 73 68 69 66 74 2c | 6e 65 78 74 29 3b 0a 09 |= shift,|next);..|
|00004320| 2f 5e 2d 5b 4e 6e 5d 2f | 20 26 26 20 28 24 6e 61 |/^-[Nn]/| && ($na|
|00004330| 6d 65 20 3d 20 73 68 69 | 66 74 2c 6e 65 78 74 29 |me = shi|ft,next)|
|00004340| 3b 0a 09 64 69 65 20 22 | 75 73 61 67 65 3a 20 75 |;..die "|usage: u|
|00004350| 70 20 5b 2d 66 20 63 6f | 6e 66 69 67 5d 20 5b 2d |p [-f co|nfig] [-|
|00004360| 6e 20 6e 61 6d 65 5d 20 | 5b 66 69 6c 65 20 2e 2e |n name] |[file ..|
|00004370| 2e 5d 5c 6e 22 3b 0a 7d | 0a 0a 23 20 72 65 61 64 |.]\n";.}|..# read|
|00004380| 20 72 65 6c 65 76 61 6e | 74 20 73 65 63 74 69 6f | relevan|t sectio|
|00004390| 6e 20 6f 66 20 63 6f 6e | 66 69 67 75 72 61 74 69 |n of con|figurati|
|000043a0| 6f 6e 20 66 69 6c 65 2e | 09 46 6f 72 20 63 6f 6d |on file.|.For com|
|000043b0| 70 6c 65 74 65 20 66 6f | 72 6d 61 74 0a 23 20 64 |plete fo|rmat.# d|
|000043c0| 65 73 63 72 69 70 74 69 | 6f 6e 2c 20 73 65 65 20 |escripti|on, see |
|000043d0| 74 68 65 20 70 72 6f 76 | 69 64 65 64 20 75 70 2e |the prov|ided up.|
|000043e0| 72 63 20 66 69 6c 65 20 | 6f 72 20 75 70 72 63 28 |rc file |or uprc(|
|000043f0| 35 29 2e 0a 23 20 20 42 | 61 73 69 63 61 6c 6c 79 |5)..# B|asically|
|00004400| 2c 20 72 65 61 64 20 74 | 68 65 20 63 6f 6e 66 69 |, read t|he confi|
|00004410| 67 20 66 69 6c 65 20 75 | 6e 74 69 6c 20 77 65 20 |g file u|ntil we |
|00004420| 66 69 6e 64 20 61 20 6c | 69 6e 65 20 63 6f 6e 74 |find a l|ine cont|
|00004430| 61 69 6e 69 6e 67 20 61 | 0a 23 20 6e 61 6d 65 20 |aining a|.# name |
|00004440| 66 69 65 6c 64 20 65 71 | 75 61 6c 20 74 6f 20 74 |field eq|ual to t|
|00004450| 68 65 20 63 75 72 72 65 | 6e 74 20 6e 61 6d 65 2e |he curre|nt name.|
|00004460| 09 20 4f 6e 63 65 20 77 | 65 20 64 6f 2c 20 72 65 |. Once w|e do, re|
|00004470| 61 64 20 61 6c 6c 20 6e | 61 6d 65 2d 0a 23 20 76 |ad all n|ame-.# v|
|00004480| 61 6c 75 65 20 70 61 69 | 72 73 20 75 70 20 75 6e |alue pai|rs up un|
|00004490| 74 69 6c 20 61 20 6c 69 | 6e 65 20 63 6f 6e 74 61 |til a li|ne conta|
|000044a0| 69 6e 69 6e 67 20 6a 75 | 73 74 20 61 20 27 2e 27 |ining ju|st a '.'|
|000044b0| 2c 20 70 6c 61 63 69 6e | 67 20 74 68 65 6d 20 61 |, placin|g them a|
|000044c0| 6c 6c 0a 23 20 69 6e 74 | 6f 20 61 6e 20 61 73 73 |ll.# int|o an ass|
|000044d0| 6f 63 69 61 74 69 76 65 | 20 61 72 72 61 79 2e 0a |ociative| array..|
|000044e0| 23 0a 6f 70 65 6e 28 63 | 6f 6e 66 69 67 29 20 7c |#.open(c|onfig) ||
|000044f0| 7c 0a 20 20 64 69 65 20 | 22 63 61 6e 27 74 20 66 ||. die |"can't f|
|00004500| 69 6e 64 20 66 69 6c 65 | 20 27 24 63 6f 6e 66 69 |ind file| '$confi|
|00004510| 67 27 2c 20 73 74 6f 70 | 70 65 64 22 3b 0a 24 69 |g', stop|ped";.$i|
|00004520| 6e 5f 72 65 63 20 3d 20 | 30 3b 0a 77 68 69 6c 65 |n_rec = |0;.while|
|00004530| 28 3c 63 6f 6e 66 69 67 | 3e 29 20 7b 0a 09 63 68 |(<config|>) {..ch|
|00004540| 6f 70 3b 0a 09 6e 65 78 | 74 20 69 66 20 2f 5e 5c |op;..nex|t if /^\|
|00004550| 73 2a 23 7c 5e 5c 73 2a | 24 2f 3b 09 23 20 73 6b |s*#|^\s*|$/;.# sk|
|00004560| 69 70 20 63 6f 6d 6d 65 | 6e 74 20 61 6e 64 20 62 |ip comme|nt and b|
|00004570| 6c 61 6e 6b 20 6c 69 6e | 65 73 0a 09 69 66 20 28 |lank lin|es..if (|
|00004580| 2f 5e 70 72 6f 6c 6f 67 | 5c 73 2a 3d 2f 29 20 7b |/^prolog|\s*=/) {|
|00004590| 0a 09 09 64 6f 20 72 65 | 61 64 5f 70 72 6f 6c 6f |...do re|ad_prolo|
|000045a0| 67 28 29 3b 0a 09 09 6e | 65 78 74 3b 0a 09 7d 0a |g();...n|ext;..}.|
|000045b0| 09 6e 65 78 74 20 75 6e | 6c 65 73 73 20 28 24 69 |.next un|less ($i|
|000045c0| 6e 5f 72 65 63 20 7c 7c | 20 2f 24 6e 61 6d 65 2f |n_rec ||| /$name/|
|000045d0| 29 3b 0a 09 28 24 66 69 | 65 6c 64 2c 24 76 61 6c |);..($fi|eld,$val|
|000045e0| 75 65 29 20 3d 20 73 70 | 6c 69 74 28 2f 5c 73 2a |ue) = sp|lit(/\s*|
|000045f0| 3d 5c 73 2a 2f 29 3b 0a | 09 69 66 20 28 28 24 66 |=\s*/);.|.if (($f|
|00004600| 69 65 6c 64 20 65 71 20 | 22 6e 61 6d 65 22 29 20 |ield eq |"name") |
|00004610| 26 26 20 28 24 76 61 6c | 75 65 20 65 71 20 24 6e |&& ($val|ue eq $n|
|00004620| 61 6d 65 29 29 20 7b 0a | 09 09 24 69 6e 5f 72 65 |ame)) {.|..$in_re|
|00004630| 63 2b 2b 3b 0a 09 09 6e | 65 78 74 3b 0a 09 7d 0a |c++;...n|ext;..}.|
|00004640| 09 6c 61 73 74 20 69 66 | 20 2f 5e 5c 2e 24 2f 3b |.last if| /^\.$/;|
|00004650| 0a 09 24 76 61 72 7b 24 | 66 69 65 6c 64 7d 20 3d |..$var{$|field} =|
|00004660| 20 24 76 61 6c 75 65 3b | 0a 7d 0a 63 6c 6f 73 65 | $value;|.}.close|
|00004670| 28 63 6f 6e 66 69 67 29 | 3b 0a 64 69 65 20 22 6e |(config)|;.die "n|
|00004680| 6f 20 73 75 63 68 20 72 | 65 63 6f 72 64 20 27 24 |o such r|ecord '$|
|00004690| 6e 61 6d 65 27 20 69 6e | 20 66 69 6c 65 20 27 24 |name' in| file '$|
|000046a0| 63 6f 6e 66 69 67 27 2c | 20 73 74 6f 70 70 65 64 |config',| stopped|
|000046b0| 22 20 75 6e 6c 65 73 73 | 20 24 69 6e 5f 72 65 63 |" unless| $in_rec|
|000046c0| 3b 0a 24 6d 6f 64 75 6c | 75 73 20 3d 20 24 76 61 |;.$modul|us = $va|
|000046d0| 72 7b 22 6d 6f 64 75 6c | 75 73 22 7d 3b 0a 64 69 |r{"modul|us"};.di|
|000046e0| 65 20 22 69 6e 76 61 6c | 69 64 20 6d 6f 64 75 6c |e "inval|id modul|
|000046f0| 75 73 20 3d 3d 20 24 6d | 6f 64 75 6c 75 73 2c 20 |us == $m|odulus, |
|00004700| 73 74 6f 70 70 65 64 22 | 20 75 6e 6c 65 73 73 20 |stopped"| unless |
|00004710| 24 6d 6f 64 75 6c 75 73 | 3b 0a 0a 24 5f 20 3d 20 |$modulus|;..$_ = |
|00004720| 3c 3e 3b 0a 69 66 20 28 | 2f 5e 25 21 50 53 2d 41 |<>;.if (|/^%!PS-A|
|00004730| 64 6f 62 65 2f 29 20 7b | 0a 09 70 72 69 6e 74 20 |dobe/) {|..print |
|00004740| 3c 3c 45 4f 46 3b 0a 25 | 21 50 53 2d 41 64 6f 62 |<<EOF;.%|!PS-Adob|
|00004750| 65 2d 32 2e 30 0a 25 25 | 50 61 67 65 73 3a 20 28 |e-2.0.%%|Pages: (|
|00004760| 61 74 65 6e 64 29 0a 45 | 4f 46 0a 7d 65 6c 73 65 |atend).E|OF.}else|
|00004770| 7b 0a 09 64 69 65 20 22 | 4e 6f 74 20 63 6f 6e 66 |{..die "|Not conf|
|00004780| 6f 72 6d 69 6e 67 20 50 | 6f 73 74 53 63 72 69 70 |orming P|ostScrip|
|00004790| 74 20 28 6e 6f 20 25 21 | 50 53 2d 41 64 6f 62 65 |t (no %!|PS-Adobe|
|000047a0| 29 2c 20 73 74 6f 70 70 | 65 64 22 3b 0a 7d 0a 0a |), stopp|ed";.}..|
|000047b0| 23 20 72 65 61 64 20 63 | 6f 6d 6d 65 6e 74 20 73 |# read c|omment s|
|000047c0| 65 63 74 69 6f 6e 20 28 | 75 70 20 74 6f 20 66 69 |ection (|up to fi|
|000047d0| 72 73 74 20 6e 6f 6e 2d | 25 25 20 6c 69 6e 65 2c |rst non-|%% line,|
|000047e0| 20 6f 72 20 25 25 45 6e | 64 43 6f 6d 6d 65 6e 74 | or %%En|dComment|
|000047f0| 73 29 0a 23 0a 77 68 69 | 6c 65 20 28 3c 3e 29 20 |s).#.whi|le (<>) |
|00004800| 7b 0a 09 69 66 20 28 21 | 2f 5e 25 25 2f 29 20 7b |{..if (!|/^%%/) {|
|00004810| 0a 09 09 64 6f 20 70 72 | 69 6e 74 5f 70 72 6f 6c |...do pr|int_prol|
|00004820| 6f 67 75 65 28 29 3b 0a | 09 09 70 72 69 6e 74 3b |ogue();.|..print;|
|00004830| 0a 09 09 6c 61 73 74 3b | 0a 09 7d 0a 09 69 66 20 |...last;|..}..if |
|00004840| 28 2f 5e 25 25 45 6e 64 | 43 6f 6d 6d 65 6e 74 73 |(/^%%End|Comments|
|00004850| 2f 29 20 7b 0a 09 09 70 | 72 69 6e 74 3b 0a 09 09 |/) {...p|rint;...|
|00004860| 64 6f 20 70 72 69 6e 74 | 5f 70 72 6f 6c 6f 67 75 |do print|_prologu|
|00004870| 65 28 29 3b 0a 09 09 6c | 61 73 74 3b 0a 09 7d 0a |e();...l|ast;..}.|
|00004880| 09 70 72 69 6e 74 3b 0a | 7d 0a 0a 77 68 69 6c 65 |.print;.|}..while|
|00004890| 20 28 3c 3e 29 20 7b 0a | 09 23 0a 09 23 20 74 6f | (<>) {.|.#..# to|
|000048a0| 20 75 73 65 20 73 6c 69 | 67 68 74 6c 79 20 62 75 | use sli|ghtly bu|
|000048b0| 73 74 65 64 20 4e 65 58 | 54 20 70 72 65 76 69 65 |sted NeX|T previe|
|000048c0| 77 65 72 0a 09 23 0a 09 | 6e 65 78 74 20 69 66 20 |wer..#..|next if |
|000048d0| 2f 5e 25 25 50 61 67 65 | 73 3a 2f 3b 0a 09 69 66 |/^%%Page|s:/;..if|
|000048e0| 20 28 2f 5e 25 25 50 61 | 67 65 3a 2f 29 20 7b 0a | (/^%%Pa|ge:/) {.|
|000048f0| 09 09 64 6f 20 65 6e 74 | 65 72 5f 70 61 67 65 28 |..do ent|er_page(|
|00004900| 29 3b 0a 09 09 6e 65 78 | 74 3b 0a 09 7d 0a 09 69 |);...nex|t;..}..i|
|00004910| 66 20 28 2f 5e 25 25 54 | 72 61 69 6c 65 72 2f 29 |f (/^%%T|railer/)|
|00004920| 20 7b 0a 09 09 64 6f 20 | 70 72 69 6e 74 5f 74 72 | {...do |print_tr|
|00004930| 61 69 6c 65 72 28 29 3b | 0a 09 09 6e 65 78 74 3b |ailer();|...next;|
|00004940| 0a 09 7d 0a 09 70 72 69 | 6e 74 3b 0a 7d 0a 23 20 |..}..pri|nt;.}.# |
|00004950| 70 72 69 6e 74 20 61 63 | 74 75 61 6c 20 70 61 67 |print ac|tual pag|
|00004960| 65 20 63 6f 75 6e 74 2e | 20 20 54 68 69 73 20 6d |e count.| This m|
|00004970| 75 73 74 20 62 65 20 74 | 68 65 20 6c 61 73 74 20 |ust be t|he last |
|00004980| 74 72 61 69 6c 65 72 20 | 63 6f 6d 6d 65 6e 74 0a |trailer |comment.|
|00004990| 23 20 70 72 69 6e 74 65 | 64 2e 0a 23 0a 70 72 69 |# printe|d..#.pri|
|000049a0| 6e 74 20 22 25 25 50 61 | 67 65 73 3a 20 24 73 68 |nt "%%Pa|ges: $sh|
|000049b0| 65 65 74 5c 6e 22 3b 0a | 65 78 69 74 28 30 29 3b |eet\n";.|exit(0);|
|000049c0| 0a 0a 23 20 74 68 65 20 | 70 72 6f 6c 6f 67 20 63 |..# the |prolog c|
|000049d0| 6f 6e 73 69 73 74 73 20 | 6f 66 20 73 69 6d 70 6c |onsists |of simpl|
|000049e0| 65 20 63 6f 6d 6d 61 6e | 64 20 64 65 66 69 6e 69 |e comman|d defini|
|000049f0| 74 69 6f 6e 73 20 79 6f | 75 20 77 61 6e 74 20 74 |tions yo|u want t|
|00004a00| 6f 20 6d 61 6b 65 0a 23 | 20 61 76 61 69 6c 61 62 |o make.#| availab|
|00004a10| 6c 65 20 74 6f 20 74 68 | 65 20 63 6f 6e 66 69 67 |le to th|e config|
|00004a20| 75 72 61 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 73 |uration |routines|
|00004a30| 2e 20 20 4e 6f 6e 65 20 | 6f 66 20 74 68 65 6d 20 |. None |of them |
|00004a40| 64 6f 20 61 6e 79 74 68 | 69 6e 67 0a 23 20 63 6f |do anyth|ing.# co|
|00004a50| 6d 70 6c 69 63 61 74 65 | 64 2c 20 62 75 74 20 77 |mplicate|d, but w|
|00004a60| 68 79 20 6d 61 6b 65 20 | 6c 69 66 65 20 6d 6f 72 |hy make |life mor|
|00004a70| 65 20 64 69 66 66 69 63 | 75 6c 74 20 66 6f 72 20 |e diffic|ult for |
|00004a80| 74 68 65 20 75 73 65 72 | 3f 0a 23 0a 73 75 62 20 |the user|?.#.sub |
|00004a90| 70 72 69 6e 74 5f 70 72 | 6f 6c 6f 67 75 65 20 7b |print_pr|ologue {|
|00004aa0| 0a 09 70 72 69 6e 74 20 | 3c 3c 45 4f 46 3b 0a 25 |..print |<<EOF;.%|
|00004ab0| 25 42 65 67 69 6e 50 72 | 6f 63 53 65 74 3a 20 75 |%BeginPr|ocSet: u|
|00004ac0| 70 5f 70 72 6f 6c 6f 67 | 20 31 20 24 24 0a 2f 55 |p_prolog| 1 $$./U|
|00004ad0| 70 44 69 63 74 24 24 20 | 24 70 6c 69 6e 65 73 20 |pDict$$ |$plines |
|00004ae0| 33 20 61 64 64 20 64 69 | 63 74 20 64 65 66 0a 55 |3 add di|ct def.U|
|00004af0| 70 44 69 63 74 24 24 20 | 62 65 67 69 6e 0a 24 70 |pDict$$ |begin.$p|
|00004b00| 72 6f 6c 6f 67 0a 2f 55 | 70 53 68 6f 77 70 61 67 |rolog./U|pShowpag|
|00004b10| 65 20 7b 73 68 6f 77 70 | 61 67 65 7d 20 62 69 6e |e {showp|age} bin|
|00004b20| 64 20 64 65 66 0a 2f 55 | 70 53 74 61 74 65 20 7b |d def./U|pState {|
|00004b30| 7d 20 64 65 66 0a 65 6e | 64 0a 2f 73 68 6f 77 70 |} def.en|d./showp|
|00004b40| 61 67 65 20 7b 7d 20 64 | 65 66 0a 25 25 45 6e 64 |age {} d|ef.%%End|
|00004b50| 50 72 6f 63 53 65 74 3a | 20 75 70 5f 70 72 6f 6c |ProcSet:| up_prol|
|00004b60| 6f 67 20 31 20 24 24 0a | 45 4f 46 0a 7d 0a 0a 23 |og 1 $$.|EOF.}..#|
|00004b70| 20 62 61 73 69 63 61 6c | 6c 79 2c 20 61 74 20 74 | basical|ly, at t|
|00004b80| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00004b90| 61 20 70 61 67 65 2c 20 | 70 75 6c 6c 20 74 68 65 |a page, |pull the|
|00004ba0| 20 6e 75 6d 62 65 72 20 | 66 72 6f 6d 20 74 68 65 | number |from the|
|00004bb0| 20 70 61 67 65 0a 23 20 | 68 65 61 64 65 72 2c 20 | page.# |header, |
|00004bc0| 74 61 6b 65 20 69 74 20 | 6d 6f 64 75 6c 6f 20 24 |take it |modulo $|
|00004bd0| 6d 6f 64 75 6c 75 73 2c | 20 61 6e 64 20 70 72 69 |modulus,| and pri|
|00004be0| 6e 74 20 74 68 69 6e 67 | 73 20 62 61 73 65 64 20 |nt thing|s based |
|00004bf0| 6f 6e 20 74 68 61 74 20 | 23 0a 23 20 6e 75 6d 62 |on that |#.# numb|
|00004c00| 65 72 2e 20 20 49 66 20 | 69 74 27 73 20 31 2c 20 |er. If |it's 1, |
|00004c10| 65 6e 64 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |end the |previous|
|00004c20| 20 73 68 65 65 74 20 28 | 69 66 20 74 68 65 72 65 | sheet (|if there|
|00004c30| 20 69 73 20 6f 6e 65 29 | 2c 0a 23 20 69 6e 63 72 | is one)|,.# incr|
|00004c40| 65 6d 65 6e 74 20 74 68 | 65 20 73 68 65 65 74 20 |ement th|e sheet |
|00004c50| 6e 75 6d 62 65 72 2c 20 | 61 6e 64 20 70 72 69 6e |number, |and prin|
|00004c60| 74 20 61 20 73 68 65 65 | 74 20 68 65 61 64 65 72 |t a shee|t header|
|00004c70| 2e 09 20 46 6f 72 20 61 | 6c 6c 0a 23 20 70 61 67 |.. For a|ll.# pag|
|00004c80| 65 73 2c 20 70 72 69 6e | 74 20 74 68 65 20 61 70 |es, prin|t the ap|
|00004c90| 70 72 6f 70 72 69 61 74 | 65 20 70 61 67 65 20 6d |propriat|e page m|
|00004ca0| 6f 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 2e 0a 23 |otion co|mmand..#|
|00004cb0| 0a 73 75 62 20 65 6e 74 | 65 72 5f 70 61 67 65 20 |.sub ent|er_page |
|00004cc0| 7b 0a 09 24 70 61 67 65 | 2b 2b 3b 0a 09 28 24 66 |{..$page|++;..($f|
|00004cd0| 6f 6f 2c 24 62 61 72 2c | 24 6f 6c 64 70 61 67 65 |oo,$bar,|$oldpage|
|00004ce0| 29 20 3d 20 73 70 6c 69 | 74 3b 0a 09 64 69 65 20 |) = spli|t;..die |
|00004cf0| 22 48 65 6c 70 21 20 70 | 61 67 65 20 6e 75 6d 62 |"Help! p|age numb|
|00004d00| 65 72 20 6d 69 73 6d 61 | 74 63 68 2c 20 73 74 6f |er misma|tch, sto|
|00004d10| 70 70 65 64 22 20 69 66 | 20 28 24 6f 6c 64 70 61 |pped" if| ($oldpa|
|00004d20| 67 65 20 21 3d 20 24 70 | 61 67 65 29 3b 0a 09 24 |ge != $p|age);..$|
|00004d30| 74 65 6d 70 20 3d 20 24 | 70 61 67 65 20 25 20 24 |temp = $|page % $|
|00004d40| 6d 6f 64 75 6c 75 73 3b | 0a 09 69 66 20 28 24 74 |modulus;|..if ($t|
|00004d50| 65 6d 70 20 3d 3d 20 31 | 29 20 7b 0a 09 09 69 66 |emp == 1|) {...if|
|00004d60| 20 28 24 73 68 65 65 74 | 2b 2b 29 20 7b 0a 09 09 | ($sheet|++) {...|
|00004d70| 09 70 72 69 6e 74 20 0a | 09 09 09 20 20 22 55 70 |.print .|... "Up|
|00004d80| 44 69 63 74 24 24 20 62 | 65 67 69 6e 20 55 70 53 |Dict$$ b|egin UpS|
|00004d90| 74 61 74 65 20 72 65 73 | 74 6f 72 65 20 55 70 53 |tate res|tore UpS|
|00004da0| 68 6f 77 70 61 67 65 20 | 65 6e 64 5c 6e 22 3b 0a |howpage |end\n";.|
|00004db0| 09 09 7d 0a 09 09 70 72 | 69 6e 74 20 3c 3c 45 4f |..}...pr|int <<EO|
|00004dc0| 46 3b 0a 25 25 50 61 67 | 65 3a 20 3f 20 24 73 68 |F;.%%Pag|e: ? $sh|
|00004dd0| 65 65 74 0a 55 70 44 69 | 63 74 24 24 20 62 65 67 |eet.UpDi|ct$$ beg|
|00004de0| 69 6e 0a 73 61 76 65 20 | 2f 55 70 53 74 61 74 65 |in.save |/UpState|
|00004df0| 20 65 78 63 68 20 64 65 | 66 0a 45 4f 46 0a 09 09 | exch de|f.EOF...|
|00004e00| 70 72 69 6e 74 20 24 73 | 68 65 65 74 20 25 20 32 |print $s|heet % 2|
|00004e10| 20 3f 20 24 76 61 72 7b | 27 6f 64 64 27 7d 20 3a | ? $var{|'odd'} :|
|00004e20| 20 24 76 61 72 7b 27 65 | 76 65 6e 27 7d 2c 22 5c | $var{'e|ven'},"\|
|00004e30| 6e 22 3b 0a 09 09 70 72 | 69 6e 74 20 24 76 61 72 |n";...pr|int $var|
|00004e40| 7b 22 73 63 61 6c 65 22 | 7d 2c 22 5c 6e 22 3b 0a |{"scale"|},"\n";.|
|00004e50| 09 7d 65 6c 73 65 7b 0a | 09 09 70 72 69 6e 74 20 |.}else{.|..print |
|00004e60| 22 55 70 44 69 63 74 24 | 24 20 62 65 67 69 6e 5c |"UpDict$|$ begin\|
|00004e70| 6e 22 3b 0a 09 7d 0a 09 | 24 74 65 6d 70 20 3d 20 |n";..}..|$temp = |
|00004e80| 24 6d 6f 64 75 6c 75 73 | 20 75 6e 6c 65 73 73 20 |$modulus| unless |
|00004e90| 24 74 65 6d 70 3b 0a 09 | 70 72 69 6e 74 20 24 76 |$temp;..|print $v|
|00004ea0| 61 72 7b 24 74 65 6d 70 | 7d 2c 22 5c 6e 22 3b 0a |ar{$temp|},"\n";.|
|00004eb0| 09 70 72 69 6e 74 20 22 | 65 6e 64 5c 6e 22 3b 0a |.print "|end\n";.|
|00004ec0| 7d 0a 0a 23 20 70 72 69 | 6e 74 20 74 68 65 20 74 |}..# pri|nt the t|
|00004ed0| 72 61 69 6c 65 72 2c 20 | 77 68 69 63 68 20 66 6f |railer, |which fo|
|00004ee0| 72 20 75 73 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |r us con|sists of|
|00004ef0| 20 61 20 73 68 6f 77 70 | 61 67 65 20 28 69 6e 73 | a showp|age (ins|
|00004f00| 65 72 74 65 64 0a 23 20 | 62 65 66 6f 72 65 20 74 |erted.# |before t|
|00004f10| 68 65 20 74 72 61 69 6c | 65 72 20 63 6f 6d 6d 65 |he trail|er comme|
|00004f20| 6e 74 2c 20 74 6f 20 6d | 61 6b 65 20 69 74 20 70 |nt, to m|ake it p|
|00004f30| 61 72 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |art of t|he last |
|00004f40| 70 61 67 65 29 2e 0a 23 | 0a 73 75 62 20 70 72 69 |page)..#|.sub pri|
|00004f50| 6e 74 5f 74 72 61 69 6c | 65 72 20 7b 0a 09 70 72 |nt_trail|er {..pr|
|00004f60| 69 6e 74 20 22 55 70 44 | 69 63 74 24 24 20 62 65 |int "UpD|ict$$ be|
|00004f70| 67 69 6e 20 55 70 53 74 | 61 74 65 20 72 65 73 74 |gin UpSt|ate rest|
|00004f80| 6f 72 65 20 55 70 53 68 | 6f 77 70 61 67 65 20 65 |ore UpSh|owpage e|
|00004f90| 6e 64 5c 6e 22 20 69 66 | 20 24 70 61 67 65 3b 0a |nd\n" if| $page;.|
|00004fa0| 09 70 72 69 6e 74 20 22 | 25 25 54 72 61 69 6c 65 |.print "|%%Traile|
|00004fb0| 72 5c 6e 22 3b 0a 7d 0a | 0a 23 20 72 65 61 64 20 |r\n";.}.|.# read |
|00004fc0| 74 68 65 20 70 72 6f 6c | 6f 67 20 66 72 6f 6d 20 |the prol|og from |
|00004fd0| 74 68 65 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |the conf|iguratio|
|00004fe0| 6e 20 66 69 6c 65 2e 09 | 41 6c 6c 20 6c 69 6e 65 |n file..|All line|
|00004ff0| 73 20 75 70 20 74 6f 20 | 74 68 65 0a 23 20 74 68 |s up to |the.# th|
|00005000| 65 20 66 69 72 73 74 20 | 6f 6e 65 20 73 74 61 72 |e first |one star|
|00005010| 74 69 6e 67 20 77 69 74 | 68 20 27 2e 27 20 77 69 |ting wit|h '.' wi|
|00005020| 6c 6c 20 62 65 20 70 6c | 61 63 65 64 20 69 6e 20 |ll be pl|aced in |
|00005030| 24 70 72 6f 6c 6f 67 0a | 23 0a 73 75 62 20 72 65 |$prolog.|#.sub re|
|00005040| 61 64 5f 70 72 6f 6c 6f | 67 20 7b 0a 09 24 70 72 |ad_prolo|g {..$pr|
|00005050| 6f 6c 6f 67 3d 27 27 3b | 0a 09 23 70 6c 69 6e 65 |olog='';|..#pline|
|00005060| 73 3d 30 3b 0a 09 77 68 | 69 6c 65 20 28 3c 63 6f |s=0;..wh|ile (<co|
|00005070| 6e 66 69 67 3e 29 20 7b | 0a 09 09 6c 61 73 74 20 |nfig>) {|...last |
|00005080| 69 66 20 2f 5e 5c 2e 2f | 3b 0a 09 09 24 70 72 6f |if /^\./|;...$pro|
|00005090| 6c 6f 67 20 2e 3d 20 24 | 5f 3b 0a 09 09 24 70 6c |log .= $|_;...$pl|
|000050a0| 69 6e 65 73 2b 2b 3b 0a | 09 7d 0a 09 63 68 6f 70 |ines++;.|.}..chop|
|000050b0| 28 24 70 72 6f 6c 6f 67 | 29 3b 0a 09 24 70 6c 69 |($prolog|);..$pli|
|000050c0| 6e 65 73 2b 3d 33 3b 0a | 7d 0a 2f 55 70 53 74 61 |nes+=3;.|}./UpSta|
|000050d0| 74 65 20 65 78 63 68 20 | 64 65 66 0a 37 2e 37 35 |te exch |def.7.75|
|000050e0| 20 69 6e 63 68 20 30 20 | 74 72 61 6e 73 6c 61 74 | inch 0 |translat|
|000050f0| 65 20 72 6f 74 4c 20 31 | 31 20 31 37 20 64 69 76 |e rotL 1|1 17 div|
|00005100| 20 64 75 70 20 73 63 61 | 6c 65 0a 65 6e 64 0a 28 | dup sca|le.end.(|
|00005110| 31 29 20 64 72 61 77 70 | 61 67 65 0a 55 70 44 69 |1) drawp|age.UpDi|
|00005120| 63 74 37 34 38 32 20 62 | 65 67 69 6e 0a 6d 6f 76 |ct7482 b|egin.mov|
|00005130| 65 52 0a 65 6e 64 0a 28 | 32 29 20 64 72 61 77 70 |eR.end.(|2) drawp|
|00005140| 61 67 65 0a 55 70 44 69 | 63 74 37 34 38 32 20 62 |age.UpDi|ct7482 b|
|00005150| 65 67 69 6e 20 55 70 53 | 74 61 74 65 20 72 65 73 |egin UpS|tate res|
|00005160| 74 6f 72 65 20 55 70 53 | 68 6f 77 70 61 67 65 20 |tore UpS|howpage |
|00005170| 65 6e 64 0a 25 25 50 61 | 67 65 3a 20 3f 20 32 0a |end.%%Pa|ge: ? 2.|
|00005180| 55 70 44 69 63 74 37 34 | 38 32 20 62 65 67 69 6e |UpDict74|82 begin|
|00005190| 0a 73 61 76 65 20 2f 55 | 70 53 74 61 74 65 20 65 |.save /U|pState e|
|000051a0| 78 63 68 20 64 65 66 0a | 37 2e 37 35 20 69 6e 63 |xch def.|7.75 inc|
|000051b0| 68 20 30 20 74 72 61 6e | 73 6c 61 74 65 20 72 6f |h 0 tran|slate ro|
|000051c0| 74 4c 20 31 31 20 31 37 | 20 64 69 76 20 64 75 70 |tL 11 17| div dup|
|000051d0| 20 73 63 61 6c 65 0a 65 | 6e 64 0a 28 33 29 20 64 | scale.e|nd.(3) d|
|000051e0| 72 61 77 70 61 67 65 0a | 55 70 44 69 63 74 37 34 |rawpage.|UpDict74|
|000051f0| 38 32 20 62 65 67 69 6e | 0a 6d 6f 76 65 52 0a 65 |82 begin|.moveR.e|
|00005200| 75 70 2f 6d 61 6b 65 75 | 70 00 00 00 00 00 00 00 |up/makeu|p.......|
|00005210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 31 35 |.... 7|55 . 15|
|00005270| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00005280| 20 20 20 32 31 30 34 20 | 20 34 35 32 33 33 36 35 | 2104 | 4523365|
|00005290| 33 33 31 20 20 20 35 37 | 36 32 00 20 00 00 00 00 |331 57|62. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 23 21 2f 75 73 72 2f 62 | 69 6e 2f 70 65 72 6c 0a |#!/usr/b|in/perl.|
|00005410| 23 20 74 65 73 74 20 70 | 61 67 65 20 70 72 69 6e |# test p|age prin|
|00005420| 74 69 6e 67 20 66 6f 72 | 20 75 70 2e 20 20 70 72 |ting for| up. pr|
|00005430| 69 6e 74 20 61 72 67 20 | 70 61 67 65 73 2c 20 65 |int arg |pages, e|
|00005440| 61 63 68 20 77 69 74 68 | 20 61 20 62 6f 78 20 61 |ach with| a box a|
|00005450| 72 6f 75 6e 64 0a 23 20 | 74 68 65 20 65 64 67 65 |round.# |the edge|
|00005460| 73 20 28 2e 32 35 20 69 | 6e 63 68 65 73 20 69 6e |s (.25 i|nches in|
|00005470| 29 2c 20 61 6e 64 20 74 | 68 65 20 70 61 67 65 20 |), and t|he page |
|00005480| 6e 75 6d 62 65 72 20 69 | 6e 20 6c 61 72 67 65 20 |number i|n large |
|00005490| 74 79 70 65 2e 0a 23 20 | 20 54 68 69 73 20 69 73 |type..# | This is|
|000054a0| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 64 65 62 75 | useful |for debu|
|000054b0| 67 67 69 6e 67 20 70 61 | 67 65 20 6c 61 79 6f 75 |gging pa|ge layou|
|000054c0| 74 73 2c 20 61 73 20 77 | 65 6c 6c 20 61 73 20 6a |ts, as w|ell as j|
|000054d0| 75 73 74 20 77 61 73 74 | 69 6e 67 0a 23 20 70 61 |ust wast|ing.# pa|
|000054e0| 70 65 72 2e 0a 23 0a 23 | 20 75 73 61 67 65 3a 20 |per..#.#| usage: |
|000054f0| 6d 61 6b 65 75 70 20 63 | 6f 75 6e 74 0a 23 0a 23 |makeup c|ount.#.#|
|00005500| 20 6a 67 72 65 65 6c 79 | 40 63 69 73 2e 6f 68 69 | jgreely|@cis.ohi|
|00005510| 6f 2d 73 74 61 74 65 2e | 65 64 75 2c 20 38 39 2f |o-state.|edu, 89/|
|00005520| 31 30 2f 32 33 0a 23 0a | 24 63 6f 75 6e 74 20 3d |10/23.#.|$count =|
|00005530| 20 24 41 52 47 56 5b 30 | 5d 3b 0a 64 69 65 20 22 | $ARGV[0|];.die "|
|00005540| 75 73 61 67 65 3a 20 6d | 61 6b 65 75 70 20 63 6f |usage: m|akeup co|
|00005550| 75 6e 74 5c 6e 22 20 75 | 6e 6c 65 73 73 20 24 63 |unt\n" u|nless $c|
|00005560| 6f 75 6e 74 20 3e 20 30 | 3b 0a 0a 24 64 61 74 65 |ount > 0|;..$date|
|00005570| 20 3d 20 60 64 61 74 65 | 60 3b 0a 63 68 6f 70 28 | = `date|`;.chop(|
|00005580| 24 64 61 74 65 29 3b 0a | 0a 70 72 69 6e 74 20 3c |$date);.|.print <|
|00005590| 3c 45 4f 46 3b 0a 25 21 | 50 53 2d 41 64 6f 62 65 |<EOF;.%!|PS-Adobe|
|000055a0| 2d 31 2e 30 0a 25 25 43 | 72 65 61 74 6f 72 3a 20 |-1.0.%%C|reator: |
|000055b0| 6d 61 6b 65 75 70 0a 25 | 25 54 69 74 6c 65 3a 20 |makeup.%|%Title: |
|000055c0| 50 61 67 65 20 4c 61 79 | 6f 75 74 20 54 65 73 74 |Page Lay|out Test|
|000055d0| 0a 25 25 43 72 65 61 74 | 69 6f 6e 44 61 74 65 3a |.%%Creat|ionDate:|
|000055e0| 20 24 64 61 74 65 0a 25 | 25 50 61 67 65 73 3a 20 | $date.%|%Pages: |
|000055f0| 28 61 74 65 6e 64 29 0a | 25 25 44 6f 63 75 6d 65 |(atend).|%%Docume|
|00005600| 6e 74 46 6f 6e 74 73 3a | 20 54 69 6d 65 73 2d 52 |ntFonts:| Times-R|
|00005610| 6f 6d 61 6e 0a 25 25 42 | 6f 75 6e 64 69 6e 67 42 |oman.%%B|oundingB|
|00005620| 6f 78 3a 20 30 20 30 20 | 36 31 32 20 37 39 32 0a |ox: 0 0 |612 792.|
|00005630| 25 25 45 6e 64 43 6f 6d | 6d 65 6e 74 73 0a 2f 69 |%%EndCom|ments./i|
|00005640| 6e 63 68 20 7b 37 32 20 | 6d 75 6c 7d 20 64 65 66 |nch {72 |mul} def|
|00005650| 0a 2f 4e 66 6f 6e 74 20 | 2f 54 69 6d 65 73 2d 52 |./Nfont |/Times-R|
|00005660| 6f 6d 61 6e 20 66 69 6e | 64 66 6f 6e 74 20 35 20 |oman fin|dfont 5 |
|00005670| 69 6e 63 68 20 73 63 61 | 6c 65 66 6f 6e 74 20 64 |inch sca|lefont d|
|00005680| 65 66 0a 2f 64 72 61 77 | 70 61 67 65 20 7b 0a 09 |ef./draw|page {..|
|00005690| 32 20 73 65 74 6c 69 6e | 65 63 61 70 20 33 20 73 |2 setlin|ecap 3 s|
|000056a0| 65 74 6c 69 6e 65 77 69 | 64 74 68 20 30 20 73 65 |etlinewi|dth 0 se|
|000056b0| 74 67 72 61 79 0a 09 4e | 66 6f 6e 74 20 73 65 74 |tgray..N|font set|
|000056c0| 66 6f 6e 74 0a 09 64 75 | 70 20 73 74 72 69 6e 67 |font..du|p string|
|000056d0| 77 69 64 74 68 0a 09 31 | 31 20 69 6e 63 68 20 65 |width..1|1 inch e|
|000056e0| 78 63 68 20 73 75 62 20 | 32 20 64 69 76 0a 09 65 |xch sub |2 div..e|
|000056f0| 78 63 68 20 38 2e 35 20 | 69 6e 63 68 20 65 78 63 |xch 8.5 |inch exc|
|00005700| 68 20 73 75 62 20 32 20 | 64 69 76 0a 09 65 78 63 |h sub 2 |div..exc|
|00005710| 68 20 6d 6f 76 65 74 6f | 20 73 68 6f 77 0a 09 30 |h moveto| show..0|
|00005720| 2e 32 35 20 69 6e 63 68 | 20 64 75 70 20 6d 6f 76 |.25 inch| dup mov|
|00005730| 65 74 6f 0a 09 38 20 69 | 6e 63 68 20 30 20 72 6c |eto..8 i|nch 0 rl|
|00005740| 69 6e 65 74 6f 0a 09 30 | 20 31 30 2e 35 20 69 6e |ineto..0| 10.5 in|
|00005750| 63 68 20 72 6c 69 6e 65 | 74 6f 0a 09 2d 38 20 69 |ch rline|to..-8 i|
|00005760| 6e 63 68 20 30 20 72 6c | 69 6e 65 74 6f 0a 09 30 |nch 0 rl|ineto..0|
|00005770| 20 2d 31 30 2e 35 20 69 | 6e 63 68 20 72 6c 69 6e | -10.5 i|nch rlin|
|00005780| 65 74 6f 0a 09 63 6c 6f | 73 65 70 61 74 68 20 73 |eto..clo|sepath s|
|00005790| 74 72 6f 6b 65 0a 09 73 | 68 6f 77 70 61 67 65 0a |troke..s|howpage.|
|000057a0| 7d 20 64 65 66 0a 25 25 | 45 6e 64 50 72 6f 6c 6f |} def.%%|EndProlo|
|000057b0| 67 0a 45 4f 46 0a 0a 66 | 6f 72 20 28 24 70 61 67 |g.EOF..f|or ($pag|
|000057c0| 65 3d 31 3b 24 70 61 67 | 65 20 3c 3d 20 24 63 6f |e=1;$pag|e <= $co|
|000057d0| 75 6e 74 3b 24 70 61 67 | 65 2b 2b 29 20 7b 0a 09 |unt;$pag|e++) {..|
|000057e0| 70 72 69 6e 74 20 22 25 | 25 50 61 67 65 3a 20 3f |print "%|%Page: ?|
|000057f0| 20 24 70 61 67 65 5c 6e | 28 24 70 61 67 65 29 20 | $page\n|($page) |
|00005800| 64 72 61 77 70 61 67 65 | 5c 6e 22 3b 0a 7d 0a 0a |drawpage|\n";.}..|
|00005810| 70 72 69 6e 74 20 3c 3c | 45 4f 46 3b 0a 25 25 54 |print <<|EOF;.%%T|
|00005820| 72 61 69 6c 65 72 0a 25 | 25 50 61 67 65 73 3a 20 |railer.%|%Pages: |
|00005830| 24 63 6f 75 6e 74 0a 45 | 4f 46 0a 65 78 69 74 28 |$count.E|OF.exit(|
|00005840| 30 29 3b 0a 64 20 65 71 | 75 61 6c 20 74 6f 20 74 |0);.d eq|ual to t|
|00005850| 68 65 20 63 75 72 72 65 | 6e 74 20 6e 61 6d 65 2e |he curre|nt name.|
|00005860| 09 20 4f 6e 63 65 20 77 | 65 20 64 6f 2c 20 72 65 |. Once w|e do, re|
|00005870| 61 64 20 61 6c 6c 20 6e | 61 6d 65 2d 0a 23 20 76 |ad all n|ame-.# v|
|00005880| 61 6c 75 65 20 70 61 69 | 72 73 20 75 70 20 75 6e |alue pai|rs up un|
|00005890| 74 69 6c 20 61 20 6c 69 | 6e 65 20 63 6f 6e 74 61 |til a li|ne conta|
|000058a0| 69 6e 69 6e 67 20 6a 75 | 73 74 20 61 20 27 2e 27 |ining ju|st a '.'|
|000058b0| 2c 20 70 6c 61 63 69 6e | 67 20 74 68 65 6d 20 61 |, placin|g them a|
|000058c0| 6c 6c 0a 23 20 69 6e 74 | 6f 20 61 6e 20 61 73 73 |ll.# int|o an ass|
|000058d0| 6f 63 69 61 74 69 76 65 | 20 61 72 72 61 79 2e 0a |ociative| array..|
|000058e0| 23 0a 6f 70 65 6e 28 63 | 6f 6e 66 69 67 29 20 7c |#.open(c|onfig) ||
|000058f0| 7c 0a 20 20 64 69 65 20 | 22 63 61 6e 27 74 20 66 ||. die |"can't f|
|00005900| 69 6e 64 20 66 69 6c 65 | 20 27 24 63 6f 6e 66 69 |ind file| '$confi|
|00005910| 67 27 2c 20 73 74 6f 70 | 70 65 64 22 3b 0a 24 69 |g', stop|ped";.$i|
|00005920| 6e 5f 72 65 63 20 3d 20 | 30 3b 0a 77 68 69 6c 65 |n_rec = |0;.while|
|00005930| 28 3c 63 6f 6e 66 69 67 | 3e 29 20 7b 0a 09 63 68 |(<config|>) {..ch|
|00005940| 6f 70 3b 0a 09 6e 65 78 | 74 20 69 66 20 2f 5e 5c |op;..nex|t if /^\|
|00005950| 73 2a 23 7c 5e 5c 73 2a | 24 2f 3b 09 23 20 73 6b |s*#|^\s*|$/;.# sk|
|00005960| 69 70 20 63 6f 6d 6d 65 | 6e 74 20 61 6e 64 20 62 |ip comme|nt and b|
|00005970| 6c 61 6e 6b 20 6c 69 6e | 65 73 0a 09 69 66 20 28 |lank lin|es..if (|
|00005980| 2f 5e 70 72 6f 6c 6f 67 | 5c 73 2a 3d 2f 29 20 7b |/^prolog|\s*=/) {|
|00005990| 0a 09 09 64 6f 20 72 65 | 61 64 5f 70 72 6f 6c 6f |...do re|ad_prolo|
|000059a0| 67 28 29 3b 0a 09 09 6e | 65 78 74 3b 0a 09 7d 0a |g();...n|ext;..}.|
|000059b0| 09 6e 65 78 74 20 75 6e | 6c 65 73 73 20 28 24 69 |.next un|less ($i|
|000059c0| 6e 5f 72 65 63 20 7c 7c | 20 2f 24 6e 61 6d 65 2f |n_rec ||| /$name/|
|000059d0| 29 3b 0a 09 28 24 66 69 | 65 6c 64 2c 24 76 61 6c |);..($fi|eld,$val|
|000059e0| 75 65 29 20 3d 20 73 70 | 6c 69 74 28 2f 5c 73 2a |ue) = sp|lit(/\s*|
|000059f0| 3d 5c 73 2a 2f 29 3b 0a | 09 69 66 20 28 28 24 66 |=\s*/);.|.if (($f|
|00005a00| 75 70 2f 70 61 72 72 00 | 00 00 00 00 00 00 00 00 |up/parr.|........|
|00005a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 31 35 |.... 7|55 . 15|
|00005a70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00005a80| 20 20 20 35 31 34 35 20 | 20 34 35 32 33 33 36 35 | 5145 | 4523365|
|00005a90| 33 33 32 20 20 20 35 34 | 35 35 00 20 00 00 00 00 |332 54|55. ....|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 23 21 2f 75 73 72 2f 62 | 69 6e 2f 70 65 72 6c 0a |#!/usr/b|in/perl.|
|00005c10| 23 70 61 72 72 3a 0a 23 | 20 72 65 61 72 72 61 6e |#parr:.#| rearran|
|00005c20| 67 65 20 63 6f 6e 66 6f | 72 6d 69 6e 67 20 50 53 |ge confo|rming PS|
|00005c30| 20 63 6f 64 65 20 74 6f | 20 70 72 69 6e 74 20 74 | code to| print t|
|00005c40| 68 65 20 70 61 67 65 73 | 20 69 6e 20 61 6e 20 61 |he pages| in an a|
|00005c50| 72 62 69 74 72 61 72 79 | 0a 23 20 6f 72 64 65 72 |rbitrary|.# order|
|00005c60| 2e 20 20 54 68 65 20 2d | 5b 73 53 5d 20 6f 70 74 |. The -|[sS] opt|
|00005c70| 69 6f 6e 73 20 28 66 6f | 72 20 73 69 67 6e 61 74 |ions (fo|r signat|
|00005c80| 75 72 65 20 6f 72 64 65 | 72 29 20 61 73 73 75 6d |ure orde|r) assum|
|00005c90| 65 20 74 77 6f 2d 75 70 | 2c 20 6c 65 66 74 0a 23 |e two-up|, left.#|
|00005ca0| 20 74 6f 20 72 69 67 68 | 74 2e 20 20 54 68 65 20 | to righ|t. The |
|00005cb0| 2d 6f 20 6f 70 74 69 6f | 6e 20 74 61 6b 65 73 20 |-o optio|n takes |
|00005cc0| 61 20 6c 69 73 74 20 6f | 66 20 72 61 6e 67 65 73 |a list o|f ranges|
|00005cd0| 2c 20 6c 69 6b 65 20 74 | 68 69 73 3a 0a 23 09 31 |, like t|his:.#.1|
|00005ce0| 2d 35 20 20 20 20 31 2d | 31 30 2c 31 31 2d 32 30 |-5 1-|10,11-20|
|00005cf0| 20 20 20 20 31 31 2d 2c | 31 2d 31 30 0a 23 20 75 | 11-,|1-10.# u|
|00005d00| 73 61 67 65 3a 20 70 61 | 72 72 20 5b 2d 6f 20 6c |sage: pa|rr [-o l|
|00005d10| 69 73 74 5d 20 5b 2d 73 | 5d 20 5b 2d 53 20 6e 5d |ist] [-s|] [-S n]|
|00005d20| 20 5b 66 69 6c 65 5d 0a | 23 0a 23 20 6a 67 72 65 | [file].|#.# jgre|
|00005d30| 65 6c 79 40 63 69 73 2e | 6f 68 69 6f 2d 73 74 61 |ely@cis.|ohio-sta|
|00005d40| 74 65 2e 65 64 75 2c 20 | 38 39 2f 31 30 2f 32 33 |te.edu, |89/10/23|
|00005d50| 0a 0a 24 6f 72 64 65 72 | 3d 27 27 3b 0a 24 73 69 |..$order|='';.$si|
|00005d60| 67 6e 46 6c 61 67 3d 27 | 27 3b 0a 24 73 69 67 6e |gnFlag='|';.$sign|
|00005d70| 43 6f 75 6e 74 3d 30 3b | 0a 24 44 45 42 55 47 3d |Count=0;|.$DEBUG=|
|00005d80| 30 3b 0a 24 72 61 6e 67 | 65 50 72 69 6e 74 3d 30 |0;.$rang|ePrint=0|
|00005d90| 3b 0a 24 54 4d 50 44 49 | 52 3d 27 2f 74 6d 70 27 |;.$TMPDI|R='/tmp'|
|00005da0| 3b 0a 0a 77 68 69 6c 65 | 20 28 24 5f 20 3d 20 24 |;..while| ($_ = $|
|00005db0| 41 52 47 56 5b 30 5d 2c | 2f 5e 2d 2f 29 20 7b 0a |ARGV[0],|/^-/) {.|
|00005dc0| 09 73 68 69 66 74 3b 0a | 09 6c 61 73 74 20 69 66 |.shift;.|.last if|
|00005dd0| 20 2f 5e 2d 5c 2d 24 2f | 3b 0a 09 2f 5e 2d 6f 2f | /^-\-$/|;../^-o/|
|00005de0| 20 26 26 20 28 24 6f 72 | 64 65 72 20 3d 20 73 68 | && ($or|der = sh|
|00005df0| 69 66 74 2c 6e 65 78 74 | 29 3b 0a 09 2f 5e 2d 53 |ift,next|);../^-S|
|00005e00| 2f 20 26 26 20 28 24 73 | 69 67 6e 43 6f 75 6e 74 |/ && ($s|ignCount|
|00005e10| 20 3d 20 73 68 69 66 74 | 2c 24 73 69 67 6e 46 6c | = shift|,$signFl|
|00005e20| 61 67 2b 2b 2c 6e 65 78 | 74 29 3b 0a 09 2f 5e 2d |ag++,nex|t);../^-|
|00005e30| 73 2f 20 26 26 20 28 24 | 73 69 67 6e 46 6c 61 67 |s/ && ($|signFlag|
|00005e40| 2b 2b 2c 6e 65 78 74 29 | 3b 0a 09 2f 5e 2d 64 2f |++,next)|;../^-d/|
|00005e50| 20 26 26 20 28 24 44 45 | 42 55 47 2b 2b 2c 6e 65 | && ($DE|BUG++,ne|
|00005e60| 78 74 29 3b 0a 09 2f 5e | 2d 72 2f 20 26 26 20 28 |xt);../^|-r/ && (|
|00005e70| 24 72 61 6e 67 65 50 72 | 69 6e 74 2b 2b 2c 6e 65 |$rangePr|int++,ne|
|00005e80| 78 74 29 3b 0a 09 64 69 | 65 20 22 75 73 61 67 65 |xt);..di|e "usage|
|00005e90| 3a 20 70 61 72 72 20 5b | 2d 64 5d 20 5b 2d 72 5d |: parr [|-d] [-r]|
|00005ea0| 20 5b 2d 6f 20 6c 69 73 | 74 5d 20 5b 2d 73 5d 20 | [-o lis|t] [-s] |
|00005eb0| 5b 2d 53 20 6e 5d 20 5b | 66 69 6c 65 5d 5c 6e 22 |[-S n] [|file]\n"|
|00005ec0| 3b 0a 7d 0a 69 66 20 28 | 24 73 69 67 6e 46 6c 61 |;.}.if (|$signFla|
|00005ed0| 67 20 26 26 20 24 6f 72 | 64 65 72 29 20 7b 0a 09 |g && $or|der) {..|
|00005ee0| 64 69 65 20 22 70 61 72 | 72 3a 20 2d 73 20 61 6e |die "par|r: -s an|
|00005ef0| 64 20 2d 6f 20 63 61 6e | 6e 6f 74 20 62 65 20 75 |d -o can|not be u|
|00005f00| 73 65 64 20 74 6f 67 65 | 74 68 65 72 5c 6e 22 3b |sed toge|ther\n";|
|00005f10| 0a 7d 0a 0a 24 66 69 6c | 65 20 3d 20 22 24 54 4d |.}..$fil|e = "$TM|
|00005f20| 50 44 49 52 2f 70 24 24 | 2e 68 65 61 64 65 72 22 |PDIR/p$$|.header"|
|00005f30| 3b 0a 40 66 69 6c 65 73 | 20 3d 20 28 24 66 69 6c |;.@files| = ($fil|
|00005f40| 65 29 3b 0a 24 73 68 65 | 65 74 3d 30 3b 0a 6f 70 |e);.$she|et=0;.op|
|00005f50| 65 6e 28 66 69 6c 65 2c | 22 3e 24 66 69 6c 65 22 |en(file,|">$file"|
|00005f60| 29 20 7c 7c 0a 20 20 64 | 69 65 20 22 24 66 69 6c |) ||. d|ie "$fil|
|00005f70| 65 3a 20 24 21 2c 20 73 | 74 6f 70 70 65 64 22 3b |e: $!, s|topped";|
|00005f80| 0a 77 68 69 6c 65 20 28 | 3c 3e 29 20 7b 0a 09 23 |.while (|<>) {..#|
|00005f90| 0a 09 23 20 68 61 63 6b | 20 74 6f 20 75 73 65 20 |..# hack| to use |
|00005fa0| 4e 65 58 54 20 50 72 65 | 76 69 65 77 3a 20 73 74 |NeXT Pre|view: st|
|00005fb0| 72 69 70 20 6f 6c 64 20 | 27 25 25 50 61 67 65 73 |rip old |'%%Pages|
|00005fc0| 3a 27 20 6c 69 6e 65 73 | 0a 09 23 0a 09 6e 65 78 |:' lines|..#..nex|
|00005fd0| 74 20 69 66 20 2f 5e 25 | 25 50 61 67 65 73 3a 2f |t if /^%|%Pages:/|
|00005fe0| 3b 0a 09 69 66 20 28 2f | 5e 25 25 50 61 67 65 3a |;..if (/|^%%Page:|
|00005ff0| 2f 29 20 7b 0a 09 09 63 | 6c 6f 73 65 28 66 69 6c |/) {...c|lose(fil|
|00006000| 65 29 3b 0a 09 09 24 73 | 68 65 65 74 2b 2b 3b 0a |e);...$s|heet++;.|
|00006010| 09 09 24 66 69 6c 65 20 | 3d 20 22 24 54 4d 50 44 |..$file |= "$TMPD|
|00006020| 49 52 2f 70 24 24 2e 24 | 73 68 65 65 74 22 3b 0a |IR/p$$.$|sheet";.|
|00006030| 09 09 70 75 73 68 28 40 | 66 69 6c 65 73 2c 24 66 |..push(@|files,$f|
|00006040| 69 6c 65 29 3b 0a 09 09 | 6f 70 65 6e 28 66 69 6c |ile);...|open(fil|
|00006050| 65 2c 22 3e 24 66 69 6c | 65 22 29 20 7c 7c 0a 09 |e,">$fil|e") ||..|
|00006060| 09 20 20 64 69 65 20 22 | 24 66 69 6c 65 3a 20 24 |. die "|$file: $|
|00006070| 21 2c 20 73 74 6f 70 70 | 65 64 22 3b 0a 09 7d 0a |!, stopp|ed";..}.|
|00006080| 09 69 66 20 28 2f 5e 25 | 25 54 72 61 69 6c 65 72 |.if (/^%|%Trailer|
|00006090| 2f 29 20 7b 0a 09 09 63 | 6c 6f 73 65 28 66 69 6c |/) {...c|lose(fil|
|000060a0| 65 29 3b 0a 09 09 24 66 | 69 6c 65 20 3d 20 22 24 |e);...$f|ile = "$|
|000060b0| 54 4d 50 44 49 52 2f 70 | 24 24 2e 74 72 61 69 6c |TMPDIR/p|$$.trail|
|000060c0| 65 72 22 3b 0a 09 09 70 | 75 73 68 28 40 66 69 6c |er";...p|ush(@fil|
|000060d0| 65 73 2c 24 66 69 6c 65 | 29 3b 0a 09 09 6f 70 65 |es,$file|);...ope|
|000060e0| 6e 28 66 69 6c 65 2c 22 | 3e 24 66 69 6c 65 22 29 |n(file,"|>$file")|
|000060f0| 20 7c 7c 0a 09 09 20 20 | 64 69 65 20 22 24 66 69 | ||... |die "$fi|
|00006100| 6c 65 3a 20 24 21 2c 20 | 73 74 6f 70 70 65 64 22 |le: $!, |stopped"|
|00006110| 3b 0a 09 7d 0a 09 70 72 | 69 6e 74 20 66 69 6c 65 |;..}..pr|int file|
|00006120| 20 24 5f 3b 0a 7d 0a 63 | 6c 6f 73 65 28 66 69 6c | $_;.}.c|lose(fil|
|00006130| 65 29 3b 0a 0a 40 6f 72 | 64 65 72 20 3d 20 28 29 |e);..@or|der = ()|
|00006140| 3b 0a 69 66 20 28 24 6f | 72 64 65 72 29 20 7b 0a |;.if ($o|rder) {.|
|00006150| 09 66 6f 72 65 61 63 68 | 20 24 72 61 6e 67 65 20 |.foreach| $range |
|00006160| 28 73 70 6c 69 74 28 2f | 2c 2f 2c 24 6f 72 64 65 |(split(/|,/,$orde|
|00006170| 72 29 29 20 7b 0a 09 09 | 28 24 73 74 61 72 74 2c |r)) {...|($start,|
|00006180| 24 73 65 70 2c 24 65 6e | 64 29 20 3d 20 73 70 6c |$sep,$en|d) = spl|
|00006190| 69 74 28 2f 28 2d 29 2f | 2c 24 72 61 6e 67 65 29 |it(/(-)/|,$range)|
|000061a0| 3b 0a 09 09 24 73 74 61 | 72 74 20 3d 20 31 20 75 |;...$sta|rt = 1 u|
|000061b0| 6e 6c 65 73 73 20 24 73 | 74 61 72 74 3b 0a 09 09 |nless $s|tart;...|
|000061c0| 24 65 6e 64 20 3d 20 24 | 73 68 65 65 74 20 75 6e |$end = $|sheet un|
|000061d0| 6c 65 73 73 20 24 65 6e | 64 3b 0a 09 09 69 66 20 |less $en|d;...if |
|000061e0| 28 24 73 65 70 29 20 7b | 0a 09 09 09 70 75 73 68 |($sep) {|....push|
|000061f0| 28 40 6f 72 64 65 72 2c | 24 73 74 61 72 74 2e 2e |(@order,|$start..|
|00006200| 24 65 6e 64 29 3b 0a 09 | 09 7d 65 6c 73 65 7b 0a |$end);..|.}else{.|
|00006210| 09 09 09 70 75 73 68 28 | 40 6f 72 64 65 72 2c 24 |...push(|@order,$|
|00006220| 73 74 61 72 74 29 3b 0a | 09 09 7d 0a 09 7d 0a 7d |start);.|..}..}.}|
|00006230| 65 6c 73 69 66 20 28 24 | 73 69 67 6e 46 6c 61 67 |elsif ($|signFlag|
|00006240| 29 20 7b 0a 09 69 66 20 | 28 21 20 24 73 69 67 6e |) {..if |(! $sign|
|00006250| 43 6f 75 6e 74 29 20 7b | 0a 09 09 24 73 69 67 6e |Count) {|...$sign|
|00006260| 43 6f 75 6e 74 20 3d 20 | 24 73 68 65 65 74 3b 0a |Count = |$sheet;.|
|00006270| 09 09 24 73 69 67 6e 43 | 6f 75 6e 74 20 2b 3d 20 |..$signC|ount += |
|00006280| 28 34 20 2d 20 24 73 68 | 65 65 74 20 25 20 34 29 |(4 - $sh|eet % 4)|
|00006290| 20 69 66 20 28 24 73 68 | 65 65 74 20 25 20 34 29 | if ($sh|eet % 4)|
|000062a0| 3b 0a 09 7d 65 6c 73 65 | 7b 0a 09 09 24 73 69 67 |;..}else|{...$sig|
|000062b0| 6e 43 6f 75 6e 74 20 2a | 3d 34 3b 0a 09 7d 0a 09 |nCount *|=4;..}..|
|000062c0| 66 6f 72 28 24 62 61 73 | 65 3d 30 3b 24 62 61 73 |for($bas|e=0;$bas|
|000062d0| 65 3c 24 73 68 65 65 74 | 3b 24 62 61 73 65 2b 3d |e<$sheet|;$base+=|
|000062e0| 24 73 69 67 6e 43 6f 75 | 6e 74 29 20 7b 0a 09 09 |$signCou|nt) {...|
|000062f0| 40 74 6d 70 20 3d 20 28 | 24 73 69 67 6e 43 6f 75 |@tmp = (|$signCou|
|00006300| 6e 74 2f 32 2b 24 62 61 | 73 65 29 3b 0a 09 09 70 |nt/2+$ba|se);...p|
|00006310| 75 73 68 28 40 74 6d 70 | 2c 24 74 6d 70 5b 30 5d |ush(@tmp|,$tmp[0]|
|00006320| 2b 31 2c 24 74 6d 70 5b | 30 5d 2b 32 2c 24 74 6d |+1,$tmp[|0]+2,$tm|
|00006330| 70 5b 30 5d 2d 31 29 3b | 0a 09 09 77 68 69 6c 65 |p[0]-1);|...while|
|00006340| 20 28 24 74 6d 70 5b 33 | 5d 20 3e 20 24 62 61 73 | ($tmp[3|] > $bas|
|00006350| 65 29 20 7b 0a 09 09 09 | 70 75 73 68 28 40 6f 72 |e) {....|push(@or|
|00006360| 64 65 72 2c 40 74 6d 70 | 29 3b 0a 09 09 09 40 74 |der,@tmp|);....@t|
|00006370| 6d 70 20 3d 20 28 24 74 | 6d 70 5b 30 5d 2d 32 2c |mp = ($t|mp[0]-2,|
|00006380| 24 74 6d 70 5b 31 5d 2b | 32 2c 24 74 6d 70 5b 32 |$tmp[1]+|2,$tmp[2|
|00006390| 5d 2b 32 2c 24 74 6d 70 | 5b 33 5d 2d 32 29 3b 0a |]+2,$tmp|[3]-2);.|
|000063a0| 09 09 7d 0a 09 7d 0a 7d | 65 6c 73 65 7b 0a 09 40 |..}..}.}|else{..@|
|000063b0| 6f 72 64 65 72 20 3d 20 | 28 31 2e 2e 24 73 68 65 |order = |(1..$she|
|000063c0| 65 74 29 3b 0a 7d 0a 0a | 40 74 6d 70 3d 40 6f 72 |et);.}..|@tmp=@or|
|000063d0| 64 65 72 3b 0a 40 6f 72 | 64 65 72 3d 28 29 3b 0a |der;.@or|der=();.|
|000063e0| 66 6f 72 65 61 63 68 20 | 24 70 61 67 65 20 28 40 |foreach |$page (@|
|000063f0| 74 6d 70 29 20 7b 0a 09 | 70 75 73 68 28 40 6f 72 |tmp) {..|push(@or|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.