Hyphenation Class
Wordize.Hyphenation class. Provides methods for working with hyphenation dictionaries. These dictionaries prescribe where words of a specific language can be hyphenated.
Hyphenation class
Provides methods for working with hyphenation dictionaries. These dictionaries prescribe where words of a specific language can be hyphenated.
public class Hyphenation
Properties
Name | Description |
---|---|
Callback { get; set; } | Gets or sets callback interface used to request dictionaries when page layout of the document is built. This allows delay loading of dictionaries which may be useful when processing documents in many languages. |
WarningCallback { get; set; } | Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss. |
Methods
Name | Description |
---|---|
RegisterDictionary(string, Stream) | Registers and loads a hyphenation dictionary for the specified language from a stream. Throws if dictionary cannot be read or has invalid format. |
RegisterDictionary(string, string) | Registers and loads a hyphenation dictionary for the specified language from file. Throws if dictionary cannot be read or has invalid format. |
UnregisterDictionary(string) | Unregisters a hyphenation dictionary for the specified language. |
Examples
Shows how to register hyphenation dictionary.
Wordize.Settings.Hyphenation.RegisterDictionary("en-us", MyDir + "hyph_en_US.dic");
Converter.Convert(MyDir + "SimpleHyphenation.docx", ArtifactsDir + "Hyphenation.pdf");