Re: AW: Forced Word Wrap

2007-07-19 Thread Andreas L Delmelle

On Jul 19, 2007, at 14:02, Matthias Müller wrote:

Hi Mathias


Hi Andreas,

the mysterious thing is: it worked with fop 0.20.5
i'm just updating the fop version, since i thought there are more  
possibilities ;-)


FOP 0.93 should support Soft-Hyphens and Zero-Width Spaces (although,  
could be that SHY was added shortly /after/ the 0.93 release; I don't  
remember exactly)


In any case, if you can insert ZWSP or SHY, then FOP 0.93's Unicode  
compliant line-breaking should automatically handle your case. Not  
the most convenient solution if you know there's a FO property that  
does not require pre-processing the text in XSLT, but anyway...



Cheers

Andreas




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



Re: AW: Forced Word Wrap

2007-07-19 Thread Abel Braaksma (online)

 I replace the comma with the zero width space:
 xsl:value-of select=replace('1,2,3,4,5,6', ',' ,'#x200B;')/

 my result is - as expected:
 fo:block wrap-option=wrap hyphenate=true
 language=de1,​2,​3,​4,​5,​6/fo:block


No, this is not as expected. If you cut and paste your value-of
correctly, and if you are using XSLT 2.0 (1.0 would throw an error),
then your output would not include the comma's anymore.


 On the pdf output the line is wrapped, but the numbers are on top of
 each other.

Sounds like a bug to me. Can you provide a (smallest possible)
snippet of working XSL-FO and explain in natural language where the
ZWSP are supposed to be (the mailer messes them up) then we can test
it here as well.

Can you try it with normal spaces (U+20) to see what it looks like
then?

Cheers,
-- Abel


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