home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 495b.lha / AfterWords / document < prev    next >
Encoding:
Text File  |  1991-04-07  |  3.8 KB  |  87 lines

  1.   If you are like me and use a text editor for your documents, you may
  2. have felt the need for a spell checker. I wrote the following program
  3. to save myself the time of manually checking my files. Instructions
  4. follow.
  5.  
  6.   Afterwrds is a spell checker for ascii files ONLY. Attempting to
  7. spell check other files, such as word processing documents will cause
  8. unknown results. 
  9.  
  10.   To run the program enter: afterwrds <filename>
  11.   
  12. A screen with logo and program interface will appear on the screen. The
  13. program interface consists of 5 gadgets and an area where the misspelled
  14. word and the context lines surrounding the misspelled word appear. 
  15.   
  16. The program will then load its dictionary and begin spell checking
  17. the specified file. If an unknown word is encountered, the word will
  18. appear at the top of the display and the context lines surrounding
  19. the word will appear. The cursor will be positioned on the word in 
  20. question.
  21.  
  22. The program was designed to spell check files with a line length of no more
  23. than 80 characters. The program will spell check files with lines of length
  24. greater than 80 characters but the display of the context lines will be
  25. trashed and the cursor will not appear over the proper word. The context line
  26. display will also be trashed in certain instances where tabs are used. This
  27. is not a problem as the misspelled word is listed by itself at the top of
  28. the display.
  29.  
  30. After the misspelled word and context lines have been displayed, you will
  31. be need to choose one of 4 interface gadgets:
  32.  
  33.   ADD     - add the word to the dictionary
  34.   
  35.   SKIP    - skip over the current instance of the unknown word
  36.   
  37.   IGNORE  - skips over the current instance of the unknown word and
  38.             any other instances of the word throughout the remainder
  39.             of the file.
  40.            
  41.   CORRECT - allows the correction of any misspelled word
  42.   
  43.   QUIT    - quits the program
  44.   
  45. If you choose "correct" the program will prompt you for the proper spelling
  46. of the word. After entering the proper spelling, press the return key. If
  47. the word is found in the dictionary, spell checking will continue. If the
  48. word is not found in the dictionary, the word will be treated as if it were
  49. misspelled and you are required to choose one of the five gadgets again.
  50.  
  51. When spell checking of the file is completed, you will be asked if you want
  52. to check another file. If you choose yes, the spell checking process will
  53. begin on the new file. If you choose no, the dictionary will be saved back
  54. to disk and the program will quit and write the total number of dictionary
  55. entries to STDOUT. The corrected version of your input file can be found in
  56. the current directory with a ".chk" extension.
  57.  
  58. You can quit the program at any time by choosing the quit gadget. If you
  59. quit in the middle of spell checking a file, when the dictionary is saved
  60. back to the disk, any new words you may have added up to that point WILL
  61. be saved.
  62.  
  63. If you choose to do so, you can also use the keyboard to operate the program.
  64. Simply enter the first letter of the gadget choice you wish to make.
  65.  
  66. The dictionary is stored in a compressed format using diatomic replacement.
  67. If you enter an incorrect word into the dictionary, you will have to first
  68. quit the spell checking program. Then run the diatomic program on the
  69. dictionary file "spell.dict". 
  70.  
  71.   Enter diatomic spell.dict -d
  72.   
  73. This will decompress the spell.dict file and write it to the file 
  74. "spell.dict.dcom". You then need to examine this file with your text editor
  75. and remove the offending word(s). When you are done, the corrected dictionary
  76. needs to be recompressed. To do this enter:
  77.  
  78.   diatomic spell.dict.dcom -c
  79.   
  80. This recompresses the file and writes it to the file "spell.dict.dcom.com".
  81. Rename the "spell.dict.dcom.com"  file "spell.dict" and you are finished.
  82.  
  83. If you have any suggestions or comments, you should be able to reach me on
  84. the FAUG BBS. 
  85.  
  86. Ryu Anderson.
  87.