home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / p / spell-11.lbr / SPELL-ED.DZC / SPELL-ED.DOC
Encoding:
Text File  |  1993-10-25  |  4.9 KB  |  106 lines

  1.                            "SPELL-ED"
  2.                  A Utility Program For Use With
  3.                         Alan Bomberger's
  4.                  POOR PERSON'S SPELLING CHECKER
  5.  
  6.                                by
  7.                         David Grenewetzki
  8.                            DG/Systems
  9.  
  10.  
  11.      Alaεá Bomberger'≤ prograφ SPEL╠ (thσ Poo≥á Person'≤á Spellinτ ì
  12. Checker⌐ whicΦ firs⌠ appeareΣ iε "Dr«á Dobb≤ Journaló ha≤ becomσ ß ì
  13. succes≤á iεá thσá worlΣ oµ publiπ domaiεá software«á  Thσá prograφ ì
  14. describeΣ iε thi≤ documentation¼á SPELL-ED¼ extend≤ thσ utilit∙ oµ ì
  15. thσ origina∞ SPEL╠ prograφ b∙ addinτ ß numbe≥ oµ feature≤á usuall∙ ì
  16. founΣ onl∙ iε "commercialó products.
  17.  
  18.      SPEL╠á read≤á iε ß tex⌠ file¼á construct≤ ß lis⌠ oµá distinc⌠ ì
  19. word≤ containeΣ iε thσ file¼á anΣ compare≤ thi≤ lis⌠ witΦ ß numbe≥ ì
  20. oµá lexicoε files«á  Next¼á SPEL╠ output≤ ß lis⌠ oµ thσ word≤á no⌠ ì
  21. founΣá iεá thσ lexicoε file≤ t∩ thσ termina∞ anΣ optionall∙á t∩á ß ì
  22. filσá calleΣá SPELL.LEX«á  Othe≥ commanΣ linσá option≤á allo≈á thσ ì
  23. outpu⌠ lis⌠ t∩ bσ als∩ directeΣ t∩ thσ printer.
  24.  
  25.      Iεá norma∞ operation¼á SPELL'≤ outpu⌠ filσ oµ potentia∞ "badó ì
  26. words¼áá SPELL.LEX¼á mus⌠á theεá bσá editeΣá t∩á sor⌠á ou⌠á "trueó ì
  27. misspelleΣá word≤ froφ thosσ whicΦ arσ merel∙ no⌠ "knownóá b∙á thσ ì
  28. lexicon«á  Finally¼á thσ origina∞ tex⌠ filσ mus⌠ bσ examined¼á anΣ ì
  29. thσ truσ "badó word≤ founΣ anΣ corrected«  Thi≤ editinτ proces≤ i≤ ì
  30. timσá consuminτá anΣá ofteε take≤ morσ timσá thaεá manuall∙á prooµ ì
  31. readinτ thσ origina∞ document.
  32.  
  33.      Thσ prograφ describeΣ iε thi≤ document¼ SPELL-ED¼ wa≤ createΣ ì
  34. t∩á speeΣá u≡á thσá proces≤á oµ editinτá thσá filσá SPELL.LE╪á anΣ ì
  35. correctinτ thσ error≤ iε thσ tex⌠ file«  SPELL-E─ read≤ iε SPELL'≤ ì
  36. outpu⌠ file¼á SPELL.LEX¼ anΣ display≤ eacΦ potentia∞ "badó worΣ oε ì
  37. thσ console«á  Thσ use≥ i≤ askeΣ whethe≥ thσ worΣ shoulΣ bσá addeΣ ì
  38. t∩ thσ lexicon¼ markeΣ fo≥ late≥ editinτ iε thσ origina∞ tex⌠ filσ ì
  39. o≥ merel∙ ignored.
  40.  
  41.      Assumσá tha⌠ yo⌡ wisΦ t∩ checδ thσ spellinτ oµ aε ASCI╔á filσ ì
  42. calleΣá FILE.TXT«á  Firs⌠ usσ SPEL╠ t∩ checδ thσ filσ agains⌠ you≥ ì
  43. lexicoε file≤ usinτ thσ command:
  44.  
  45.                     SPEL╠ d:FILE.TX╘ F
  46.  
  47. Thσ "d:ó iε thσ commanΣ linσ i≤ aε optiona∞ disδá specifier«á  Thσ ì
  48. "Fóá iε thσ commanΣ linσ force≤ thσ outpu⌠ lis⌠ oµ potentia∞ "badó ì
  49. word≤á t∩á bσá placeΣ iε ß filσ calleΣ SPELL.LE╪á oεá thσá defaul⌠ ì
  50. drive«  Next¼ invokσ SPELL-E─ witΦ thσ followinτ command:
  51.  
  52.                     SPELL-E─ d:FILE.TXT
  53.  
  54. SPELL-E─á assume≤á tha⌠á thσ filσ SPELL.LE╪á i≤á residen⌠á oεá thσ ì
  55. defaul⌠ drive«á  Wheε SPELL.LE╪ filσ i≤ successfull∙ opened¼á eacΦ ìèworΣá iεá thσá filσ i≤ displayeΣ oε thσ termina∞ anΣ thσá use≥á i≤ ì
  56. askeΣ fo≥ onσ oµ threσ inputs:
  57.  
  58.                     ┴ --╛ (A)dΣ t∩ NEW.LEX
  59.                     ═ --╛ (M)arδ iε FILE.TXT
  60.                     ╔ --╛ (I)gnorσ thi≤ word
  61.  
  62. áááááIµ "Aó i≤ depressed¼á thσ displayeΣ worΣ wil∞ bσ addeΣ t∩ thσ ì
  63. áááááenΣ oµ thσ lexicoε file¼á NEW.LEX«á  Iµ thσ filσ NEW.LE╪ doe≤ ì
  64. áááááno⌠á exist¼á i⌠á wil∞ bσ createΣ b∙ SPELL-E─ oεá thσá defaul⌠ ì
  65. ááááádrive«á  Iµ thσ filσ alread∙ exist≤ oε thσ defaul⌠ drive¼ thσ ì
  66. áááááne≈ entrie≤ wil∞ bσ appendeΣ t∩ thσ enΣ oµ NEW.LEX.
  67.  
  68. áááááIµ "Mó i≤ depressed¼ eacΦ occurrencσ oµ thσ displayeΣ worΣ iε ì
  69. áááááthσá filσ d:FILE.TX╘ wil∞ bσ markeΣ witΦ ß pai≥á oµá trailinτ ì
  70. ááááá#'s«á  Fo≥á example¼á thσá misspelleΣ worΣá "calenderóá woulΣ ì
  71. áááááappea≥ a≤ "calender##ó iε thσ markeΣ file« 
  72.  
  73. áááááIµá "Ió (o≥ an∙ othe≥ key⌐ i≤ depressed¼á thσ displayeΣá worΣ ì
  74. áááááwil∞á bσ ignoreΣ i.e«á neithe≥ sen⌠ t∩ NEW.LE╪ no≥ markeΣá iε ì
  75. áááááFILE.TXT.
  76.  
  77. áááááTypinτ ß Control-├ durinτ thi≤ proces≤ wil∞ causσ ß gracefu∞ ì
  78. áááááabor⌠ oµ thσ program.
  79.  
  80. Wheεá thσ enΣ oµ thσ lis⌠ oµ "badó word≤ i≤ reached¼á ßá temporar∙ ì
  81. file¼á TEMP.$$$¼á wil∞á bσ createΣ (iµ necessary⌐ t∩ holΣ ß markeΣ ì
  82. cop∙ oµ FILE.TXT«  Wheε thi≤ filσ writσ i≤ successfull∙ completed¼ ì
  83. thσ followinτ step≤ occur:
  84.  
  85.           1« Erase FILE.BA╦ (if it exists)
  86.           2« Renamσ FILE.TX╘ t∩ FILE.BAK
  87.           3« Renamσ TEMP.$$ñ t∩ FILE.TXT
  88.           4« Erasσ SPELL.LEX
  89.  
  90. A⌠á thi≤ point¼á mos⌠ worΣ processor≤ caε easil∙ searcΦá FILE.TX╘ ì
  91. fo≥á thσ "##ó patterε anΣ finΣ al∞ word≤ requirinτ correctioεá iε ì
  92. minimuφá time«á  Also¼á you≥ lexicoε filσ NEW.LE╪ wil∞ havσá beeε ì
  93. updateΣ t∩ includσ an∙ "newó word≤ founΣ b∙ SPELL.
  94.  
  95. Thσá sourcσá codσá fo≥ SPELL-E─ i≤ writteε iεá Softwarσá Toolwork≤ ì
  96. C/80«á  Thi≤á prograφ i≤ copyrigh⌠ 198▓ b∙ DaviΣá GrenewetzkΘá anΣ ì
  97. DG/Systems«á  UnlimiteΣá non-commercia∞á distributioε anΣá usσá oµ ì
  98. SPELL-E─á i≤á authorized«á  SenΣá comments¼á suggestion≤á anΣá buτ ì
  99. report≤ to:
  100.  
  101.                         DaviΣ Grenewetzki
  102.                            DG/Systems
  103.                        2314╡ Bigle≥ Street
  104.                     WoodlanΣ Hills¼ C┴ 91364
  105.                          (213⌐ 716-1655
  106.                     CompuServσ  [70205,1346]