Re: Control of long words inside a table cell

2002-06-16 Thread Filippos Slavik
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

Re: Control of long words inside a table cell

2002-06-16 Thread J.Pietschmann
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

RE: Control of long words inside a table cell

2002-06-16 Thread Lance Frohman
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

Re: Control of long words inside a table cell

2002-06-16 Thread J.Pietschmann
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

Re: Control of long words inside a table cell

2002-06-13 Thread Mathy V Arumugam
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/ --

Re: Control of long words inside a table cell

2002-06-13 Thread J.Pietschmann
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

RE: Control of long words inside a table cell

2002-06-12 Thread pkrishnaswami
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

Re: Control of long words inside a table cell

2002-06-11 Thread Chuck Paussa
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

RE: Control of long words inside a table cell

2002-06-11 Thread Roland Neilands
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