Version 1.x of this library was first released on the original AutoHotkey forum by majkinetor. You can find the original post here. New versions of the library, if any, will be posted on this forum.
Introduction
Hunspell is a spell check subsystem that was created in 2003. Because it's free and open source, it is incorporated into many applications including OpenOffice, LibreOffice, Mozilla Thunderbird & Firefox, and Google Chrome, just to name a few.
The Spell library is a wrapper for the Hunspell API with additional functions to support custom dictionaries.
Spell Library
Key features:
- Compatibility. [v2.1+] The Spell library is designed to work on a recent version of AutoHotkey v1.1+; ANSI, Unicode, and Unicode x64.
- Custom Dictionaries. [v1.1+] Words from one or more custom dictionaries can be quickly added to the active dictionary.
- Portable and Independent. All programs and files used by this library (Hunspell DLLs, Hunspell dictionaries, and custom dictionary files) can be stored anywhere. This library does not use any other programs, services, or files.
Version 2.1 is a fairly minor release but there are a few important changes.
- Compatibility. This version of the library is designed to run on a recent version of AutoHotkey v1.1; ANSI, Unicode, and Unicode x64. Future versions (if any) will require AutoHotkey v2.0+.
- Script breakers. If using a custom dictionary, there are a few script breakers. See the Release Notes and the function documentation for more information.
- Documentation. The general library documentation has been moved to the _Spell.Doc.ahk file. Natural Docs v2.3 is used to generate HTML documentation from this file and from the function documentation. See the Release Notes for more information.
The pertinent files are as follows:
- Project: Spell.zip
This project archive includes the Spell library, the Hunspell DLL files, example scripts, all the files needed to run the example scripts, and the project documentation. - Documentation: Starting with v2.1, the project documentation is included in the project archive file (above).
Stuff to know:
- Hunspell Dictionaries. Thanks to Apache OpenOffice, Hunspell dictionaries for a dozen or so languages can be found on their web site but Hunspell dictionaries for other languages may be hard to find. There are many languages for which there are no Hunspell dictionaries. Please note that my ability to do any serious tests on dictionaries other than US English, is severely limited. If you experience any problems with your dictionary, please let me know. I will try to correct the problem.
- Examples. If any of the examples don't work as expected, please let me know. I will try to fix the problem.