> -----Original Message-----
> From: Hoang Tuan Nguy?n D?ng [mailto:[EMAIL PROTECTED]
>

Hi,

<snip />
> i've try your suggest but there is no change :(.
> fist at all, i've change my locale in docbook source from 'vi' to
> 'en', the hyphenation is work well, my word isn't split !
>
> But when i try to copy en.xml to vi.xml and define hyphenation-dir in
> userconfig.xml; when fop-ing, there is no error messages about
> building hyphenation tree for language vi; but the word is split in
> PDF document !!!!

I'm a bit confused here... So, you are 'copying' the XML containing the
English hyphenation patterns to a new file 'vi.xml'? :-/
As I see it, this will have exactly the effect I described as 'using English
hyph patterns for Vietnamese text'. Unless the 'vi.xml' is made to contain
information specifically about hyphenation in Vietnamese, it's always going
to lead to undesired results.

>
> When i add those lines:
> <xsl:attribute-set name='hypenateText'>
>    <xsl:attribute name='hyphenate'>false</xsl:attribute>
>    <xsl:attribute name='language'>vi</xsl:attribute>
> </xsl:attribute-set>
> in my xsl stylesheet ang generate fo file with this; nothing change!!

All depends on where this attribute-set is used. If this set is in fact
being used on the Vietnamese parts, and hyphenation is still not disabled
for those blocks of text, this would be a bug.

If you were using two attribute-sets:

<xsl:attribute-set name="hyph-English">
  <xsl:attribute name="language">en</xsl:attribute>
  <xsl:attribute name="hyphenate">true</xsl:attribute>
</xsl:attribute-set>
and
<xsl:attribute-set name="hyph-Vietnamese">
  <xsl:attribute name="language">vi</xsl:attribute>
  <xsl:attribute name="hyphenate">false</xsl:attribute>
</xsl:attribute-set>

The XSL should look like:

<fo:block use-attribute-sets="hyph-English">
  <!-- For English Text -->
</fo:block>

<fo:block use-attribute-sets="hyph-Vietnamese">
  <!-- For Vietnamese Text -->
</fo:block>

IIC, it would even be sufficient to only use the first set, and for the
Vietnamese parts, just omit the hyphenation properties.

Hope this helps!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to