Working with hyphenation lists

With version 4.0, TX Spell .NET provides the possibility to check words or complete sentences for hyphenation points. Combined with TX Text Control version 20.0, this feature enables a fast way to hyphenate documents with one or more language regions.

Default hyphenation lists folder

Integrating TX Spell .NET into a Visual Studio project is very easy. The default settings and shipped hyphenation lists allow developers to create applications without any specific hyphenation lists settings. TX Spell .NET checks the default HyphenationLists subfolder for valid hyphenation lists. On the development machine, the HyphenationLists folder is located in the \Assembly\HyphenationLists subdirectory of the TX Spell .NET installation directory. When the application is deployed to an end-user's machine, the HyphenationLists directory is a direct subfolder of the application's root folder.

The HyphenationListCollection contains all initialized hyphenation lists. To enable a hyphenation list, it must be added to this collection.

The TXSpell.HyphenationLanguage property is set to "(Auto)" when the TXSpellChecker has been created on a form and connected to a TextControl.

If the HyphenationLanguage property is set to "(Auto)", a hyphenation list is chosen where its language corresponds to the language of the dictionary that has been set by the TXSpell.Language property (by setting "(Auto)" or a specific hyphenation list). In case the default hyphenation lists folder does not contain such a list, a hyphenation list is chosen that corresponds roughly to the defined language. If the TXSpell.Language property is set to "(none)", a hyphenation list of the application environment's language (or, if not found, a list that corresponds roughly to the application environment's language) is added to the TXSpell.HyphenationLists collection.