<faq id="hyphenation-fails">
<question>Hyphenation does not work.</question>
<answer>
- <p>
- Set the language attribute somewhere and explicitly enable hyphenation.
- Check whether you use a language for which hyphenation is supported.
- Supported languages can be deduced from the files in the {fop-dir}/src/hyph
- directory of the FOP source distribution. If you want to use a language
- FOP currently doesn't hyphenate, please see the
- <link href="configuration.html#hyphenation">Configuration page</link>.
- </p>
- <p>
- Set the language (on fo:page-sequence, fo:block or fo:character):
- </p>
+ <p>Make sure you have set the language and/or country attributes for an appropriate XSL-FO element (fo:page-sequence, fo:block or fo:character):</p>
<source><![CDATA[<fo:page-sequence language="fi">]]></source>
- <p>
- Enable hyphenation on a block:
- </p>
+ <p>See <link href="hyphenation.html#std">Standard Hyphenation Support</link> for a list of supported language and country codes, and <link href="hyphenation.html#custom">Custom Hyphenation Support</link> for instructions on adding support for other languages and countries.</p>
+ <p>Explicitly enable hyphenation for an appropriate XSL-FO element (fo:block, fo:character):</p>
<source><![CDATA[<fo:block hyphenate="true">]]></source>
</answer>
</faq>
<title>FOP: Hyphenation</title>
</header>
<body>
- <section id="intro">
+ <section id="std">
+ <title>Standard Hyphenation Support</title>
+ <p>FOP includes hyphenation support for the following languages:</p>
+ <table>
+ <tr>
+ <th>language_COUNTRY code</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>en</td>
+ <td>English</td>
+ </tr>
+ <tr>
+ <td>es</td>
+ <td>Spanish</td>
+ </tr>
+ <tr>
+ <td>fi</td>
+ <td>Finnish</td>
+ </tr>
+ <tr>
+ <td>hu</td>
+ <td>Hungarian</td>
+ </tr>
+ <tr>
+ <td>it</td>
+ <td>Italian</td>
+ </tr>
+ <tr>
+ <td>pl</td>
+ <td>Polish</td>
+ </tr>
+ <tr>
+ <td>pt</td>
+ <td>Portuguese</td>
+ </tr>
+ <tr>
+ <td>ru</td>
+ <td>Russian</td>
+ </tr>
+ </table>
+ </section>
+ <section id="custom">
+ <title>Custom Hyphenation Support</title>
+ <section id="custom-intro">
<title>Introduction</title>
<p>FOP uses an XML-based TeX-like hyphenation pattern scheme.
-Hyphenation pattern files for many languages are included in the standard FOP distribution.
However, because of <link href="#license-issues">licensing issues</link>, there are currently some significant holes in FOP's hyphenation support.
-The information on this page is intended to help you work around these limitations, if possible, add support for other languages, or enhance FOP's support of current languages.</p>
+The information in this section is intended to help you work around these limitations, if possible, add support for other languages, or enhance FOP's support of current languages.</p>
<note>If you have access to hyphenation patterns that are licensed in an Apache-compatible way, or if you have made improvements to an existing FOP hyphenation pattern, or if you have created one from scratch, please consider contributing these to FOP so that they can benefit other FOP users as well. Please inquire on the <link href="maillist.html#fop-user">FOP User mailing list</link>.</note>
</section>
- <section id="license-issues">
+ <section id="custom-license-issues">
<title>License Issues</title>
<p>Many of the hyphenation files distributed with TeX and its offspring are licenced under the <fork href="http://www.latex-project.org/lppl.html">LaTeX Project Public License (LPPL)</fork>, which prevents them from being distributed with Apache software.
Although Apache FOP cannot redistribute hyphenation pattern files that do not conform with its license scheme, that does not necessarily prevent users from using such hyphenation patterns with FOP.
However, it does place on the user the responsibility for determining whether the user can rightly use such hyphenation patterns under the hyphenation pattern license.</p>
<warning>The user is responsible to settle license issues for hyphenation pattern files that are obtained from non-Apache sources.</warning>
</section>
- <section id="sources">
- <title>Sources of Hyphenation Pattern Files</title>
+ <section id="custom-sources">
+ <title>Sources of Custom Hyphenation Pattern Files</title>
<p>The most important source of hyphenation pattern files is the <fork href="http://www.ctan.org/tex-archive/language/hyphenation/">CTAN TeX Archive</fork>.</p>
</section>
- <section id="install">
+ <section id="custom-install">
<title>Installing Custom Hyphenation Patterns</title>
<p>To install custom a custom hyphenation pattern for use with FOP:</p>
<ol>
</li>
</ol>
</section>
+ </section>
</body>
</document>