
Happy Holidays: have a SpellChecker Dec 27, 2006 16:47
Over the holidays I decided to write a wrapper around Hunspell. Anyway, here's the (updated) fruit of my labor.
The readme:
Provided by: Brain Endeavor LLC
Contact: bmoelk@brainendeavor.com
License: MPL 1.1 (http://www.opensource.org/licenses/mozilla1.1.php)
=====================================
=====================================
About DHunspell
=====================================
This is a Delphi Hunspell wrapper. It supports the following capabilities:
-check a word for correct spelling
-suggest a list of alternatives for misspelled words
-user defined dictionary file (simple word per line format;
only for class wrapper and component)
Hunspell 1.1.4 was used to build the dll's. I've tried to make this easy to
use and leak free. If you find any bugs/problems or have suggestions on ease
of use, feel free to email me.
=====================================
What's included
=====================================
-precompiled dhunspell.dll (in Debug and Release folders) for use with
Delphi code
-dhunspell.h/cpp files used to create the dll's (I might include the VS
solution file if enough people are interested)
-Delphi wrappers of various flavors:
-dhunspell_static.pas : static binding to the dll
-dhunspell.pas : class wrapper that dynamically binds to the dll
-BEHunSpell.pas : component that uses the class wrapper above
-Sample Delphi projects for each wrapper flavor
-Sample Delphi project utilizing PurposeSoft's HTMLEdit for live spell checking
-precompiled Delphi exe's of all the sample projects (in the Debug folder)
-BEHunspell package code that includes the BEHunspell component
=====================================
Things neglected
=====================================
-Have only "tested" the English dictionary
-Didn't pay attention to any Unicode issues at all
=====================================
About Hunspell
=====================================
The Hunspell project can be found at: http://hunspell.sourceforge.net/ Hunspell is
tri-licensed under GPL/LGPL/MPL. There are many dictionaries available for Hunspell.
"Hunspell will be the default spell checker of the next version of OpenOffice.org
office suite." I'm not sure what version the "next version" is, but regardless,
Hunspell is a good quality spell checker.
=====================================
Additional Hunspell/Delphi work
=====================================
There was talk about a Hunspell Delphi wrapper by Miha Vrhovnik on the jedi.vcl
newsgroup back in May 2006:
http://tinyurl.com/ymagvk
or
http://delphi.newswhat.com/geoxml/forumhistorythread?
groupname=jedi.vcl&messageid=e5d7ea$li$1@news.talkto.net
Supposedly that work will be incorporated into the next distribution of
Hunspell itself. In the meantime, use this. ;)
Enjoy! Happy Holidays to all!
Write a comment
- Required fields are marked with *.







