xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beugnier, Ronny (IP&Science)" <ronny.beugn...@Clarivate.com>
Subject RE: Custom line breaking algorithm
Date Wed, 04 Oct 2017 12:44:29 GMT
Thanks for the answer.

But using a hypenation list would be very hard I think since we do not know the language the
document contains.

Can you elaborate on how you would approach this ?


From: Simon Steiner [mailto:simonsteiner1984@gmail.com]
Sent: dinsdag, oktober 03, 2017 20:41
To: fop-dev@xmlgraphics.apache.org
Subject: RE: Custom line breaking algorithm


Why not make your own hyphenation word list.


From: Beugnier, Ronny (IP&Science) [mailto:ronny.beugnier@Clarivate.com]
Sent: 03 October 2017 19:24
To: fop-dev@xmlgraphics.apache.org<mailto:fop-dev@xmlgraphics.apache.org>
Subject: Custom line breaking algorithm


We are working on an upgrade to fop 2.2 from a very old version.

Unfortunately we ran into the issue were text is overflowing in table columns as in the attachment.

In the older version of fop that we used we have the following algorithm:

-          If the word is too long to fit on the line, move it to the next line

-          If the word is too large to fit into the column break the word

We cannot make use of hyphenation because multiple languages are combined in one pdf and we
are not aware of the language.

The only way we think we can implement this is to adjust the line breaking Knuth algorithm
in the implementation.

Would this be the right approach ? Has any one done this before ? Can someone provide some
guidance on this ?

Many thanks in advance,

Kind Regards,


View raw message