About Hunspell

Build 1501 on 14/Nov/2017  This topic last edited on: 13/Sep/2015, at 15:00

Since the version 1.5, GN4 clients (Ted4 and Fred4) can use the GN4Hunspell library as spellchecker, and not only GN3Sentry as in version 1.4 or previous.

Just like using Gn3Sentry, the spellchecker's libraries must be into the same folder than the executable files (Ted4.exe and Fred4.exe).

For 32 bit, the needed libraries are Hunspellx86.dll, NHunspell.dll and GN4Hunspell.dll.

For 64 bit, the needed libraries are Hunspellx64.dll, NHunspell.dll and GN4Hunspell_x64.dll.

Also the language dictionary files must be into the executable's folder.

GN4Hunspell uses dictionary files having the MySpell syntax, that are used also by OpenOffice.

For each language, GN4Hunspell looks for two physical files; the .dic (dictionary) and .aff (affix) files.

Download OpenOffice dictionaries

See here for a list of downloadable OpenOffice dictionaries:

http://extensions.services.openoffice.org/dictionary

About OXT extension

When downloaded, change the extension of files from OXT in ZIP, to be able to unzip them normally.

Sample configuration

Here is a sample of GN4Hunspell configuration in GlobalConfig.xml file:

<CSApi>  

 <Spell Language="en_US" Library="GN4Hunspell_x64.dll" />  

 <Spell Language="fr" Library="GN4Hunspell_x64.dll" />

</CSApi>

 

In the example above, the GN4Hunspell 64bit spellchecker looks for the 'en_US.dic', 'en_US.aff', 'fr.dic' and 'fr.aff' files, that must be stored into the same folder than Ted4.exe.

Note that GN4Hunspell does not support spellchecking options (SpellOptKey values) and it is not possible to remove at run-time an already loaded exception word (you need to restart Ted4).

Bug fixing

The Hunspell libraries, available with the 2.0 daily versions are not yet ported to the new Visual Studio. This requires you to install additionally also the vcredist2010 on the GN4 server. The bug will be fixed (check here for the status: http://tracking.teradp.com/gn4/issues/GN4-2031 - a sign in is required).

IMPORTANT: To make these changes available to the GN4 users, after you saved the GLOBALCONFIG.XML file and imported it into the database, or after you modified it in EdAdmin4 and saved, recycle the GN4 application pools on all IIS servers and then make all users log out and log back in.