home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / latex / mac / alpha.6.0.sit / Tcl / SystemCode / wordCompletion.tcl < prev   
MacBinary  |  1995-05-28  |  6.4 KB  |  [TEXT/ALFA]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun May 28 12:17:39 1995, modified Sun May 28 12:17:39 1995, creator Alpha editor, type ASCII, 5859 bytes "wordCompletion.tcl" , at 0x1763 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ALFA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 77 6f 72 64 43 6f | 6d 70 6c 65 74 69 6f 6e |..wordCo|mpletion|
|00000010| 2e 74 63 6c 00 00 00 00 | 00 00 00 00 00 00 00 00 |.tcl....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......|
|00000050| 00 00 00 00 00 16 e3 00 | 00 01 ac ab ee 52 a3 ab |........|.....R..|
|00000060| ee 52 a3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.R......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 61 05 00 00 |........|....a...|
|00000080| 23 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |#=======|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 23 20 27 |========|====.# '|
|000000d0| 57 6f 72 64 20 43 6f 6d | 70 6c 65 74 69 6f 6e 27 |Word Com|pletion'|
|000000e0| 2c 20 69 6e 20 74 68 65 | 20 73 70 69 72 69 74 20 |, in the| spirit |
|000000f0| 6f 66 20 50 61 75 6c 20 | 76 61 6e 20 4d 75 6c 62 |of Paul |van Mulb|
|00000100| 72 65 67 74 27 73 20 42 | 42 58 54 2e 0d 23 20 0d |regt's B|BXT..# .|
|00000110| 23 20 43 6f 6d 70 6f 73 | 65 64 20 62 79 20 4d 61 |# Compos|ed by Ma|
|00000120| 72 6b 20 4e 61 67 61 74 | 61 20 28 6e 61 67 61 74 |rk Nagat|a (nagat|
|00000130| 61 40 6b 75 72 69 6d 73 | 2e 6b 79 6f 74 6f 2d 75 |a@kurims|.kyoto-u|
|00000140| 2e 61 63 2e 6a 70 29 20 | 0d 23 20 66 6f 72 20 41 |.ac.jp) |.# for A|
|00000150| 6c 70 68 61 20 35 2e 37 | 36 2c 20 34 2f 32 32 2f |lpha 5.7|6, 4/22/|
|00000160| 39 34 2e 0d 23 20 0d 23 | 20 4d 6f 64 69 66 69 65 |94..# .#| Modifie|
|00000170| 64 20 62 79 20 54 69 6d | 20 76 61 6e 20 64 65 72 |d by Tim| van der|
|00000180| 20 4c 65 65 75 77 20 28 | 74 6e 6c 65 65 75 77 40 | Leeuw (|tnleeuw@|
|00000190| 63 73 2e 76 75 2e 6e 6c | 29 2c 20 39 2f 31 34 2f |cs.vu.nl|), 9/14/|
|000001a0| 39 34 2e 0d 23 20 49 6e | 20 74 68 65 20 73 70 69 |94..# In| the spi|
|000001b0| 72 69 74 20 6f 66 20 65 | 6d 61 63 73 2e 0d 23 20 |rit of e|macs..# |
|000001c0| 49 20 68 61 76 65 20 6d | 6f 64 69 66 69 65 64 20 |I have m|odified |
|000001d0| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 65 78 74 |this rou|tine ext|
|000001e0| 65 6e 73 69 76 65 6c 79 | 20 74 6f 20 61 64 64 20 |ensively| to add |
|000001f0| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 63 |the abil|ity to c|
|00000200| 6f 6d 70 6c 65 74 65 0d | 23 20 61 20 77 6f 72 64 |omplete.|# a word|
|00000210| 20 69 6e 20 6d 75 6c 74 | 69 70 6c 65 20 77 61 79 | in mult|iple way|
|00000220| 73 20 69 66 20 63 61 6c | 6c 65 64 20 72 65 70 65 |s if cal|led repe|
|00000230| 61 74 65 64 6c 79 2e 0d | 23 20 46 6f 72 20 74 68 |atedly..|# For th|
|00000240| 69 73 20 70 75 72 70 6f | 73 65 2c 20 49 20 68 61 |is purpo|se, I ha|
|00000250| 76 65 20 69 6e 74 72 6f | 64 75 63 65 64 20 61 6c |ve intro|duced al|
|00000260| 6c 20 74 68 65 20 67 6c | 6f 62 61 6c 20 76 61 72 |l the gl|obal var|
|00000270| 69 61 62 6c 65 73 20 28 | 73 74 61 72 74 69 6e 67 |iables (|starting|
|00000280| 20 77 69 74 68 0d 23 20 | 5f 5f 77 63 5f 5f 29 20 | with.# |__wc__) |
|00000290| 61 6e 64 20 61 64 64 65 | 64 20 74 68 65 20 66 69 |and adde|d the fi|
|000002a0| 72 73 74 20 69 66 2d 73 | 74 61 74 65 6d 65 6e 74 |rst if-s|tatement|
|000002b0| 20 2d 2d 20 65 76 65 72 | 79 74 68 69 6e 67 20 62 | -- ever|ything b|
|000002c0| 65 74 77 65 65 6e 0d 23 | 20 27 73 65 74 20 70 6f |etween.#| 'set po|
|000002d0| 73 20 5b 67 65 74 50 6f | 73 5d 27 20 61 6e 64 20 |s [getPo|s]' and |
|000002e0| 27 62 61 63 6b 77 61 72 | 64 57 6f 72 64 27 2e 20 |'backwar|dWord'. |
|000002f0| 49 6e 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |In the o|riginal |
|00000300| 72 6f 75 74 69 6e 65 2c | 20 49 27 76 65 20 63 68 |routine,| I've ch|
|00000310| 61 6e 67 65 64 0d 23 20 | 73 6f 6d 65 20 65 78 69 |anged.# |some exi|
|00000320| 73 74 69 6e 67 20 76 61 | 72 69 61 62 6c 65 73 20 |sting va|riables |
|00000330| 74 6f 20 67 6c 6f 62 61 | 6c 73 2c 20 70 72 65 66 |to globa|ls, pref|
|00000340| 69 78 69 6e 67 20 74 68 | 65 69 72 20 6e 61 6d 65 |ixing th|eir name|
|00000350| 20 77 69 74 68 20 27 5f | 5f 77 63 5f 5f 27 2e 0d | with '_|_wc__'..|
|00000360| 23 0d 23 20 54 68 69 73 | 20 63 6f 64 65 20 69 73 |#.# This| code is|
|00000370| 20 70 72 6f 62 61 62 6c | 79 20 6e 6f 74 20 74 68 | probabl|y not th|
|00000380| 65 20 6d 6f 73 74 20 65 | 66 66 69 63 69 65 6e 74 |e most e|fficient|
|00000390| 20 74 63 6c 2d 63 6f 64 | 65 2c 20 6e 6f 72 20 74 | tcl-cod|e, nor t|
|000003a0| 68 65 20 6d 6f 73 74 20 | 65 6c 65 67 61 6e 74 0d |he most |elegant.|
|000003b0| 23 20 74 63 6c 2d 63 6f | 64 65 20 66 6f 72 20 74 |# tcl-co|de for t|
|000003c0| 68 69 73 20 70 72 6f 62 | 6c 65 6d 2c 20 62 75 74 |his prob|lem, but|
|000003d0| 20 68 65 79 2c 20 69 74 | 20 69 73 20 74 68 65 20 | hey, it| is the |
|000003e0| 66 69 72 73 74 20 66 75 | 6e 63 74 69 6f 6e 20 49 |first fu|nction I|
|000003f0| 27 76 65 20 65 76 65 72 | 0d 23 20 77 72 69 74 74 |'ve ever|.# writt|
|00000400| 65 6e 20 69 6e 20 74 63 | 6c 21 0d 23 20 49 66 20 |en in tc|l!.# If |
|00000410| 61 6e 79 6f 6e 65 20 68 | 61 73 20 73 6f 6d 65 20 |anyone h|as some |
|00000420| 73 75 67 67 65 73 74 69 | 6f 6e 73 20 66 6f 72 20 |suggesti|ons for |
|00000430| 69 6d 70 72 6f 76 65 6d | 65 6e 74 2c 20 6f 72 0d |improvem|ent, or.|
|00000440| 23 20 6b 6e 6f 77 73 20 | 6f 66 20 61 20 62 65 74 |# knows |of a bet|
|00000450| 74 65 72 20 61 6c 67 6f | 72 69 74 68 6d 2c 20 49 |ter algo|rithm, I|
|00000460| 20 77 6f 75 6c 64 20 6c | 69 6b 65 20 74 6f 20 6b | would l|ike to k|
|00000470| 6e 6f 77 20 69 74 2e 0d | 23 3d 3d 3d 3d 3d 3d 3d |now it..|#=======|
|00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 73 65 74 20 5f 5f |========|=.set __|
|000004d0| 77 63 5f 5f 69 6e 73 50 | 6f 73 20 2d 31 0d 70 72 |wc__insP|os -1.pr|
|000004e0| 6f 63 20 77 6f 72 64 43 | 6f 6d 70 6c 65 74 69 6f |oc wordC|ompletio|
|000004f0| 6e 20 7b 7d 20 7b 0d 09 | 67 6c 6f 62 61 6c 20 5f |n {} {..|global _|
|00000500| 5f 77 63 5f 5f 6c 65 6e | 20 5f 5f 77 63 5f 5f 70 |_wc__len| __wc__p|
|00000510| 72 65 76 50 6f 73 20 5f | 5f 77 63 5f 5f 69 6e 73 |revPos _|_wc__ins|
|00000520| 50 6f 73 20 5f 5f 77 63 | 5f 5f 70 72 65 76 46 6f |Pos __wc|__prevFo|
|00000530| 75 6e 64 20 5f 5f 77 63 | 5f 5f 70 61 74 20 5f 5f |und __wc|__pat __|
|00000540| 77 63 5f 5f 6e 65 78 74 | 53 74 61 72 74 20 5f 5f |wc__next|Start __|
|00000550| 77 63 5f 5f 66 77 64 0d | 09 0d 09 73 65 74 20 70 |wc__fwd.|...set p|
|00000560| 6f 73 20 5b 67 65 74 50 | 6f 73 5d 0d 09 69 66 20 |os [getP|os]..if |
|00000570| 24 70 6f 73 3d 3d 24 5f | 5f 77 63 5f 5f 69 6e 73 |$pos==$_|_wc__ins|
|00000580| 50 6f 73 20 7b 0d 09 09 | 23 20 43 75 72 73 6f 72 |Pos {...|# Cursor|
|00000590| 20 63 68 61 6e 67 65 64 | 20 70 6c 61 63 65 3f 0d | changed| place?.|
|000005a0| 09 09 73 65 74 20 73 6b | 69 70 53 74 72 20 24 5f |..set sk|ipStr $_|
|000005b0| 5f 77 63 5f 5f 70 72 65 | 76 46 6f 75 6e 64 0d 09 |_wc__pre|vFound..|
|000005c0| 09 77 68 69 6c 65 20 31 | 20 7b 09 0d 09 09 09 69 |.while 1| {.....i|
|000005d0| 66 20 24 5f 5f 77 63 5f | 5f 66 77 64 20 7b 0d 09 |f $__wc_|_fwd {..|
|000005e0| 09 09 09 73 65 74 20 66 | 6e 64 4d 73 67 20 22 66 |...set f|ndMsg "f|
|000005f0| 6f 75 6e 64 20 62 65 6c | 6f 77 2e 22 0d 09 09 09 |ound bel|ow."....|
|00000600| 7d 20 65 6c 73 65 20 7b | 0d 09 09 09 09 73 65 74 |} else {|.....set|
|00000610| 20 66 6e 64 4d 73 67 20 | 22 66 6f 75 6e 64 20 61 | fndMsg |"found a|
|00000620| 62 6f 76 65 2e 22 0d 09 | 09 09 7d 0d 09 09 09 69 |bove."..|..}....i|
|00000630| 66 20 7b 21 5b 63 61 74 | 63 68 20 7b 73 65 61 72 |f {![cat|ch {sear|
|00000640| 63 68 20 2d 73 20 2d 66 | 20 24 5f 5f 77 63 5f 5f |ch -s -f| $__wc__|
|00000650| 66 77 64 20 2d 72 20 31 | 20 2d 69 20 30 20 2d 6d |fwd -r 1| -i 0 -m|
|00000660| 20 31 20 2d 2d 20 24 5f | 5f 77 63 5f 5f 70 61 74 | 1 -- $_|_wc__pat|
|00000670| 20 24 5f 5f 77 63 5f 5f | 6e 65 78 74 53 74 61 72 | $__wc__|nextStar|
|00000680| 74 7d 20 64 61 74 61 5d | 7d 20 7b 0d 09 09 09 09 |t} data]|} {.....|
|00000690| 73 65 74 20 64 30 30 20 | 5b 6c 69 6e 64 65 78 20 |set d00 |[lindex |
|000006a0| 24 64 61 74 61 20 30 5d | 0d 09 09 09 09 73 65 74 |$data 0]|.....set|
|000006b0| 20 62 65 67 20 5b 65 78 | 70 72 20 24 64 30 30 2b | beg [ex|pr $d00+|
|000006c0| 24 5f 5f 77 63 5f 5f 6c | 65 6e 5d 0d 09 09 09 09 |$__wc__l|en].....|
|000006d0| 73 65 74 20 65 6e 64 20 | 5b 6c 69 6e 64 65 78 20 |set end |[lindex |
|000006e0| 24 64 61 74 61 20 31 5d | 0d 09 09 09 09 73 65 74 |$data 1]|.....set|
|000006f0| 20 5f 5f 77 63 5f 5f 70 | 72 65 76 46 6f 75 6e 64 | __wc__p|revFound|
|00000700| 20 5b 67 65 74 54 65 78 | 74 20 24 64 30 30 20 24 | [getTex|t $d00 $|
|00000710| 65 6e 64 5d 0d 09 09 09 | 09 69 66 20 5b 73 74 72 |end]....|.if [str|
|00000720| 69 6e 67 20 63 6f 6d 70 | 61 72 65 20 24 73 6b 69 |ing comp|are $ski|
|00000730| 70 53 74 72 20 24 5f 5f | 77 63 5f 5f 70 72 65 76 |pStr $__|wc__prev|
|00000740| 46 6f 75 6e 64 5d 20 7b | 0d 09 09 09 09 09 23 20 |Found] {|......# |
|00000750| 48 61 76 65 20 77 65 20 | 67 6f 74 20 74 68 65 20 |Have we |got the |
|00000760| 73 61 6d 65 20 77 6f 72 | 64 20 74 77 69 63 65 3f |same wor|d twice?|
|00000770| 0d 09 09 09 09 09 73 65 | 74 20 74 78 74 20 5b 67 |......se|t txt [g|
|00000780| 65 74 54 65 78 74 20 24 | 62 65 67 20 24 65 6e 64 |etText $|beg $end|
|00000790| 5d 0d 09 09 09 09 09 64 | 65 6c 65 74 65 54 65 78 |]......d|eleteTex|
|000007a0| 74 20 24 5f 5f 77 63 5f | 5f 70 72 65 76 50 6f 73 |t $__wc_|_prevPos|
|000007b0| 20 24 5f 5f 77 63 5f 5f | 69 6e 73 50 6f 73 0d 09 | $__wc__|insPos..|
|000007c0| 09 09 09 09 67 6f 74 6f | 20 24 5f 5f 77 63 5f 5f |....goto| $__wc__|
|000007d0| 70 72 65 76 50 6f 73 0d | 09 09 09 09 09 69 6e 73 |prevPos.|.....ins|
|000007e0| 65 72 74 54 65 78 74 20 | 24 74 78 74 0d 09 09 09 |ertText |$txt....|
|000007f0| 09 09 6d 65 73 73 61 67 | 65 20 24 66 6e 64 4d 73 |..messag|e $fndMs|
|00000800| 67 0d 09 09 09 09 09 23 | 20 53 65 74 20 61 20 6e |g......#| Set a n|
|00000810| 75 6d 62 65 72 20 6f 66 | 20 67 6c 6f 62 61 6c 73 |umber of| globals|
|00000820| 20 66 6f 72 20 70 6f 73 | 73 69 62 6c 65 20 6e 65 | for pos|sible ne|
|00000830| 78 74 20 67 6f 2d 61 72 | 6f 75 6e 64 0d 09 09 09 |xt go-ar|ound....|
|00000840| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 69 6e 73 50 |..set __|wc__insP|
|00000850| 6f 73 20 5b 67 65 74 50 | 6f 73 5d 0d 09 09 09 09 |os [getP|os].....|
|00000860| 09 69 66 20 24 5f 5f 77 | 63 5f 5f 66 77 64 20 7b |.if $__w|c__fwd {|
|00000870| 0d 09 09 09 09 09 09 23 | 20 53 65 61 72 63 68 20 |.......#| Search |
|00000880| 46 6f 72 77 61 72 64 73 | 0d 09 09 09 09 09 09 73 |Forwards|.......s|
|00000890| 65 74 20 5f 5f 77 63 5f | 5f 6e 65 78 74 53 74 61 |et __wc_|_nextSta|
|000008a0| 72 74 20 24 65 6e 64 0d | 09 09 09 09 09 09 23 20 |rt $end.|......# |
|000008b0| 45 6e 64 20 6f 66 20 66 | 6f 75 6e 64 20 77 6f 72 |End of f|ound wor|
|000008c0| 64 0d 09 09 09 09 09 7d | 20 65 6c 73 65 20 7b 0d |d......}| else {.|
|000008d0| 09 09 09 09 09 09 23 20 | 53 65 61 72 63 68 20 42 |......# |Search B|
|000008e0| 61 63 6b 77 61 72 64 73 | 0d 09 09 09 09 09 09 73 |ackwards|.......s|
|000008f0| 65 74 20 5f 5f 77 63 5f | 5f 6e 65 78 74 53 74 61 |et __wc_|_nextSta|
|00000900| 72 74 20 5b 65 78 70 72 | 20 24 64 30 30 20 2d 20 |rt [expr| $d00 - |
|00000910| 24 5f 5f 77 63 5f 5f 6c | 65 6e 5d 0d 09 09 09 09 |$__wc__l|en].....|
|00000920| 09 09 23 20 42 65 66 6f | 72 65 20 73 74 61 72 74 |..# Befo|re start|
|00000930| 20 6f 66 20 66 6f 75 6e | 64 20 77 6f 72 64 0d 09 | of foun|d word..|
|00000940| 09 09 09 09 09 69 66 20 | 24 5f 5f 77 63 5f 5f 6e |.....if |$__wc__n|
|00000950| 65 78 74 53 74 61 72 74 | 3c 3d 30 20 7b 0d 09 09 |extStart|<=0 {...|
|00000960| 09 09 09 09 09 73 65 74 | 20 5f 5f 77 63 5f 5f 66 |.....set| __wc__f|
|00000970| 77 64 20 31 0d 09 09 09 | 09 09 09 09 73 65 74 20 |wd 1....|....set |
|00000980| 5f 5f 77 63 5f 5f 6e 65 | 78 74 53 74 61 72 74 20 |__wc__ne|xtStart |
|00000990| 24 5f 5f 77 63 5f 5f 69 | 6e 73 50 6f 73 0d 09 09 |$__wc__i|nsPos...|
|000009a0| 09 09 09 09 7d 0d 09 09 | 09 09 09 7d 0d 09 09 09 |....}...|...}....|
|000009b0| 09 09 72 65 74 75 72 6e | 0d 09 09 09 09 7d 20 65 |..return|.....} e|
|000009c0| 6c 73 65 20 7b 0d 09 09 | 09 09 09 23 20 4d 6f 76 |lse {...|...# Mov|
|000009d0| 65 20 73 74 61 72 74 20 | 6f 66 20 73 65 61 72 63 |e start |of searc|
|000009e0| 68 20 61 66 74 65 72 20 | 66 69 6e 64 69 6e 67 20 |h after |finding |
|000009f0| 73 74 72 69 6e 67 20 61 | 67 61 69 6e 0d 09 09 09 |string a|gain....|
|00000a00| 09 09 69 66 20 24 5f 5f | 77 63 5f 5f 66 77 64 20 |..if $__|wc__fwd |
|00000a10| 7b 0d 09 09 09 09 09 09 | 23 20 53 65 61 72 63 68 |{.......|# Search|
|00000a20| 69 6e 67 20 46 6f 72 77 | 61 72 64 73 0d 09 09 09 |ing Forw|ards....|
|00000a30| 09 09 09 73 65 74 20 5f | 5f 77 63 5f 5f 6e 65 78 |...set _|_wc__nex|
|00000a40| 74 53 74 61 72 74 20 24 | 65 6e 64 0d 09 09 09 09 |tStart $|end.....|
|00000a50| 09 09 23 20 45 6e 64 20 | 6f 66 20 66 6f 75 6e 64 |..# End |of found|
|00000a60| 20 77 6f 72 64 0d 09 09 | 09 09 09 7d 20 65 6c 73 | word...|...} els|
|00000a70| 65 20 7b 0d 09 09 09 09 | 09 09 23 20 53 74 69 6c |e {.....|..# Stil|
|00000a80| 6c 20 53 65 61 72 63 68 | 69 6e 67 20 42 61 63 6b |l Search|ing Back|
|00000a90| 77 61 72 64 73 0d 09 09 | 09 09 09 09 73 65 74 20 |wards...|....set |
|00000aa0| 5f 5f 77 63 5f 5f 6e 65 | 78 74 53 74 61 72 74 20 |__wc__ne|xtStart |
|00000ab0| 5b 65 78 70 72 20 24 64 | 30 30 20 2d 20 24 5f 5f |[expr $d|00 - $__|
|00000ac0| 77 63 5f 5f 6c 65 6e 5d | 0d 09 09 09 09 09 09 23 |wc__len]|.......#|
|00000ad0| 20 42 65 66 6f 72 65 20 | 73 74 61 72 74 20 6f 66 | Before |start of|
|00000ae0| 20 66 6f 75 6e 64 20 77 | 6f 72 64 0d 09 09 09 09 | found w|ord.....|
|00000af0| 09 09 69 66 20 24 5f 5f | 77 63 5f 5f 6e 65 78 74 |..if $__|wc__next|
|00000b00| 53 74 61 72 74 3c 3d 30 | 20 7b 0d 09 09 09 09 09 |Start<=0| {......|
|00000b10| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 66 77 64 20 |..set __|wc__fwd |
|00000b20| 31 0d 09 09 09 09 09 09 | 09 73 65 74 20 5f 5f 77 |1.......|.set __w|
|00000b30| 63 5f 5f 6e 65 78 74 53 | 74 61 72 74 20 24 5f 5f |c__nextS|tart $__|
|00000b40| 77 63 5f 5f 69 6e 73 50 | 6f 73 0d 09 09 09 09 09 |wc__insP|os......|
|00000b50| 09 7d 0d 09 09 09 09 09 | 7d 0d 09 09 09 09 7d 0d |.}......|}.....}.|
|00000b60| 09 09 09 09 23 20 45 6e | 64 20 69 66 20 73 74 72 |....# En|d if str|
|00000b70| 69 6e 67 20 63 6f 6d 70 | 61 72 65 20 0d 09 09 09 |ing comp|are ....|
|00000b80| 7d 20 65 6c 73 65 20 7b | 0d 09 09 09 09 23 20 53 |} else {|.....# S|
|00000b90| 65 61 72 63 68 20 73 74 | 72 69 6e 67 20 6e 6f 74 |earch st|ring not|
|00000ba0| 20 66 6f 75 6e 64 0d 09 | 09 09 09 69 66 20 24 5f | found..|...if $_|
|00000bb0| 5f 77 63 5f 5f 66 77 64 | 20 7b 0d 09 09 09 09 09 |_wc__fwd| {......|
|00000bc0| 23 20 57 65 20 77 65 72 | 65 20 61 6c 72 65 61 64 |# We wer|e alread|
|00000bd0| 79 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 77 61 72 |y lookin|g forwar|
|00000be0| 64 2c 20 73 6f 20 74 68 | 65 20 77 6f 72 64 20 69 |d, so th|e word i|
|00000bf0| 73 20 6e 6f 74 20 69 6e | 20 74 68 65 20 66 69 6c |s not in| the fil|
|00000c00| 65 0d 09 09 09 09 09 6d | 65 73 73 61 67 65 20 22 |e......m|essage "|
|00000c10| 4e 6f 74 20 66 6f 75 6e | 64 2e 22 0d 09 09 09 09 |Not foun|d.".....|
|00000c20| 09 73 65 74 20 5f 5f 77 | 63 5f 5f 69 6e 73 50 6f |.set __w|c__insPo|
|00000c30| 73 20 2d 31 0d 09 09 09 | 09 09 67 6f 74 6f 20 24 |s -1....|..goto $|
|00000c40| 70 6f 73 0d 09 09 09 09 | 09 62 61 63 6b 77 61 72 |pos.....|.backwar|
|00000c50| 64 57 6f 72 64 53 65 6c | 65 63 74 0d 09 09 09 09 |dWordSel|ect.....|
|00000c60| 09 72 65 74 75 72 6e 0d | 09 09 09 09 7d 20 65 6c |.return.|....} el|
|00000c70| 73 65 20 7b 0d 09 09 09 | 09 09 23 20 73 74 61 72 |se {....|..# star|
|00000c80| 74 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 77 61 72 |t lookin|g forwar|
|00000c90| 64 0d 09 09 09 09 09 73 | 65 74 20 5f 5f 77 63 5f |d......s|et __wc_|
|00000ca0| 5f 66 77 64 20 31 0d 09 | 09 09 09 09 73 65 74 20 |_fwd 1..|....set |
|00000cb0| 5f 5f 77 63 5f 5f 6e 65 | 78 74 53 74 61 72 74 20 |__wc__ne|xtStart |
|00000cc0| 24 5f 5f 77 63 5f 5f 69 | 6e 73 50 6f 73 0d 09 09 |$__wc__i|nsPos...|
|00000cd0| 09 09 7d 0d 09 09 09 7d | 0d 09 09 09 0d 09 09 7d |..}....}|.......}|
|00000ce0| 0d 09 7d 0d 09 62 61 63 | 6b 77 61 72 64 57 6f 72 |..}..bac|kwardWor|
|00000cf0| 64 0d 09 23 20 53 74 61 | 72 74 20 6e 65 77 20 73 |d..# Sta|rt new s|
|00000d00| 65 61 72 63 68 20 66 6f | 72 20 57 6f 72 64 43 6f |earch fo|r WordCo|
|00000d10| 6d 70 6c 65 74 69 6f 6e | 0d 09 73 65 74 20 73 74 |mpletion|..set st|
|00000d20| 61 72 74 20 5b 67 65 74 | 50 6f 73 5d 0d 09 73 65 |art [get|Pos]..se|
|00000d30| 74 20 6f 6e 65 20 5b 67 | 65 74 54 65 78 74 20 24 |t one [g|etText $|
|00000d40| 73 74 61 72 74 20 24 70 | 6f 73 5d 0d 09 73 65 74 |start $p|os]..set|
|00000d50| 20 5f 5f 77 63 5f 5f 6c | 65 6e 20 5b 65 78 70 72 | __wc__l|en [expr|
|00000d60| 20 24 70 6f 73 2d 24 73 | 74 61 72 74 5d 0d 09 73 | $pos-$s|tart]..s|
|00000d70| 65 74 20 5f 5f 77 63 5f | 5f 70 61 74 20 5b 61 70 |et __wc_|_pat [ap|
|00000d80| 70 65 6e 64 20 6f 6e 65 | 20 7b 5b 61 2d 7a 41 2d |pend one| {[a-zA-|
|00000d90| 5a 30 2d 39 5f 5d 2b 7d | 5d 0d 09 73 65 74 20 73 |Z0-9_]+}|]..set s|
|00000da0| 74 61 72 74 20 5b 65 78 | 70 72 20 24 73 74 61 72 |tart [ex|pr $star|
|00000db0| 74 2d 31 5d 0d 09 69 66 | 20 7b 21 5b 63 61 74 63 |t-1]..if| {![catc|
|00000dc0| 68 20 7b 73 65 61 72 63 | 68 20 2d 73 20 2d 66 20 |h {searc|h -s -f |
|00000dd0| 30 20 2d 72 20 31 20 2d | 69 20 30 20 2d 6d 20 31 |0 -r 1 -|i 0 -m 1|
|00000de0| 20 2d 2d 20 24 5f 5f 77 | 63 5f 5f 70 61 74 20 24 | -- $__w|c__pat $|
|00000df0| 73 74 61 72 74 7d 20 64 | 61 74 61 5d 7d 20 7b 0d |start} d|ata]} {.|
|00000e00| 09 09 73 65 74 20 64 30 | 30 20 5b 6c 69 6e 64 65 |..set d0|0 [linde|
|00000e10| 78 20 24 64 61 74 61 20 | 30 5d 0d 09 09 73 65 74 |x $data |0]...set|
|00000e20| 20 62 65 67 20 5b 65 78 | 70 72 20 24 64 30 30 2b | beg [ex|pr $d00+|
|00000e30| 24 5f 5f 77 63 5f 5f 6c | 65 6e 5d 0d 09 09 73 65 |$__wc__l|en]...se|
|00000e40| 74 20 65 6e 64 20 5b 6c | 69 6e 64 65 78 20 24 64 |t end [l|index $d|
|00000e50| 61 74 61 20 31 5d 0d 09 | 09 73 65 74 20 5f 5f 77 |ata 1]..|.set __w|
|00000e60| 63 5f 5f 70 72 65 76 46 | 6f 75 6e 64 20 5b 67 65 |c__prevF|ound [ge|
|00000e70| 74 54 65 78 74 20 24 64 | 30 30 20 24 65 6e 64 20 |tText $d|00 $end |
|00000e80| 5d 0d 09 09 73 65 74 20 | 74 78 74 20 5b 67 65 74 |]...set |txt [get|
|00000e90| 54 65 78 74 20 24 62 65 | 67 20 24 65 6e 64 5d 0d |Text $be|g $end].|
|00000ea0| 09 09 67 6f 74 6f 20 24 | 70 6f 73 0d 09 09 69 6e |..goto $|pos...in|
|00000eb0| 73 65 72 74 54 65 78 74 | 20 24 74 78 74 0d 09 09 |sertText| $txt...|
|00000ec0| 6d 65 73 73 61 67 65 20 | 22 66 6f 75 6e 64 20 61 |message |"found a|
|00000ed0| 62 6f 76 65 2e 22 0d 09 | 09 23 20 53 65 74 20 61 |bove."..|.# Set a|
|00000ee0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 67 6c 6f 62 61 | number |of globa|
|00000ef0| 6c 73 20 66 6f 72 20 70 | 6f 73 73 69 62 6c 65 20 |ls for p|ossible |
|00000f00| 6e 65 78 74 20 67 6f 2d | 61 72 6f 75 6e 64 0d 09 |next go-|around..|
|00000f10| 09 73 65 74 20 5f 5f 77 | 63 5f 5f 69 6e 73 50 6f |.set __w|c__insPo|
|00000f20| 73 20 5b 67 65 74 50 6f | 73 5d 0d 09 09 73 65 74 |s [getPo|s]...set|
|00000f30| 20 5f 5f 77 63 5f 5f 70 | 72 65 76 50 6f 73 20 24 | __wc__p|revPos $|
|00000f40| 70 6f 73 0d 09 09 73 65 | 74 20 5f 5f 77 63 5f 5f |pos...se|t __wc__|
|00000f50| 6e 65 78 74 53 74 61 72 | 74 20 5b 65 78 70 72 20 |nextStar|t [expr |
|00000f60| 24 64 30 30 2d 24 5f 5f | 77 63 5f 5f 6c 65 6e 5d |$d00-$__|wc__len]|
|00000f70| 0d 09 09 73 65 74 20 5f | 5f 77 63 5f 5f 66 77 64 |...set _|_wc__fwd|
|00000f80| 20 30 0d 09 09 72 65 74 | 75 72 6e 0d 09 7d 0d 09 | 0...ret|urn..}..|
|00000f90| 69 66 20 7b 21 5b 63 61 | 74 63 68 20 7b 73 65 61 |if {![ca|tch {sea|
|00000fa0| 72 63 68 20 2d 73 20 2d | 66 20 31 20 2d 72 20 31 |rch -s -|f 1 -r 1|
|00000fb0| 20 2d 69 20 30 20 2d 6d | 20 31 20 2d 2d 20 24 5f | -i 0 -m| 1 -- $_|
|00000fc0| 5f 77 63 5f 5f 70 61 74 | 20 24 70 6f 73 7d 20 64 |_wc__pat| $pos} d|
|00000fd0| 61 74 61 5d 7d 20 7b 0d | 09 09 73 65 74 20 5f 5f |ata]} {.|..set __|
|00000fe0| 77 63 5f 5f 70 72 65 76 | 46 6f 75 6e 64 20 5b 67 |wc__prev|Found [g|
|00000ff0| 65 74 54 65 78 74 20 5b | 6c 69 6e 64 65 78 20 24 |etText [|lindex $|
|00001000| 64 61 74 61 20 30 5d 20 | 5b 6c 69 6e 64 65 78 20 |data 0] |[lindex |
|00001010| 24 64 61 74 61 20 31 5d | 20 5d 0d 09 09 73 65 74 |$data 1]| ]...set|
|00001020| 20 62 65 67 20 5b 65 78 | 70 72 20 5b 6c 69 6e 64 | beg [ex|pr [lind|
|00001030| 65 78 20 24 64 61 74 61 | 20 30 5d 2b 24 5f 5f 77 |ex $data| 0]+$__w|
|00001040| 63 5f 5f 6c 65 6e 5d 0d | 09 09 73 65 74 20 65 6e |c__len].|..set en|
|00001050| 64 20 5b 6c 69 6e 64 65 | 78 20 24 64 61 74 61 20 |d [linde|x $data |
|00001060| 31 5d 0d 09 09 73 65 74 | 20 74 78 74 20 5b 67 65 |1]...set| txt [ge|
|00001070| 74 54 65 78 74 20 24 62 | 65 67 20 24 65 6e 64 5d |tText $b|eg $end]|
|00001080| 0d 09 09 67 6f 74 6f 20 | 24 70 6f 73 0d 09 09 69 |...goto |$pos...i|
|00001090| 6e 73 65 72 74 54 65 78 | 74 20 24 74 78 74 0d 09 |nsertTex|t $txt..|
|000010a0| 09 6d 65 73 73 61 67 65 | 20 22 66 6f 75 6e 64 20 |.message| "found |
|000010b0| 62 65 6c 6f 77 2e 22 0d | 09 09 23 20 53 65 74 20 |below.".|..# Set |
|000010c0| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 67 6c 6f 62 |a number| of glob|
|000010d0| 61 6c 73 20 66 6f 72 20 | 70 6f 73 73 69 62 6c 65 |als for |possible|
|000010e0| 20 6e 65 78 74 20 67 6f | 2d 61 72 6f 75 6e 64 0d | next go|-around.|
|000010f0| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 69 6e 73 50 |..set __|wc__insP|
|00001100| 6f 73 20 5b 67 65 74 50 | 6f 73 5d 0d 09 09 73 65 |os [getP|os]...se|
|00001110| 74 20 5f 5f 77 63 5f 5f | 70 72 65 76 50 6f 73 20 |t __wc__|prevPos |
|00001120| 24 70 6f 73 0d 09 09 73 | 65 74 20 5f 5f 77 63 5f |$pos...s|et __wc_|
|00001130| 5f 6e 65 78 74 53 74 61 | 72 74 20 24 65 6e 64 0d |_nextSta|rt $end.|
|00001140| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 66 77 64 20 |..set __|wc__fwd |
|00001150| 31 0d 09 09 72 65 74 75 | 72 6e 0d 09 7d 0d 09 67 |1...retu|rn..}..g|
|00001160| 6f 74 6f 20 24 70 6f 73 | 0d 09 62 61 63 6b 77 61 |oto $pos|..backwa|
|00001170| 72 64 57 6f 72 64 53 65 | 6c 65 63 74 0d 7d 0d 0d |rdWordSe|lect.}..|
|00001180| 0d 0d 23 20 54 68 69 73 | 20 69 73 20 61 6c 6c 20 |..# This| is all |
|00001190| 64 75 65 20 74 6f 20 74 | 68 65 20 69 64 65 61 20 |due to t|he idea |
|000011a0| 6f 66 20 50 61 75 6c 20 | 76 61 6e 20 4d 75 6c 62 |of Paul |van Mulb|
|000011b0| 72 65 67 74 2e 20 49 6e | 20 68 69 73 20 64 6f 63 |regt. In| his doc|
|000011c0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 0d 23 20 6f 66 |umentati|on .# of|
|000011d0| 20 68 69 73 20 42 42 45 | 64 69 74 20 42 42 45 78 | his BBE|dit BBEx|
|000011e0| 74 65 6e 73 69 6f 6e 20 | 28 69 6e 66 6f 2d 6d 61 |tension |(info-ma|
|000011f0| 63 2f 74 65 78 74 2f 62 | 62 65 64 69 74 2d 66 6c |c/text/b|bedit-fl|
|00001200| 2d 70 61 63 6b 61 67 65 | 2d 31 31 2e 68 71 78 29 |-package|-11.hqx)|
|00001210| 2c 20 0d 23 20 68 65 20 | 65 78 70 6c 61 69 6e 73 |, .# he |explains|
|00001220| 3a 0d 23 20 0d 23 20 2d | 2d 20 20 46 72 6f 6d 20 |:.# .# -|- From |
|00001230| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00001240| 6e 20 77 72 69 74 74 65 | 6e 20 62 79 20 20 20 20 |n writte|n by |
|00001250| 20 20 20 20 2d 2d 0d 23 | 20 2d 2d 20 20 50 61 75 | --.#| -- Pau|
|00001260| 6c 20 76 61 6e 20 4d 75 | 6c 62 72 65 67 74 20 28 |l van Mu|lbregt (|
|00001270| 70 61 75 6c 76 6d 40 64 | 72 61 67 6f 6e 73 79 73 |paulvm@d|ragonsys|
|00001280| 2e 63 6f 6d 29 20 2d 2d | 0d 23 20 0d 23 20 57 6f |.com) --|.# .# Wo|
|00001290| 72 64 20 43 6f 6d 70 6c | 65 74 69 6f 6e 0d 23 20 |rd Compl|etion.# |
|000012a0| 0d 23 20 54 68 69 73 20 | 65 78 74 65 6e 73 69 6f |.# This |extensio|
|000012b0| 6e 20 73 61 76 65 73 20 | 74 79 70 69 6e 67 2c 20 |n saves |typing, |
|000012c0| 61 73 20 77 65 6c 6c 20 | 61 73 20 6d 61 6b 69 6e |as well |as makin|
|000012d0| 67 20 73 75 72 65 20 76 | 61 72 69 61 62 6c 65 20 |g sure v|ariable |
|000012e0| 6e 61 6d 65 73 20 61 72 | 65 20 0d 23 20 63 6f 72 |names ar|e .# cor|
|000012f0| 72 65 63 74 2e 20 20 57 | 68 69 6c 65 20 74 79 70 |rect. W|hile typ|
|00001300| 69 6e 67 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ing the |followin|
|00001310| 67 20 43 20 63 6f 64 65 | 2c 20 74 68 65 72 65 20 |g C code|, there |
|00001320| 69 73 20 6e 6f 20 6e 65 | 65 64 20 74 6f 20 74 79 |is no ne|ed to ty|
|00001330| 70 65 20 61 6c 6c 20 0d | 23 20 6f 66 20 74 68 65 |pe all .|# of the|
|00001340| 20 73 65 63 6f 6e 64 20 | 6f 63 63 75 72 72 65 6e | second |occurren|
|00001350| 63 65 20 6f 66 20 76 65 | 72 79 53 70 65 63 69 61 |ce of ve|rySpecia|
|00001360| 6c 49 6e 74 2e 20 20 4f | 6e 65 20 63 6f 75 6c 64 |lInt. O|ne could|
|00001370| 20 63 6f 70 79 20 61 6e | 64 20 70 61 73 74 65 2c | copy an|d paste,|
|00001380| 20 62 75 74 20 0d 23 20 | 61 6e 6f 74 68 65 72 20 | but .# |another |
|00001390| 77 61 79 20 69 73 20 74 | 6f 20 74 79 70 65 20 61 |way is t|o type a|
|000013a0| 20 66 65 77 20 6c 65 74 | 74 65 72 73 2c 20 61 6e | few let|ters, an|
|000013b0| 64 20 73 65 6c 65 63 74 | 20 74 68 65 20 57 6f 72 |d select| the Wor|
|000013c0| 64 20 43 6f 6d 70 6c 65 | 74 69 6f 6e 20 0d 23 20 |d Comple|tion .# |
|000013d0| 45 78 74 65 6e 73 69 6f | 6e 2e 0d 23 20 0d 23 20 |Extensio|n..# .# |
|000013e0| 09 69 6e 74 20 76 65 72 | 79 53 70 65 63 69 61 6c |.int ver|ySpecial|
|000013f0| 49 6e 74 20 3d 20 31 30 | 3b 0d 23 20 09 77 68 69 |Int = 10|;.# .whi|
|00001400| 6c 65 28 76 65 72 79 53 | 70 20 20 20 20 20 20 20 |le(veryS|p |
|00001410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 23 20 | | .# |
|00001440| 0d 23 20 0d 23 20 62 65 | 63 6f 6d 65 73 0d 23 20 |.# .# be|comes.# |
|00001450| 0d 23 20 09 69 6e 74 20 | 76 65 72 79 53 70 65 63 |.# .int |verySpec|
|00001460| 69 61 6c 49 6e 74 20 3d | 20 31 30 3b 0d 23 20 09 |ialInt =| 10;.# .|
|00001470| 77 68 69 6c 65 28 76 65 | 72 79 53 70 65 63 69 61 |while(ve|rySpecia|
|00001480| 6c 49 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |lInt | |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014b0| 20 0d 23 20 0d 23 20 20 | 20 20 20 20 20 20 20 20 | .# .# | |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 20 20 20 20 20 20 20 | 20 20 20 0d 23 20 0d 23 | | .# .#|
|000014f0| 20 57 6f 72 64 20 43 6f | 6d 70 6c 65 74 69 6f 6e | Word Co|mpletion|
|00001500| 20 77 69 6c 6c 20 6c 6f | 6f 6b 20 62 61 63 6b 20 | will lo|ok back |
|00001510| 69 6e 20 74 68 65 20 63 | 6f 64 65 20 74 6f 20 66 |in the c|ode to f|
|00001520| 69 6e 64 20 74 68 65 20 | 66 69 72 73 74 20 6d 61 |ind the |first ma|
|00001530| 74 63 68 20 61 6e 64 20 | 74 68 65 6e 20 0d 23 20 |tch and |then .# |
|00001540| 65 78 74 65 6e 64 20 74 | 68 65 20 63 75 72 72 65 |extend t|he curre|
|00001550| 6e 74 20 6f 63 63 75 72 | 72 65 6e 63 65 20 74 6f |nt occur|rence to|
|00001560| 20 6d 61 74 63 68 20 74 | 68 65 20 70 72 65 76 69 | match t|he previ|
|00001570| 6f 75 73 20 6f 63 63 75 | 72 72 65 6e 63 65 2e 20 |ous occu|rrence. |
|00001580| 20 49 66 20 61 20 6d 61 | 74 63 68 20 0d 23 20 69 | If a ma|tch .# i|
|00001590| 73 20 6e 6f 74 20 66 6f | 75 6e 64 20 6c 6f 6f 6b |s not fo|und look|
|000015a0| 69 6e 67 20 62 61 63 6b | 77 61 72 64 73 2c 20 74 |ing back|wards, t|
|000015b0| 68 65 6e 20 69 74 20 6c | 6f 6f 6b 73 20 66 6f 72 |hen it l|ooks for|
|000015c0| 77 61 72 64 73 2e 20 20 | 49 66 20 6e 6f 74 20 66 |wards. |If not f|
|000015d0| 6f 75 6e 64 20 0d 23 20 | 66 6f 72 77 61 72 64 73 |ound .# |forwards|
|000015e0| 2c 20 74 68 65 20 77 6f | 72 64 20 69 73 20 73 65 |, the wo|rd is se|
|000015f0| 6c 65 63 74 65 64 2e 20 | 20 54 68 69 73 20 69 73 |lected. | This is|
|00001600| 20 61 20 71 75 69 63 6b | 20 77 61 79 20 74 6f 20 | a quick| way to |
|00001610| 73 61 76 65 20 6f 6e 20 | 74 79 70 69 6e 67 2c 20 |save on |typing, |
|00001620| 0d 23 20 67 6f 6f 64 20 | 66 6f 72 20 68 65 6c 70 |.# good |for help|
|00001630| 69 6e 67 20 70 72 65 76 | 65 6e 74 20 52 53 49 2c |ing prev|ent RSI,|
|00001640| 20 62 75 74 20 70 65 72 | 68 61 70 73 20 6d 6f 72 | but per|haps mor|
|00001650| 65 20 69 6d 70 6f 72 74 | 61 6e 74 6c 79 2c 20 74 |e import|antly, t|
|00001660| 6f 20 6d 61 6b 65 20 73 | 75 72 65 20 0d 23 20 74 |o make s|ure .# t|
|00001670| 68 61 74 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |hat vari|able nam|
|00001680| 65 73 20 61 72 65 20 73 | 70 65 6c 74 20 63 6f 72 |es are s|pelt cor|
|00001690| 72 65 63 74 6c 79 2e 0d | 23 20 0d 23 20 54 68 65 |rectly..|# .# The|
|000016a0| 72 65 20 69 73 20 6e 6f | 20 75 73 65 72 20 69 6e |re is no| user in|
|000016b0| 74 65 72 66 61 63 65 20 | 66 6f 72 20 57 6f 72 64 |terface |for Word|
|000016c0| 20 43 6f 6d 70 6c 65 74 | 69 6f 6e 2e 0d 23 20 0d | Complet|ion..# .|
|000016d0| 23 20 54 68 65 20 75 73 | 65 66 75 6c 6e 65 73 73 |# The us|efulness|
|000016e0| 20 6f 66 20 74 68 69 73 | 20 65 78 74 65 6e 73 69 | of this| extensi|
|000016f0| 6f 6e 20 69 73 20 67 72 | 65 61 74 6c 79 20 65 6e |on is gr|eatly en|
|00001700| 68 61 6e 63 65 64 20 69 | 66 20 74 68 65 20 65 78 |hanced i|f the ex|
|00001710| 74 65 6e 73 69 6f 6e 20 | 69 73 20 0d 23 20 62 6f |tension |is .# bo|
|00001720| 75 6e 64 20 74 6f 20 61 | 20 6b 65 79 21 0d 23 20 |und to a| key!.# |
|00001730| 0d 23 20 2d 2d 20 65 6e | 64 20 6f 66 20 50 61 75 |.# -- en|d of Pau|
|00001740| 6c 20 76 61 6e 20 4d 75 | 6c 62 72 65 67 74 27 73 |l van Mu|lbregt's|
|00001750| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 2e 20 2d 2d | explana|tion. --|
|00001760| 0d 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 01 00 00 00 01 6a | 00 00 00 6a 00 00 00 42 |.......j|...j...B|
|00001790| 00 00 40 00 01 00 00 01 | 00 00 00 00 01 00 40 01 |..@.....|......@.|
|000017a0| 01 00 00 41 01 00 40 41 | 01 00 00 40 01 00 40 40 |...A..@A|...@..@@|
|000017b0| 12 77 6f 72 64 43 6f 6d | 70 6c 65 74 69 6f 6e 2e |.wordCom|pletion.|
|000017c0| 74 63 6c 6f 02 00 00 00 | 54 45 58 54 41 4c 46 41 |tclo....|TEXTALFA|
|000017d0| 00 00 54 45 58 54 41 4c | 46 41 00 00 00 00 00 00 |..TEXTAL|FA......|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 ab ee 1a 63 00 00 | 16 e3 00 00 01 ac 00 80 |.....c..|........|
|00001800| 82 02 00 00 80 00 00 80 | 02 02 00 00 02 02 00 00 |........|........|
|00001810| 02 00 00 80 00 02 00 80 | 82 00 00 80 02 02 00 80 |........|........|
|00001820| 00 00 00 00 82 02 00 00 | 00 00 00 00 02 02 00 80 |........|........|
|00001830| 80 00 00 00 80 00 00 80 | 80 02 00 80 00 02 00 80 |........|........|
|00001840| 02 00 00 80 82 02 00 00 | 82 00 00 80 80 00 00 80 |........|........|
|00001850| 00 02 00 00 82 00 00 00 | 02 02 00 80 82 00 00 00 |........|........|
|00001860| 80 02 00 00 00 02 00 80 | 80 02 00 00 00 00 00 80 |........|........|
|00001870| 02 00 00 00 82 00 00 80 | 00 02 00 80 80 02 00 00 |........|........|
|00001880| 00 00 00 1a 00 01 00 00 | 04 5e 00 00 04 5e 0f 77 |........|.^...^.w|
|00001890| 6f 72 64 43 6f 6d 70 6c | 65 74 69 6f 6e 00 00 00 |ordCompl|etion...|
|000018a0| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 d7 58 a0 01 28 |.H..Mona|co..X..(|
|000018b0| d4 04 ff ff ff ff 00 ec | e8 30 00 cd 94 20 40 a0 |........|.0... @.|
|000018c0| be 98 ff fc 00 04 00 04 | 00 28 00 03 01 ca 02 79 |........|.(.....y|
|000018d0| 00 28 00 03 01 ca 02 79 | ab ef 66 f0 00 00 01 d3 |.(.....y|..f.....|
|000018e0| 00 00 01 d3 00 00 00 00 | 01 00 00 00 01 00 00 00 |........|........|
|000018f0| 01 6a 00 00 00 6a 00 00 | 00 42 00 cc b8 98 16 0a |.j...j..|.B......|
|00001900| 00 00 00 1c 00 3e 00 00 | 4d 50 53 52 00 01 00 0a |.....>..|MPSR....|
|00001910| 03 ef 00 00 00 00 00 00 | 00 00 00 00 03 ed ff ff |........|........|
|00001920| 00 00 00 1e 00 d7 5b 60 | 03 74 61 62 00 00 00 00 |......[`|.tab....|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+