| | |
- CmdLineChecker
class CmdLineChecker |
| |
A simple command-line spell checker.
This class implements a simple command-line spell checker. It must
be given a SpellChecker instance to operate on, and interacts with
the user by printing instructions on stdout and reading commands from
stdin. |
| |
Methods defined here:
- __init__(self)
- get_checker(self, chkr)
- print_help(self)
- read_command(self)
- run(self)
- Run the spellchecking loop.
- run_on_file(self, infile, outfile=None, enc=None)
- Run spellchecking on the named file.
This method can be used to run the spellchecker over the named file.
If <outfile> is not given, the corrected contents replace the contents
of <infile>. If <outfile> is given, the corrected contents will be
written to that file. Use "-" to have the contents written to stdout.
If <enc> is given, it specifies the encoding used to read the
file's contents into a unicode string. The output will be written
in the same encoding.
- set_checker(self, chkr)
| |