From: William Victor Mote Date: Tue, 15 Jul 2003 01:12:33 +0000 (+0000) Subject: 1. add list of supported country/language codes for hyphenation X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1280 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1a5f28111d7d87025b43e25cff4c985410b0918;p=xmlgraphics-fop.git 1. add list of supported country/language codes for hyphenation 2. update FAQ to point to the new hyphenation page git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196712 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index 7064e3417..75cad9b9f 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -531,21 +531,10 @@ Any easy way to check this is to cut&paste the source URL from the fo:extern Hyphenation does not work. -

- 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 - Configuration page. -

-

- Set the language (on fo:page-sequence, fo:block or fo:character): -

+

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):

]]> -

- Enable hyphenation on a block: -

+

See Standard Hyphenation Support for a list of supported language and country codes, and Custom Hyphenation Support for instructions on adding support for other languages and countries.

+

Explicitly enable hyphenation for an appropriate XSL-FO element (fo:block, fo:character):

]]>
diff --git a/src/documentation/content/xdocs/hyphenation.xml b/src/documentation/content/xdocs/hyphenation.xml index 92f77904e..d8dc1c0e2 100644 --- a/src/documentation/content/xdocs/hyphenation.xml +++ b/src/documentation/content/xdocs/hyphenation.xml @@ -6,26 +6,69 @@ FOP: Hyphenation -
+
+ Standard Hyphenation Support +

FOP includes hyphenation support for the following languages:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
language_COUNTRY codeDescription
enEnglish
esSpanish
fiFinnish
huHungarian
itItalian
plPolish
ptPortuguese
ruRussian
+
+
+ Custom Hyphenation Support +
Introduction

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 licensing issues, 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.

+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.

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 FOP User mailing list.
-
+
License Issues

Many of the hyphenation files distributed with TeX and its offspring are licenced under the LaTeX Project Public License (LPPL), 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.

The user is responsible to settle license issues for hyphenation pattern files that are obtained from non-Apache sources.
-
- Sources of Hyphenation Pattern Files +
+ Sources of Custom Hyphenation Pattern Files

The most important source of hyphenation pattern files is the CTAN TeX Archive.

-
+
Installing Custom Hyphenation Patterns

To install custom a custom hyphenation pattern for use with FOP:

    @@ -47,5 +90,6 @@ NOTE: The ISO 639/ISO 3166 convention is that language names are written in lowe
+