Dear Wiki user, You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.
The following page has been changed by JeremiasMaerki: http://wiki.apache.org/xmlgraphics-fop/LayoutExtensions The comment on the change is: Fixed URLs ------------------------------------------------------------------------------ In order to satisfy keep condition and avoid the creation of widows and orphans, page breaking algorithms often create partially-filled pages. The height of the empty area can vary from less than one line-height to several line-heights. - http://cvs.apache.org/~lfurini/wiki/widow.png + http://people.apache.org/~lfurini/wiki/widow.png (empty area created to avoid a widow) - http://cvs.apache.org/~lfurini/wiki/keep.png + http://people.apache.org/~lfurini/wiki/keep.png (empty area created to satisfy a keep between titles and the first paragraph) At the moment, the existing properties does not allow the user to control these empty areas. @@ -26, +26 @@ At the moment there isn't a specific property which could be use to espress this additional request: the only way to achieve this alignment is using space-before and space-after so that the overall height of each object is a multiple of the normal line height. This can be quite tricky, because the needed spaces depends on the object height (which could be unknown) and its position in the page. - http://cvs.apache.org/~lfurini/wiki/bpunit.png + http://people.apache.org/~lfurini/wiki/bpunit.png = Proposed extensions = @@ -124, +124 @@ This is a long xml file: it contains 19 chapters made of a title and many paragraphs of text. - http://cvs.apache.org/~lfurini/wiki/book.xml + http://people.apache.org/~lfurini/wiki/book.xml This is a simple stylesheet using only standard properties: each paragraph creates a {{{fo:block}}} with {{{orphans="2" widows="2"}}}; there are no {{{keep-*}}} condition but the one between a title and the first paragraph; the {{{region-body}}} can contain 32 normal lines of text. The {{{region-body}}} has {{{background-color="lightgrey"}}}, while blocks have {{{background-color="white"}}}, so empty areas are coloured. - http://cvs.apache.org/~lfurini/wiki/book2fo.standard.xsl + http://people.apache.org/~lfurini/wiki/book2fo.standard.xsl The pdf output is this: - http://cvs.apache.org/~lfurini/wiki/book.standard.pdf + http://people.apache.org/~lfurini/wiki/book.standard.pdf There are 185 pages. If we don't count the 11 pages empty because of break conditions, and the last page of each chapter (that could rightly be partially empty), the remaining 154 pages should be filled with lines: 61 (40%) have an empty area. This is the same stylesheet plus the extensions {{{display-align="fill" fill-by-modifying="margins; spacing"}}}. - http://cvs.apache.org/~lfurini/wiki/book2fo.extensions.xsl + http://people.apache.org/~lfurini/wiki/book2fo.extensions.xsl And this is the pdf output: - http://cvs.apache.org/~lfurini/wiki/book.extensions.pdf + http://people.apache.org/~lfurini/wiki/book.extensions.pdf There are 183 page, and 10 are empty because of break conditions; there is only 1 page out of 153 with an empty area (because of a bug, I suspect). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
