RE: hyphenation in single syllable language?

2004-11-11 Thread Andreas L. Delmelle
 -Original Message-
 From: Hoàng Tuân Nguy?n Ð?ng [mailto:[EMAIL PROTECTED]


Hi,

 i want to know about the capablity to disable spliting a word in fop ?
 hyphenation as i know!!

 i've build a Vietnamese pdf document with fop, but there is some
 problem with the result. Vietnamese is a single syllable language!

Well... I see the document in question uses Vietnamese as well as English. I
suspect you have hyphenation turned on for all of the document (?) So most
likely, FOP is using English hyphenation patterns for the Vietnamese parts
as well?

If that is the case, I see two options:
- activate hyphenation for all of the document, and disable it
(hyphenate=false) for the Vietnamese parts
- activate hyphenation (hyphenate=true) only for the English parts

Hope this helps!

Greetz,

Andreas


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



RE: hyphenation in single syllable language?

2004-11-11 Thread Andreas L. Delmelle
 -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=languageen/xsl:attribute
  xsl:attribute name=hyphenatetrue/xsl:attribute
/xsl:attribute-set
and
xsl:attribute-set name=hyph-Vietnamese
  xsl:attribute name=languagevi/xsl:attribute
  xsl:attribute name=hyphenatefalse/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]



Re: hyphenation in single syllable language?

2004-11-11 Thread Simon Pepping
On Thu, Nov 11, 2004 at 05:13:37PM +0100, Andreas L. Delmelle wrote:
  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!!
 
If you would have no file vi.xml and declare the language of the
vietnamese text parts to be 'vi', those parts should not be
hyphenated.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl


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