public final class Hyphenator extends Object
This class is the main entry point to the hyphenation package. You can use only the static methods or create an instance.
This work was authored by Carlos Villegas (cav@uniscope.co.jp).
Modifier and Type | Field and Description |
---|---|
static String |
HYPTYPE |
static String |
XMLTYPE |
Modifier and Type | Method and Description |
---|---|
static HyphenationTree |
getFopHyphenationTree(String key)
Returns a hyphenation tree.
|
static HyphenationTree |
getHyphenationTree(String lang,
String country,
InternalResourceResolver resourceResolver,
Map hyphPatNames,
FOUserAgent foUserAgent) |
static HyphenationTree |
getUserHyphenationTree(String key,
InternalResourceResolver resourceResolver)
Load tree from serialized file or xml file
using configuration settings
|
static Hyphenation |
hyphenate(String lang,
String country,
InternalResourceResolver resourceResolver,
Map hyphPatNames,
String word,
int leftMin,
int rightMin,
FOUserAgent foUserAgent) |
public static HyphenationTree getHyphenationTree(String lang, String country, InternalResourceResolver resourceResolver, Map hyphPatNames, FOUserAgent foUserAgent)
public static HyphenationTree getFopHyphenationTree(String key)
key
- the language/country keypublic static HyphenationTree getUserHyphenationTree(String key, InternalResourceResolver resourceResolver)
key
- language key for the requested hyphenation fileresourceResolver
- resource resolver to find the hyphenation filespublic static Hyphenation hyphenate(String lang, String country, InternalResourceResolver resourceResolver, Map hyphPatNames, String word, int leftMin, int rightMin, FOUserAgent foUserAgent)
Copyright © 2025 Apache Software Foundation. All rights reserved.