Provides methods for working with hyphenation dictionaries. These dictionaries prescribe where words of a specific language can be hyphenated.
Shows how to open and register a dictionary from a file.
#include <Aspose.Words.Cpp/Hyphenation.h>
Public Member Functions | |
Hyphenation ()=delete | |
Static Public Member Functions | |
static SharedPtr< IHyphenationCallback > | get_Callback () |
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. More... | |
static SharedPtr< IWarningCallback > | get_WarningCallback () |
Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss. More... | |
static bool | IsDictionaryRegistered (String language) |
Returns False if for the specified language there is no dictionary registered or if registered is Null dictionary, True otherwise. More... | |
static void | RegisterDictionary (String language, SharedPtr< Stream > stream) |
Registers and loads a hyphenation dictionary for the specified language from a stream. Throws if dictionary cannot be read or has invalid format. More... | |
static void | RegisterDictionary (String language, String fileName) |
Registers and loads a hyphenation dictionary for the specified language from file. Throws if dictionary cannot be read or has invalid format. This method can also be used to register Null dictionary to prevent Callback from being called repeatedly for the same language. More... | |
static void | set_Callback (SharedPtr< IHyphenationCallback > value) |
Setter for get_Callback. More... | |
static void | set_WarningCallback (SharedPtr< IWarningCallback > value) |
Setter for get_WarningCallback. More... | |
static void | UnregisterDictionary (String language) |
Unregisters a hyphenation dictionary for the specified language. This is different from registering Null dictionary. Unregistering a dictionary enables callback for the specified language. More... | |
|
delete |
|
static |
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.
Shows how to open and register a dictionary from a file.
|
static |
Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss.
Shows how to open and register a dictionary from a file.
|
static |
Returns False if for the specified language there is no dictionary registered or if registered is Null dictionary, True otherwise.
Shows how to register a hyphenation dictionary.
|
static |
Registers and loads a hyphenation dictionary for the specified language from a stream. Throws if dictionary cannot be read or has invalid format.
language | A language name, e.g. "en-US". See .NET documentation for "culture name" and RFC 4646 for details. |
stream | A stream for the dictionary file in OpenOffice format. |
Shows how to open and register a dictionary from a file.
|
static |
Registers and loads a hyphenation dictionary for the specified language from file. Throws if dictionary cannot be read or has invalid format. This method can also be used to register Null dictionary to prevent Callback from being called repeatedly for the same language.
language | A language name, e.g. "en-US". See .NET documentation for "culture name" and RFC 4646 for details. |
fileName | A path to the dictionary file in Open Office format. If this parameter is null or empty string then registered is Null dictionary and callback is not called anymore for this language. To enable callback again use UnregisterDictionary() method. |
Shows how to register a hyphenation dictionary.
Shows how to open and register a dictionary from a file.
|
static |
Setter for Aspose::Words::Hyphenation::get_Callback.
|
static |
Setter for Aspose::Words::Hyphenation::get_WarningCallback.
|
static |
Unregisters a hyphenation dictionary for the specified language. This is different from registering Null dictionary. Unregistering a dictionary enables callback for the specified language.
language | A language name, e.g. "en-US". See .NET documentation for "culture name" and RFC 4646 for details. If null or empty string then all dictionaries are unregistered. |
Shows how to register a hyphenation dictionary.