You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Burkhardt Renz <Bu...@compuserve.com> on 2000/01/28 13:53:51 UTC

Testing fop 1

Testing fop

Hi,
I found the follwing problem while using and discovering fop. 
I hope with this report I can help to improve fop.

BurkhardtRenz@compuserve.com

Problem Report 1

Subject:
Line-breaking

Problem:
Consider a word containing a letter with character code > 127, for example
a
german umlaut.

When this word is the last word in a line, only the part follwing the
umlaut is taken
to the next line.

Work around:
Not known.
I consider this the most serious bug in fop.

Analysis:
Can't really find the bug.
May be there is a wrong calculation of wordStart in
fop.layout.linearea.java.


Example:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="4.5cm" margin-left="3cm"
margin-bottom="2.5cm" margin-top="3cm" width="21cm" height="29.7cm"
page-master-name="first">
<fo:region-body margin-top="42pt"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="4.5cm" margin-left="3cm"
margin-bottom="2.5cm" margin-top="3cm" width="21cm" height="29.7cm"
page-master-name="rest">
<fo:region-body margin-top="28pt"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence>
<fo:sequence-specification>
<fo:sequence-specifier-repeating page-master-repeating="rest"
page-master-first="first"/>
</fo:sequence-specification>
<fo:flow flow-name="xsl-body">
<fo:block text-align="start" line-height="16pt" font-family="serif"
font-weight="normal" font-style="normal" font-size="11pt">
Example line-breaking with german umlaut: xxxxxxxxxxxxxxxxxxxxxx
m&#246;chten
</fo:block>
<fo:block text-align="start" line-height="16pt" font-family="serif"
font-weight="normal" font-style="normal" font-size="11pt">
Example line-breaking with german umlaut: xxxxxxxxxxxxxxxxxxxxxxxx
m&#246;chten
</fo:block>
<fo:block text-align="start" line-height="16pt" font-family="serif"
font-weight="normal" font-style="normal" font-size="11pt">
Example line-breaking with german umlaut: xxxxxxxxxxxxxxxxxxxxxxxx xxxx
m&#246;chten
</fo:block>
<fo:block text-align="start" line-height="16pt" font-family="serif"
font-weight="normal" font-style="normal" font-size="11pt">
Example line-breaking with german umlaut: xxxxxxxxxxxxxxxxxxxxxxxx xxxxxx
m&#246;chten
</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root>