vmote 2003/07/14 18:12:33
Modified: src/documentation/content/xdocs faq.xml hyphenation.xml
Log:
1. add list of supported country/language codes for hyphenation
2. update FAQ to point to the new hyphenation page
Revision Changes Path
1.37 +3 -14 xml-fop/src/documentation/content/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/faq.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- faq.xml 11 Jul 2003 19:01:54 -0000 1.36
+++ faq.xml 15 Jul 2003 01:12:33 -0000 1.37
@@ -531,21 +531,10 @@
<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>
1.3 +51 -7 xml-fop/src/documentation/content/xdocs/hyphenation.xml
Index: hyphenation.xml
===================================================================
RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/hyphenation.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- hyphenation.xml 10 Jul 2003 19:57:20 -0000 1.2
+++ hyphenation.xml 15 Jul 2003 01:12:33 -0000 1.3
@@ -6,26 +6,69 @@
<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>
@@ -47,5 +90,6 @@
</li>
</ol>
</section>
+ </section>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]