enchant.checker.CmdLineChecker
index
/storage/software/pyenchant/enchant/checker/CmdLineChecker.py

enchant.checker.CmdLineChecker:  Command-Line spell checker
 
This module provides the class CmdLineChecker, which interactively
spellchecks a piece of text by interacting with the user on the
command line.  It can also be run as a script to spellcheck a file.

 
Modules
       
sys

 
Classes
       
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)