Thank you very much for a great explanation. We figured out how to do it (we insert a line feed character ($C(10)), and the instruction in ZEN (we use ZEN to create pdfs) to break the line on line feed. That overwrites the rules below, and allows us to break on any character, depending on the width of the column.
Thanks again, Elena From: Robert Meyer [mailto:rme...@hotmail.co.uk] Sent: Wednesday, August 07, 2013 5:23 AM To: fop-users@xmlgraphics.apache.org Subject: RE: breaking line rules Hi Elena, Disabling hyphenation will prevent words from being split. By the sounds of it though from your original message, you also want to break before punctuation marks? e.g. [ Ideally ] <-------------- Column Width ---------------> test . . . . . test , , , , , , test . . . . . test , , , , , test . . . . . [ What will happen ] <-------------- Column Width ---------------> test . . . . . test , , , , , , test . . . . . test , , , , , test . . . . . The above happens because the breaking algorithm checks a pair table against what it can and can't break against. Having a space and a punctuation mark is unbreakable therefore it looks for the next best break point and uses that one. There are two possible solutions which are either to modify the pair table (LineBreakUtils.java) called from LineBreakStatus.java(nextChar:84) in order to change how it treats certain pairs of characters. This would require a bit of debugging to see which values needs to be changed, though it's quite involved and not really recommended. Alternatively you can use force breaks by inserting 
 characters at certain points in the FO. If I have misunderstood, it may be best if you provide a small example of the issue so we can have a clearer idea of what you are trying to do. Regards, Robert Meyer ________________________________ From: efialk...@bioreference.com To: fop-users@xmlgraphics.apache.org Subject: RE: breaking line rules Date: Tue, 6 Aug 2013 12:57:47 +0000 Thank you so much for your response. Does Hyphenate restricts only hyphen? Is it possible to break on width only? Is it possible to break on space only? Thanks From: Pascal Sancho [mailto:psancho....@gmail.com] Sent: Tuesday, August 06, 2013 5:46 AM To: fop-users@xmlgraphics.apache.org Subject: Re: breaking line rules Hi, you just need to set the property "hyphenate" to "false". http://www.w3.org/TR/xsl/#hyphenate 2013/8/5 Elena Fialkova <efialk...@bioreference.com<mailto:efialk...@bioreference.com>> How do you format a column so that it breaks ONLY on space. Currently, it seems to have many rules to break a text in a column. For example, it breaks on space, but it wouldn't start a new line of text with a period or comma. We want it always to break on space and only on space, no matter what. -- pascal The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.