Skip to main content
A newer version of this page is available. .

TdxHunspellDictionary Class

Represents the Hunspell dictionary.

Declaration

TdxHunspellDictionary = class(
    TdxCustomSpellCheckerDictionary
)

Remarks

The TdxHunspellDictionary represents a dictionary dynamically created at runtime (if specified in the spell checker’s DictionaryItems collection) from a compressed dictionary file (specified by the DictionaryPath property) and an affix file (specified by the GrammarPath property). Note that when used with the TdxHunspellDictionary, these files must be compatible with Hunspell format v1.2.8 and earlier.

The dictionary load can be performed in either two modes – automatically or manually (see the spell checker’s AutoLoadDictionaries property). To learn how to create a dictionary at runtime, see the spell checker’s LoadDictionaries and dictionary’s Load methods.

The TdxHunspellDictionary object is referenced by the spell checker’s DictionaryItems.DictionaryType property.

Note

While there are many Hunspell format dictionaries available on the net, we recommend that you use the Hunspell dictionaries provided as LibreOffice language extensions at [https://extensions.libreoffice.org/?Tags%5B%5D=50). A language extension (an OXT file) is a ZIP file including a compressed dictionary file (a DIC file), an affix file (an AFF file), and other supplementary files. You can download a specific language extension and extract the two required dictionary files (DIC and AFF) from it for use with the ExpressSpellChecker.

See Also