From 44d5c5697c33c5bf6571b8efb32f0050b04a9151 Mon Sep 17 00:00:00 2001
From: Joerg Pietschmann FOP uses Liang's hyphenation algorithm, well known from TeX. It needs
- language specific pattern and other data for operation.
Because of licensing issues (and for
convenience), all hyphenation patterns for FOP are made available through
the
+ In order to get words hyphenated, hyphenation has to be
+ enabled explicitely (set property hyphenation="true") and a
+ language has to be defined (e.g. language="en"). Optionally, a
+ country can be specified (e.g. country="GB").
+
+ If hyphenation is requested, at first a serialized instance
+ containing precompiled hyphenation patterns is looked up in
+ the classpath. If only a language is specified, a ressource
+ named
+ If no precompiled patterns are found, FOP tries to load raw
+ patterns from the an XML file name
+
+ If you think hyphenation is enabled but words aren't
+ hyphenated, check whether FOP finds the relevant hyphenation
+ patterns:
+
+ If hyphenation works in general, but specific words aren't
+ hyphenated, or aren't hyphenated as expected, you may have one
+ of the following problems:
+ Many of the hyphenation files distributed with TeX and its offspring are
diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml
index f9f5c6c0d..4c5dd8a78 100644
--- a/src/documentation/content/xdocs/faq.xml
+++ b/src/documentation/content/xdocs/faq.xml
@@ -194,7 +194,7 @@
If you are running FOP from the command line:hyph/<language>.hyp
is loaded. If both
+ language and country are specified, the ressource
+ hyph/<language>_<country>.hyp
is looked up,
+ and if this fails, the loader looks also for
+ hyph/<language>.hyp
.
+ /hyph/<language>.xml
respective
+ /hyph/<language>_<country>.xml
. The /hyph
+ prefix is hardcoded and can't be configured. Note that this
+ usually constitues an absolute file path. FOP can't load raw
+ patterns from other sources than files.
+
+
+
+
+
fop.bat
or fop.sh
command file from the FOP
+ Use the fop.bat
, fop
or fop.sh
command file from the FOP
distribution. If you have a FOP version older than 0.20.5,
ensure the directory where FOP and these files have been
installed is the current working directory.
@@ -212,6 +212,11 @@
href="0.20.5/servlets.html#servlet-engine">servlet engines
for further hints.
+ If you downloaded the source distribution, or a snapshop + from the repository, remember you have to build the FOP jars + first. +
- If you use XSLT, problems in your style sheet and in your source XML - also can produce a NullPointerException. Run the transformation - separately to check for this, usually you'll get a detailed error - message from the XSLT processor. + If you use XSLT, problems in your style sheet and in your + source XML also can produce a NullPointerException. Run the transformation + separately to check for this, usually you'll get a + detailed error message from the XSLT processor.
If you turn on debugging with the "-d
" option you may be able to
@@ -371,8 +377,9 @@
resolving relative URLs pointing to font metric files.
- Try also setting the fontBaseDir configuration. (FIXME: add - link to congfiguration page) + Try also setting the fontBaseDir + configuration.
Other possibilities:
The concept is called “blind table”. The table is used for - pure layout reasons and not obvious in the output. + pure layout reasons and is not obvious in the output.
An example of an image and the image caption to be kept together: @@ -528,7 +536,7 @@ Check the following:
Also, the fo:table-with-caption
element is not implemented, tables
within such an element are dropped too. FOP generates an error
- message for this problem. The DocBook style sheets generate
+ message for this problem. Older DocBook style sheets generate
fo:table-with-caption
elements, so watch out.