word wrapping
Hi fellow fopsters Im using fop to create a table in a pdf report on the fly. Space is at a premium and one of the values, an id, is of variable length. Other than using some nasty XSLT string functions to insert spaces into the id string when it is too long for the table cell is there a way to prevent it from overlapping the other table cells with XSL:FO and FOP? I fear not but if anyone has any cool ideas about how to approach this problem Id love to hear them. Cheers. Jimmy. -- Jimmy Dixon, Perfiliate Technologies email : [EMAIL PROTECTED] phone : +44 (0)191 241 6500 Registered Office: Perfiliate Technologies Limited 7-15 Pink Lane, Newcastle upon Tyne. NE1 5DW Registered No. 3783384 in the UK Telephone +44 (0)191 241 6500 Facsimile +44 (0)191 241 9302 www.perfiliate.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. We check all emails for viruses, but please note that we do not accept liability for any viruses which may be transmitted in or with this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: word wrapping
On Feb 28, 2006, at 15:51, Jimmy Dixon wrote: Hi fellow fopsters Im using fop to create a table in a pdf report on the fly. Space is at a premium and one of the values, an id, is of variable length. Other than using some nasty XSLT string functions to insert spaces into the id string when it is too long for the table cell is there a way to prevent it from overlapping the other table cells with XSL:FO and FOP? I fear not but if anyone has any cool ideas about how to approach this problem Id love to hear them. OK, I'm not sure if this'll work (= untested), but try anyway: your_extremely_long_identifier_here_... Both those properties are marked as 'implemented' on our compliance page. If that page doesn't lie, then the above should do the trick, I guess... HTH! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: word wrapping
I am trying to use this to handle my table cell text overflows, but it does not seem to work in my implementation. I am using fop 0.91 (not trunk) and I get many warnings of the following type: 12:36:09,657 WARN [BreakingAlgorithm] Line 1 of a paragraph overflows the available area. (fo:block, "Very Long Text Here") My code basically looks like: Tell me I am doing something wrong. Thanks, Lou Andreas L Delmelle <[EMAIL PROTECTED]> wrote on 02/28/2006 12:24:33: > On Feb 28, 2006, at 15:51, Jimmy Dixon wrote: > > > Hi fellow fopsters > > > > Im using fop to create a table in a pdf report on the fly. Space is > > at a premium and one of the values, an id, is of variable length. > > Other than using some nasty XSLT string functions to insert spaces > > into the id string when it is too long for the table cell is there > > a way to prevent it from overlapping the other table cells with > > XSL:FO and FOP? I fear not but if anyone has any cool ideas about > > how to approach this problem Id love to hear them. > > OK, I'm not sure if this'll work (= untested), but try anyway: > > > > your_extremely_long_identifier_here_... > > > > Both those properties are marked as 'implemented' on our compliance > page. If that page doesn't lie, then the above should do the trick, I > guess... > > HTH! > > Cheers, > > Andreas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: word wrapping
On Mar 14, 2006, at 18:46, [EMAIL PROTECTED] wrote: Hi Lou, I am trying to use this to handle my table cell text overflows, but it does not seem to work in my implementation. I am using fop 0.91 (not trunk) and I get many warnings of the following type: 12:36:09,657 WARN [BreakingAlgorithm] Line 1 of a paragraph overflows the available area. (fo:block, "Very Long Text Here") Seems like either this wasn't yet in the codebase at the moment the 0.91 distro was packaged, or there are some other properties influencing the picture here... Anyway, I tried it with FOP Trunk, and received no error messages, but... overflow="hidden" does not work --seems like either our compliance page needs to be updated, or this feature was implemented at some point, but has been broken again :( Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: word wrapping
Andreas L Delmelle wrote: but... overflow="hidden" does not work --seems like either our compliance page needs to be updated, or this feature was implemented at some point, but has been broken again :( AFAIK there is no functionality for overflow='hidden' yet. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: word wrapping
If the text overflows into an adjacent table-column a solution would be to set an explicit background-color on that column or on the adjacent cells. Cheers, Daniel
Re: word wrapping
I guess I should add something to this. The overflow property is one of those oddities in the spec IMO. If you strictly follow the listing of applicable properties on each element, the overflow does not apply to fo:block or fo:table-cell. That contradicts a little with the "Applies to: block-level and replaced elements" comment coming from CSS. Note that this comment has been removed in XSL 1.1. The overflow property IS implemented for block-container, region-*, external-graphic and instream-foreign-object, i.e. for all viewport areas. To clip the contents of a table-cell, you currently need to place a block-container in a table-cell and set its extents to 100% each and overflow="hidden" there. On 14.03.2006 23:44:44 J.Pietschmann wrote: > Andreas L Delmelle wrote: > > but... overflow="hidden" does not work --seems like either our > > compliance page needs to be updated, or this feature was implemented at > > some point, but has been broken again :( > > > AFAIK there is no functionality for overflow='hidden' yet. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]