4D v13.4

Support of Hunspell dictionaries

Home

 
4D v13.4
Support of Hunspell dictionaries

Support of Hunspell dictionaries  


 

 

Beginning with versions 12.4 and 13, 4D supports OpenSource "Hunspell" dictionaries. For more information about these dictionaries, refer to the following site: http://hunspell.sourceforge.net/

4D uses the same format as MySpell and OpenOffice 2.x: an .aff file and a .dic file with the same name. For example, the "fr-modern" dictionary consists of the fr-modern.aff and fr-modern.dic files.

To be able to use a Hunspell dictionary in your 4D application, you must install its .aff and .dic files at one of the following locations:

  • in the 4D application: <4D>/Resources/Spellcheck/Hunspell/
  • in the 4D database: <Database_Files>/Resources/Hunspell

Both locations are compatible: the database folder is parsed first, then it is completed by the one in the 4D application, which means that you can encapsulate specialized dictionaries with your 4D databases. If two dictionaries with the same name are present in both locations, it is the one in the database that is taken into account. 

You can download Hunspell dictionaries here: http://wiki.services.openoffice.org/wiki/Dictionaries

Users can also add existing dictionaries or create new ones. The process for creating these dictionaries is the same as that for Cordial user dictionaries (see Appendix D: Use of specialized dictionaries of the Design Reference manual). User dictionaries are stored in UTF-8 format.

 
PROPERTIES 

Product: 4D
Theme: Spell Checker