home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 3168
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 67 6f | 65 72 40 65 6c 6c 69 73 |From: go|er@ellis|
|00000010| 2e 75 63 68 69 63 61 67 | 6f 2e 65 64 75 20 28 52 |.uchicag|o.edu (R|
|00000020| 69 63 68 61 72 64 20 4c | 2e 20 47 6f 65 72 77 69 |ichard L|. Goerwi|
|00000030| 74 7a 29 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |tz).News|groups: |
|00000040| 61 6c 74 2e 73 6f 75 72 | 63 65 73 0a 53 75 62 6a |alt.sour|ces.Subj|
|00000050| 65 63 74 3a 20 6a 61 72 | 67 6f 6e 20 6c 6f 6f 6b |ect: jar|gon look|
|00000060| 75 70 2c 20 70 61 72 74 | 20 30 31 20 6f 66 20 30 |up, part| 01 of 0|
|00000070| 32 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 31 |2.Messag|e-ID: <1|
|00000080| 39 39 31 41 70 72 34 2e | 31 36 30 31 34 38 2e 32 |991Apr4.|160148.2|
|00000090| 33 32 32 31 40 6d 69 64 | 77 61 79 2e 75 63 68 69 |3221@mid|way.uchi|
|000000a0| 63 61 67 6f 2e 65 64 75 | 3e 0a 44 61 74 65 3a 20 |cago.edu|>.Date: |
|000000b0| 34 20 41 70 72 20 39 31 | 20 31 36 3a 30 31 3a 34 |4 Apr 91| 16:01:4|
|000000c0| 38 20 47 4d 54 0a 0a 54 | 68 69 73 20 69 73 20 74 |8 GMT..T|his is t|
|000000d0| 68 65 20 70 61 63 6b 61 | 67 65 20 49 20 70 6f 73 |he packa|ge I pos|
|000000e0| 74 65 64 20 61 20 77 68 | 69 6c 65 20 62 61 63 6b |ted a wh|ile back|
|000000f0| 20 74 6f 20 66 61 63 69 | 6c 69 74 61 74 65 20 71 | to faci|litate q|
|00000100| 75 69 63 6b 20 6c 6f 6f | 6b 75 70 0a 6f 66 20 65 |uick loo|kup.of e|
|00000110| 6e 74 72 69 65 73 20 69 | 6e 20 74 68 65 20 6a 61 |ntries i|n the ja|
|00000120| 72 67 6f 6e 20 66 69 6c | 65 2e 20 20 4e 61 74 75 |rgon fil|e. Natu|
|00000130| 72 61 6c 6c 79 20 77 68 | 65 6e 20 49 20 73 6e 61 |rally wh|en I sna|
|00000140| 72 66 65 64 20 74 68 65 | 20 6c 61 74 65 73 74 0a |rfed the| latest.|
|00000150| 76 65 72 73 69 6f 6e 2c | 20 32 2e 38 2e 32 2c 20 |version,| 2.8.2, |
|00000160| 74 68 65 20 66 6f 72 6d | 61 74 20 68 61 64 20 63 |the form|at had c|
|00000170| 68 61 6e 67 65 64 20 65 | 6e 6f 75 67 68 20 74 6f |hanged e|nough to|
|00000180| 20 62 72 65 61 6b 20 6d | 79 20 6c 6f 6f 6b 75 70 | break m|y lookup|
|00000190| 20 70 72 6f 2d 0a 67 72 | 61 6d 2e 20 20 53 65 76 | pro-.gr|am. Sev|
|000001a0| 65 72 61 6c 20 62 75 67 | 73 20 28 6d 69 6e 6f 72 |eral bug|s (minor|
|000001b0| 29 20 61 6c 73 6f 20 74 | 75 72 6e 65 64 20 75 70 |) also t|urned up|
|000001c0| 2c 20 77 68 69 63 68 20 | 49 27 76 65 20 66 69 78 |, which |I've fix|
|000001d0| 65 64 2e 20 20 54 68 65 | 0a 65 6e 74 69 72 65 20 |ed. The|.entire |
|000001e0| 70 61 63 6b 61 67 65 20 | 69 73 20 73 6d 61 6c 6c |package |is small|
|000001f0| 20 65 6e 6f 75 67 68 2c | 20 61 6e 64 20 74 68 65 | enough,| and the|
|00000200| 20 64 69 66 66 73 20 6c | 61 72 67 65 20 65 6e 6f | diffs l|arge eno|
|00000210| 75 67 68 2c 20 74 68 61 | 74 20 49 20 61 6d 0a 6a |ugh, tha|t I am.j|
|00000220| 75 73 74 20 72 65 2d 70 | 6f 73 74 69 6e 67 20 69 |ust re-p|osting i|
|00000230| 74 20 69 6e 20 74 6f 74 | 6f 2e 0a 0a 2d 52 69 63 |t in tot|o...-Ric|
|00000240| 68 61 72 64 0a 0a 0a 2d | 2d 2d 2d 20 43 75 74 20 |hard...-|--- Cut |
|00000250| 48 65 72 65 20 61 6e 64 | 20 66 65 65 64 20 74 68 |Here and| feed th|
|00000260| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 6f 20 73 |e follow|ing to s|
|00000270| 68 20 2d 2d 2d 2d 0a 23 | 21 2f 62 69 6e 2f 73 68 |h ----.#|!/bin/sh|
|00000280| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000290| 6c 6c 20 61 72 63 68 69 | 76 65 20 28 70 72 6f 64 |ll archi|ve (prod|
|000002a0| 75 63 65 64 20 62 79 20 | 73 68 61 72 20 33 2e 34 |uced by |shar 3.4|
|000002b0| 39 29 0a 23 20 54 6f 20 | 65 78 74 72 61 63 74 20 |9).# To |extract |
|000002c0| 74 68 65 20 66 69 6c 65 | 73 20 66 72 6f 6d 20 74 |the file|s from t|
|000002d0| 68 69 73 20 61 72 63 68 | 69 76 65 2c 20 73 61 76 |his arch|ive, sav|
|000002e0| 65 20 69 74 20 74 6f 20 | 61 20 66 69 6c 65 2c 20 |e it to |a file, |
|000002f0| 72 65 6d 6f 76 65 0a 23 | 20 65 76 65 72 79 74 68 |remove.#| everyth|
|00000300| 69 6e 67 20 61 62 6f 76 | 65 20 74 68 65 20 22 21 |ing abov|e the "!|
|00000310| 2f 62 69 6e 2f 73 68 22 | 20 6c 69 6e 65 20 61 62 |/bin/sh"| line ab|
|00000320| 6f 76 65 2c 20 61 6e 64 | 20 74 79 70 65 20 22 73 |ove, and| type "s|
|00000330| 68 20 66 69 6c 65 5f 6e | 61 6d 65 22 2e 0a 23 0a |h file_n|ame"..#.|
|00000340| 23 20 6d 61 64 65 20 30 | 34 2f 30 34 2f 31 39 39 |# made 0|4/04/199|
|00000350| 31 20 31 35 3a 33 36 20 | 55 54 43 20 62 79 20 67 |1 15:36 |UTC by g|
|00000360| 6f 65 72 40 73 6f 70 68 | 69 73 74 2e 75 63 68 69 |oer@soph|ist.uchi|
|00000370| 63 61 67 6f 2e 65 64 75 | 0a 23 20 53 6f 75 72 63 |cago.edu|.# Sourc|
|00000380| 65 20 64 69 72 65 63 74 | 6f 72 79 20 2f 75 2f 72 |e direct|ory /u/r|
|00000390| 69 63 68 61 72 64 2f 4a | 61 72 67 6f 6e 0a 23 0a |ichard/J|argon.#.|
|000003a0| 23 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 73 |# existi|ng files|
|000003b0| 20 77 69 6c 6c 20 4e 4f | 54 20 62 65 20 6f 76 65 | will NO|T be ove|
|000003c0| 72 77 72 69 74 74 65 6e | 20 75 6e 6c 65 73 73 20 |rwritten| unless |
|000003d0| 2d 63 20 69 73 20 73 70 | 65 63 69 66 69 65 64 0a |-c is sp|ecified.|
|000003e0| 23 20 54 68 69 73 20 66 | 6f 72 6d 61 74 20 72 65 |# This f|ormat re|
|000003f0| 71 75 69 72 65 73 20 76 | 65 72 79 20 6c 69 74 74 |quires v|ery litt|
|00000400| 6c 65 20 69 6e 74 65 6c | 6c 69 67 65 6e 63 65 20 |le intel|ligence |
|00000410| 61 74 20 75 6e 73 68 61 | 72 20 74 69 6d 65 2e 0a |at unsha|r time..|
|00000420| 23 20 22 69 66 20 74 65 | 73 74 22 2c 20 22 63 61 |# "if te|st", "ca|
|00000430| 74 22 2c 20 22 72 6d 22 | 2c 20 22 65 63 68 6f 22 |t", "rm"|, "echo"|
|00000440| 2c 20 22 74 72 75 65 22 | 2c 20 61 6e 64 20 22 73 |, "true"|, and "s|
|00000450| 65 64 22 20 6d 61 79 20 | 62 65 20 6e 65 65 64 65 |ed" may |be neede|
|00000460| 64 2e 0a 23 0a 23 20 54 | 68 69 73 20 69 73 20 70 |d..#.# T|his is p|
|00000470| 61 72 74 20 31 20 6f 66 | 20 61 20 6d 75 6c 74 69 |art 1 of| a multi|
|00000480| 70 61 72 74 20 61 72 63 | 68 69 76 65 20 20 20 20 |part arc|hive |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004b0| 0a 23 20 64 6f 20 6e 6f | 74 20 63 6f 6e 63 61 74 |.# do no|t concat|
|000004c0| 65 6e 61 74 65 20 74 68 | 65 73 65 20 70 61 72 74 |enate th|ese part|
|000004d0| 73 2c 20 75 6e 70 61 63 | 6b 20 74 68 65 6d 20 69 |s, unpac|k them i|
|000004e0| 6e 20 6f 72 64 65 72 20 | 77 69 74 68 20 2f 62 69 |n order |with /bi|
|000004f0| 6e 2f 73 68 20 20 20 20 | 20 20 20 20 0a 23 0a 23 |n/sh | .#.#|
|00000500| 20 54 68 69 73 20 73 68 | 61 72 20 63 6f 6e 74 61 | This sh|ar conta|
|00000510| 69 6e 73 3a 0a 23 20 6c | 65 6e 67 74 68 20 20 6d |ins:.# l|ength m|
|00000520| 6f 64 65 20 20 20 20 20 | 20 20 6e 61 6d 65 0a 23 |ode | name.#|
|00000530| 20 2d 2d 2d 2d 2d 2d 20 | 2d 2d 2d 2d 2d 2d 2d 2d | ------ |--------|
|00000540| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-- -----|--------|
|00000550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 23 20 |--------|-----.# |
|00000570| 20 20 31 33 33 30 20 2d | 72 77 2d 72 2d 2d 72 2d | 1330 -|rw-r--r-|
|00000580| 2d 20 6a 61 72 67 6f 6e | 2e 73 72 63 0a 23 20 20 |- jargon|.src.# |
|00000590| 20 36 32 36 30 20 2d 72 | 2d 2d 72 2d 2d 72 2d 2d | 6260 -r|--r--r--|
|000005a0| 20 67 65 74 74 65 78 74 | 2e 69 63 6e 0a 23 20 20 | gettext|.icn.# |
|000005b0| 20 31 33 33 35 20 2d 72 | 2d 2d 72 2d 2d 72 2d 2d | 1335 -r|--r--r--|
|000005c0| 20 61 64 6a 75 6e 63 74 | 73 2e 69 63 6e 0a 23 20 | adjunct|s.icn.# |
|000005d0| 20 20 33 34 35 32 20 2d | 72 2d 2d 72 2d 2d 72 2d | 3452 -|r--r--r-|
|000005e0| 2d 20 69 64 78 74 65 78 | 74 2e 69 63 6e 0a 23 20 |- idxtex|t.icn.# |
|000005f0| 20 20 31 36 34 30 20 2d | 72 2d 2d 72 2d 2d 72 2d | 1640 -|r--r--r-|
|00000600| 2d 20 6a 61 72 67 32 67 | 65 74 2e 69 63 6e 0a 23 |- jarg2g|et.icn.#|
|00000610| 20 20 20 33 31 35 37 20 | 2d 72 77 2d 72 2d 2d 72 | 3157 |-rw-r--r|
|00000620| 2d 2d 20 52 45 41 44 4d | 45 0a 23 20 20 20 31 39 |-- READM|E.# 19|
|00000630| 32 38 20 2d 72 77 2d 72 | 2d 2d 72 2d 2d 20 4d 61 |28 -rw-r|--r-- Ma|
|00000640| 6b 65 66 69 6c 65 2e 64 | 69 73 74 0a 23 0a 69 66 |kefile.d|ist.#.if|
|00000650| 20 74 65 73 74 20 2d 72 | 20 5f 73 68 61 72 5f 73 | test -r| _shar_s|
|00000660| 65 71 5f 2e 74 6d 70 3b | 20 74 68 65 6e 0a 09 65 |eq_.tmp;| then..e|
|00000670| 63 68 6f 20 27 4d 75 73 | 74 20 75 6e 70 61 63 6b |cho 'Mus|t unpack|
|00000680| 20 61 72 63 68 69 76 65 | 73 20 69 6e 20 73 65 71 | archive|s in seq|
|00000690| 75 65 6e 63 65 21 27 0a | 09 65 63 68 6f 20 50 6c |uence!'.|.echo Pl|
|000006a0| 65 61 73 65 20 75 6e 70 | 61 63 6b 20 70 61 72 74 |ease unp|ack part|
|000006b0| 20 60 63 61 74 20 5f 73 | 68 61 72 5f 73 65 71 5f | `cat _s|har_seq_|
|000006c0| 2e 74 6d 70 60 20 6e 65 | 78 74 0a 09 65 78 69 74 |.tmp` ne|xt..exit|
|000006d0| 20 31 0a 66 69 0a 23 20 | 3d 3d 3d 3d 3d 3d 3d 3d | 1.fi.# |========|
|000006e0| 3d 3d 3d 3d 3d 20 6a 61 | 72 67 6f 6e 2e 73 72 63 |===== ja|rgon.src|
|000006f0| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a | =======|=======.|
|00000700| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6a 61 72 67 |if test |-f 'jarg|
|00000710| 6f 6e 2e 73 72 63 27 20 | 2d 61 20 58 22 24 31 22 |on.src' |-a X"$1"|
|00000720| 20 21 3d 20 58 22 2d 63 | 22 3b 20 74 68 65 6e 0a | != X"-c|"; then.|
|00000730| 09 65 63 68 6f 20 27 78 | 20 2d 20 73 6b 69 70 70 |.echo 'x| - skipp|
|00000740| 69 6e 67 20 6a 61 72 67 | 6f 6e 2e 73 72 63 20 28 |ing jarg|on.src (|
|00000750| 46 69 6c 65 20 61 6c 72 | 65 61 64 79 20 65 78 69 |File alr|eady exi|
|00000760| 73 74 73 29 27 0a 09 72 | 6d 20 2d 66 20 5f 73 68 |sts)'..r|m -f _sh|
|00000770| 61 72 5f 77 6e 74 5f 2e | 74 6d 70 0a 65 6c 73 65 |ar_wnt_.|tmp.else|
|00000780| 0a 3e 20 5f 73 68 61 72 | 5f 77 6e 74 5f 2e 74 6d |.> _shar|_wnt_.tm|
|00000790| 70 0a 65 63 68 6f 20 27 | 78 20 2d 20 65 78 74 72 |p.echo '|x - extr|
|000007a0| 61 63 74 69 6e 67 20 6a | 61 72 67 6f 6e 2e 73 72 |acting j|argon.sr|
|000007b0| 63 20 28 54 65 78 74 29 | 27 0a 73 65 64 20 27 73 |c (Text)|'.sed 's|
|000007c0| 2f 5e 58 2f 2f 27 20 3c | 3c 20 27 53 48 41 52 5f |/^X//' <|< 'SHAR_|
|000007d0| 45 4f 46 27 20 3e 20 27 | 6a 61 72 67 6f 6e 2e 73 |EOF' > '|jargon.s|
|000007e0| 72 63 27 20 26 26 0a 58 | 23 23 23 23 23 23 23 23 |rc' &&.X|########|
|000007f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000800| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000810| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000820| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000830| 23 23 23 23 0a 58 23 0a | 58 23 09 4e 61 6d 65 3a |####.X#.|X#.Name:|
|00000840| 09 20 31 2e 34 0a 58 23 | 0a 58 23 09 54 69 74 6c |. 1.4.X#|.X#.Titl|
|00000850| 65 3a 09 20 6c 6f 6f 6b | 20 75 70 20 77 6f 72 64 |e:. look| up word|
|00000860| 73 20 69 6e 20 68 61 63 | 6b 65 72 27 73 20 6a 61 |s in hac|ker's ja|
|00000870| 72 67 6f 6e 20 64 61 74 | 61 62 61 73 65 0a 58 23 |rgon dat|abase.X#|
|00000880| 0a 58 23 09 41 75 74 68 | 6f 72 3a 09 20 52 69 63 |.X#.Auth|or:. Ric|
|00000890| 68 61 72 64 20 4c 2e 20 | 47 6f 65 72 77 69 74 7a |hard L. |Goerwitz|
|000008a0| 0a 58 23 0a 58 23 09 56 | 65 72 73 69 6f 6e 3a 20 |.X#.X#.V|ersion: |
|000008b0| 6a 61 72 67 6f 6e 2e 69 | 63 6e 0a 58 23 0a 58 23 |jargon.i|cn.X#.X#|
|000008c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000900| 23 23 23 23 23 23 23 23 | 23 23 23 0a 58 23 0a 58 |########|###.X#.X|
|00000910| 23 20 20 44 65 66 69 6e | 65 73 20 68 61 63 6b 65 |# Defin|es hacke|
|00000920| 72 27 73 20 6a 61 72 67 | 6f 6e 2e 20 20 55 73 61 |r's jarg|on. Usa|
|00000930| 67 65 20 69 73 20 73 69 | 6d 70 6c 79 20 22 6a 61 |ge is si|mply "ja|
|00000940| 72 67 6f 6e 20 77 6f 72 | 64 2c 22 20 77 68 65 72 |rgon wor|d," wher|
|00000950| 65 20 77 6f 72 64 0a 58 | 23 20 20 69 73 20 73 6f |e word.X|# is so|
|00000960| 6d 65 20 62 69 74 20 6f | 66 20 68 61 63 6b 65 72 |me bit o|f hacker|
|00000970| 27 73 20 73 6c 61 6e 67 | 20 66 6f 72 20 77 68 69 |'s slang| for whi|
|00000980| 63 68 20 61 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |ch a def|inition |
|00000990| 69 73 20 64 65 73 69 72 | 65 64 2e 0a 58 23 20 20 |is desir|ed..X# |
|000009a0| 41 62 6f 72 74 73 20 77 | 69 74 68 20 61 6e 20 65 |Aborts w|ith an e|
|000009b0| 78 69 74 20 63 6f 64 65 | 20 6f 66 20 31 20 6f 6e |xit code| of 1 on|
|000009c0| 20 6e 6f 2d 61 72 67 20 | 69 6e 76 6f 63 61 74 69 | no-arg |invocati|
|000009d0| 6f 6e 2e 20 20 49 66 20 | 61 20 22 77 6f 72 64 22 |on. If |a "word"|
|000009e0| 0a 58 23 20 20 61 72 67 | 20 69 73 20 67 69 76 65 |.X# arg| is give|
|000009f0| 6e 2c 20 62 75 74 20 6e | 6f 20 64 65 66 69 6e 69 |n, but n|o defini|
|00000a00| 74 69 6f 6e 20 69 73 20 | 66 6f 75 6e 64 2c 20 6a |tion is |found, j|
|00000a10| 61 72 67 6f 6e 20 65 78 | 69 74 73 20 77 69 74 68 |argon ex|its with|
|00000a20| 20 73 74 61 74 75 73 0a | 58 23 20 20 32 2e 20 20 | status.|X# 2. |
|00000a30| 4f 74 68 65 72 77 69 73 | 65 20 74 68 65 20 61 70 |Otherwis|e the ap|
|00000a40| 70 72 6f 70 72 69 61 74 | 65 20 65 6e 74 72 79 20 |propriat|e entry |
|00000a50| 66 6f 72 20 22 77 6f 72 | 64 22 20 69 73 20 64 69 |for "wor|d" is di|
|00000a60| 73 70 6c 61 79 65 64 2e | 0a 58 23 0a 58 23 20 20 |splayed.|.X#.X# |
|00000a70| 44 61 74 61 62 61 73 65 | 20 69 73 20 62 61 73 65 |Database| is base|
|00000a80| 64 20 6f 6e 20 74 68 65 | 20 6a 61 72 67 6f 6e 20 |d on the| jargon |
|00000a90| 66 69 6c 65 2c 20 76 65 | 72 73 69 6f 6e 20 32 2e |file, ve|rsion 2.|
|00000aa0| 37 2e 31 2c 20 70 6f 73 | 74 65 64 20 74 6f 20 61 |7.1, pos|ted to a|
|00000ab0| 6c 74 2e 0a 58 23 20 20 | 73 6f 75 72 63 65 73 20 |lt..X# |sources |
|00000ac0| 6f 6e 20 4d 61 72 63 68 | 20 31 2c 20 31 39 39 31 |on March| 1, 1991|
|00000ad0| 2e 20 20 4d 69 67 68 74 | 20 77 6f 72 6b 20 6f 6e |. Might| work on|
|00000ae0| 20 6f 74 68 65 72 20 76 | 65 72 73 69 6f 6e 73 2c | other v|ersions,|
|00000af0| 20 74 68 6f 75 67 68 20 | 49 0a 58 23 20 20 68 61 | though |I.X# ha|
|00000b00| 76 65 20 6e 6f 74 20 74 | 65 73 74 65 64 20 69 74 |ve not t|ested it|
|00000b10| 20 6f 75 74 2e 0a 58 23 | 0a 58 23 23 23 23 23 23 | out..X#|.X######|
|00000b20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b60| 23 23 23 23 23 23 0a 58 | 23 0a 58 23 20 20 4c 69 |######.X|#.X# Li|
|00000b70| 6e 6b 73 3a 20 20 67 65 | 74 74 65 78 74 2e 69 63 |nks: ge|ttext.ic|
|00000b80| 6e 2c 20 61 64 6a 75 6e | 63 74 73 2e 69 63 6e 0a |n, adjun|cts.icn.|
|00000b90| 58 23 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#.X####|########|
|00000ba0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000bb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000bc0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000bd0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000be0| 0a 58 0a 58 70 72 6f 63 | 65 64 75 72 65 20 6d 61 |.X.Xproc|edure ma|
|00000bf0| 69 6e 28 61 29 0a 58 0a | 58 20 20 20 20 6c 6f 63 |in(a).X.|X loc|
|00000c00| 61 6c 20 64 61 74 61 62 | 61 73 65 2c 20 75 73 61 |al datab|ase, usa|
|00000c10| 67 65 2c 20 6e 6f 2c 20 | 79 65 73 0a 58 0a 58 20 |ge, no, |yes.X.X |
|00000c20| 20 20 20 23 20 43 68 61 | 6e 67 65 20 74 68 69 73 | # Cha|nge this|
|00000c30| 2c 20 69 66 20 79 6f 75 | 20 75 73 65 20 61 20 64 |, if you| use a d|
|00000c40| 69 66 66 65 72 65 6e 74 | 20 6c 6f 63 61 74 69 6f |ifferent| locatio|
|00000c50| 6e 2e 0a 58 20 20 20 20 | 64 61 74 61 62 61 73 65 |n..X |database|
|00000c60| 20 3a 3d 20 22 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f | := "/us|r/local/|
|00000c70| 6c 69 62 2f 6a 61 72 67 | 6f 6e 2f 6a 61 72 67 6f |lib/jarg|on/jargo|
|00000c80| 6e 2e 77 72 64 22 0a 58 | 0a 58 20 20 20 20 6e 6f |n.wrd".X|.X no|
|00000c90| 20 3a 3d 20 26 75 63 61 | 73 65 20 7c 7c 20 22 2d | := &uca|se || "-|
|00000ca0| 2f 22 3b 20 79 65 73 20 | 3a 3d 20 26 6c 63 61 73 |/"; yes |:= &lcas|
|00000cb0| 65 20 7c 7c 20 22 20 20 | 22 0a 58 20 20 20 20 75 |e || " |".X u|
|00000cc0| 73 61 67 65 20 3a 3d 20 | 22 75 73 61 67 65 3a 20 |sage := |"usage: |
|00000cd0| 20 6a 61 72 67 6f 6e 20 | 77 6f 72 64 22 0a 58 20 | jargon |word".X |
|00000ce0| 20 20 20 2a 61 20 3d 20 | 31 20 7c 20 73 74 6f 70 | *a = |1 | stop|
|00000cf0| 28 75 73 61 67 65 29 0a | 58 20 20 20 20 77 72 69 |(usage).|X wri|
|00000d00| 74 65 28 67 65 74 74 65 | 78 74 28 74 72 69 6d 28 |te(gette|xt(trim(|
|00000d10| 6d 61 70 28 61 5b 31 5d | 2c 20 6e 6f 2c 20 79 65 |map(a[1]|, no, ye|
|00000d20| 73 29 29 2c 20 64 61 74 | 61 62 61 73 65 29 29 20 |s)), dat|abase)) |
|00000d30| 7c 20 65 78 69 74 28 32 | 29 0a 58 0a 58 65 6e 64 || exit(2|).X.Xend|
|00000d40| 20 0a 53 48 41 52 5f 45 | 4f 46 0a 74 72 75 65 20 | .SHAR_E|OF.true |
|00000d50| 7c 7c 20 65 63 68 6f 20 | 27 72 65 73 74 6f 72 65 ||| echo |'restore|
|00000d60| 20 6f 66 20 6a 61 72 67 | 6f 6e 2e 73 72 63 20 66 | of jarg|on.src f|
|00000d70| 61 69 6c 65 64 27 0a 72 | 6d 20 2d 66 20 5f 73 68 |ailed'.r|m -f _sh|
|00000d80| 61 72 5f 77 6e 74 5f 2e | 74 6d 70 0a 66 69 0a 23 |ar_wnt_.|tmp.fi.#|
|00000d90| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 20 67 | =======|====== g|
|00000da0| 65 74 74 65 78 74 2e 69 | 63 6e 20 3d 3d 3d 3d 3d |ettext.i|cn =====|
|00000db0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 69 66 20 74 65 73 |========|=.if tes|
|00000dc0| 74 20 2d 66 20 27 67 65 | 74 74 65 78 74 2e 69 63 |t -f 'ge|ttext.ic|
|00000dd0| 6e 27 20 2d 61 20 58 22 | 24 31 22 20 21 3d 20 58 |n' -a X"|$1" != X|
|00000de0| 22 2d 63 22 3b 20 74 68 | 65 6e 0a 09 65 63 68 6f |"-c"; th|en..echo|
|00000df0| 20 27 78 20 2d 20 73 6b | 69 70 70 69 6e 67 20 67 | 'x - sk|ipping g|
|00000e00| 65 74 74 65 78 74 2e 69 | 63 6e 20 28 46 69 6c 65 |ettext.i|cn (File|
|00000e10| 20 61 6c 72 65 61 64 79 | 20 65 78 69 73 74 73 29 | already| exists)|
|00000e20| 27 0a 09 72 6d 20 2d 66 | 20 5f 73 68 61 72 5f 77 |'..rm -f| _shar_w|
|00000e30| 6e 74 5f 2e 74 6d 70 0a | 65 6c 73 65 0a 3e 20 5f |nt_.tmp.|else.> _|
|00000e40| 73 68 61 72 5f 77 6e 74 | 5f 2e 74 6d 70 0a 65 63 |shar_wnt|_.tmp.ec|
|00000e50| 68 6f 20 27 78 20 2d 20 | 65 78 74 72 61 63 74 69 |ho 'x - |extracti|
|00000e60| 6e 67 20 67 65 74 74 65 | 78 74 2e 69 63 6e 20 28 |ng gette|xt.icn (|
|00000e70| 54 65 78 74 29 27 0a 73 | 65 64 20 27 73 2f 5e 58 |Text)'.s|ed 's/^X|
|00000e80| 2f 2f 27 20 3c 3c 20 27 | 53 48 41 52 5f 45 4f 46 |//' << '|SHAR_EOF|
|00000e90| 27 20 3e 20 27 67 65 74 | 74 65 78 74 2e 69 63 6e |' > 'get|text.icn|
|00000ea0| 27 20 26 26 0a 58 23 23 | 23 23 23 23 23 23 23 23 |' &&.X##|########|
|00000eb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ec0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ed0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ee0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ef0| 23 23 0a 58 23 0a 58 23 | 09 4e 61 6d 65 3a 09 20 |##.X#.X#|.Name:. |
|00000f00| 67 65 74 74 65 78 74 2e | 69 63 6e 0a 58 23 0a 58 |gettext.|icn.X#.X|
|00000f10| 23 09 54 69 74 6c 65 3a | 09 20 67 65 74 74 65 78 |#.Title:|. gettex|
|00000f20| 74 20 28 73 69 6d 70 6c | 65 20 74 65 78 74 2d 62 |t (simpl|e text-b|
|00000f30| 61 73 65 20 72 6f 75 74 | 69 6e 65 73 29 0a 58 23 |ase rout|ines).X#|
|00000f40| 0a 58 23 09 41 75 74 68 | 6f 72 3a 09 20 52 69 63 |.X#.Auth|or:. Ric|
|00000f50| 68 61 72 64 20 4c 2e 20 | 47 6f 65 72 77 69 74 7a |hard L. |Goerwitz|
|00000f60| 0a 58 23 0a 58 23 09 56 | 65 72 73 69 6f 6e 3a 20 |.X#.X#.V|ersion: |
|00000f70| 31 2e 31 36 0a 58 23 0a | 58 23 23 23 23 23 23 23 |1.16.X#.|X#######|
|00000f80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f90| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000fa0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000fb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000fc0| 23 23 23 23 23 0a 58 23 | 0a 58 23 20 20 47 65 74 |#####.X#|.X# Get|
|00000fd0| 74 65 78 74 28 29 20 61 | 6e 64 20 61 73 73 6f 63 |text() a|nd assoc|
|00000fe0| 69 61 74 65 64 20 72 6f | 75 74 69 6e 65 73 20 61 |iated ro|utines a|
|00000ff0| 6c 6c 6f 77 20 74 68 65 | 20 75 73 65 72 20 74 6f |llow the| user to|
|00001000| 20 6d 61 69 6e 74 61 69 | 6e 20 61 20 66 69 6c 65 | maintai|n a file|
|00001010| 0a 58 23 20 20 6f 66 20 | 4b 45 59 2f 76 61 6c 75 |.X# of |KEY/valu|
|00001020| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 73 |e combin|ations s|
|00001030| 75 63 68 20 74 68 61 74 | 20 61 20 63 61 6c 6c 20 |uch that| a call |
|00001040| 74 6f 20 67 65 74 74 65 | 78 74 28 4b 45 59 2c 20 |to gette|xt(KEY, |
|00001050| 46 4e 41 4d 45 29 0a 58 | 23 20 20 77 69 6c 6c 20 |FNAME).X|# will |
|00001060| 70 72 6f 64 75 63 65 20 | 76 61 6c 75 65 2e 20 20 |produce |value. |
|00001070| 47 65 74 74 65 78 74 28 | 29 20 66 61 69 6c 73 20 |Gettext(|) fails |
|00001080| 69 66 20 6e 6f 20 73 75 | 63 68 20 4b 45 59 20 65 |if no su|ch KEY e|
|00001090| 78 69 73 74 73 2e 0a 58 | 23 20 20 52 65 74 75 72 |xists..X|# Retur|
|000010a0| 6e 73 20 61 6e 20 65 6d | 70 74 79 20 73 74 72 69 |ns an em|pty stri|
|000010b0| 6e 67 20 69 66 20 74 68 | 65 20 6b 65 79 20 65 78 |ng if th|e key ex|
|000010c0| 69 73 74 73 2c 20 62 75 | 74 20 68 61 73 20 6e 6f |ists, bu|t has no|
|000010d0| 20 61 73 73 6f 63 69 61 | 74 65 64 0a 58 23 20 20 | associa|ted.X# |
|000010e0| 76 61 6c 75 65 20 69 6e | 20 74 68 65 20 66 69 6c |value in| the fil|
|000010f0| 65 2c 20 46 4e 41 4d 45 | 2e 0a 58 23 0a 58 23 20 |e, FNAME|..X#.X# |
|00001100| 20 54 68 65 20 66 69 6c | 65 20 66 6f 72 6d 61 74 | The fil|e format|
|00001110| 20 69 73 20 73 69 6d 70 | 6c 65 2e 20 20 4b 65 79 | is simp|le. Key|
|00001120| 73 20 62 65 6c 6f 6e 67 | 20 6f 6e 20 73 65 70 61 |s belong| on sepa|
|00001130| 72 61 74 65 20 6c 69 6e | 65 73 2c 20 6d 61 72 6b |rate lin|es, mark|
|00001140| 65 64 0a 58 23 20 20 61 | 73 20 73 75 63 68 20 62 |ed.X# a|s such b|
|00001150| 79 20 61 6e 20 69 6e 69 | 74 69 61 6c 20 63 6f 6c |y an ini|tial col|
|00001160| 6f 6e 2b 63 6f 6c 6f 6e | 20 28 3a 3a 29 2e 20 20 |on+colon| (::). |
|00001170| 56 61 6c 75 65 73 20 62 | 65 67 69 6e 20 6f 6e 20 |Values b|egin on |
|00001180| 74 68 65 20 6c 69 6e 65 | 0a 58 23 20 20 66 6f 6c |the line|.X# fol|
|00001190| 6c 6f 77 69 6e 67 20 74 | 68 65 69 72 20 72 65 73 |lowing t|heir res|
|000011a0| 70 65 63 74 69 76 65 20 | 6b 65 79 73 2c 20 61 6e |pective |keys, an|
|000011b0| 64 20 65 78 74 65 6e 64 | 20 75 70 20 74 6f 20 74 |d extend| up to t|
|000011c0| 68 65 20 6e 65 78 74 0a | 58 23 20 20 63 6f 6c 6f |he next.|X# colo|
|000011d0| 6e 2b 63 6f 6c 6f 6e 2d | 69 6e 69 74 69 61 6c 20 |n+colon-|initial |
|000011e0| 6c 69 6e 65 20 6f 72 20 | 45 4f 46 2e 20 20 45 2e |line or |EOF. E.|
|000011f0| 67 2e 0a 58 23 0a 58 23 | 20 20 20 20 3a 3a 73 61 |g..X#.X#| ::sa|
|00001200| 6d 70 6c 65 2e 31 0a 58 | 23 20 20 20 20 4e 6f 74 |mple.1.X|# Not|
|00001210| 69 63 65 20 68 6f 77 20 | 74 68 65 20 6b 65 79 20 |ice how |the key |
|00001220| 61 62 6f 76 65 2c 20 73 | 61 6d 70 6c 65 2e 31 2c |above, s|ample.1,|
|00001230| 20 68 61 73 20 3a 3a 20 | 70 72 65 70 65 6e 64 65 | has :: |prepende|
|00001240| 64 20 74 6f 20 6d 61 72 | 6b 20 69 74 0a 58 23 20 |d to mar|k it.X# |
|00001250| 20 20 20 6f 75 74 20 61 | 73 20 61 20 6b 65 79 2e | out a|s a key.|
|00001260| 20 20 54 68 65 20 74 65 | 78 74 20 79 6f 75 20 61 | The te|xt you a|
|00001270| 72 65 20 6e 6f 77 20 72 | 65 61 64 69 6e 67 20 72 |re now r|eading r|
|00001280| 65 70 72 65 73 65 6e 74 | 73 20 74 68 61 74 20 6b |epresent|s that k|
|00001290| 65 79 27 73 0a 58 23 20 | 20 20 20 76 61 6c 75 65 |ey's.X# | value|
|000012a0| 2e 20 20 54 6f 20 72 65 | 74 72 69 65 76 65 20 74 |. To re|trieve t|
|000012b0| 68 69 73 20 74 65 78 74 | 2c 20 79 6f 75 20 77 6f |his text|, you wo|
|000012c0| 75 6c 64 20 63 61 6c 6c | 20 67 65 74 74 65 78 74 |uld call| gettext|
|000012d0| 28 29 20 77 69 74 68 20 | 74 68 65 0a 58 23 20 20 |() with |the.X# |
|000012e0| 20 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 6b 65 | name o|f the ke|
|000012f0| 79 20 70 61 73 73 65 64 | 20 61 73 20 69 74 73 20 |y passed| as its |
|00001300| 66 69 72 73 74 20 61 72 | 67 75 6d 65 6e 74 2c 20 |first ar|gument, |
|00001310| 61 6e 64 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |and the |name of |
|00001320| 74 68 65 0a 58 23 20 20 | 20 20 66 69 6c 65 20 69 |the.X# | file i|
|00001330| 6e 20 77 68 69 63 68 20 | 74 68 69 73 20 74 65 78 |n which |this tex|
|00001340| 74 20 69 73 20 73 74 6f | 72 65 64 20 61 73 20 69 |t is sto|red as i|
|00001350| 74 73 20 73 65 63 6f 6e | 64 20 61 72 67 75 6d 65 |ts secon|d argume|
|00001360| 6e 74 20 28 61 73 20 69 | 6e 0a 58 23 20 20 20 20 |nt (as i|n.X# |
|00001370| 67 65 74 74 65 78 74 28 | 22 73 61 6d 70 6c 65 2e |gettext(|"sample.|
|00001380| 31 22 2c 22 74 6d 70 2e | 69 64 78 22 29 29 2e 0a |1","tmp.|idx"))..|
|00001390| 58 23 20 20 20 20 3a 3a | 6e 65 78 74 2e 6b 65 79 |X# ::|next.key|
|000013a0| 0a 58 23 20 20 20 20 65 | 74 63 2e 2e 2e 0a 58 23 |.X# e|tc....X#|
|000013b0| 0a 58 23 20 20 46 6f 72 | 20 66 61 73 74 65 72 20 |.X# For| faster |
|000013c0| 61 63 63 65 73 73 2c 20 | 61 6e 20 69 6e 64 65 78 |access, |an index|
|000013d0| 69 6e 67 20 75 74 69 6c | 69 74 79 20 69 73 20 69 |ing util|ity is i|
|000013e0| 6e 63 6c 75 64 65 64 2c | 20 69 64 78 74 65 78 74 |ncluded,| idxtext|
|000013f0| 2e 20 20 49 64 78 74 65 | 78 74 0a 58 23 20 20 63 |. Idxte|xt.X# c|
|00001400| 72 65 61 74 65 73 20 61 | 20 73 65 70 61 72 61 74 |reates a| separat|
|00001410| 65 20 69 6e 64 65 78 20 | 66 6f 72 20 61 20 67 69 |e index |for a gi|
|00001420| 76 65 6e 20 74 65 78 74 | 2d 62 61 73 65 20 66 69 |ven text|-base fi|
|00001430| 6c 65 2e 20 20 49 66 20 | 61 6e 20 69 6e 64 65 78 |le. If |an index|
|00001440| 20 66 69 6c 65 0a 58 23 | 20 20 65 78 69 73 74 73 | file.X#| exists|
|00001450| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 64 69 72 | in the |same dir|
|00001460| 65 63 74 6f 72 79 20 61 | 73 20 46 4e 41 4d 45 2c |ectory a|s FNAME,|
|00001470| 20 67 65 74 74 65 78 74 | 28 29 20 77 69 6c 6c 20 | gettext|() will |
|00001480| 6d 61 6b 65 20 75 73 65 | 20 6f 66 20 69 74 2e 0a |make use| of it..|
|00001490| 58 23 20 20 54 68 65 20 | 69 6e 64 65 78 20 62 65 |X# The |index be|
|000014a0| 63 6f 6d 65 73 20 77 6f | 72 74 68 77 68 69 6c 65 |comes wo|rthwhile|
|000014b0| 20 28 61 74 20 6c 65 61 | 73 74 20 6f 6e 20 6d 79 | (at lea|st on my|
|000014c0| 20 73 79 73 74 65 6d 29 | 20 61 66 74 65 72 20 74 | system)| after t|
|000014d0| 68 65 20 74 65 78 74 2d | 0a 58 23 20 20 62 61 73 |he text-|.X# bas|
|000014e0| 65 20 66 69 6c 65 20 62 | 65 63 6f 6d 65 73 20 6c |e file b|ecomes l|
|000014f0| 6f 6e 67 65 72 20 74 68 | 61 6e 20 35 20 6b 69 6c |onger th|an 5 kil|
|00001500| 6f 62 79 74 65 73 2e 0a | 58 23 0a 58 23 20 20 44 |obytes..|X#.X# D|
|00001510| 6f 6e 74 73 3a 0a 58 23 | 20 20 20 20 20 20 31 29 |onts:.X#| 1)|
|00001520| 20 44 6f 6e 27 74 20 6e | 65 73 74 20 67 65 74 74 | Don't n|est gett|
|00001530| 65 78 74 20 74 65 78 74 | 2d 62 61 73 65 20 66 69 |ext text|-base fi|
|00001540| 6c 65 73 2e 0a 58 23 20 | 20 20 20 20 20 32 29 20 |les..X# | 2) |
|00001550| 44 6f 6e 27 74 20 75 73 | 65 20 73 70 61 63 65 73 |Don't us|e spaces|
|00001560| 20 61 6e 64 2f 6f 72 20 | 74 61 62 73 20 69 6e 20 | and/or |tabs in |
|00001570| 6b 65 79 20 6e 61 6d 65 | 73 2e 0a 58 23 20 20 20 |key name|s..X# |
|00001580| 20 20 20 33 29 20 44 6f | 6e 27 74 20 6d 6f 64 69 | 3) Do|n't modi|
|00001590| 66 79 20 69 6e 64 65 78 | 65 64 20 66 69 6c 65 73 |fy index|ed files|
|000015a0| 20 69 6e 20 61 6e 79 20 | 77 61 79 20 6f 74 68 65 | in any |way othe|
|000015b0| 72 20 74 68 61 6e 20 74 | 6f 20 61 70 70 65 6e 64 |r than t|o append|
|000015c0| 0a 58 23 20 20 20 20 20 | 20 20 20 20 61 64 64 69 |.X# | addi|
|000015d0| 74 69 6f 6e 61 6c 20 6b | 65 79 73 2f 76 61 6c 75 |tional k|eys/valu|
|000015e0| 65 73 20 28 75 6e 6c 65 | 73 73 20 79 6f 75 20 77 |es (unle|ss you w|
|000015f0| 61 6e 74 20 74 6f 20 72 | 65 2d 69 6e 64 65 78 29 |ant to r|e-index)|
|00001600| 2e 0a 58 23 0a 58 23 20 | 20 54 68 69 73 20 70 72 |..X#.X# | This pr|
|00001610| 6f 67 72 61 6d 20 69 73 | 20 69 6e 74 65 6e 64 65 |ogram is| intende|
|00001620| 64 20 66 6f 72 20 73 69 | 74 75 61 74 69 6f 6e 73 |d for si|tuations|
|00001630| 20 77 68 65 72 65 20 6b | 65 79 73 20 74 65 6e 64 | where k|eys tend|
|00001640| 20 74 6f 20 68 61 76 65 | 0a 58 23 20 20 76 65 72 | to have|.X# ver|
|00001650| 79 20 6c 61 72 67 65 20 | 76 61 6c 75 65 73 2c 20 |y large |values, |
|00001660| 61 6e 64 20 75 73 65 20 | 6f 66 20 61 6e 20 49 63 |and use |of an Ic|
|00001670| 6f 6e 20 74 61 62 6c 65 | 20 73 74 72 75 63 74 75 |on table| structu|
|00001680| 72 65 20 77 6f 75 6c 64 | 20 62 65 0a 58 23 20 20 |re would| be.X# |
|00001690| 75 6e 77 65 69 6c 64 79 | 2e 0a 58 23 0a 58 23 20 |unweildy|..X#.X# |
|000016a0| 20 42 55 47 53 3a 20 20 | 47 65 74 74 65 78 74 28 | BUGS: |Gettext(|
|000016b0| 29 20 72 65 6c 69 65 73 | 20 6f 6e 20 74 68 65 20 |) relies| on the |
|000016c0| 49 63 6f 6e 20 72 75 6e | 74 69 6d 65 20 73 79 73 |Icon run|time sys|
|000016d0| 74 65 6d 20 61 6e 64 20 | 74 68 65 20 4f 53 20 74 |tem and |the OS t|
|000016e0| 6f 0a 58 23 20 20 6d 61 | 6b 65 20 73 75 72 65 20 |o.X# ma|ke sure |
|000016f0| 74 68 65 20 6c 61 73 74 | 20 74 65 78 74 2f 69 6e |the last| text/in|
|00001700| 64 65 78 20 66 69 6c 65 | 20 69 74 20 6f 70 65 6e |dex file| it open|
|00001710| 73 20 67 65 74 73 20 63 | 6c 6f 73 65 64 2e 0a 58 |s gets c|losed..X|
|00001720| 23 0a 58 23 20 20 4e 6f | 74 65 3a 20 20 54 68 69 |#.X# No|te: Thi|
|00001730| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 4e 4f 54 |s progra|m is NOT|
|00001740| 20 59 45 54 20 54 45 53 | 54 45 44 20 55 4e 44 45 | YET TES|TED UNDE|
|00001750| 52 20 44 4f 53 2e 20 20 | 49 6e 20 70 61 72 74 69 |R DOS. |In parti|
|00001760| 63 75 6c 61 72 2c 0a 58 | 23 20 20 49 20 68 61 76 |cular,.X|# I hav|
|00001770| 65 20 6e 6f 20 69 64 65 | 61 20 77 68 65 74 68 65 |e no ide|a whethe|
|00001780| 72 20 74 68 65 20 69 6e | 64 65 78 69 6e 67 20 6d |r the in|dexing m|
|00001790| 65 63 68 61 6e 69 73 6d | 20 77 69 6c 6c 20 77 6f |echanism| will wo|
|000017a0| 72 6b 2c 20 64 75 65 20 | 74 6f 0a 58 23 20 20 74 |rk, due |to.X# t|
|000017b0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 74 68 61 74 20 |ranslati|on that |
|000017c0| 68 61 73 20 74 6f 20 62 | 65 20 64 6f 6e 65 20 6f |has to b|e done o|
|000017d0| 6e 20 4d 53 2d 44 4f 53 | 20 74 65 78 74 20 66 69 |n MS-DOS| text fi|
|000017e0| 6c 65 73 2e 0a 58 23 0a | 58 23 23 23 23 23 23 23 |les..X#.|X#######|
|000017f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001800| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001810| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001820| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001830| 23 23 23 23 23 0a 58 23 | 0a 58 23 20 20 4c 69 6e |#####.X#|.X# Lin|
|00001840| 6b 73 3a 20 2e 2f 61 64 | 6a 75 6e 63 74 73 2e 69 |ks: ./ad|juncts.i|
|00001850| 63 6e 0a 58 23 0a 58 23 | 20 20 52 65 71 75 69 72 |cn.X#.X#| Requir|
|00001860| 65 73 3a 20 55 4e 49 58 | 20 28 6d 61 79 62 65 20 |es: UNIX| (maybe |
|00001870| 4d 53 2d 44 4f 53 3b 20 | 75 6e 74 65 73 74 65 64 |MS-DOS; |untested|
|00001880| 29 0a 58 23 0a 58 23 23 | 23 23 23 23 23 23 23 23 |).X#.X##|########|
|00001890| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000018a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000018b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000018c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000018d0| 23 23 0a 58 0a 58 23 20 | 64 65 63 6c 61 72 65 64 |##.X.X# |declared|
|000018e0| 20 69 6e 20 61 64 6a 75 | 6e 63 74 73 2e 69 63 6e | in adju|ncts.icn|
|000018f0| 0a 58 23 20 67 6c 6f 62 | 61 6c 20 5f 73 6c 61 73 |.X# glob|al _slas|
|00001900| 68 2c 20 5f 62 61 73 65 | 6c 65 6e 0a 58 0a 58 70 |h, _base|len.X.Xp|
|00001910| 72 6f 63 65 64 75 72 65 | 20 67 65 74 74 65 78 74 |rocedure| gettext|
|00001920| 28 4b 45 59 2c 46 4e 41 | 4d 45 29 0a 58 0a 58 20 |(KEY,FNA|ME).X.X |
|00001930| 20 20 20 6c 6f 63 61 6c | 20 6c 69 6e 65 2c 20 76 | local| line, v|
|00001940| 61 6c 75 65 0a 58 20 20 | 20 20 73 74 61 74 69 63 |alue.X | static|
|00001950| 20 6c 61 73 74 5f 46 4e | 41 4d 45 2c 20 69 6e 74 | last_FN|AME, int|
|00001960| 65 78 74 2c 20 69 6e 69 | 64 78 0a 58 20 20 20 20 |ext, ini|dx.X |
|00001970| 69 6e 69 74 69 61 6c 20 | 7b 0a 58 09 69 66 20 66 |initial |{.X.if f|
|00001980| 69 6e 64 28 22 55 4e 49 | 58 22 2c 20 26 66 65 61 |ind("UNI|X", &fea|
|00001990| 74 75 72 65 73 29 20 74 | 68 65 6e 20 7b 0a 58 09 |tures) t|hen {.X.|
|000019a0| 20 20 20 20 5f 73 6c 61 | 73 68 20 3a 3d 20 22 2f | _sla|sh := "/|
|000019b0| 22 0a 58 09 20 20 20 20 | 5f 62 61 73 65 6c 65 6e |".X. |_baselen|
|000019c0| 20 3a 3d 20 31 30 0a 58 | 09 7d 0a 58 09 65 6c 73 | := 10.X|.}.X.els|
|000019d0| 65 20 69 66 20 66 69 6e | 64 28 22 4d 53 2d 44 4f |e if fin|d("MS-DO|
|000019e0| 53 22 2c 20 26 66 65 61 | 74 75 72 65 73 29 20 74 |S", &fea|tures) t|
|000019f0| 68 65 6e 20 7b 0a 58 09 | 20 20 20 20 5f 73 6c 61 |hen {.X.| _sla|
|00001a00| 73 68 20 3a 3d 20 22 5c | 5c 22 0a 58 09 20 20 20 |sh := "\|\".X. |
|00001a10| 20 5f 62 61 73 65 6c 65 | 6e 20 3a 3d 20 38 0a 58 | _basele|n := 8.X|
|00001a20| 09 7d 0a 58 09 65 6c 73 | 65 20 73 74 6f 70 28 22 |.}.X.els|e stop("|
|00001a30| 67 65 74 74 65 78 74 3a | 20 20 4f 53 20 6e 6f 74 |gettext:| OS not|
|00001a40| 20 73 75 70 70 6f 72 74 | 65 64 22 29 0a 58 20 20 | support|ed").X |
|00001a50| 20 20 7d 0a 58 0a 58 20 | 20 20 20 28 2f 4b 45 59 | }.X.X | (/KEY|
|00001a60| 20 7c 20 2f 46 4e 41 4d | 45 29 20 26 20 73 74 6f | | /FNAM|E) & sto|
|00001a70| 70 28 22 65 72 72 6f 72 | 20 28 67 65 74 74 65 78 |p("error| (gettex|
|00001a80| 74 29 3a 20 20 6e 75 6c | 6c 20 61 72 67 75 6d 65 |t): nul|l argume|
|00001a90| 6e 74 22 29 0a 58 0a 58 | 20 20 20 20 69 66 20 46 |nt").X.X| if F|
|00001aa0| 4e 41 4d 45 20 3d 3d 20 | 5c 6c 61 73 74 5f 46 4e |NAME == |\last_FN|
|00001ab0| 41 4d 45 20 74 68 65 6e | 20 7b 0a 58 09 73 65 65 |AME then| {.X.see|
|00001ac0| 6b 28 69 6e 74 65 78 74 | 2c 20 31 29 0a 58 09 73 |k(intext|, 1).X.s|
|00001ad0| 65 65 6b 28 5c 69 6e 69 | 64 78 2c 20 31 29 0a 58 |eek(\ini|dx, 1).X|
|00001ae0| 20 20 20 20 7d 0a 58 20 | 20 20 20 65 6c 73 65 20 | }.X | else |
|00001af0| 7b 0a 58 09 23 20 57 65 | 27 76 65 20 67 6f 74 20 |{.X.# We|'ve got |
|00001b00| 61 20 6e 65 77 20 74 65 | 78 74 2d 62 61 73 65 20 |a new te|xt-base |
|00001b10| 66 69 6c 65 2e 20 20 43 | 6c 6f 73 65 20 74 68 65 |file. C|lose the|
|00001b20| 20 6f 6c 64 20 6f 6e 65 | 2e 0a 58 09 65 76 65 72 | old one|..X.ever|
|00001b30| 79 20 63 6c 6f 73 65 28 | 5c 69 6e 74 65 78 74 20 |y close(|\intext |
|00001b40| 7c 20 5c 69 6e 69 64 78 | 29 0a 58 20 20 20 20 20 || \inidx|).X |
|00001b50| 20 20 20 23 20 54 72 79 | 20 74 6f 20 6f 70 65 6e | # Try| to open|
|00001b60| 20 6e 61 6d 65 64 20 74 | 65 78 74 2d 62 61 73 65 | named t|ext-base|
|00001b70| 20 66 69 6c 65 2e 0a 58 | 09 69 6e 74 65 78 74 20 | file..X|.intext |
|00001b80| 3a 3d 20 6f 70 65 6e 28 | 46 4e 41 4d 45 29 20 7c |:= open(|FNAME) ||
|00001b90| 20 73 74 6f 70 28 22 67 | 65 74 74 65 78 74 3a 20 | stop("g|ettext: |
|00001ba0| 20 22 2c 46 4e 41 4d 45 | 2c 22 20 6e 6f 74 20 66 | ",FNAME|," not f|
|00001bb0| 6f 75 6e 64 22 29 0a 58 | 20 20 20 20 20 20 20 20 |ound").X| |
|00001bc0| 23 20 54 72 79 20 74 6f | 20 6f 70 65 6e 20 69 6e |# Try to| open in|
|00001bd0| 64 65 78 20 66 69 6c 65 | 2e 0a 58 09 69 6e 69 64 |dex file|..X.inid|
|00001be0| 78 20 3a 3d 20 6f 70 65 | 6e 28 50 61 74 68 6e 61 |x := ope|n(Pathna|
|00001bf0| 6d 65 28 46 4e 41 4d 45 | 29 20 7c 7c 20 67 65 74 |me(FNAME|) || get|
|00001c00| 69 64 78 6e 61 6d 65 28 | 46 4e 41 4d 45 29 29 20 |idxname(|FNAME)) |
|00001c10| 7c 20 26 6e 75 6c 6c 0a | 58 20 20 20 20 7d 0a 58 || &null.|X }.X|
|00001c20| 20 20 20 20 6c 61 73 74 | 5f 46 4e 41 4d 45 20 3a | last|_FNAME :|
|00001c30| 3d 20 46 4e 41 4d 45 0a | 58 0a 58 20 20 20 20 23 |= FNAME.|X.X #|
|00001c40| 20 46 69 6e 64 20 6f 66 | 66 73 65 74 73 20 66 6f | Find of|fsets fo|
|00001c50| 72 20 6b 65 79 20 4b 45 | 59 20 69 6e 20 69 6e 64 |r key KE|Y in ind|
|00001c60| 65 78 20 66 69 6c 65 2e | 20 20 49 66 20 69 6e 69 |ex file.| If ini|
|00001c70| 64 78 20 28 74 68 65 20 | 69 6e 64 65 78 0a 58 20 |dx (the |index.X |
|00001c80| 20 20 20 23 20 66 69 6c | 65 29 20 69 73 20 6e 75 | # fil|e) is nu|
|00001c90| 6c 6c 20 28 77 68 69 63 | 68 20 68 61 70 70 65 6e |ll (whic|h happen|
|00001ca0| 73 20 77 68 65 6e 20 6e | 6f 6e 65 20 77 61 73 20 |s when n|one was |
|00001cb0| 66 6f 75 6e 64 29 2c 20 | 67 65 74 5f 6f 66 66 73 |found), |get_offs|
|00001cc0| 65 74 73 28 29 0a 58 20 | 20 20 20 23 20 64 65 66 |ets().X | # def|
|00001cd0| 61 75 6c 74 73 20 74 6f | 20 31 2e 20 20 4f 74 68 |aults to| 1. Oth|
|00001ce0| 65 72 77 69 73 65 20 69 | 74 20 72 65 74 75 72 6e |erwise i|t return|
|00001cf0| 73 20 74 68 65 20 6f 66 | 66 73 65 74 20 66 6f 72 |s the of|fset for|
|00001d00| 20 4b 45 59 20 69 6e 20 | 74 68 65 0a 58 20 20 20 | KEY in |the.X |
|00001d10| 20 23 20 69 6e 64 65 78 | 20 66 69 6c 65 2c 20 61 | # index| file, a|
|00001d20| 6e 64 20 74 68 65 6e 20 | 72 65 74 75 72 6e 73 20 |nd then |returns |
|00001d30| 74 68 65 20 6c 61 73 74 | 20 69 6e 64 65 78 65 64 |the last| indexed|
|00001d40| 20 62 79 74 65 20 6f 66 | 20 74 68 65 20 66 69 6c | byte of| the fil|
|00001d50| 65 2e 0a 58 20 20 20 20 | 23 20 52 65 74 75 72 6e |e..X |# Return|
|00001d60| 69 6e 67 20 74 68 65 20 | 6c 61 73 74 20 69 6e 64 |ing the |last ind|
|00001d70| 65 78 65 64 20 62 79 74 | 65 20 6c 65 74 73 20 75 |exed byt|e lets u|
|00001d80| 73 20 73 65 65 6b 20 74 | 6f 20 74 68 65 20 65 6e |s seek t|o the en|
|00001d90| 64 20 61 6e 64 20 64 6f | 20 61 0a 58 20 20 20 20 |d and do| a.X |
|00001da0| 23 20 73 65 71 75 65 6e | 74 69 61 6c 20 73 65 61 |# sequen|tial sea|
|00001db0| 72 63 68 20 6f 66 20 61 | 6e 79 20 6b 65 79 2f 76 |rch of a|ny key/v|
|00001dc0| 61 6c 75 65 20 65 6e 74 | 72 69 65 73 20 74 68 61 |alue ent|ries tha|
|00001dd0| 74 20 68 61 76 65 20 62 | 65 65 6e 20 61 64 64 65 |t have b|een adde|
|00001de0| 64 0a 58 20 20 20 20 23 | 20 73 69 6e 63 65 20 74 |d.X #| since t|
|00001df0| 68 65 20 6c 61 73 74 20 | 74 69 6d 65 20 69 64 78 |he last |time idx|
|00001e00| 74 65 78 74 20 77 61 73 | 20 72 75 6e 2e 0a 58 0a |text was| run..X.|
|00001e10| 58 20 20 20 20 73 65 65 | 6b 28 69 6e 74 65 78 74 |X see|k(intext|
|00001e20| 2c 20 67 65 74 5f 6f 66 | 66 73 65 74 73 28 4b 45 |, get_of|fsets(KE|
|00001e30| 59 2c 20 69 6e 69 64 78 | 29 29 0a 58 0a 58 20 20 |Y, inidx|)).X.X |
|00001e40| 20 20 23 20 46 69 6e 64 | 20 6b 65 79 2e 20 20 53 | # Find| key. S|
|00001e50| 68 6f 75 6c 64 20 62 65 | 20 72 69 67 68 74 20 74 |hould be| right t|
|00001e60| 68 65 72 65 2c 20 75 6e | 6c 65 73 73 20 74 68 65 |here, un|less the|
|00001e70| 20 75 73 65 72 20 68 61 | 73 20 61 70 70 65 6e 64 | user ha|s append|
|00001e80| 65 64 0a 58 20 20 20 20 | 23 20 6b 65 79 2f 76 61 |ed.X |# key/va|
|00001e90| 6c 75 65 20 70 61 69 72 | 73 20 74 6f 20 74 68 65 |lue pair|s to the|
|00001ea0| 20 65 6e 64 20 77 69 74 | 68 6f 75 74 20 72 65 2d | end wit|hout re-|
|00001eb0| 69 6e 64 65 78 69 6e 67 | 2c 20 6f 72 20 65 6c 73 |indexing|, or els|
|00001ec0| 65 20 68 61 73 20 6e 6f | 74 0a 58 20 20 20 20 23 |e has no|t.X #|
|00001ed0| 20 62 6f 74 68 65 72 65 | 64 20 74 6f 20 69 6e 64 | bothere|d to ind|
|00001ee0| 65 78 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |ex in th|e first |
|00001ef0| 70 6c 61 63 65 2e 20 20 | 49 6e 20 74 68 69 73 20 |place. |In this |
|00001f00| 63 61 73 65 20 77 65 27 | 72 65 0a 58 20 20 20 20 |case we'|re.X |
|00001f10| 23 20 73 75 70 70 6f 73 | 65 64 20 74 6f 20 73 74 |# suppos|ed to st|
|00001f20| 61 72 74 20 61 20 73 65 | 71 75 65 6e 74 69 61 6c |art a se|quential|
|00001f30| 20 73 65 61 72 63 68 20 | 66 6f 72 20 4b 45 59 20 | search |for KEY |
|00001f40| 75 70 74 6f 20 45 4f 46 | 2e 0a 58 0a 58 20 20 20 |upto EOF|..X.X |
|00001f50| 20 77 68 69 6c 65 20 6c | 69 6e 65 20 3a 3d 20 28 | while l|ine := (|
|00001f60| 72 65 61 64 28 69 6e 74 | 65 78 74 29 20 7c 20 66 |read(int|ext) | f|
|00001f70| 61 69 6c 29 20 64 6f 20 | 7b 0a 58 09 6c 69 6e 65 |ail) do |{.X.line|
|00001f80| 20 3f 20 7b 0a 58 09 20 | 20 20 20 69 66 20 28 3d | ? {.X. | if (=|
|00001f90| 22 3a 3a 22 2c 20 3d 4b | 45 59 2c 20 70 6f 73 28 |"::", =K|EY, pos(|
|00001fa0| 30 29 29 0a 58 09 20 20 | 20 20 74 68 65 6e 20 62 |0)).X. | then b|
|00001fb0| 72 65 61 6b 0a 58 09 7d | 0a 58 20 20 20 20 7d 0a |reak.X.}|.X }.|
|00001fc0| 58 0a 58 20 20 20 20 23 | 20 43 6f 6c 6c 65 63 74 |X.X #| Collect|
|00001fd0| 20 61 6c 6c 20 74 65 78 | 74 20 75 70 74 6f 20 74 | all tex|t upto t|
|00001fe0| 68 65 20 6e 65 78 74 20 | 63 6f 6c 6f 6e 2b 63 6f |he next |colon+co|
|00001ff0| 6c 6f 6e 2d 69 6e 69 74 | 69 61 6c 20 6c 69 6e 65 |lon-init|ial line|
|00002000| 20 28 3a 3a 29 0a 58 20 | 20 20 20 23 20 6f 72 20 | (::).X | # or |
|00002010| 45 4f 46 2e 0a 58 20 20 | 20 20 76 61 6c 75 65 20 |EOF..X | value |
|00002020| 3a 3d 20 22 22 0a 58 20 | 20 20 20 77 68 69 6c 65 |:= "".X | while|
|00002030| 20 6c 69 6e 65 20 3a 3d | 20 72 65 61 64 28 69 6e | line :=| read(in|
|00002040| 74 65 78 74 29 20 64 6f | 20 7b 0a 58 09 6d 61 74 |text) do| {.X.mat|
|00002050| 63 68 28 22 3a 3a 22 2c | 6c 69 6e 65 29 20 26 20 |ch("::",|line) & |
|00002060| 62 72 65 61 6b 0a 58 09 | 76 61 6c 75 65 20 7c 7c |break.X.|value |||
|00002070| 3a 3d 20 6c 69 6e 65 20 | 7c 7c 20 22 5c 6e 22 0a |:= line ||| "\n".|
|00002080| 58 20 20 20 20 7d 0a 58 | 0a 58 20 20 20 20 23 20 |X }.X|.X # |
|00002090| 4e 6f 74 65 20 74 68 61 | 74 20 61 20 6b 65 79 20 |Note tha|t a key |
|000020a0| 77 69 74 68 20 61 6e 20 | 65 6d 70 74 79 20 76 61 |with an |empty va|
|000020b0| 6c 75 65 20 72 65 74 75 | 72 6e 73 20 61 6e 20 65 |lue retu|rns an e|
|000020c0| 6d 70 74 79 20 73 74 72 | 69 6e 67 2e 0a 58 20 20 |mpty str|ing..X |
|000020d0| 20 20 72 65 74 75 72 6e | 20 74 72 69 6d 28 76 61 | return| trim(va|
|000020e0| 6c 75 65 2c 20 27 5c 6e | 27 29 0a 58 0a 58 65 6e |lue, '\n|').X.Xen|
|000020f0| 64 0a 58 0a 58 0a 58 0a | 58 70 72 6f 63 65 64 75 |d.X.X.X.|Xprocedu|
|00002100| 72 65 20 67 65 74 5f 6f | 66 66 73 65 74 73 28 4b |re get_o|ffsets(K|
|00002110| 45 59 2c 20 69 6e 69 64 | 78 29 0a 58 0a 58 20 20 |EY, inid|x).X.X |
|00002120| 20 20 6c 6f 63 61 6c 20 | 62 6f 74 74 6f 6d 2c 20 | local |bottom, |
|00002130| 74 6f 70 2c 20 6c 6f 63 | 2c 20 66 69 72 73 74 70 |top, loc|, firstp|
|00002140| 61 72 74 2c 20 6f 66 66 | 73 65 74 0a 58 20 20 20 |art, off|set.X |
|00002150| 20 23 20 55 73 65 20 74 | 68 65 73 65 20 74 6f 20 | # Use t|hese to |
|00002160| 73 74 6f 72 65 20 76 61 | 6c 75 65 73 20 6c 69 6b |store va|lues lik|
|00002170| 65 6c 79 20 74 6f 20 62 | 65 20 72 65 75 73 65 64 |ely to b|e reused|
|00002180| 2e 0a 58 20 20 20 20 73 | 74 61 74 69 63 20 6f 6c |..X s|tatic ol|
|00002190| 64 5f 69 6e 69 64 78 2c | 20 66 69 72 73 74 6c 69 |d_inidx,| firstli|
|000021a0| 6e 65 2c 20 53 4f 46 2c | 20 45 4f 46 0a 58 0a 58 |ne, SOF,| EOF.X.X|
|000021b0| 20 20 20 20 23 20 49 66 | 20 74 68 65 72 65 27 73 | # If| there's|
|000021c0| 20 6e 6f 20 69 6e 64 65 | 78 20 66 69 6c 65 2c 20 | no inde|x file, |
|000021d0| 74 68 65 6e 20 6a 75 73 | 74 20 72 65 74 75 72 6e |then jus|t return|
|000021e0| 20 61 6e 20 6f 66 66 73 | 65 74 20 6f 66 20 31 2e | an offs|et of 1.|
|000021f0| 0a 58 20 20 20 20 69 66 | 20 2f 69 6e 69 64 78 20 |.X if| /inidx |
|00002200| 74 68 65 6e 0a 58 09 72 | 65 74 75 72 6e 20 31 0a |then.X.r|eturn 1.|
|00002210| 58 0a 58 20 20 20 20 23 | 20 46 69 72 73 74 20 6c |X.X #| First l|
|00002220| 69 6e 65 20 63 6f 6e 74 | 61 69 6e 73 20 6f 66 66 |ine cont|ains off|
|00002230| 73 65 74 20 6f 66 20 6c | 61 73 74 20 69 6e 64 65 |set of l|ast inde|
|00002240| 78 65 64 20 62 79 74 65 | 20 69 6e 20 74 68 65 20 |xed byte| in the |
|00002250| 6d 61 69 6e 0a 58 20 20 | 20 20 23 20 74 65 78 74 |main.X | # text|
|00002260| 20 66 69 6c 65 2e 20 20 | 57 65 20 6e 65 65 64 20 | file. |We need |
|00002270| 74 68 69 73 20 6c 61 74 | 65 72 2e 20 20 53 61 76 |this lat|er. Sav|
|00002280| 65 20 69 74 2e 20 20 53 | 74 61 72 74 20 74 68 65 |e it. S|tart the|
|00002290| 20 62 69 6e 61 72 79 0a | 58 20 20 20 20 23 20 73 | binary.|X # s|
|000022a0| 65 61 72 63 68 20 72 6f | 75 74 69 6e 65 20 61 74 |earch ro|utine at|
|000022b0| 20 74 68 65 20 6e 65 78 | 74 20 62 79 74 65 20 61 | the nex|t byte a|
|000022c0| 66 74 65 72 20 74 68 69 | 73 20 6c 69 6e 65 2e 0a |fter thi|s line..|
|000022d0| 58 20 20 20 20 73 65 65 | 6b 28 69 6e 69 64 78 2c |X see|k(inidx,|
|000022e0| 20 31 29 0a 58 20 20 20 | 20 69 66 20 6e 6f 74 20 | 1).X | if not |
|000022f0| 28 69 6e 69 64 78 20 3d | 3d 3d 20 5c 6f 6c 64 5f |(inidx =|== \old_|
|00002300| 69 6e 69 64 78 29 20 74 | 68 65 6e 20 7b 0a 58 0a |inidx) t|hen {.X.|
|00002310| 58 09 23 20 47 65 74 20 | 66 69 72 73 74 20 6c 69 |X.# Get |first li|
|00002320| 6e 65 2e 0a 58 09 66 69 | 72 73 74 6c 69 6e 65 20 |ne..X.fi|rstline |
|00002330| 3a 3d 20 21 69 6e 69 64 | 78 0a 58 09 23 20 53 65 |:= !inid|x.X.# Se|
|00002340| 74 20 22 62 6f 74 74 6f | 6d 2e 22 0a 58 09 31 20 |t "botto|m.".X.1 |
|00002350| 3d 20 28 53 4f 46 20 3a | 3d 20 77 68 65 72 65 28 |= (SOF :|= where(|
|00002360| 69 6e 69 64 78 29 2d 31 | 29 20 26 0a 58 09 20 20 |inidx)-1|) &.X. |
|00002370| 20 20 73 74 6f 70 28 22 | 67 65 74 5f 6f 66 66 73 | stop("|get_offs|
|00002380| 65 74 73 3a 20 20 63 6f | 72 72 75 70 74 20 2e 49 |ets: co|rrupt .I|
|00002390| 44 58 20 66 69 6c 65 3b | 20 72 65 69 6e 64 65 78 |DX file;| reindex|
|000023a0| 22 29 0a 58 09 23 20 48 | 6f 77 20 62 69 67 20 69 |").X.# H|ow big i|
|000023b0| 73 20 74 68 69 73 20 66 | 69 6c 65 3f 0a 58 09 73 |s this f|ile?.X.s|
|000023c0| 65 65 6b 28 69 6e 69 64 | 78 2c 20 30 29 0a 58 09 |eek(inid|x, 0).X.|
|000023d0| 45 4f 46 20 3a 3d 20 77 | 68 65 72 65 28 69 6e 69 |EOF := w|here(ini|
|000023e0| 64 78 29 0a 58 0a 58 09 | 6f 6c 64 5f 69 6e 69 64 |dx).X.X.|old_inid|
|000023f0| 78 20 3a 3d 20 69 6e 69 | 64 78 0a 58 20 20 20 20 |x := ini|dx.X |
|00002400| 7d 0a 58 20 20 20 20 23 | 20 53 4f 46 2c 20 45 4f |}.X #| SOF, EO|
|00002410| 46 20 63 6f 6e 73 74 61 | 6e 74 20 66 6f 72 20 61 |F consta|nt for a|
|00002420| 20 67 69 76 65 6e 20 69 | 6e 69 64 78 20 66 69 6c | given i|nidx fil|
|00002430| 65 2e 0a 58 20 20 20 20 | 62 6f 74 74 6f 6d 20 3a |e..X |bottom :|
|00002440| 3d 20 53 4f 46 3b 20 74 | 6f 70 20 3a 3d 20 45 4f |= SOF; t|op := EO|
|00002450| 46 0a 58 0a 58 20 20 20 | 20 23 20 49 66 20 62 6f |F.X.X | # If bo|
|00002460| 74 74 6f 6d 20 67 65 74 | 73 20 62 69 67 67 65 72 |ttom get|s bigger|
|00002470| 20 74 68 61 6e 20 74 6f | 70 2c 20 74 68 65 72 65 | than to|p, there|
|00002480| 27 73 20 6e 6f 20 73 75 | 63 68 20 6b 65 79 2e 0a |'s no su|ch key..|
|00002490| 58 20 20 20 20 75 6e 74 | 69 6c 20 62 6f 74 74 6f |X unt|il botto|
|000024a0| 6d 20 3e 20 74 6f 70 20 | 64 6f 20 7b 0a 58 0a 58 |m > top |do {.X.X|
|000024b0| 09 6c 6f 63 20 3a 3d 20 | 28 74 6f 70 2b 62 6f 74 |.loc := |(top+bot|
|000024c0| 74 6f 6d 29 20 2f 20 32 | 0a 58 09 73 65 65 6b 28 |tom) / 2|.X.seek(|
|000024d0| 69 6e 69 64 78 2c 20 6c | 6f 63 29 0a 58 0a 58 09 |inidx, l|oc).X.X.|
|000024e0| 23 20 4d 6f 76 65 20 70 | 61 73 74 20 6e 65 78 74 |# Move p|ast next|
|000024f0| 20 6e 65 77 6c 69 6e 65 | 2e 20 20 49 66 20 61 74 | newline|. If at|
|00002500| 20 45 4f 46 2c 20 62 72 | 65 61 6b 2e 0a 58 09 69 | EOF, br|eak..X.i|
|00002510| 6e 63 72 20 3a 3d 20 31 | 0a 58 09 75 6e 74 69 6c |ncr := 1|.X.until|
|00002520| 20 72 65 61 64 73 28 69 | 6e 69 64 78 29 20 3d 3d | reads(i|nidx) ==|
|00002530| 20 22 5c 6e 22 20 64 6f | 0a 58 09 20 20 20 20 69 | "\n" do|.X. i|
|00002540| 6e 63 72 20 2b 3a 3d 20 | 31 0a 58 09 69 66 20 6c |ncr +:= |1.X.if l|
|00002550| 6f 63 2b 69 6e 63 72 20 | 3d 20 45 4f 46 20 74 68 |oc+incr |= EOF th|
|00002560| 65 6e 20 7b 0a 58 09 20 | 20 20 20 74 6f 70 20 3a |en {.X. | top :|
|00002570| 3d 20 6c 6f 63 2d 31 0a | 58 09 20 20 20 20 6e 65 |= loc-1.|X. ne|
|00002580| 78 74 0a 58 09 7d 0a 58 | 0a 58 09 23 20 43 68 65 |xt.X.}.X|.X.# Che|
|00002590| 63 6b 20 74 6f 20 73 65 | 65 20 69 66 20 74 68 65 |ck to se|e if the|
|000025a0| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 20 63 6f | current| line co|
|000025b0| 6e 74 61 69 6e 73 20 4b | 45 59 2e 0a 58 09 72 65 |ntains K|EY..X.re|
|000025c0| 61 64 28 69 6e 69 64 78 | 29 20 3f 20 7b 0a 58 0a |ad(inidx|) ? {.X.|
|000025d0| 58 09 20 20 20 20 23 20 | 2e 49 44 58 20 66 69 6c |X. # |.IDX fil|
|000025e0| 65 20 6c 69 6e 65 20 66 | 6f 72 6d 61 74 20 69 73 |e line f|ormat is|
|000025f0| 20 4b 45 59 5c 74 6f 66 | 66 73 65 74 0a 58 09 20 | KEY\tof|fset.X. |
|00002600| 20 20 20 66 69 72 73 74 | 70 61 72 74 20 3a 3d 20 | first|part := |
|00002610| 74 61 62 28 66 69 6e 64 | 28 22 5c 74 22 29 29 0a |tab(find|("\t")).|
|00002620| 58 09 20 20 20 20 69 66 | 20 4b 45 59 20 3d 3d 20 |X. if| KEY == |
|00002630| 66 69 72 73 74 70 61 72 | 74 20 74 68 65 6e 20 7b |firstpar|t then {|
|00002640| 0a 58 09 09 23 20 72 65 | 74 75 72 6e 20 6f 66 66 |.X..# re|turn off|
|00002650| 73 65 74 0a 58 09 09 72 | 65 74 75 72 6e 20 28 6d |set.X..r|eturn (m|
|00002660| 6f 76 65 28 31 29 2c 20 | 74 61 62 28 30 29 29 0a |ove(1), |tab(0)).|
|00002670| 58 09 20 20 20 20 7d 0a | 58 09 20 20 20 20 23 20 |X. }.|X. # |
|00002680| 41 68 2c 20 74 68 69 73 | 20 69 73 20 77 68 61 74 |Ah, this| is what|
|00002690| 20 61 6c 6c 20 62 69 6e | 61 72 79 20 73 65 61 72 | all bin|ary sear|
|000026a0| 63 68 65 73 20 64 6f 2e | 0a 58 09 20 20 20 20 65 |ches do.|.X. e|
|000026b0| 6c 73 65 20 7b 0a 58 09 | 09 69 66 20 4b 45 59 20 |lse {.X.|.if KEY |
|000026c0| 3c 3c 20 66 69 72 73 74 | 70 61 72 74 0a 58 09 09 |<< first|part.X..|
|000026d0| 74 68 65 6e 20 74 6f 70 | 20 3a 3d 20 6c 6f 63 2d |then top| := loc-|
|000026e0| 31 0a 58 09 09 65 6c 73 | 65 20 62 6f 74 74 6f 6d |1.X..els|e bottom|
|000026f0| 20 3a 3d 20 6c 6f 63 20 | 2b 20 69 6e 63 72 20 2b | := loc |+ incr +|
|00002700| 20 2a 26 73 75 62 6a 65 | 63 74 0a 58 09 20 20 20 | *&subje|ct.X. |
|00002710| 20 7d 0a 58 09 7d 0a 58 | 20 20 20 20 7d 0a 58 0a | }.X.}.X| }.X.|
|00002720| 58 20 20 20 20 23 20 46 | 69 72 73 74 20 6c 69 6e |X # F|irst lin|
|00002730| 65 20 6f 66 20 74 68 65 | 20 69 6e 64 65 78 20 66 |e of the| index f|
|00002740| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 6f 66 66 |ile cont|ains off|
|00002750| 73 65 74 20 6f 66 20 6c | 61 73 74 20 69 6e 64 65 |set of l|ast inde|
|00002760| 78 65 64 0a 58 20 20 20 | 20 23 20 62 79 74 65 20 |xed.X | # byte |
|00002770| 2b 20 31 2e 20 20 4d 69 | 67 68 74 20 62 65 20 74 |+ 1. Mi|ght be t|
|00002780| 68 65 20 6f 6e 6c 79 20 | 6c 69 6e 65 20 69 6e 20 |he only |line in |
|00002790| 74 68 65 20 66 69 6c 65 | 20 28 69 66 20 69 74 20 |the file| (if it |
|000027a0| 68 61 64 20 6e 6f 0a 58 | 20 20 20 20 23 20 6b 65 |had no.X| # ke|
|000027b0| 79 73 20 77 68 65 6e 20 | 69 74 20 77 61 73 20 69 |ys when |it was i|
|000027c0| 6e 64 65 78 65 64 29 2e | 0a 58 20 20 20 20 72 65 |ndexed).|.X re|
|000027d0| 74 75 72 6e 20 66 69 72 | 73 74 6c 69 6e 65 0a 58 |turn fir|stline.X|
|000027e0| 0a 58 65 6e 64 0a 53 48 | 41 52 5f 45 4f 46 0a 74 |.Xend.SH|AR_EOF.t|
|000027f0| 72 75 65 20 7c 7c 20 65 | 63 68 6f 20 27 72 65 73 |rue || e|cho 'res|
|00002800| 74 6f 72 65 20 6f 66 20 | 67 65 74 74 65 78 74 2e |tore of |gettext.|
|00002810| 69 63 6e 20 66 61 69 6c | 65 64 27 0a 72 6d 20 2d |icn fail|ed'.rm -|
|00002820| 66 20 5f 73 68 61 72 5f | 77 6e 74 5f 2e 74 6d 70 |f _shar_|wnt_.tmp|
|00002830| 0a 66 69 0a 23 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.fi.# ==|========|
|00002840| 3d 3d 3d 20 61 64 6a 75 | 6e 63 74 73 2e 69 63 6e |=== adju|ncts.icn|
|00002850| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a | =======|=======.|
|00002860| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 64 6a 75 |if test |-f 'adju|
|00002870| 6e 63 74 73 2e 69 63 6e | 27 20 2d 61 20 58 22 24 |ncts.icn|' -a X"$|
|00002880| 31 22 20 21 3d 20 58 22 | 2d 63 22 3b 20 74 68 65 |1" != X"|-c"; the|
|00002890| 6e 0a 09 65 63 68 6f 20 | 27 78 20 2d 20 73 6b 69 |n..echo |'x - ski|
|000028a0| 70 70 69 6e 67 20 61 64 | 6a 75 6e 63 74 73 2e 69 |pping ad|juncts.i|
|000028b0| 63 6e 20 28 46 69 6c 65 | 20 61 6c 72 65 61 64 79 |cn (File| already|
|000028c0| 20 65 78 69 73 74 73 29 | 27 0a 09 72 6d 20 2d 66 | exists)|'..rm -f|
|000028d0| 20 5f 73 68 61 72 5f 77 | 6e 74 5f 2e 74 6d 70 0a | _shar_w|nt_.tmp.|
|000028e0| 65 6c 73 65 0a 3e 20 5f | 73 68 61 72 5f 77 6e 74 |else.> _|shar_wnt|
|000028f0| 5f 2e 74 6d 70 0a 65 63 | 68 6f 20 27 78 20 2d 20 |_.tmp.ec|ho 'x - |
|00002900| 65 78 74 72 61 63 74 69 | 6e 67 20 61 64 6a 75 6e |extracti|ng adjun|
|00002910| 63 74 73 2e 69 63 6e 20 | 28 54 65 78 74 29 27 0a |cts.icn |(Text)'.|
|00002920| 73 65 64 20 27 73 2f 5e | 58 2f 2f 27 20 3c 3c 20 |sed 's/^|X//' << |
|00002930| 27 53 48 41 52 5f 45 4f | 46 27 20 3e 20 27 61 64 |'SHAR_EO|F' > 'ad|
|00002940| 6a 75 6e 63 74 73 2e 69 | 63 6e 27 20 26 26 0a 58 |juncts.i|cn' &&.X|
|00002950| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002960| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002970| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002980| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002990| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 58 23 0a |########|####.X#.|
|000029a0| 58 23 09 4e 61 6d 65 3a | 09 20 61 64 6a 75 6e 63 |X#.Name:|. adjunc|
|000029b0| 74 73 2e 69 63 6e 0a 58 | 23 0a 58 23 09 54 69 74 |ts.icn.X|#.X#.Tit|
|000029c0| 6c 65 3a 09 20 61 64 6a | 75 6e 63 74 73 20 28 61 |le:. adj|uncts (a|
|000029d0| 64 6a 75 6e 63 74 20 75 | 74 69 6c 69 74 69 65 73 |djunct u|tilities|
|000029e0| 20 66 6f 72 20 67 65 74 | 74 65 78 74 20 61 6e 64 | for get|text and|
|000029f0| 20 69 64 78 74 65 78 74 | 29 0a 58 23 0a 58 23 09 | idxtext|).X#.X#.|
|00002a00| 41 75 74 68 6f 72 3a 09 | 20 52 69 63 68 61 72 64 |Author:.| Richard|
|00002a10| 20 4c 2e 20 47 6f 65 72 | 77 69 74 7a 0a 58 23 0a | L. Goer|witz.X#.|
|00002a20| 58 23 09 56 65 72 73 69 | 6f 6e 3a 20 31 2e 32 0a |X#.Versi|on: 1.2.|
|00002a30| 58 23 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#.X####|########|
|00002a40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a80| 0a 58 23 20 20 0a 58 23 | 20 20 50 72 65 74 74 79 |.X# .X#| Pretty|
|00002a90| 20 6d 75 6e 64 61 6e 65 | 20 73 74 75 66 66 2e 20 | mundane| stuff. |
|00002aa0| 20 42 61 73 65 6e 61 6d | 65 28 29 2c 20 50 61 74 | Basenam|e(), Pat|
|00002ab0| 68 6e 61 6d 65 28 29 2c | 20 53 74 72 69 70 28 29 |hname(),| Strip()|
|00002ac0| 2c 20 61 6e 64 20 61 20 | 75 74 69 6c 69 74 79 0a |, and a |utility.|
|00002ad0| 58 23 20 20 66 6f 72 20 | 63 72 65 61 74 69 6e 67 |X# for |creating|
|00002ae0| 20 69 6e 64 65 78 20 66 | 69 6c 65 6e 61 6d 65 73 | index f|ilenames|
|00002af0| 2e 0a 58 23 0a 58 23 23 | 23 23 23 23 23 23 23 23 |..X#.X##|########|
|00002b00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b40| 23 23 0a 58 23 0a 58 23 | 20 20 4c 69 6e 6b 73 3a |##.X#.X#| Links:|
|00002b50| 20 6e 6f 6e 65 0a 58 23 | 0a 58 23 20 20 53 65 65 | none.X#|.X# See|
|00002b60| 20 61 6c 73 6f 3a 20 67 | 65 74 74 65 78 74 2e 69 | also: g|ettext.i|
|00002b70| 63 6e 2c 20 69 64 78 74 | 65 78 74 2c 69 63 6e 0a |cn, idxt|ext,icn.|
|00002b80| 58 23 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#.X####|########|
|00002b90| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002ba0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002bb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002bc0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002bd0| 0a 58 0a 58 0a 58 67 6c | 6f 62 61 6c 20 5f 73 6c |.X.X.Xgl|obal _sl|
|00002be0| 61 73 68 2c 20 5f 62 61 | 73 65 6c 65 6e 0a 58 0a |ash, _ba|selen.X.|
|00002bf0| 58 70 72 6f 63 65 64 75 | 72 65 20 42 61 73 65 6e |Xprocedu|re Basen|
|00002c00| 61 6d 65 28 73 29 0a 58 | 0a 58 20 20 20 20 23 20 |ame(s).X|.X # |
|00002c10| 67 6c 6f 62 61 6c 20 5f | 73 6c 61 73 68 0a 58 20 |global _|slash.X |
|00002c20| 20 20 20 73 20 3f 20 7b | 0a 58 09 77 68 69 6c 65 | s ? {|.X.while|
|00002c30| 20 74 61 62 28 66 69 6e | 64 28 5f 73 6c 61 73 68 | tab(fin|d(_slash|
|00002c40| 29 2b 31 29 0a 58 09 72 | 65 74 75 72 6e 20 74 61 |)+1).X.r|eturn ta|
|00002c50| 62 28 30 29 0a 58 20 20 | 20 20 7d 0a 58 0a 58 65 |b(0).X | }.X.Xe|
|00002c60| 6e 64 0a 58 0a 58 0a 58 | 70 72 6f 63 65 64 75 72 |nd.X.X.X|procedur|
|00002c70| 65 20 50 61 74 68 6e 61 | 6d 65 28 73 29 0a 58 0a |e Pathna|me(s).X.|
|00002c80| 58 20 20 20 20 23 20 67 | 6c 6f 62 61 6c 20 5f 73 |X # g|lobal _s|
|00002c90| 6c 61 73 68 0a 58 20 20 | 20 20 73 32 20 3a 3d 20 |lash.X | s2 := |
|00002ca0| 22 22 0a 58 20 20 20 20 | 73 20 3f 20 7b 0a 58 09 |"".X |s ? {.X.|
|00002cb0| 77 68 69 6c 65 20 73 32 | 20 7c 7c 3a 3d 20 74 61 |while s2| ||:= ta|
|00002cc0| 62 28 66 69 6e 64 28 5f | 73 6c 61 73 68 29 2b 31 |b(find(_|slash)+1|
|00002cd0| 29 0a 58 09 72 65 74 75 | 72 6e 20 73 32 0a 58 20 |).X.retu|rn s2.X |
|00002ce0| 20 20 20 7d 0a 58 0a 58 | 65 6e 64 0a 58 0a 58 0a | }.X.X|end.X.X.|
|00002cf0| 58 70 72 6f 63 65 64 75 | 72 65 20 67 65 74 69 64 |Xprocedu|re getid|
|00002d00| 78 6e 61 6d 65 28 46 4e | 41 4d 45 29 0a 58 0a 58 |xname(FN|AME).X.X|
|00002d10| 20 20 20 20 23 0a 58 20 | 20 20 20 23 20 44 69 73 | #.X | # Dis|
|00002d20| 63 61 72 64 20 70 61 74 | 68 20 63 6f 6d 70 6f 6e |card pat|h compon|
|00002d30| 65 6e 74 2e 20 20 43 75 | 74 20 62 61 73 65 6e 61 |ent. Cu|t basena|
|00002d40| 6d 65 20 64 6f 77 6e 20 | 74 6f 20 61 20 73 6d 61 |me down |to a sma|
|00002d50| 6c 6c 20 65 6e 6f 75 67 | 68 0a 58 20 20 20 20 23 |ll enoug|h.X #|
|00002d60| 20 73 69 7a 65 20 74 68 | 61 74 20 74 68 65 20 4f | size th|at the O|
|00002d70| 53 20 77 69 6c 6c 20 62 | 65 20 61 62 6c 65 20 74 |S will b|e able t|
|00002d80| 6f 20 68 61 6e 64 6c 65 | 20 61 64 64 69 74 69 6f |o handle| additio|
|00002d90| 6e 20 6f 66 20 74 68 65 | 20 65 78 2d 0a 58 20 20 |n of the| ex-.X |
|00002da0| 20 20 23 20 74 65 6e 73 | 69 6f 6e 20 22 2e 49 44 | # tens|ion ".ID|
|00002db0| 58 22 0a 58 20 20 20 20 | 23 0a 58 0a 58 20 20 20 |X".X |#.X.X |
|00002dc0| 20 23 20 67 6c 6f 62 61 | 6c 20 5f 73 6c 61 73 68 | # globa|l _slash|
|00002dd0| 2c 20 5f 62 61 73 65 6c | 65 6e 0a 58 20 20 20 20 |, _basel|en.X |
|00002de0| 72 65 74 75 72 6e 20 72 | 69 67 68 74 28 53 74 72 |return r|ight(Str|
|00002df0| 69 70 28 42 61 73 65 6e | 61 6d 65 28 46 4e 41 4d |ip(Basen|ame(FNAM|
|00002e00| 45 2c 5f 73 6c 61 73 68 | 29 2c 27 2e 27 29 2c 20 |E,_slash|),'.'), |
|00002e10| 5f 62 61 73 65 6c 65 6e | 2c 20 22 78 22 29 20 7c |_baselen|, "x") ||
|00002e20| 7c 20 22 2e 49 44 58 22 | 0a 58 0a 58 65 6e 64 0a || ".IDX"|.X.Xend.|
|00002e30| 58 0a 58 0a 58 70 72 6f | 63 65 64 75 72 65 20 53 |X.X.Xpro|cedure S|
|00002e40| 74 72 69 70 28 73 2c 63 | 29 0a 58 0a 58 20 20 20 |trip(s,c|).X.X |
|00002e50| 20 6c 6f 63 61 6c 20 73 | 32 0a 58 0a 58 20 20 20 | local s|2.X.X |
|00002e60| 20 73 32 20 3a 3d 20 22 | 22 0a 58 20 20 20 20 73 | s2 := "|".X s|
|00002e70| 20 3f 20 7b 0a 58 09 77 | 68 69 6c 65 20 73 32 20 | ? {.X.w|hile s2 |
|00002e80| 7c 7c 3a 3d 20 74 61 62 | 28 75 70 74 6f 28 63 29 |||:= tab|(upto(c)|
|00002e90| 29 0a 58 09 64 6f 20 74 | 61 62 28 6d 61 6e 79 28 |).X.do t|ab(many(|
|00002ea0| 63 29 29 0a 58 09 73 32 | 20 7c 7c 3a 3d 20 74 61 |c)).X.s2| ||:= ta|
|00002eb0| 62 28 30 29 0a 58 20 20 | 20 20 7d 0a 58 20 20 20 |b(0).X | }.X |
|00002ec0| 20 72 65 74 75 72 6e 20 | 73 32 0a 58 0a 58 65 6e | return |s2.X.Xen|
|00002ed0| 64 0a 53 48 41 52 5f 45 | 4f 46 0a 74 72 75 65 20 |d.SHAR_E|OF.true |
|00002ee0| 7c 7c 20 65 63 68 6f 20 | 27 72 65 73 74 6f 72 65 ||| echo |'restore|
|00002ef0| 20 6f 66 20 61 64 6a 75 | 6e 63 74 73 2e 69 63 6e | of adju|ncts.icn|
|00002f00| 20 66 61 69 6c 65 64 27 | 0a 72 6d 20 2d 66 20 5f | failed'|.rm -f _|
|00002f10| 73 68 61 72 5f 77 6e 74 | 5f 2e 74 6d 70 0a 66 69 |shar_wnt|_.tmp.fi|
|00002f20| 0a 23 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.# =====|========|
|00002f30| 20 69 64 78 74 65 78 74 | 2e 69 63 6e 20 3d 3d 3d | idxtext|.icn ===|
|00002f40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 69 66 20 74 |========|===.if t|
|00002f50| 65 73 74 20 2d 66 20 27 | 69 64 78 74 65 78 74 2e |est -f '|idxtext.|
|00002f60| 69 63 6e 27 20 2d 61 20 | 58 22 24 31 22 20 21 3d |icn' -a |X"$1" !=|
|00002f70| 20 58 22 2d 63 22 3b 20 | 74 68 65 6e 0a 09 65 63 | X"-c"; |then..ec|
|00002f80| 68 6f 20 27 78 20 2d 20 | 73 6b 69 70 70 69 6e 67 |ho 'x - |skipping|
|00002f90| 20 69 64 78 74 65 78 74 | 2e 69 63 6e 20 28 46 69 | idxtext|.icn (Fi|
|00002fa0| 6c 65 20 61 6c 72 65 61 | 64 79 20 65 78 69 73 74 |le alrea|dy exist|
|00002fb0| 73 29 27 0a 09 72 6d 20 | 2d 66 20 5f 73 68 61 72 |s)'..rm |-f _shar|
|00002fc0| 5f 77 6e 74 5f 2e 74 6d | 70 0a 65 6c 73 65 0a 3e |_wnt_.tm|p.else.>|
|00002fd0| 20 5f 73 68 61 72 5f 77 | 6e 74 5f 2e 74 6d 70 0a | _shar_w|nt_.tmp.|
|00002fe0| 65 63 68 6f 20 27 78 20 | 2d 20 65 78 74 72 61 63 |echo 'x |- extrac|
|00002ff0| 74 69 6e 67 20 69 64 78 | 74 65 78 74 2e 69 63 6e |ting idx|text.icn|
|00003000| 20 28 54 65 78 74 29 27 | 0a 73 65 64 20 27 73 2f | (Text)'|.sed 's/|
|00003010| 5e 58 2f 2f 27 20 3c 3c | 20 27 53 48 41 52 5f 45 |^X//' <<| 'SHAR_E|
|00003020| 4f 46 27 20 3e 20 27 69 | 64 78 74 65 78 74 2e 69 |OF' > 'i|dxtext.i|
|00003030| 63 6e 27 20 26 26 0a 58 | 23 23 23 23 23 23 23 23 |cn' &&.X|########|
|00003040| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003050| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003060| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003070| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003080| 23 23 23 23 0a 58 23 0a | 58 23 09 4e 61 6d 65 3a |####.X#.|X#.Name:|
|00003090| 09 20 69 64 78 74 65 78 | 74 2e 69 63 6e 0a 58 23 |. idxtex|t.icn.X#|
|000030a0| 0a 58 23 09 54 69 74 6c | 65 3a 09 20 69 64 78 74 |.X#.Titl|e:. idxt|
|000030b0| 65 78 74 20 28 69 6e 64 | 65 78 20 74 65 78 74 2d |ext (ind|ex text-|
|000030c0| 62 61 73 65 20 66 6f 72 | 20 67 65 74 74 65 78 74 |base for| gettext|
|000030d0| 28 29 20 72 6f 75 74 69 | 6e 65 29 0a 58 23 0a 58 |() routi|ne).X#.X|
|000030e0| 23 09 41 75 74 68 6f 72 | 3a 09 20 52 69 63 68 61 |#.Author|:. Richa|
|000030f0| 72 64 20 4c 2e 20 47 6f | 65 72 77 69 74 7a 0a 58 |rd L. Go|erwitz.X|
|00003100| 23 0a 58 23 09 56 65 72 | 73 69 6f 6e 3a 20 31 2e |#.X#.Ver|sion: 1.|
|00003110| 31 31 0a 58 23 0a 58 23 | 23 23 23 23 23 23 23 23 |11.X#.X#|########|
|00003120| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003130| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003140| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003150| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003160| 23 23 23 0a 58 23 0a 58 | 23 20 20 20 20 20 20 49 |###.X#.X|# I|
|00003170| 64 78 74 65 78 74 20 74 | 75 72 6e 73 20 61 20 66 |dxtext t|urns a f|
|00003180| 69 6c 65 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ile asso|ciated w|
|00003190| 69 74 68 20 67 65 74 74 | 65 78 74 28 29 20 72 6f |ith gett|ext() ro|
|000031a0| 75 74 69 6e 65 20 69 6e | 74 6f 20 61 6e 0a 58 23 |utine in|to an.X#|
|000031b0| 20 20 69 6e 64 65 78 65 | 64 20 74 65 78 74 2d 62 | indexe|d text-b|
|000031c0| 61 73 65 2e 20 20 54 68 | 6f 75 67 68 20 67 65 74 |ase. Th|ough get|
|000031d0| 74 65 78 74 28 29 20 77 | 69 6c 6c 20 77 6f 72 6b |text() w|ill work|
|000031e0| 20 66 69 6e 65 20 77 69 | 74 68 20 66 69 6c 65 73 | fine wi|th files|
|000031f0| 0a 58 23 20 20 74 68 61 | 74 20 68 61 76 65 6e 27 |.X# tha|t haven'|
|00003200| 74 20 62 65 65 6e 20 69 | 6e 64 65 78 65 64 20 76 |t been i|ndexed v|
|00003210| 69 61 20 69 64 78 74 65 | 78 74 28 29 2c 20 61 63 |ia idxte|xt(), ac|
|00003220| 63 65 73 73 20 69 73 20 | 66 61 73 74 65 72 20 69 |cess is |faster i|
|00003230| 66 20 74 68 65 0a 58 23 | 20 20 69 6e 64 65 78 69 |f the.X#| indexi|
|00003240| 6e 67 20 69 73 20 64 6f | 6e 65 20 69 66 20 74 68 |ng is do|ne if th|
|00003250| 65 20 66 69 6c 65 20 69 | 73 2c 20 73 61 79 2c 20 |e file i|s, say, |
|00003260| 6f 76 65 72 20 31 30 6b | 20 28 6f 6e 20 6d 79 20 |over 10k| (on my |
|00003270| 73 79 73 74 65 6d 20 74 | 68 65 0a 58 23 20 20 63 |system t|he.X# c|
|00003280| 72 6f 73 73 6f 76 65 72 | 20 70 6f 69 6e 74 20 69 |rossover| point i|
|00003290| 73 20 61 63 74 75 61 6c | 6c 79 20 61 62 6f 75 74 |s actual|ly about|
|000032a0| 20 35 6b 29 2e 0a 58 23 | 0a 58 23 20 20 20 20 20 | 5k)..X#|.X# |
|000032b0| 20 55 73 61 67 65 20 69 | 73 20 73 69 6d 70 6c 79 | Usage i|s simply|
|000032c0| 20 22 69 64 78 74 65 78 | 74 20 5b 2d 61 5d 20 66 | "idxtex|t [-a] f|
|000032d0| 69 6c 65 31 20 5b 66 69 | 6c 65 32 20 5b 2e 2e 2e |ile1 [fi|le2 [...|
|000032e0| 5d 5d 2c 22 20 77 68 65 | 72 65 20 66 69 6c 65 31 |]]," whe|re file1|
|000032f0| 2c 0a 58 23 20 20 66 69 | 6c 65 32 2c 20 65 74 63 |,.X# fi|le2, etc|
|00003300| 20 61 72 65 20 74 68 65 | 20 6e 61 6d 65 73 20 6f | are the| names o|
|00003310| 66 20 67 65 74 74 65 78 | 74 2d 66 6f 72 6d 61 74 |f gettex|t-format|
|00003320| 20 66 69 6c 65 73 20 74 | 68 61 74 20 61 72 65 20 | files t|hat are |
|00003330| 74 6f 20 62 65 0a 58 23 | 20 20 28 72 65 2d 29 69 |to be.X#| (re-)i|
|00003340| 6e 64 65 78 65 64 2e 20 | 20 54 68 65 20 2d 61 20 |ndexed. | The -a |
|00003350| 66 6c 61 67 20 74 65 6c | 6c 73 20 69 64 78 74 65 |flag tel|ls idxte|
|00003360| 78 74 20 74 6f 20 61 62 | 6f 72 74 20 69 66 20 61 |xt to ab|ort if a|
|00003370| 6e 20 69 6e 64 65 78 20 | 66 69 6c 65 0a 58 23 20 |n index |file.X# |
|00003380| 20 61 6c 72 65 61 64 79 | 20 65 78 69 73 74 73 2e | already| exists.|
|00003390| 0a 58 23 0a 58 23 20 20 | 20 20 20 20 49 6e 64 65 |.X#.X# | Inde|
|000033a0| 78 65 64 20 66 69 6c 65 | 73 20 68 61 76 65 20 61 |xed file|s have a|
|000033b0| 20 76 65 72 79 20 73 69 | 6d 70 6c 65 20 66 6f 72 | very si|mple for|
|000033c0| 6d 61 74 3a 20 6b 65 79 | 6e 61 6d 65 20 74 61 62 |mat: key|name tab|
|000033d0| 20 6f 66 66 73 65 74 0a | 58 23 20 20 5b 74 61 62 | offset.|X# [tab|
|000033e0| 20 6f 66 66 73 65 74 20 | 5b 65 74 63 2e 5d 5d 5c | offset |[etc.]]\|
|000033f0| 6e 2e 20 20 54 68 65 20 | 66 69 72 73 74 20 6c 69 |n. The |first li|
|00003400| 6e 65 20 6f 66 20 74 68 | 65 20 69 6e 64 65 78 20 |ne of th|e index |
|00003410| 66 69 6c 65 20 69 73 20 | 61 0a 58 23 20 20 70 6f |file is |a.X# po|
|00003420| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 6c 61 73 |inter to| the las|
|00003430| 74 20 69 6e 64 65 78 65 | 64 20 62 79 74 65 20 6f |t indexe|d byte o|
|00003440| 66 20 74 68 65 20 74 65 | 78 74 2d 62 61 73 65 20 |f the te|xt-base |
|00003450| 66 69 6c 65 20 69 74 20 | 69 6e 64 65 78 65 73 2e |file it |indexes.|
|00003460| 0a 58 23 0a 58 23 20 20 | 42 55 47 53 3a 20 49 6e |.X#.X# |BUGS: In|
|00003470| 64 65 78 20 66 69 6c 65 | 73 20 61 72 65 20 74 6f |dex file|s are to|
|00003480| 6f 20 6c 61 72 67 65 2e | 20 20 41 6c 73 6f 2c 20 |o large.| Also, |
|00003490| 49 27 76 65 20 79 65 74 | 20 74 6f 20 66 69 6e 64 |I've yet| to find|
|000034a0| 20 61 20 70 6f 72 74 61 | 62 6c 65 0a 58 23 20 20 | a porta|ble.X# |
|000034b0| 77 61 79 20 6f 66 20 63 | 72 65 61 74 69 6e 67 20 |way of c|reating |
|000034c0| 75 6e 69 71 75 65 20 69 | 6e 64 65 78 20 6e 61 6d |unique i|ndex nam|
|000034d0| 65 73 20 74 68 61 74 20 | 61 72 65 20 63 61 70 61 |es that |are capa|
|000034e0| 62 6c 65 20 6f 66 20 62 | 65 69 6e 67 0a 58 23 20 |ble of b|eing.X# |
|000034f0| 20 75 6e 69 71 75 65 6c | 79 20 69 64 65 6e 74 69 | uniquel|y identi|
|00003500| 66 69 65 64 20 77 69 74 | 68 20 74 68 65 69 72 20 |fied wit|h their |
|00003510| 6f 72 69 67 69 6e 61 6c | 20 74 65 78 74 20 66 69 |original| text fi|
|00003520| 6c 65 2e 20 20 49 74 20 | 6d 69 67 68 74 20 62 65 |le. It |might be|
|00003530| 0a 58 23 20 20 73 65 6e | 73 69 62 6c 65 20 74 6f |.X# sen|sible to|
|00003540| 20 68 61 72 64 20 63 6f | 64 65 20 74 68 65 20 6e | hard co|de the n|
|00003550| 61 6d 65 20 69 6e 74 6f | 20 74 68 65 20 69 6e 64 |ame into| the ind|
|00003560| 65 78 2e 20 20 54 68 65 | 20 63 68 61 6e 63 65 73 |ex. The| chances|
|00003570| 20 6f 66 20 61 0a 58 23 | 20 20 63 6f 6e 66 6c 69 | of a.X#| confli|
|00003580| 63 74 20 73 65 65 6d 20 | 72 65 6d 6f 74 65 20 65 |ct seem |remote e|
|00003590| 6e 6f 75 67 68 20 74 68 | 61 74 20 49 20 68 61 76 |nough th|at I hav|
|000035a0| 65 6e 27 74 20 62 6f 74 | 68 65 72 65 64 2e 20 20 |en't bot|hered. |
|000035b0| 49 66 20 79 6f 75 27 72 | 65 0a 58 23 20 20 77 6f |If you'r|e.X# wo|
|000035c0| 72 72 69 65 64 2c 20 75 | 73 65 20 74 68 65 20 2d |rried, u|se the -|
|000035d0| 61 20 66 6c 61 67 2e 0a | 58 23 0a 58 23 23 23 23 |a flag..|X#.X####|
|000035e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000035f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003600| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003610| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003620| 23 23 23 23 23 23 23 23 | 0a 58 23 0a 58 23 20 20 |########|.X#.X# |
|00003630| 4c 69 6e 6b 73 3a 20 2e | 2f 61 64 6a 75 6e 63 74 |Links: .|/adjunct|
|00003640| 73 2e 69 63 6e 0a 58 23 | 20 20 52 65 71 75 69 72 |s.icn.X#| Requir|
|00003650| 65 73 3a 20 55 4e 49 58 | 20 6f 72 20 4d 53 2d 44 |es: UNIX| or MS-D|
|00003660| 4f 53 0a 58 23 20 20 53 | 65 65 20 61 6c 73 6f 3a |OS.X# S|ee also:|
|00003670| 20 67 65 74 74 65 78 74 | 2e 69 63 6e 0a 58 23 0a | gettext|.icn.X#.|
|00003680| 58 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#######|########|
|00003690| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000036a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000036b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000036c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 0a 58 0a |########|#####.X.|
|000036d0| 58 0a 58 23 20 64 65 63 | 6c 61 72 65 64 20 69 6e |X.X# dec|lared in|
|000036e0| 20 61 64 6a 75 6e 63 74 | 73 2e 69 63 6e 0a 58 23 | adjunct|s.icn.X#|
|000036f0| 20 67 6c 6f 62 61 6c 20 | 5f 73 6c 61 73 68 2c 20 | global |_slash, |
|00003700| 5f 62 61 73 65 6c 65 6e | 0a 58 0a 58 70 72 6f 63 |_baselen|.X.Xproc|
|00003710| 65 64 75 72 65 20 6d 61 | 69 6e 28 61 29 0a 58 0a |edure ma|in(a).X.|
|00003720| 58 20 20 20 20 6c 6f 63 | 61 6c 20 41 42 4f 52 54 |X loc|al ABORT|
|00003730| 2c 20 69 64 78 66 69 6c | 65 5f 6e 61 6d 65 2c 20 |, idxfil|e_name, |
|00003740| 66 6e 61 6d 65 2c 20 69 | 6e 66 69 6c 65 2c 20 6f |fname, i|nfile, o|
|00003750| 75 74 66 69 6c 65 0a 58 | 20 20 20 20 69 6e 69 74 |utfile.X| init|
|00003760| 69 61 6c 20 7b 0a 58 09 | 69 66 20 66 69 6e 64 28 |ial {.X.|if find(|
|00003770| 22 55 4e 49 58 22 2c 20 | 26 66 65 61 74 75 72 65 |"UNIX", |&feature|
|00003780| 73 29 20 74 68 65 6e 20 | 7b 0a 58 09 20 20 20 20 |s) then |{.X. |
|00003790| 5f 73 6c 61 73 68 20 3a | 3d 20 22 2f 22 0a 58 09 |_slash :|= "/".X.|
|000037a0| 20 20 20 20 5f 62 61 73 | 65 6c 65 6e 20 3a 3d 20 | _bas|elen := |
|000037b0| 31 30 0a 58 09 7d 0a 58 | 09 65 6c 73 65 20 69 66 |10.X.}.X|.else if|
|000037c0| 20 66 69 6e 64 28 22 4d | 53 2d 44 4f 53 22 2c 20 | find("M|S-DOS", |
|000037d0| 26 66 65 61 74 75 72 65 | 73 29 20 74 68 65 6e 20 |&feature|s) then |
|000037e0| 7b 0a 58 09 20 20 20 20 | 5f 73 6c 61 73 68 20 3a |{.X. |_slash :|
|000037f0| 3d 20 22 5c 5c 22 0a 58 | 09 20 20 20 20 5f 62 61 |= "\\".X|. _ba|
|00003800| 73 65 6c 65 6e 20 3a 3d | 20 38 0a 58 09 7d 0a 58 |selen :=| 8.X.}.X|
|00003810| 09 65 6c 73 65 20 73 74 | 6f 70 28 22 69 64 78 74 |.else st|op("idxt|
|00003820| 65 78 74 3a 20 20 4f 53 | 20 6e 6f 74 20 73 75 70 |ext: OS| not sup|
|00003830| 70 6f 72 74 65 64 22 29 | 0a 58 20 20 20 20 7d 0a |ported")|.X }.|
|00003840| 58 0a 58 20 20 20 20 69 | 66 20 5c 61 5b 31 5d 20 |X.X i|f \a[1] |
|00003850| 3d 3d 20 22 2d 61 22 20 | 74 68 65 6e 20 41 42 4f |== "-a" |then ABO|
|00003860| 52 54 20 3a 3d 20 70 6f | 70 28 61 29 09 0a 58 0a |RT := po|p(a)..X.|
|00003870| 58 20 20 20 20 23 20 43 | 68 65 63 6b 20 74 6f 20 |X # C|heck to |
|00003880| 73 65 65 20 69 66 20 77 | 65 20 68 61 76 65 20 61 |see if w|e have a|
|00003890| 6e 79 20 61 72 67 75 6d | 65 6e 74 73 2e 0a 58 20 |ny argum|ents..X |
|000038a0| 20 20 20 2a 61 20 3d 20 | 30 20 26 20 73 74 6f 70 | *a = |0 & stop|
|000038b0| 28 22 75 73 61 67 65 3a | 20 69 64 78 74 65 78 74 |("usage:| idxtext|
|000038c0| 20 5b 2d 61 5d 20 66 69 | 6c 65 31 20 5b 66 69 6c | [-a] fi|le1 [fil|
|000038d0| 65 32 20 5b 2e 2e 2e 5d | 5d 22 29 0a 58 0a 58 20 |e2 [...]|]").X.X |
|000038e0| 20 20 20 23 20 53 74 61 | 72 74 20 70 6f 70 70 69 | # Sta|rt poppi|
|000038f0| 6e 67 20 66 69 6c 65 6e | 61 6d 65 73 20 6f 66 66 |ng filen|ames off|
|00003900| 20 6f 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | of the |argument|
|00003910| 20 6c 69 73 74 2e 0a 58 | 20 20 20 20 77 68 69 6c | list..X| whil|
|00003920| 65 20 66 6e 61 6d 65 20 | 3a 3d 20 70 6f 70 28 61 |e fname |:= pop(a|
|00003930| 29 20 64 6f 20 7b 0a 58 | 0a 58 09 23 20 4f 70 65 |) do {.X|.X.# Ope|
|00003940| 6e 20 69 6e 70 75 74 20 | 66 69 6c 65 2e 0a 58 09 |n input |file..X.|
|00003950| 69 6e 66 69 6c 65 20 3a | 3d 20 6f 70 65 6e 28 66 |infile :|= open(f|
|00003960| 6e 61 6d 65 29 20 7c 0a | 58 09 20 20 20 20 7b 20 |name) |.|X. { |
|00003970| 77 72 69 74 65 28 26 65 | 72 72 6f 75 74 2c 20 22 |write(&e|rrout, "|
|00003980| 69 64 78 74 65 78 74 3a | 20 20 22 2c 66 6e 61 6d |idxtext:| ",fnam|
|00003990| 65 2c 22 20 6e 6f 74 20 | 66 6f 75 6e 64 22 29 3b |e," not |found");|
|000039a0| 20 6e 65 78 74 20 7d 0a | 58 09 23 20 47 65 74 20 | next }.|X.# Get |
|000039b0| 69 6e 64 65 78 20 66 69 | 6c 65 20 6e 61 6d 65 2e |index fi|le name.|
|000039c0| 0a 58 09 69 64 78 66 69 | 6c 65 5f 6e 61 6d 65 20 |.X.idxfi|le_name |
|000039d0| 3a 3d 20 50 61 74 68 6e | 61 6d 65 28 66 6e 61 6d |:= Pathn|ame(fnam|
|000039e0| 65 29 20 7c 7c 20 67 65 | 74 69 64 78 6e 61 6d 65 |e) || ge|tidxname|
|000039f0| 28 66 6e 61 6d 65 29 0a | 58 09 69 66 20 5c 41 42 |(fname).|X.if \AB|
|00003a00| 4f 52 54 20 74 68 65 6e | 20 69 66 20 63 6c 6f 73 |ORT then| if clos|
|00003a10| 65 28 6f 70 65 6e 28 69 | 64 78 66 69 6c 65 5f 6e |e(open(i|dxfile_n|
|00003a20| 61 6d 65 29 29 20 74 68 | 65 6e 0a 58 09 20 20 20 |ame)) th|en.X. |
|00003a30| 20 73 74 6f 70 28 22 69 | 64 78 74 65 78 74 3a 20 | stop("i|dxtext: |
|00003a40| 20 69 6e 64 65 78 20 66 | 69 6c 65 20 22 2c 69 64 | index f|ile ",id|
|00003a50| 78 66 69 6c 65 5f 6e 61 | 6d 65 2c 20 22 20 61 6c |xfile_na|me, " al|
|00003a60| 72 65 61 64 79 20 65 78 | 69 73 74 73 22 29 0a 58 |ready ex|ists").X|
|00003a70| 09 6f 75 74 66 69 6c 65 | 20 3a 3d 20 6f 70 65 6e |.outfile| := open|
|00003a80| 28 69 64 78 66 69 6c 65 | 5f 6e 61 6d 65 2c 20 22 |(idxfile|_name, "|
|00003a90| 77 22 29 20 7c 0a 58 09 | 20 20 20 20 73 74 6f 70 |w") |.X.| stop|
|00003aa0| 28 22 69 64 78 74 65 78 | 74 3a 20 20 63 61 6e 27 |("idxtex|t: can'|
|00003ab0| 74 20 6f 70 65 6e 20 22 | 2c 20 69 64 78 66 69 6c |t open "|, idxfil|
|00003ac0| 65 5f 6e 61 6d 65 29 0a | 58 0a 58 09 23 20 57 72 |e_name).|X.X.# Wr|
|00003ad0| 69 74 65 20 69 6e 64 65 | 78 20 74 6f 20 69 6e 64 |ite inde|x to ind|
|00003ae0| 65 78 2e 49 44 58 20 66 | 69 6c 65 2e 0a 58 09 77 |ex.IDX f|ile..X.w|
|00003af0| 72 69 74 65 5f 69 6e 64 | 65 78 28 69 6e 66 69 6c |rite_ind|ex(infil|
|00003b00| 65 2c 20 6f 75 74 66 69 | 6c 65 29 0a 58 0a 58 09 |e, outfi|le).X.X.|
|00003b10| 65 76 65 72 79 20 63 6c | 6f 73 65 28 69 6e 66 69 |every cl|ose(infi|
|00003b20| 6c 65 20 7c 20 6f 75 74 | 66 69 6c 65 29 0a 58 0a |le | out|file).X.|
|00003b30| 58 20 20 20 20 7d 0a 58 | 0a 58 65 6e 64 0a 58 0a |X }.X|.Xend.X.|
|00003b40| 58 0a 58 70 72 6f 63 65 | 64 75 72 65 20 77 72 69 |X.Xproce|dure wri|
|00003b50| 74 65 5f 69 6e 64 65 78 | 28 69 6e 2c 20 6f 75 74 |te_index|(in, out|
|00003b60| 29 0a 58 0a 58 20 20 20 | 20 6c 6f 63 61 6c 20 6b |).X.X | local k|
|00003b70| 65 79 5f 6f 66 66 73 65 | 74 5f 74 61 62 6c 65 2c |ey_offse|t_table,|
|00003b80| 20 77 2c 20 6c 69 6e 65 | 2c 20 4b 45 59 0a 58 0a | w, line|, KEY.X.|
|00003b90| 58 20 20 20 20 23 20 57 | 72 69 74 65 20 74 6f 20 |X # W|rite to |
|00003ba0| 6f 75 74 20 61 6c 6c 20 | 6b 65 79 73 20 69 6e 20 |out all |keys in |
|00003bb0| 66 69 6c 65 20 22 69 6e | 2c 22 20 77 69 74 68 20 |file "in|," with |
|00003bc0| 74 68 65 69 72 20 62 79 | 74 65 0a 58 20 20 20 20 |their by|te.X |
|00003bd0| 23 20 6f 66 66 73 65 74 | 73 2e 0a 58 0a 58 20 20 |# offset|s..X.X |
|00003be0| 20 20 6b 65 79 5f 6f 66 | 66 73 65 74 5f 74 61 62 | key_of|fset_tab|
|00003bf0| 6c 65 20 3a 3d 20 74 61 | 62 6c 65 28 29 0a 58 0a |le := ta|ble().X.|
|00003c00| 58 20 20 20 20 77 68 69 | 6c 65 20 28 77 20 3a 3d |X whi|le (w :=|
|00003c10| 20 77 68 65 72 65 28 69 | 6e 29 2c 20 6c 69 6e 65 | where(i|n), line|
|00003c20| 20 3a 3d 20 72 65 61 64 | 28 69 6e 29 29 20 64 6f | := read|(in)) do|
|00003c30| 20 7b 0a 58 09 6c 69 6e | 65 20 3f 20 7b 0a 58 09 | {.X.lin|e ? {.X.|
|00003c40| 20 20 20 20 69 66 20 3d | 22 3a 3a 22 20 74 68 65 | if =|"::" the|
|00003c50| 6e 20 7b 0a 58 09 09 4b | 45 59 20 3a 3d 20 74 72 |n {.X..K|EY := tr|
|00003c60| 69 6d 28 74 61 62 28 30 | 29 29 0a 58 09 09 69 66 |im(tab(0|)).X..if|
|00003c70| 20 6e 6f 74 20 28 2f 6b | 65 79 5f 6f 66 66 73 65 | not (/k|ey_offse|
|00003c80| 74 5f 74 61 62 6c 65 5b | 4b 45 59 5d 20 3a 3d 20 |t_table[|KEY] := |
|00003c90| 4b 45 59 20 7c 7c 20 22 | 5c 74 22 20 7c 7c 20 77 |KEY || "|\t" || w|
|00003ca0| 29 0a 58 09 09 74 68 65 | 6e 20 73 74 6f 70 28 22 |).X..the|n stop("|
|00003cb0| 69 64 78 74 65 78 74 3a | 20 20 64 75 70 6c 69 63 |idxtext:| duplic|
|00003cc0| 61 74 65 20 6b 65 79 2c | 20 22 2c 4b 45 59 29 0a |ate key,| ",KEY).|
|00003cd0| 58 09 20 20 20 20 7d 0a | 58 09 7d 0a 58 20 20 20 |X. }.|X.}.X |
|00003ce0| 20 7d 0a 58 0a 58 20 20 | 20 20 23 20 46 69 72 73 | }.X.X | # Firs|
|00003cf0| 74 20 6c 69 6e 65 20 6f | 66 20 69 6e 64 65 78 20 |t line o|f index |
|00003d00| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6f 66 66 |contains| the off|
|00003d10| 73 65 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 0a |set of t|he last.|
|00003d20| 58 20 20 20 20 23 20 69 | 6e 64 65 78 65 64 20 62 |X # i|ndexed b|
|00003d30| 79 74 65 20 69 6e 20 77 | 72 69 74 65 5f 69 6e 64 |yte in w|rite_ind|
|00003d40| 65 78 2c 20 73 6f 20 74 | 68 61 74 20 77 65 20 63 |ex, so t|hat we c|
|00003d50| 61 6e 20 73 74 69 6c 6c | 0a 58 20 20 20 20 23 20 |an still|.X # |
|00003d60| 73 65 61 72 63 68 20 75 | 6e 69 6e 64 65 78 65 64 |search u|nindexed|
|00003d70| 20 70 61 72 74 73 20 6f | 66 20 69 6e 2e 0a 58 20 | parts o|f in..X |
|00003d80| 20 20 20 77 72 69 74 65 | 28 6f 75 74 2c 20 77 68 | write|(out, wh|
|00003d90| 65 72 65 28 69 6e 29 29 | 0a 58 0a 58 20 20 20 20 |ere(in))|.X.X |
|00003da0| 23 20 57 72 69 74 65 20 | 73 6f 72 74 65 64 20 4b |# Write |sorted K|
|00003db0| 45 59 5c 74 6f 66 66 73 | 65 74 20 6c 69 6e 65 73 |EY\toffs|et lines|
|00003dc0| 2e 0a 58 20 20 20 20 69 | 66 20 2a 6b 65 79 5f 6f |..X i|f *key_o|
|00003dd0| 66 66 73 65 74 5f 74 61 | 62 6c 65 20 3e 20 30 20 |ffset_ta|ble > 0 |
|00003de0| 74 68 65 6e 0a 58 09 65 | 76 65 72 79 20 77 72 69 |then.X.e|very wri|
|00003df0| 74 65 28 6f 75 74 2c 20 | 28 21 73 6f 72 74 28 6b |te(out, |(!sort(k|
|00003e00| 65 79 5f 6f 66 66 73 65 | 74 5f 74 61 62 6c 65 29 |ey_offse|t_table)|
|00003e10| 29 5b 32 5d 29 0a 58 0a | 58 20 20 20 20 72 65 74 |)[2]).X.|X ret|
|00003e20| 75 72 6e 0a 58 0a 58 65 | 6e 64 0a 53 48 41 52 5f |urn.X.Xe|nd.SHAR_|
|00003e30| 45 4f 46 0a 74 72 75 65 | 20 7c 7c 20 65 63 68 6f |EOF.true| || echo|
|00003e40| 20 27 72 65 73 74 6f 72 | 65 20 6f 66 20 69 64 78 | 'restor|e of idx|
|00003e50| 74 65 78 74 2e 69 63 6e | 20 66 61 69 6c 65 64 27 |text.icn| failed'|
|00003e60| 0a 72 6d 20 2d 66 20 5f | 73 68 61 72 5f 77 6e 74 |.rm -f _|shar_wnt|
|00003e70| 5f 2e 74 6d 70 0a 66 69 | 0a 23 20 3d 3d 3d 3d 3d |_.tmp.fi|.# =====|
|00003e80| 3d 3d 3d 3d 3d 3d 3d 3d | 20 6a 61 72 67 32 67 65 |========| jarg2ge|
|00003e90| 74 2e 69 63 6e 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |t.icn ==|========|
|00003ea0| 3d 3d 3d 3d 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |====.if |test -f |
|00003eb0| 27 6a 61 72 67 32 67 65 | 74 2e 69 63 6e 27 20 2d |'jarg2ge|t.icn' -|
|00003ec0| 61 20 58 22 24 31 22 20 | 21 3d 20 58 22 2d 63 22 |a X"$1" |!= X"-c"|
|00003ed0| 3b 20 74 68 65 6e 0a 09 | 65 63 68 6f 20 27 78 20 |; then..|echo 'x |
|00003ee0| 2d 20 73 6b 69 70 70 69 | 6e 67 20 6a 61 72 67 32 |- skippi|ng jarg2|
|00003ef0| 67 65 74 2e 69 63 6e 20 | 28 46 69 6c 65 20 61 6c |get.icn |(File al|
|00003f00| 72 65 61 64 79 20 65 78 | 69 73 74 73 29 27 0a 09 |ready ex|ists)'..|
|00003f10| 72 6d 20 2d 66 20 5f 73 | 68 61 72 5f 77 6e 74 5f |rm -f _s|har_wnt_|
|00003f20| 2e 74 6d 70 0a 65 6c 73 | 65 0a 3e 20 5f 73 68 61 |.tmp.els|e.> _sha|
|00003f30| 72 5f 77 6e 74 5f 2e 74 | 6d 70 0a 65 63 68 6f 20 |r_wnt_.t|mp.echo |
|00003f40| 27 78 20 2d 20 65 78 74 | 72 61 63 74 69 6e 67 20 |'x - ext|racting |
|00003f50| 6a 61 72 67 32 67 65 74 | 2e 69 63 6e 20 28 54 65 |jarg2get|.icn (Te|
|00003f60| 78 74 29 27 0a 73 65 64 | 20 27 73 2f 5e 58 2f 2f |xt)'.sed| 's/^X//|
|00003f70| 27 20 3c 3c 20 27 53 48 | 41 52 5f 45 4f 46 27 20 |' << 'SH|AR_EOF' |
|00003f80| 3e 20 27 6a 61 72 67 32 | 67 65 74 2e 69 63 6e 27 |> 'jarg2|get.icn'|
|00003f90| 20 26 26 0a 58 23 23 23 | 23 23 23 23 23 23 23 23 | &&.X###|########|
|00003fa0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003fb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003fc0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003fd0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003fe0| 23 0a 58 23 0a 58 23 09 | 4e 61 6d 65 3a 09 20 31 |#.X#.X#.|Name:. 1|
|00003ff0| 2e 31 0a 58 23 0a 58 23 | 09 54 69 74 6c 65 3a 09 |.1.X#.X#|.Title:.|
|00004000| 20 6a 61 72 67 6f 6e 20 | 74 6f 20 67 65 74 74 65 | jargon |to gette|
|00004010| 78 74 20 66 6f 72 6d 61 | 74 20 63 6f 6e 76 65 72 |xt forma|t conver|
|00004020| 74 65 72 0a 58 23 0a 58 | 23 09 41 75 74 68 6f 72 |ter.X#.X|#.Author|
|00004030| 3a 09 20 52 69 63 68 61 | 72 64 20 4c 2e 20 47 6f |:. Richa|rd L. Go|
|00004040| 65 72 77 69 74 7a 0a 58 | 23 0a 58 23 09 56 65 72 |erwitz.X|#.X#.Ver|
|00004050| 73 69 6f 6e 3a 20 6a 61 | 72 67 32 67 65 74 2e 69 |sion: ja|rg2get.i|
|00004060| 63 6e 0a 58 23 0a 58 23 | 23 23 23 23 23 23 23 23 |cn.X#.X#|########|
|00004070| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004080| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004090| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000040a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000040b0| 23 23 23 0a 58 23 20 20 | 0a 58 23 20 20 43 6f 6e |###.X# |.X# Con|
|000040c0| 76 65 72 74 73 20 6a 61 | 72 67 6f 6e 2e 61 73 63 |verts ja|rgon.asc|
|000040d0| 69 69 20 28 73 74 64 69 | 6e 29 20 74 6f 20 61 20 |ii (stdi|n) to a |
|000040e0| 66 6f 72 6d 61 74 20 73 | 75 69 74 61 62 6c 65 20 |format s|uitable |
|000040f0| 66 6f 72 20 75 73 65 20 | 62 79 20 67 65 74 74 65 |for use |by gette|
|00004100| 78 74 2e 0a 58 23 20 20 | 57 72 69 74 65 73 20 74 |xt..X# |Writes t|
|00004110| 6f 20 73 74 64 6f 75 74 | 2e 20 20 4a 61 72 67 6f |o stdout|. Jargo|
|00004120| 6e 2e 61 73 63 69 69 20 | 77 61 73 20 70 6f 73 74 |n.ascii |was post|
|00004130| 65 64 20 72 65 63 65 6e | 74 6c 79 20 28 63 2e 20 |ed recen|tly (c. |
|00004140| 4d 61 72 63 68 20 31 2c | 20 31 39 39 31 29 0a 58 |March 1,| 1991).X|
|00004150| 23 20 20 74 6f 20 61 6c | 74 2e 73 6f 75 72 63 65 |# to al|t.source|
|00004160| 73 2e 0a 58 23 0a 58 23 | 23 23 23 23 23 23 23 23 |s..X#.X#|########|
|00004170| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004180| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004190| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000041a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000041b0| 23 23 23 0a 58 0a 58 70 | 72 6f 63 65 64 75 72 65 |###.X.Xp|rocedure|
|000041c0| 20 6d 61 69 6e 28 29 0a | 58 0a 58 20 20 20 20 6c | main().|X.X l|
|000041d0| 6f 63 61 6c 20 6c 69 6e | 65 2c 20 4b 45 59 2c 20 |ocal lin|e, KEY, |
|000041e0| 6b 65 79 5f 73 65 74 2c | 20 6e 6f 2c 20 79 65 73 |key_set,| no, yes|
|000041f0| 2c 20 62 6c 61 6e 6b 5f | 63 6f 75 6e 74 0a 58 0a |, blank_|count.X.|
|00004200| 58 20 20 20 20 62 6c 61 | 6e 6b 5f 63 6f 75 6e 74 |X bla|nk_count|
|00004210| 20 3a 3d 20 30 0a 58 20 | 20 20 20 6b 65 79 5f 73 | := 0.X | key_s|
|00004220| 65 74 20 3a 3d 20 73 65 | 74 28 29 0a 58 20 20 20 |et := se|t().X |
|00004230| 20 6e 6f 20 3a 3d 20 26 | 75 63 61 73 65 20 7c 7c | no := &|ucase |||
|00004240| 20 22 2d 2f 22 3b 20 79 | 65 73 20 3a 3d 20 26 6c | "-/"; y|es := &l|
|00004250| 63 61 73 65 20 7c 7c 20 | 22 20 20 22 0a 58 20 20 |case || |" ".X |
|00004260| 20 20 23 20 49 73 6e 27 | 74 20 67 6f 61 6c 2d 64 | # Isn'|t goal-d|
|00004270| 69 72 65 63 74 65 64 20 | 65 76 61 6c 75 61 74 69 |irected |evaluati|
|00004280| 6f 6e 20 6e 69 63 65 3f | 0a 58 20 20 20 20 28 6d |on nice?|.X (m|
|00004290| 61 74 63 68 28 22 3d 20 | 41 20 3d 22 2c 20 21 26 |atch("= |A =", !&|
|000042a0| 69 6e 70 75 74 29 2c 20 | 22 22 20 3d 3d 20 21 26 |input), |"" == !&|
|000042b0| 69 6e 70 75 74 29 0a 58 | 0a 58 20 20 20 20 23 20 |input).X|.X # |
|000042c0| 52 65 61 64 20 73 74 64 | 69 6e 2c 20 6c 6f 6f 6b |Read std|in, look|
|000042d0| 69 6e 67 20 66 6f 72 20 | 65 6e 74 72 69 65 73 2e |ing for |entries.|
|000042e0| 20 20 45 6e 74 72 69 65 | 73 20 63 61 6e 20 62 65 | Entrie|s can be|
|000042f0| 20 64 69 73 74 69 6e 67 | 75 69 73 68 65 64 0a 58 | disting|uished.X|
|00004300| 20 20 20 20 23 20 61 29 | 20 62 79 20 61 20 70 72 | # a)| by a pr|
|00004310| 65 63 65 64 69 6e 67 20 | 62 6c 61 6e 6b 20 6c 69 |eceding |blank li|
|00004320| 6e 65 2c 20 61 6e 64 20 | 62 29 20 62 79 20 74 68 |ne, and |b) by th|
|00004330| 65 20 70 72 65 73 65 6e | 63 65 20 6f 66 20 63 68 |e presen|ce of ch|
|00004340| 61 72 61 63 2d 0a 58 20 | 20 20 20 23 20 74 65 72 |arac-.X | # ter|
|00004350| 73 20 62 65 67 69 6e 6e | 69 6e 67 20 69 6d 6d 65 |s beginn|ing imme|
|00004360| 64 69 61 74 65 6c 79 20 | 61 74 20 74 68 65 20 6d |diately |at the m|
|00004370| 61 72 67 69 6e 2c 20 61 | 6e 64 20 63 29 20 62 79 |argin, a|nd c) by|
|00004380| 20 74 68 65 20 70 72 65 | 73 65 6e 63 65 0a 58 20 | the pre|sence.X |
|00004390| 20 20 20 23 20 6f 66 20 | 61 20 63 6f 6c 6f 6e 20 | # of |a colon |
|000043a0| 70 6c 75 73 20 61 20 73 | 70 61 63 65 20 6f 6e 20 |plus a s|pace on |
|000043b0| 74 68 65 20 6c 69 6e 65 | 2e 0a 58 20 20 20 20 77 |the line|..X w|
|000043c0| 68 69 6c 65 20 6c 69 6e | 65 20 3a 3d 20 74 72 69 |hile lin|e := tri|
|000043d0| 6d 28 72 65 61 64 28 29 | 2c 20 27 5c 74 20 5c 78 |m(read()|, '\t \x|
|000043e0| 46 46 5c 72 27 29 20 64 | 6f 20 7b 0a 58 0a 58 09 |FF\r') d|o {.X.X.|
|000043f0| 69 66 20 22 22 20 3d 3d | 20 6c 69 6e 65 20 74 68 |if "" ==| line th|
|00004400| 65 6e 20 7b 0a 58 09 20 | 20 20 20 69 66 20 28 62 |en {.X. | if (b|
|00004410| 6c 61 6e 6b 5f 63 6f 75 | 6e 74 20 2b 3a 3d 20 31 |lank_cou|nt +:= 1|
|00004420| 29 20 3e 20 32 0a 58 09 | 20 20 20 20 74 68 65 6e |) > 2.X.| then|
|00004430| 20 65 78 69 74 28 30 29 | 0a 58 09 20 20 20 20 65 | exit(0)|.X. e|
|00004440| 6c 73 65 20 77 72 69 74 | 65 28 29 0a 58 09 7d 0a |lse writ|e().X.}.|
|00004450| 58 09 65 6c 73 65 20 7b | 0a 58 09 20 20 20 20 6c |X.else {|.X. l|
|00004460| 69 6e 65 20 3f 20 7b 0a | 58 09 20 20 20 20 20 20 |ine ? {.|X. |
|00004470| 20 20 69 66 20 6d 61 74 | 63 68 28 22 48 61 63 6b | if mat|ch("Hack|
|00004480| 65 72 20 46 6f 6c 6b 6c | 6f 72 65 22 7c 22 41 70 |er Folkl|ore"|"Ap|
|00004490| 70 65 6e 64 69 78 20 41 | 3a 20 22 29 0a 58 09 09 |pendix A|: ").X..|
|000044a0| 74 68 65 6e 20 65 78 69 | 74 28 30 29 0a 58 09 09 |then exi|t(0).X..|
|000044b0| 69 66 20 62 6c 61 6e 6b | 5f 63 6f 75 6e 74 20 3e |if blank|_count >|
|000044c0| 20 30 20 26 0a 58 09 09 | 20 20 20 4b 45 59 20 3a | 0 &.X..| KEY :|
|000044d0| 3d 0a 58 09 09 20 20 20 | 20 20 20 20 74 72 69 6d |=.X.. | trim|
|000044e0| 28 6d 61 70 28 74 61 62 | 28 61 6e 79 28 26 6c 65 |(map(tab|(any(&le|
|000044f0| 74 74 65 72 73 29 29 20 | 7c 7c 20 74 61 62 28 66 |tters)) ||| tab(f|
|00004500| 69 6e 64 28 22 3a 20 22 | 29 29 2c 6e 6f 2c 79 65 |ind(": "|)),no,ye|
|00004510| 73 29 29 0a 58 09 09 74 | 68 65 6e 20 7b 0a 58 09 |s)).X..t|hen {.X.|
|00004520| 09 20 20 20 20 69 66 20 | 6e 6f 74 20 6d 65 6d 62 |. if |not memb|
|00004530| 65 72 28 6b 65 79 5f 73 | 65 74 2c 20 4b 45 59 29 |er(key_s|et, KEY)|
|00004540| 0a 58 09 09 20 20 20 20 | 74 68 65 6e 20 77 72 69 |.X.. |then wri|
|00004550| 74 65 28 22 3a 3a 22 2c | 20 4b 45 59 29 0a 58 09 |te("::",| KEY).X.|
|00004560| 09 20 20 20 20 69 6e 73 | 65 72 74 28 6b 65 79 5f |. ins|ert(key_|
|00004570| 73 65 74 2c 20 4b 45 59 | 29 0a 58 09 09 7d 0a 58 |set, KEY|).X..}.X|
|00004580| 09 09 28 3d 22 3d 20 22 | 2c 20 74 61 62 28 61 6e |..(="= "|, tab(an|
|00004590| 79 28 26 75 63 61 73 65 | 29 29 2c 20 3d 22 20 3d |y(&ucase|)), =" =|
|000045a0| 22 2c 20 21 26 69 6e 70 | 75 74 29 20 7c 20 77 72 |", !&inp|ut) | wr|
|000045b0| 69 74 65 28 6c 69 6e 65 | 29 0a 58 09 20 20 20 20 |ite(line|).X. |
|000045c0| 7d 0a 58 09 20 20 20 20 | 62 6c 61 6e 6b 5f 63 6f |}.X. |blank_co|
|000045d0| 75 6e 74 20 3a 3d 20 30 | 0a 58 09 7d 0a 58 20 20 |unt := 0|.X.}.X |
|000045e0| 20 20 7d 0a 58 0a 58 20 | 20 20 20 73 74 6f 70 28 | }.X.X | stop(|
|000045f0| 22 6a 61 72 67 32 67 65 | 74 3a 20 20 61 62 6f 72 |"jarg2ge|t: abor|
|00004600| 74 69 6e 67 20 28 61 72 | 65 20 79 6f 75 20 73 75 |ting (ar|e you su|
|00004610| 72 65 20 79 6f 75 20 68 | 61 76 65 20 74 68 65 20 |re you h|ave the |
|00004620| 63 6f 72 72 65 63 74 20 | 66 69 6c 65 3f 29 22 29 |correct |file?)")|
|00004630| 0a 58 0a 58 65 6e 64 0a | 53 48 41 52 5f 45 4f 46 |.X.Xend.|SHAR_EOF|
|00004640| 0a 74 72 75 65 20 7c 7c | 20 65 63 68 6f 20 27 72 |.true ||| echo 'r|
|00004650| 65 73 74 6f 72 65 20 6f | 66 20 6a 61 72 67 32 67 |estore o|f jarg2g|
|00004660| 65 74 2e 69 63 6e 20 66 | 61 69 6c 65 64 27 0a 72 |et.icn f|ailed'.r|
|00004670| 6d 20 2d 66 20 5f 73 68 | 61 72 5f 77 6e 74 5f 2e |m -f _sh|ar_wnt_.|
|00004680| 74 6d 70 0a 66 69 0a 23 | 20 3d 3d 3d 3d 3d 3d 3d |tmp.fi.#| =======|
|00004690| 3d 3d 3d 3d 3d 3d 20 52 | 45 41 44 4d 45 20 3d 3d |====== R|EADME ==|
|000046a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 69 66 20 |========|====.if |
|000046b0| 74 65 73 74 20 2d 66 20 | 27 52 45 41 44 4d 45 27 |test -f |'README'|
|000046c0| 20 2d 61 20 58 22 24 31 | 22 20 21 3d 20 58 22 2d | -a X"$1|" != X"-|
|000046d0| 63 22 3b 20 74 68 65 6e | 0a 09 65 63 68 6f 20 27 |c"; then|..echo '|
|000046e0| 78 20 2d 20 73 6b 69 70 | 70 69 6e 67 20 52 45 41 |x - skip|ping REA|
|000046f0| 44 4d 45 20 28 46 69 6c | 65 20 61 6c 72 65 61 64 |DME (Fil|e alread|
|00004700| 79 20 65 78 69 73 74 73 | 29 27 0a 09 72 6d 20 2d |y exists|)'..rm -|
|00004710| 66 20 5f 73 68 61 72 5f | 77 6e 74 5f 2e 74 6d 70 |f _shar_|wnt_.tmp|
|00004720| 0a 65 6c 73 65 0a 3e 20 | 5f 73 68 61 72 5f 77 6e |.else.> |_shar_wn|
|00004730| 74 5f 2e 74 6d 70 0a 65 | 63 68 6f 20 27 78 20 2d |t_.tmp.e|cho 'x -|
|00004740| 20 65 78 74 72 61 63 74 | 69 6e 67 20 52 45 41 44 | extract|ing READ|
|00004750| 4d 45 20 28 54 65 78 74 | 29 27 0a 73 65 64 20 27 |ME (Text|)'.sed '|
|00004760| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 27 53 48 41 52 |s/^X//' |<< 'SHAR|
|00004770| 5f 45 4f 46 27 20 3e 20 | 27 52 45 41 44 4d 45 27 |_EOF' > |'README'|
|00004780| 20 26 26 0a 58 2d 2d 2d | 2d 2d 2d 2d 0a 58 0a 58 | &&.X---|----.X.X|
|00004790| 50 72 6f 67 72 61 6d 20 | 6e 61 6d 65 3a 20 20 6a |Program |name: j|
|000047a0| 61 72 67 6f 6e 0a 58 53 | 6f 75 72 63 65 20 6c 61 |argon.XS|ource la|
|000047b0| 6e 67 75 61 67 65 3a 20 | 20 69 63 6f 6e 0a 58 50 |nguage: | icon.XP|
|000047c0| 75 72 70 6f 73 65 3a 20 | 20 71 75 69 63 6b 6c 79 |urpose: | quickly|
|000047d0| 20 66 69 6e 64 20 65 6e | 74 72 69 65 73 20 69 6e | find en|tries in|
|000047e0| 20 74 68 65 20 68 61 63 | 6b 65 72 73 27 20 6a 61 | the hac|kers' ja|
|000047f0| 72 67 6f 6e 20 66 69 6c | 65 0a 58 0a 58 2d 2d 2d |rgon fil|e.X.X---|
|00004800| 2d 2d 2d 2d 0a 58 0a 58 | 44 65 73 63 72 69 70 74 |----.X.X|Descript|
|00004810| 69 6f 6e 3a 0a 58 0a 58 | 54 68 69 73 20 73 68 65 |ion:.X.X|This she|
|00004820| 6c 6c 20 61 72 63 68 69 | 76 65 20 63 6f 6e 74 61 |ll archi|ve conta|
|00004830| 69 6e 73 20 61 20 6a 61 | 72 67 6f 6e 20 64 61 74 |ins a ja|rgon dat|
|00004840| 61 62 61 73 65 20 70 72 | 6f 67 72 61 6d 2c 20 61 |abase pr|ogram, a|
|00004850| 70 74 6c 79 20 65 6e 6f | 75 67 68 0a 58 6e 61 6d |ptly eno|ugh.Xnam|
|00004860| 65 64 20 22 6a 61 72 67 | 6f 6e 2e 22 20 20 49 66 |ed "jarg|on." If|
|00004870| 20 79 6f 75 20 68 61 76 | 65 20 74 68 65 20 72 65 | you hav|e the re|
|00004880| 63 65 6e 74 6c 79 20 70 | 6f 73 74 65 64 20 28 4d |cently p|osted (M|
|00004890| 61 72 63 68 20 31 2c 20 | 31 39 39 31 2c 20 61 6c |arch 1, |1991, al|
|000048a0| 74 2e 0a 58 73 6f 75 72 | 63 65 73 29 20 68 61 63 |t..Xsour|ces) hac|
|000048b0| 6b 65 72 73 27 20 6a 61 | 72 67 6f 6e 20 66 69 6c |kers' ja|rgon fil|
|000048c0| 65 20 61 72 6f 75 6e 64 | 2c 20 79 6f 75 20 63 61 |e around|, you ca|
|000048d0| 6e 20 75 73 65 20 74 68 | 69 73 20 70 61 63 6b 61 |n use th|is packa|
|000048e0| 67 65 20 66 6f 72 0a 58 | 71 75 69 63 6b 20 61 63 |ge for.X|quick ac|
|000048f0| 63 65 73 73 20 74 6f 20 | 65 6e 74 72 69 65 73 20 |cess to |entries |
|00004900| 77 69 74 68 69 6e 20 74 | 68 61 74 20 66 69 6c 65 |within t|hat file|
|00004910| 2c 20 61 73 20 69 6e 20 | 22 6a 61 72 67 6f 6e 20 |, as in |"jargon |
|00004920| 77 6f 72 64 22 20 28 77 | 68 65 72 65 0a 58 22 77 |word" (w|here.X"w|
|00004930| 6f 72 64 22 20 69 73 20 | 74 68 65 20 62 69 74 20 |ord" is |the bit |
|00004940| 6f 66 20 68 61 63 6b 65 | 72 27 73 20 6a 61 72 67 |of hacke|r's jarg|
|00004950| 6f 6e 20 79 6f 75 20 77 | 61 6e 74 20 61 20 64 65 |on you w|ant a de|
|00004960| 66 69 6e 69 74 69 6f 6e | 20 66 6f 72 29 2e 0a 58 |finition| for)..X|
|00004970| 0a 58 2d 2d 2d 2d 2d 2d | 2d 0a 58 0a 58 49 6e 73 |.X------|-.X.XIns|
|00004980| 74 61 6c 6c 61 74 69 6f | 6e 3a 0a 58 0a 58 43 70 |tallatio|n:.X.XCp|
|00004990| 20 4d 61 6b 65 66 69 6c | 65 2e 64 69 73 74 20 74 | Makefil|e.dist t|
|000049a0| 6f 20 4d 61 6b 65 66 69 | 6c 65 20 61 6e 64 20 65 |o Makefi|le and e|
|000049b0| 64 69 74 20 69 74 20 74 | 6f 20 72 65 66 6c 65 63 |dit it t|o reflec|
|000049c0| 74 20 6c 6f 63 61 6c 20 | 6e 61 6d 69 6e 67 20 63 |t local |naming c|
|000049d0| 6f 6e 2d 0a 58 76 65 6e | 74 69 6f 6e 73 2e 20 20 |on-.Xven|tions. |
|000049e0| 41 66 74 65 72 20 65 64 | 69 74 69 6e 67 2c 20 74 |After ed|iting, t|
|000049f0| 79 70 65 20 22 6d 61 6b | 65 20 61 6c 6c 2e 22 20 |ype "mak|e all." |
|00004a00| 20 49 66 2c 20 61 66 74 | 65 72 20 73 65 65 69 6e | If, aft|er seein|
|00004a10| 67 20 61 20 6c 6f 74 20 | 6f 66 0a 58 67 61 72 62 |g a lot |of.Xgarb|
|00004a20| 61 67 65 20 67 6f 20 62 | 79 2c 20 79 6f 75 20 67 |age go b|y, you g|
|00004a30| 65 74 20 74 68 65 20 6d | 65 73 73 61 67 65 20 22 |et the m|essage "|
|00004a40| 65 76 65 72 79 74 68 69 | 6e 67 20 73 65 65 6d 73 |everythi|ng seems|
|00004a50| 20 4f 4b 2c 22 20 74 68 | 65 6e 20 73 75 20 72 6f | OK," th|en su ro|
|00004a60| 6f 74 0a 58 61 6e 64 20 | 6d 61 6b 65 20 69 6e 73 |ot.Xand |make ins|
|00004a70| 74 61 6c 6c 2e 20 20 42 | 65 20 73 75 72 65 20 74 |tall. B|e sure t|
|00004a80| 6f 20 73 65 74 20 64 65 | 66 61 75 6c 74 20 6f 77 |o set de|fault ow|
|00004a90| 6e 65 72 73 68 69 70 20 | 61 6e 64 20 70 65 72 6d |nership |and perm|
|00004aa0| 69 73 73 69 6f 6e 73 20 | 69 6e 0a 58 74 68 65 20 |issions |in.Xthe |
|00004ab0| 6d 61 6b 65 66 69 6c 65 | 20 74 6f 20 73 6f 6d 65 |makefile| to some|
|00004ac0| 20 76 61 6c 75 65 20 74 | 68 61 74 20 6d 61 6b 65 | value t|hat make|
|00004ad0| 73 20 73 65 6e 73 65 20 | 66 6f 72 20 79 6f 75 72 |s sense |for your|
|00004ae0| 20 73 79 73 74 65 6d 2e | 20 20 49 66 20 79 6f 75 | system.| If you|
|00004af0| 0a 58 64 6f 6e 27 74 20 | 68 61 76 65 20 72 6f 6f |.Xdon't |have roo|
|00004b00| 74 20 70 72 69 76 69 6c | 65 67 65 73 2c 20 79 6f |t privil|eges, yo|
|00004b10| 75 20 6d 75 73 74 20 63 | 68 61 6e 67 65 20 74 68 |u must c|hange th|
|00004b20| 65 20 44 45 53 54 44 49 | 52 20 61 6e 64 20 4c 49 |e DESTDI|R and LI|
|00004b30| 42 44 49 52 0a 58 76 61 | 72 69 61 62 6c 65 73 20 |BDIR.Xva|riables |
|00004b40| 69 6e 20 74 68 65 20 6d | 61 6b 65 66 69 6c 65 20 |in the m|akefile |
|00004b50| 73 6f 20 74 68 61 74 20 | 74 68 65 79 20 72 65 66 |so that |they ref|
|00004b60| 6c 65 63 74 20 64 69 72 | 65 63 74 6f 72 69 65 73 |lect dir|ectories|
|00004b70| 20 79 6f 75 20 68 61 76 | 65 0a 58 61 63 63 65 73 | you hav|e.Xacces|
|00004b80| 73 20 74 6f 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |s to. N|ote that|
|00004b90| 20 49 20 61 6d 20 61 73 | 73 75 6d 69 6e 67 20 61 | I am as|suming a|
|00004ba0| 20 55 6e 69 78 20 69 6e | 73 74 61 6c 6c 61 74 69 | Unix in|stallati|
|00004bb0| 6f 6e 20 69 6e 20 74 68 | 65 0a 58 6d 61 6b 65 66 |on in th|e.Xmakef|
|00004bc0| 69 6c 65 2e 20 20 49 66 | 20 79 6f 75 20 61 72 65 |ile. If| you are|
|00004bd0| 20 75 73 69 6e 67 20 73 | 6f 6d 65 20 6f 74 68 65 | using s|ome othe|
|00004be0| 72 20 70 6c 61 74 66 6f | 72 6d 2c 20 79 6f 75 27 |r platfo|rm, you'|
|00004bf0| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 65 64 69 74 0a |ll need |to edit.|
|00004c00| 58 74 68 65 20 66 69 6c | 65 20 22 6a 61 72 67 6f |Xthe fil|e "jargo|
|00004c10| 6e 2e 73 72 63 22 20 73 | 6f 20 74 68 61 74 20 74 |n.src" s|o that t|
|00004c20| 68 65 20 76 61 72 69 61 | 62 6c 65 20 22 64 61 74 |he varia|ble "dat|
|00004c30| 61 62 61 73 65 22 20 69 | 73 20 73 65 74 20 74 6f |abase" i|s set to|
|00004c40| 20 74 68 65 0a 58 66 75 | 6c 6c 20 70 61 74 68 20 | the.Xfu|ll path |
|00004c50| 6f 66 20 74 68 65 20 6a | 61 72 67 6f 6e 2e 77 72 |of the j|argon.wr|
|00004c60| 64 20 66 69 6c 65 20 28 | 69 2e 65 2e 20 24 28 4c |d file (|i.e. $(L|
|00004c70| 49 42 44 49 52 29 2f 6a | 61 72 67 6f 6e 2e 77 72 |IBDIR)/j|argon.wr|
|00004c80| 64 20 69 6e 20 74 68 65 | 0a 58 6d 61 6b 65 66 69 |d in the|.Xmakefi|
|00004c90| 6c 65 29 2e 20 20 54 68 | 65 6e 20 74 79 70 65 3a |le). Th|en type:|
|00004ca0| 0a 58 0a 58 09 69 63 6f | 6e 74 20 6a 61 72 67 32 |.X.X.ico|nt jarg2|
|00004cb0| 67 65 74 2e 69 63 6e 0a | 58 09 69 63 6f 6e 74 20 |get.icn.|X.icont |
|00004cc0| 2d 6f 20 69 64 78 74 65 | 78 74 20 69 64 78 74 65 |-o idxte|xt idxte|
|00004cd0| 78 74 2e 69 63 6e 20 61 | 64 6a 75 6e 63 74 73 2e |xt.icn a|djuncts.|
|00004ce0| 69 63 6e 0a 58 09 63 6f | 70 79 20 6a 61 72 67 6f |icn.X.co|py jargo|
|00004cf0| 6e 2e 73 72 63 20 6a 61 | 72 67 6f 6e 2e 69 63 6e |n.src ja|rgon.icn|
|00004d00| 0a 58 09 69 63 6f 6e 74 | 20 2d 6f 20 6a 61 72 67 |.X.icont| -o jarg|
|00004d10| 6f 6e 20 6a 61 72 67 6f | 6e 2e 69 63 6e 20 67 65 |on jargo|n.icn ge|
|00004d20| 74 74 65 78 74 2e 69 63 | 6e 20 61 64 6a 75 6e 63 |ttext.ic|n adjunc|
|00004d30| 74 73 2e 69 63 6e 0a 58 | 09 6a 61 72 67 32 67 65 |ts.icn.X|.jarg2ge|
|00004d40| 74 20 3c 20 4a 41 52 47 | 4f 4e 46 49 4c 45 20 3e |t < JARG|ONFILE >|
|00004d50| 20 6a 61 72 67 6f 6e 2e | 77 72 64 0a 58 09 69 64 | jargon.|wrd.X.id|
|00004d60| 78 74 65 78 74 20 6a 61 | 72 67 6f 6e 2e 77 72 64 |xtext ja|rgon.wrd|
|00004d70| 0a 58 0a 58 77 68 65 72 | 65 20 22 63 6f 70 79 22 |.X.Xwher|e "copy"|
|00004d80| 20 69 73 20 79 6f 75 72 | 20 73 79 73 74 65 6d 27 | is your| system'|
|00004d90| 73 20 66 69 6c 65 20 63 | 6f 70 79 20 6f 72 20 72 |s file c|opy or r|
|00004da0| 65 6e 61 6d 65 20 63 6f | 6d 6d 61 6e 64 2c 20 61 |ename co|mmand, a|
|00004db0| 6e 64 0a 58 4a 41 52 47 | 4f 4e 46 49 4c 45 20 69 |nd.XJARG|ONFILE i|
|00004dc0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00004dd0| 65 20 6f 72 69 67 69 6e | 61 6c 20 6a 61 72 67 6f |e origin|al jargo|
|00004de0| 6e 2e 61 73 63 69 69 20 | 66 69 6c 65 2e 20 20 54 |n.ascii |file. T|
|00004df0| 6f 20 74 65 73 74 20 61 | 0a 58 6e 6f 6e 2d 55 4e |o test a|.Xnon-UN|
|00004e00| 49 58 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 2c |IX insta|llation,|
|00004e10| 20 74 79 70 65 0a 58 0a | 58 09 28 66 69 63 6f 6e | type.X.|X.(ficon|
|00004e20| 78 29 20 6a 61 72 67 6f | 6e 20 7a 6f 72 6b 0a 58 |x) jargo|n zork.X|
|00004e30| 0a 58 54 68 65 20 66 69 | 63 6f 6e 78 20 70 61 72 |.XThe fi|conx par|
|00004e40| 74 20 6d 61 79 20 6e 6f | 74 20 62 65 20 6e 65 63 |t may no|t be nec|
|00004e50| 65 73 73 61 72 79 2e 20 | 20 49 66 20 79 6f 75 20 |essary. | If you |
|00004e60| 67 65 74 20 61 20 64 65 | 66 69 6e 69 74 69 6f 6e |get a de|finition|
|00004e70| 20 66 6f 72 0a 58 22 7a | 6f 72 6b 2c 22 20 74 68 | for.X"z|ork," th|
|00004e80| 65 6e 20 65 76 65 72 79 | 74 68 69 6e 67 20 69 73 |en every|thing is|
|00004e90| 20 70 72 6f 62 61 62 6c | 79 20 4f 4b 2e 20 20 49 | probabl|y OK. I|
|00004ea0| 66 20 79 6f 75 20 61 6c | 74 65 72 65 64 20 6a 61 |f you al|tered ja|
|00004eb0| 72 67 6f 6e 2e 73 72 63 | 20 73 6f 0a 58 74 68 61 |rgon.src| so.Xtha|
|00004ec0| 74 20 74 68 65 20 64 61 | 74 61 62 61 73 65 20 76 |t the da|tabase v|
|00004ed0| 61 72 69 61 62 6c 65 20 | 70 6f 69 6e 74 73 20 74 |ariable |points t|
|00004ee0| 6f 20 61 20 6a 61 72 67 | 6f 6e 2e 77 72 64 20 66 |o a jarg|on.wrd f|
|00004ef0| 69 6c 65 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |ile in t|he curre|
|00004f00| 6e 74 0a 58 64 69 72 65 | 63 74 6f 72 79 2c 20 74 |nt.Xdire|ctory, t|
|00004f10| 68 65 6e 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |hen ther|e is no |
|00004f20| 6e 65 65 64 20 74 6f 20 | 64 6f 20 61 6e 79 74 68 |need to |do anyth|
|00004f30| 69 6e 67 20 6d 6f 72 65 | 2e 20 20 49 66 20 79 6f |ing more|. If yo|
|00004f40| 75 20 6e 61 6d 65 64 20 | 61 0a 53 48 41 52 5f 45 |u named |a.SHAR_E|
|00004f50| 4f 46 0a 74 72 75 65 20 | 7c 7c 20 65 63 68 6f 20 |OF.true ||| echo |
|00004f60| 27 72 65 73 74 6f 72 65 | 20 6f 66 20 52 45 41 44 |'restore| of READ|
|00004f70| 4d 45 20 66 61 69 6c 65 | 64 27 0a 66 69 0a 65 63 |ME faile|d'.fi.ec|
|00004f80| 68 6f 20 27 45 6e 64 20 | 6f 66 20 20 70 61 72 74 |ho 'End |of part|
|00004f90| 20 31 27 0a 65 63 68 6f | 20 27 46 69 6c 65 20 52 | 1'.echo| 'File R|
|00004fa0| 45 41 44 4d 45 20 69 73 | 20 63 6f 6e 74 69 6e 75 |EADME is| continu|
|00004fb0| 65 64 20 69 6e 20 70 61 | 72 74 20 32 27 0a 65 63 |ed in pa|rt 2'.ec|
|00004fc0| 68 6f 20 32 20 3e 20 5f | 73 68 61 72 5f 73 65 71 |ho 2 > _|shar_seq|
|00004fd0| 5f 2e 74 6d 70 0a 65 78 | 69 74 20 30 0a 2d 2d 20 |_.tmp.ex|it 0.-- |
|00004fe0| 0a 0a 20 20 20 2d 52 69 | 63 68 61 72 64 20 4c 2e |.. -Ri|chard L.|
|00004ff0| 20 47 6f 65 72 77 69 74 | 7a 20 20 20 20 20 20 20 | Goerwit|z |
|00005000| 20 20 20 20 20 20 20 67 | 6f 65 72 25 73 6f 70 68 | g|oer%soph|
|00005010| 69 73 74 40 75 63 68 69 | 63 61 67 6f 2e 62 69 74 |ist@uchi|cago.bit|
|00005020| 6e 65 74 0a 20 20 20 67 | 6f 65 72 40 73 6f 70 68 |net. g|oer@soph|
|00005030| 69 73 74 2e 75 63 68 69 | 63 61 67 6f 2e 65 64 75 |ist.uchi|cago.edu|
|00005040| 20 20 20 20 20 20 20 20 | 20 72 75 74 67 65 72 73 | | rutgers|
|00005050| 21 6f 64 64 6a 6f 62 21 | 67 69 64 65 21 73 6f 70 |!oddjob!|gide!sop|
|00005060| 68 69 73 74 21 67 6f 65 | 72 0a |hist!goe|r. |
+--------+-------------------------+-------------------------+--------+--------+