public class Hyphenation
extends java.lang.Object
To learn more, visit the Working with Hyphenation documentation article.
| Modifier and Type | Method and Description |
|---|---|
static IHyphenationCallback |
getCallback()
Gets callback interface used to request dictionaries when page layout of the document is built.
|
static IWarningCallback |
getWarningCallback()
Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss.
|
static boolean |
isDictionaryRegistered(java.lang.String language)
Returns False if for the specified language there is no dictionary registered or if registered is Null dictionary, True otherwise.
|
static void |
registerDictionary(java.lang.String language,
java.io.InputStream stream) |
static void |
registerDictionary(java.lang.String language,
java.lang.String fileName)
Registers and loads a hyphenation dictionary for the specified language from file.
|
static void |
setCallback(IHyphenationCallback value)
Sets callback interface used to request dictionaries when page layout of the document is built.
|
static void |
setWarningCallback(IWarningCallback value)
Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss.
|
static void |
unregisterDictionary(java.lang.String language)
Unregisters a hyphenation dictionary for the specified language.
|
public static void registerDictionary(java.lang.String language,
java.io.InputStream stream)
throws java.lang.Exception
java.lang.Exceptionpublic static void registerDictionary(java.lang.String language,
java.lang.String fileName)
throws java.lang.Exception
This method can also be used to register Null dictionary to prevent
getCallback() / setCallback(com.aspose.words.IHyphenationCallback) 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.java.lang.Exceptionpublic static void unregisterDictionary(java.lang.String 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.public static boolean isDictionaryRegistered(java.lang.String language)
public static IHyphenationCallback getCallback()
public static void setCallback(IHyphenationCallback value)
value - Callback interface used to request dictionaries when page layout of the document is built.public static IWarningCallback getWarningCallback()
IWarningCallback value.public static void setWarningCallback(IWarningCallback value)
value - The corresponding IWarningCallback value.