4D v16.3

Support of Hunspell dictionaries

Home

 
4D v16.3
Support of Hunspell dictionaries

Support of Hunspell dictionaries  


 

 

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

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 within your 4D databases. If two dictionaries with the same name are present in both locations, the one in the database is given priority. 

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

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)