Re: [xep-support] Hyphenation issues with various languages

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Mon Aug 20 2007 - 15:06:04 PDT

Hi Hua,

> (2) Do we need to do something in FO file?

Yes, and this is the required thing you should to do:

set the XSL-FO 'language' attribute on a block or an inline with text.

You should also turn on the 'hyphenate' property, of course
(hyphenate="true")

> (1) How does the values in @codes work with XEP processor?

The 'language' attribute you have set will be find within @codes.
The matching @codes will give you the hyphenation file for the text
(i.e. a specific hyphenation for the text).

<fo:block hyphenate="true" language="ru">Some long text here<fo:block>
or
<fo:block hyphenate="true" language="rus">Some long text here<fo:block>

will give you the Russian hyphenation.

<fo:block hyphenate="true" language="fr">Some long text here<fo:block>
or
<fo:block hyphenate="true" language="fra">Some long text here<fo:block>

will give you the French hyphenation.

> It seems to us that hyphenation defaults to English behavior

Yes.
The default value of 'none' for XSL-FO @language attribute will
match the pattern for US English hyphenation:

<language name="English (US)" codes="none en-US eng-US">
  <hyphenation pattern="hyphen.tex" />
</language>

> Could you take a look at our xep.xml configuration file (attached)
> and see if they are properly set up?

The xep.xml is configured properly.

Just set the appropriate language somewhere within an XSL-FO file.

The @language attribute can be set on the fo:root element and will
affect on all text.

Best regards,
  Alexei Gagarinov
RenderX.

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon Aug 20 15:41:33 2007

This archive was generated by hypermail 2.1.8 : Mon Aug 20 2007 - 15:41:34 PDT