Skip to main content

OpenOfficeHyphenationDictionary Class

Represent an OpenOffice hyphenation dictionary.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public class OpenOfficeHyphenationDictionary :
    HyphenationDictionaryBase

Remarks

Use an OpenOfficeHyphenationDictionary class object to add an OpenOffice hyphenation dictionary to the component’s collection.

The OpenOffice hyphenation dictionary is a .dic file containing hyphenation patterns in a specific encoding. The file can contain information about the minimal hyphenation distance from the left and right word end (LEFTHYPHENMIN and RIGHTHYPHENMIN). Use the LeftHyphenMin and RightHyphenMin properties to change these parameters.

You can download dictionaries from the OpenOffice Extensions Page. Note that OpenOffice license terms can be unacceptable for commercial projects.

The code sample creates a new OpenOfficeHyphenationDictionary object and adds it to the component’s collection:

OpenOfficeHyphenationDictionary hyphenationDictionary = new OpenOfficeHyphenationDictionary("hyph_sl_SI.dic", new System.Globalization.CultureInfo("sl-Si"));
server.HyphenationDictionaries.Add(hyphenationDictionary);

Inheritance

Object
HyphenationDictionaryBase
OpenOfficeHyphenationDictionary
See Also