You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by pedro <pe...@libero.it> on 2011/03/15 17:00:51 UTC

Wrap text

Hi all
    i have a document with some column.One of this column have a string that
is to large for the column and then override the text of the next column.How
i can wrap the text?


[code]
<fo:table-cell border-right-color="black" border-right-style="solid"
								border-right-width="0.5pt">
								<fo:block font-family="Times" font-size="10pt" text-align="left"
									margin-left="2mm" margin-right="2mm" white-space-collapse="false"
linefeed-treatment="preserve" wrap-option="true">
									<xsl:value-of disable-output-escaping="yes"
										select="./descrizione"/>
								</fo:block>
							</fo:table-cell>
[/code]
-- 
View this message in context: http://old.nabble.com/Wrap-text-tp31153149p31153149.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Wrap text

Posted by Andreas Delmelle <an...@telenet.be>.
On 15 Mar 2011, at 17:00, pedro wrote:

Hi Pedro

>    i have a document with some column.One of this column have a string that
> is to large for the column and then override the text of the next column.How
> i can wrap the text?

FOP implements Unicode UAX#14 line-breaking, which does not allow a break between regular alphabetic characters.
The suggested workaround is to inject ZWSP (U+200B) into the text, either at carefully chosen positions or between every two characters.
The main message is to give FOP a chance to break the content, without violating Unicode line-breaking rules.

Hope this helps!

Regards,

Andreas
---
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org