|
Installation of FOP XML Hyphenation Patterns
Installation of FOP XML Hyphenation Patterns
The XML hyphenation patterns must be compiled by FOP before they can be used. Proceed as follows:
- Place the XML hyphenation patterns in the directory {fop-dir}/hyph,
- or place them in a directory of your choice and set the Ant variable hyph.dir to point to that directory (in build-local.properties),
Then run Ant with build target hyphenation-jar. This will create a JAR containing the compiled patterns in {fop-dir}/build that will be added to the classpath on the next run. When FOP is built from scratch, and there are pattern source file(s) present in {fop-dir}/hyph, this JAR will automatically be created from the supplied pattern(s) by the build target package.
Note that the patterns must be recompiled when you update the FOP code. More precisely, when the HyphenationTree class is modified, the compiled patterns can no longer be used, and the patterns must be recompiled.
See also the hyphenation pages for FOP-stable or FOP-0.20.5 or of FOP's web site.