home *** CD-ROM | disk | FTP | other *** search
- "SPELL-ED"
- A Utility Program For Use With
- Alan Bomberger's
- POOR PERSON'S SPELLING CHECKER
-
- by
- David Grenewetzki
- DG/Systems
-
-
- Alaεá Bomberger'≤ prograφ SPEL╠ (thσ Poo≥á Person'≤á Spellinτ ì
- Checker⌐ whicΦ firs⌠ appeareΣ iε "Dr«á Dobb≤ Journaló ha≤ becomσ ß ì
- succes≤á iεá thσá worlΣ oµ publiπ domaiεá software«á Thσá prograφ ì
- describeΣ iε thi≤ documentation¼á SPELL-ED¼ extend≤ thσ utilit∙ oµ ì
- thσ origina∞ SPEL╠ prograφ b∙ addinτ ß numbe≥ oµ feature≤á usuall∙ ì
- founΣ onl∙ iε "commercialó products.
-
- SPEL╠á read≤á iε ß tex⌠ file¼á construct≤ ß lis⌠ oµá distinc⌠ ì
- word≤ containeΣ iε thσ file¼á anΣ compare≤ thi≤ lis⌠ witΦ ß numbe≥ ì
- oµá lexicoε files«á Next¼á SPEL╠ output≤ ß lis⌠ oµ thσ word≤á no⌠ ì
- founΣá iεá thσ lexicoε file≤ t∩ thσ termina∞ anΣ optionall∙á t∩á ß ì
- filσá calleΣá SPELL.LEX«á Othe≥ commanΣ linσá option≤á allo≈á thσ ì
- outpu⌠ lis⌠ t∩ bσ als∩ directeΣ t∩ thσ printer.
-
- Iεá norma∞ operation¼á SPELL'≤ outpu⌠ filσ oµ potentia∞ "badó ì
- words¼áá SPELL.LEX¼á mus⌠á theεá bσá editeΣá t∩á sor⌠á ou⌠á "trueó ì
- misspelleΣá word≤ froφ thosσ whicΦ arσ merel∙ no⌠ "knownóá b∙á thσ ì
- lexicon«á Finally¼á thσ origina∞ tex⌠ filσ mus⌠ bσ examined¼á anΣ ì
- thσ truσ "badó word≤ founΣ anΣ corrected« Thi≤ editinτ proces≤ i≤ ì
- timσá consuminτá anΣá ofteε take≤ morσ timσá thaεá manuall∙á prooµ ì
- readinτ thσ origina∞ document.
-
- Thσ prograφ describeΣ iε thi≤ document¼ SPELL-ED¼ wa≤ createΣ ì
- t∩á speeΣá u≡á thσá proces≤á oµ editinτá thσá filσá SPELL.LE╪á anΣ ì
- correctinτ thσ error≤ iε thσ tex⌠ file« SPELL-E─ read≤ iε SPELL'≤ ì
- outpu⌠ file¼á SPELL.LEX¼ anΣ display≤ eacΦ potentia∞ "badó worΣ oε ì
- thσ console«á Thσ use≥ i≤ askeΣ whethe≥ thσ worΣ shoulΣ bσá addeΣ ì
- t∩ thσ lexicon¼ markeΣ fo≥ late≥ editinτ iε thσ origina∞ tex⌠ filσ ì
- o≥ merel∙ ignored.
-
- Assumσá tha⌠ yo⌡ wisΦ t∩ checδ thσ spellinτ oµ aε ASCI╔á filσ ì
- calleΣá FILE.TXT«á Firs⌠ usσ SPEL╠ t∩ checδ thσ filσ agains⌠ you≥ ì
- lexicoε file≤ usinτ thσ command:
-
- SPEL╠ d:FILE.TX╘ F
-
- Thσ "d:ó iε thσ commanΣ linσ i≤ aε optiona∞ disδá specifier«á Thσ ì
- "Fóá iε thσ commanΣ linσ force≤ thσ outpu⌠ lis⌠ oµ potentia∞ "badó ì
- word≤á t∩á bσá placeΣ iε ß filσ calleΣ SPELL.LE╪á oεá thσá defaul⌠ ì
- drive« Next¼ invokσ SPELL-E─ witΦ thσ followinτ command:
-
- SPELL-E─ d:FILE.TXT
-
- SPELL-E─á assume≤á tha⌠á thσ filσ SPELL.LE╪á i≤á residen⌠á oεá thσ ì
- defaul⌠ drive«á Wheε SPELL.LE╪ filσ i≤ successfull∙ opened¼á eacΦ ìèworΣá iεá thσá filσ i≤ displayeΣ oε thσ termina∞ anΣ thσá use≥á i≤ ì
- askeΣ fo≥ onσ oµ threσ inputs:
-
- ┴ --╛ (A)dΣ t∩ NEW.LEX
- ═ --╛ (M)arδ iε FILE.TXT
- ╔ --╛ (I)gnorσ thi≤ word
-
- áááááIµ "Aó i≤ depressed¼á thσ displayeΣ worΣ wil∞ bσ addeΣ t∩ thσ ì
- áááááenΣ oµ thσ lexicoε file¼á NEW.LEX«á Iµ thσ filσ NEW.LE╪ doe≤ ì
- áááááno⌠á exist¼á i⌠á wil∞ bσ createΣ b∙ SPELL-E─ oεá thσá defaul⌠ ì
- ááááádrive«á Iµ thσ filσ alread∙ exist≤ oε thσ defaul⌠ drive¼ thσ ì
- áááááne≈ entrie≤ wil∞ bσ appendeΣ t∩ thσ enΣ oµ NEW.LEX.
-
- áááááIµ "Mó i≤ depressed¼ eacΦ occurrencσ oµ thσ displayeΣ worΣ iε ì
- áááááthσá filσ d:FILE.TX╘ wil∞ bσ markeΣ witΦ ß pai≥á oµá trailinτ ì
- ááááá#'s«á Fo≥á example¼á thσá misspelleΣ worΣá "calenderóá woulΣ ì
- áááááappea≥ a≤ "calender##ó iε thσ markeΣ file«
-
- áááááIµá "Ió (o≥ an∙ othe≥ key⌐ i≤ depressed¼á thσ displayeΣá worΣ ì
- áááááwil∞á bσ ignoreΣ i.e«á neithe≥ sen⌠ t∩ NEW.LE╪ no≥ markeΣá iε ì
- áááááFILE.TXT.
-
- áááááTypinτ ß Control-├ durinτ thi≤ proces≤ wil∞ causσ ß gracefu∞ ì
- áááááabor⌠ oµ thσ program.
-
- Wheεá thσ enΣ oµ thσ lis⌠ oµ "badó word≤ i≤ reached¼á ßá temporar∙ ì
- file¼á TEMP.$$$¼á wil∞á bσ createΣ (iµ necessary⌐ t∩ holΣ ß markeΣ ì
- cop∙ oµ FILE.TXT« Wheε thi≤ filσ writσ i≤ successfull∙ completed¼ ì
- thσ followinτ step≤ occur:
-
- 1« Erase FILE.BA╦ (if it exists)
- 2« Renamσ FILE.TX╘ t∩ FILE.BAK
- 3« Renamσ TEMP.$$ñ t∩ FILE.TXT
- 4« Erasσ SPELL.LEX
-
- A⌠á thi≤ point¼á mos⌠ worΣ processor≤ caε easil∙ searcΦá FILE.TX╘ ì
- fo≥á thσ "##ó patterε anΣ finΣ al∞ word≤ requirinτ correctioεá iε ì
- minimuφá time«á Also¼á you≥ lexicoε filσ NEW.LE╪ wil∞ havσá beeε ì
- updateΣ t∩ includσ an∙ "newó word≤ founΣ b∙ SPELL.
-
- Thσá sourcσá codσá fo≥ SPELL-E─ i≤ writteε iεá Softwarσá Toolwork≤ ì
- C/80«á Thi≤á prograφ i≤ copyrigh⌠ 198▓ b∙ DaviΣá GrenewetzkΘá anΣ ì
- DG/Systems«á UnlimiteΣá non-commercia∞á distributioε anΣá usσá oµ ì
- SPELL-E─á i≤á authorized«á SenΣá comments¼á suggestion≤á anΣá buτ ì
- report≤ to:
-
- DaviΣ Grenewetzki
- DG/Systems
- 2314╡ Bigle≥ Street
- WoodlanΣ Hills¼ C┴ 91364
- (213⌐ 716-1655
- CompuServσ [70205,1346]