How to Spellcheck a File
A program called ispell can be used to check the
spelling within a document. Just type:
ispell filename
This will start ispell and check the entire file
immediately.
For those who would rather use ispell from inside of
emacs, type:
M-x ispell
(M-x is the ALT or Compose
Character key and x key pressed at the same
time.)
Now the following commands are available for the duration of your
emacs session:
M-x ispell-word - Checks word
M-x ispell-buffer - Checks buffer (current file)
M-x ispell-region - Checks region
When ispell finds a word that is not in its
dictionary, it will outline the word in reverse video (from emacs it
will respond with a message that says, "Enter letter to replace word;
space to flush") If there are near misses in the dictionary,
ispell will also display the incorrect word and a
list of correct alternatives at the top if they exist.
At this point, you can type one of the following characters:
- r
- Replace Word. Ispell asks you for a replacement word. Ispell
will NOT check this word.
- #
- Replace Word with suggested word. The words at the top of the
screen are numbered. If you type a word's number, ispell will use
this word as a replacement.
- <space>
- Skips Word. Leave this word as is. If this word is encountered
again, ispell will stop and prompt you for an action.
- a
- Accept Word. Accept this word as correct for remainder of ispell
session (or emacs if you are using ispell in emacs).
- i
- Add Word. Add this word to your personal dictionary. This is a
file in your home directory called .ispell.words which tells
ispell to accept the word as correct every time you
use ispell (useful for things like your name).
- <Ctrl-g>
- Quit Ispell. You can quit
ispell at any time by pressing
Ctrl-g. This is done by holding down the CTRL key
and pressing g.
The man page on ispell lists more options and gives
more detailed information on this program.