Meta::Tool::Aspell - run aspell for you to check spelling.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
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.
use Meta::Tool::Aspell qw();
This module hides the complexity of running aspell on SGML documents from you.
Bootstrap method to locate your aspell executable.
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.
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.
This method will check a regular text file. Currently it is unimplemented and just returns true.
Test suite for this module.
Name: Mark Veltzer
CPAN id: VELTZER
0.00 MV history change
0.01 MV spelling and papers
0.02 MV fix docbook and other various stuff
0.03 MV perl packaging
0.04 MV BuildInfo object change
0.05 MV md5 project
0.06 MV database
0.07 MV perl module versions in files
0.08 MV movies and small fixes
0.09 MV thumbnail user interface
0.10 MV more thumbnail issues
0.11 MV website construction
0.12 MV web site automation
0.13 MV SEE ALSO section fix
0.14 MV md5 issues
Meta::Baseline::Aegis(3), Meta::Utils::File::Patho(3), Meta::Utils::Output(3), Meta::Utils::System(3), Meta::Utils::Text::Unique(3), strict(3)
To install Meta::Init, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.