Hi, attached is a sample fo file and a pdf. The pdf is generated using fop 1.0 and the hyph patterns 2.0 (binary packages, sourceforge displays it as the newest download…).
As you can see the fo file has two blocks with identical content, one has hyphenation turned off, the other has it turned on. Now the pdf output is fine for the block without hyphenation (the content after "---"*infinity) but if I run it through hyphenation (the first block) it's completely broken (Especially compare the lines with linebreaks, eg the last three lines). I tried everything but I fail to find the error, any hints for me? Thx in advance, Florian Apolloner
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4-portrait-1" page-height="29.7cm" page-width="21.0cm" margin="1cm"> <fo:region-body margin-top="1cm"/> <fo:region-before region-name="kopf"/> </fo:simple-page-master> <fo:simple-page-master master-name="A4-portrait-all" page-height="29.7cm" page-width="21.0cm" margin="1cm"> <fo:region-body margin-top="2cm"/> <fo:region-before region-name="folgekopf"/> </fo:simple-page-master> <fo:page-sequence-master master-name="A4-portrait"> <fo:single-page-master-reference master-reference="A4-portrait-1"/> <fo:repeatable-page-master-reference master-reference="A4-portrait-all"/> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4-portrait" initial-page-number="1" id="master-page-sequence" force-page-count="no-force"> <fo:flow flow-name="xsl-region-body" font-size="12"> <fo:block xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bap="http://bap.at/XSL/" hyphenate="true" language="de" hyphenation-push-character-count="2" hyphenation-remain-character-count="2" linefeed-treatment="preserve" text-align="justify">Was macht <fo:inline text-decoration="underline"><fo:inline font-style="italic"><fo:inline font-weight="bold">fop-hyph</fo:inline> denn</fo:inline> <fo:inline background-color="#dbdbdb">schon</fo:inline> </fo:inline> <fo:inline background-color="#dbdbdb">wieder</fo:inline> putt. und eins und zwei und drei und vier und fünf und sechs und sieben und acht... neue zeile dritte zeile</fo:block><fo:block>----------------------------</fo:block> <fo:block xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bap="http://bap.at/XSL/" linefeed-treatment="preserve" text-align="justify">Was macht <fo:inline text-decoration="underline"><fo:inline font-style="italic"><fo:inline font-weight="bold">fop-hyph</fo:inline> denn</fo:inline> <fo:inline background-color="#dbdbdb">schon</fo:inline> </fo:inline> <fo:inline background-color="#dbdbdb">wieder</fo:inline> putt. und eins und zwei und drei und vier und fünf und sechs und sieben und acht... neue zeile dritte zeile</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
test.pdf
Description: Adobe PDF document
signature.asc
Description: OpenPGP digital signature
