Hello all,
Actually I have the opposite problem. I'm too having some long words inside a
table cell, but since my table-columns have a fixed width I would like to
have the content of the cell to be truncated in the case of a long word.
What I did was to use fo:table-cell wrap-option=no-wrap
Filippos Slavik wrote:
Hello all,
Actually I have the opposite problem. I'm too having some long words inside a
table cell, but since my table-columns have a fixed width I would like to
have the content of the cell to be truncated in the case of a long word.
What I did was to use
How would you handle Catering for proportional fonts?
We are using substring(...) with a proportional font,
and it looks bad.
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 16, 2002 8:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Control of long words
Lance Frohman wrote:
How would you handle Catering for proportional fonts?
We are using substring(...) with a proportional font,
and it looks bad.
This is to be expected, because of the unequal character
widths. The character widths (in millipoints) for the
standard PDF fonts are available in the
You could also use this template to split a line at a certain position.
xsl:template name=text_wrapper
xsl:param name=Text/
xsl:choose
xsl:when test=string-length($Text)
xsl:value-of select=substring($Text,1,30)/
!-- xsl:text#xa;/xsl:text br/ --
Roland Neilands wrote:
This is excellent.
NB: I would use a fixed width font for this kind of exercise, eg:
font-family=Courier
otherwise there is several cm variation over 30 12pt char between
average em spacing. Unlikely, but ...
The character width tables are available as XML in the FOP
of long words inside a table cell
So I guess if its a single word like a full package name in
Java where the
package name is wider than the width of the cell, I will
have to force
breaking up the package name with white space. Is this right?
If hyphenation isn't appropriate you can't widen
We are using FOP to publish our documents in PDF. Some of the contents in
the table cell contain long words; eg: full name of java classes where the
length of the package is wider than the cell\column width; The contents of
these long words spills beyond the table cell. Is there a way to wrap the
Use fo:table-cell wrap-option=wrap
Chuck
pkrishnaswami wrote:
We are using FOP to publish our documents in PDF. Some of the contents in
the table cell contain long words; eg: full name of java classes where the
length of the package is wider than the cell\column width; The contents of
these long
Use fo:table-cell wrap-option=wrap
Thanks for the response; I tried this option but I did not
see a difference;
the text continues to over-flow the table cell width.
I saw this when testing too. Any whitespace would cause the cell contents to
wrap though. You could search the examples and/or
10 matches
Mail list logo