10.2. Spell Checking

Since a DocBook document is full of tags it can be quite hard to check the spelling of such a document without having the spell-checker constantly complain. Fortunately there are spell-checkers available out there that can ignore tags.

http://aspell.sourceforge.net/

Aspell is an Open Source spell checker designed to eventually replace Ispell. Its main feature is that it does a superior job of coming up with suggestions than just about any other spell checker out there for the English language.

It is available for both Unix and Windows, and while integration into editing environments is possible, it is possible to use it standalone. One can easily spell check a DocBook file with the following command sequence.

         aspell --mode=sgml check in.xml/sgml
       

This will bring up a spell checking program with the usual choices of adding to the dictionary, replacing all occurrences of a word and so on. The SGML mode works for both SGML and XML documents. And there are dictionaries for about 16 or so different languages excluding the standard British or American English language packs.