NAME

Meta::Tool::Aspell - run aspell for you to check spelling.

COPYRIGHT

Copyright (C) 2001 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Aspell.pm PROJECT: meta

SYNOPSIS

package foo; use Meta::Tool::Aspell qw(); my($object)=Meta::Tool::Aspell-new();> my($result)=$object-method();>

DESCRIPTION

This module hides the complexity of running aspell on SGML documents from you.

EXPORTS

checksgml($) checkhtml($) checktxt($)

FUNCTION DOCUMENTATION

checksgml($)

This method will check an sgml source file for spell correctness. It returns a boolean specifiying whether it is correct or not. There are several problems in aspell: 0. If you dont want it to run interactivly you have to use the --list (-l) flag but when using this option you cannot use aspell to check a file but only stdin. 1. Aspell's exit code does not imply if the document was correct or not. In order to do that you have to check that the output list is empty. At the end, this module uses my Unique module to produce a list of different words which were not spelled correctly.

Another problem is that Aspell that not recurse into included docbook documents.

checkhtml($)

This method will check an HTML file for syntax errors. Currently it just calls the SGML version because all our HTML documents are SGML compliant.

checktxt($)

This method will check a regular text file. Currently it is unimplemented and just returns true.

BUGS

None.

AUTHOR

Mark Veltzer <mark2776@yahoo.com>

HISTORY

start of revision info end of revision info

SEE ALSO

Nothing.

TODO

Nothing.