Done some minor modifications to the spell checker over the weekend, the most notable ones:
- Should work in the 64 bit edition of Internet Explorer (thanks Erik).
- Uses a curly underline, instead of a dashed one.
- Fixed a bug in the Mozilla implementation that resulted in a few extra calls to the server while a word was being typed.
Other than that I’ve also created a C++ implementation of the server side component that uses FastCGI and is quite a bit more efficient than the old Perl CGI one. Other than being faster it’s also easier to use under Windows.
Unix users should install FastCGI, mod_fastcgi and Aspell and then use the Makefile to build it.
Windows users should download the FastCGI dll and place it in their apache2/modules directory. Then download libfcgi.dll and place it in the windows/systems32 directory. Then proceed to download and install the win32 version of Aspell and at least one dictionary.
Once everything is set up enter add the following lines to httpd.conf:
LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so FastCgiServer /var/web/emil.eae.net/spellchecker -initial-env ASPELL_LANG=en_US -initial-env ASPELL_DICT_DIR=/usr/local/share/aspell -initial-env ASPELL_DATA_DIR=/usr/local/share/aspell ScriptAlias /spellchecker /var/web/emil.eae.net/spellchecker
for unix or
LoadModule fastcgi_module modules/mod_fastcgi-2.4.2.dll FastCgiServer W:/Projects/spellchecker/Debug/spellchecker.exe -initial-env ASPELL_LANG=en_US -initial-env ASPELL_DICT_DIR=C:/Progra~1/Aspell/dict -initial-env ASPELL_DATA_DIR=C:/Progra~1/Aspell/data ScriptAlias /spellchecker W:/Projects/spellchecker/spellchecker.exe
for windows. The FastCgiServer directive should be on one line.
I’m assuming you’re using Apache 2 here, see the FastCGI documentation for information about your webserver should it not be Apache.
I really do appreciate all the feedback I’ve received so far, thanks guys! Please keep it coming.