xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Meyer <rme...@hotmail.co.uk>
Subject RE: breaking line rules
Date Wed, 07 Aug 2013 09:23:08 GMT
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 &#x0A; 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.


Robert Meyer

From: efialkova@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?

From: Pascal Sancho [mailto:psancho.asf@gmail.com]

Sent: Tuesday, August 06, 2013 5:46 AM

To: fop-users@xmlgraphics.apache.org

Subject: Re: breaking line rules



you just need to set the property "hyphenate" to "false".



2013/8/5 Elena Fialkova <efialkova@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.



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.
View raw message