On Friday 26 August 2011 11:46:56 Chris Bowditch wrote: > On 25/08/2011 22:25, Samuel Penn wrote: > > I'm having some issues with the placement of images with > > external-graphic. The graphic (a jpeg) is being inserted into a text > > flow in one column of a two column page layout (i.e., it's not meant to > > spread across multiple text columns). What happens, is that the correct > > amount of whitespace is reserved for the image, but the bottom of the > > image is aligned with the top of where it should be, so the image > > overwrites the text paragraph immediately above it. > > > > This is happening with several of the inserted images (the one that > > works is quite small). > > > > I'm using FOP 0.95 on Linux (Ubuntu 11.4). On a previous computer, using > > theoretically the same stylesheets and FOP version, the images seemed to > > be placed correctly, so I'm not sure what's changed. > > Have you tested your XSL-FO on FOP v1.0? There have been a lot of fixes > between 1.0 and 0.95, some of them relates to multi-column layout.
Apologies, I lied. I had downloaded 1.0 last week to test against to see if that fixed things, and had forgotten that I'd changed my scripts to use the fop-1.0 install rather than the system default. So yes, I'm seeing the problem on 1.0. Whilst putting together a simple example of the problem, I've discovered that it works fine on the first page of each chapter. On the 2nd and subsequent pages (even/odd makes no difference) of a chapter, I see the problem. Each chapter starts on a new page (it's been 10 years since I wrote these stylesheets, so my knowledge of fop is a bit rusty. Chapters seem to begin a new fo:page-sequence/fo:flow). It also doesn't make a difference which column the image is in. > Difficult to tell what could be the problem from a snippet of the FO. > You could try taking out the space-before/after attributes in case that > causes some problems within multi-column layouts. If that still fails on > FOP 1.0, could you send us a trimmed down XSL-FO File that demonstrates > the issue? Attached. It has two images inserted, one of the first page (which shows up fine) and one on the second (which doesn't). Second image is 700x500 pixels, first about 400x300. Thanks. -- Be seeing you, Sam.
<?xml version="1.0"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:yb="http://yagsbook.sourceforge.net/xml"><fo:layout-master-set><fo:simple-page-master master-name="leftPage" page-height="297mm" page-width="210mm" margin-top="10mm" margin-bottom="5mm" margin-left="0mm" margin-right="10mm"><fo:region-body column-count="2" margin-left="20mm" margin-right="10mm" margin-top="11mm" margin-bottom="11mm"/><fo:region-before extent="15mm" region-name="region-before-left"/><fo:region-after extent="10mm" region-name="region-after-left"/><fo:region-start extent="20mm"/><fo:region-end extent="10mm"/></fo:simple-page-master><fo:simple-page-master master-name="rightPage" page-height="297mm" page-width="210mm" margin-top="10mm" margin-bottom="5mm" margin-left="15mm" margin-right="-10mm" padding="0mm"><fo:region-body column-count="2" margin-right="20mm" margin-left="10mm" margin-top="11mm" margin-bottom="11mm"/><fo:region-before extent="15mm" region-name="region-before-right"/><fo:region-after extent="10mm" region-name="region-after-right"/><fo:region-start extent="10mm"/><fo:region-end extent="20mm"/></fo:simple-page-master><fo:simple-page-master master-name="leftPage1" page-height="297mm" page-width="210mm" margin-top="10mm" margin-bottom="5mm" margin-left="0mm" margin-right="10mm"><fo:region-body column-count="1" margin-left="20mm" margin-right="10mm" margin-top="11mm" margin-bottom="11mm"/><fo:region-before extent="15mm" region-name="region-before-left"/><fo:region-after extent="10mm" region-name="region-after-left"/><fo:region-start extent="20mm"/><fo:region-end extent="10mm"/></fo:simple-page-master><fo:simple-page-master master-name="rightPage1" page-height="297mm" page-width="210mm" margin-top="10mm" margin-bottom="5mm" margin-left="15mm" margin-right="-10mm" padding="0mm"><fo:region-body column-count="1" margin-right="20mm" margin-left="10mm" margin-top="11mm" margin-bottom="11mm"/><fo:region-before extent="15mm" region-name="region-before-right"/><fo:region-after extent="10mm" region-name="region-after-right"/><fo:region-start extent="10mm"/><fo:region-end extent="20mm"/></fo:simple-page-master><fo:page-sequence-master master-name="document"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="leftPage" odd-or-even="even"/><fo:conditional-page-master-reference master-reference="rightPage" odd-or-even="odd"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="document1"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="leftPage1" odd-or-even="even"/><fo:conditional-page-master-reference master-reference="rightPage1" odd-or-even="odd"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence master-reference="document"><fo:static-content flow-name="region-before-right"><fo:block font-family="Helvetica" font-size="24pt" text-align="end" font-weight="bold" color="white" background-image="../icons/header-core-right.svg" background-repeat="no-repeat" background-color="orange">Core <fo:page-number/> </fo:block></fo:static-content><fo:static-content flow-name="region-after-right"><fo:block font-family="Times" font-size="12pt" text-align="end" font-weight="bold" font-style="italic" border-before-width="2px" border-before-color="black" border-before-style="solid">Yags (Core ) Samuel Penn (c) 2009</fo:block></fo:static-content><fo:static-content flow-name="region-before-left"><fo:block font-family="Helvetica" font-size="24pt" text-align="start" font-weight="bold" color="white" background-image="../icons/header-core-left.svg" background-repeat="no-repeat" background-position-horizontal="right" background-color="orange"> <fo:page-number/> Core</fo:block></fo:static-content><fo:static-content flow-name="region-after-left"><fo:block font-family="Times" font-size="12pt" text-align="start" font-weight="bold" font-style="italic" border-before-width="2px" border-before-color="black" border-before-style="solid">Yags (Core ) Samuel Penn (c) 2009</fo:block></fo:static-content><fo:flow flow-name="xsl-region-body" text-align="justify"><fo:block font-weight="bold" color="orange" font-size="20pt" font-family="sans-serif" line-height="24pt" space-after="12pt" text-align="start">Characteristics</fo:block> Characteristics <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> As with many game systems, <fo:inline font-weight="bold">Yags</fo:inline> measures the ability of a character in the game using numerical stats, normally either <fo:inline font-style="italic">attributes</fo:inline> or <fo:inline font-style="italic">skills</fo:inline>. These numbers don't relate directly to anything in the real world - they are simply convienient. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> To simplify things, these numbers can be used to measure people, animals, vehicles, buildings and almost anything else which a character needs to be able to test their mettle against. </fo:block> <fo:block font-weight="bold" color="orange" font-size="14pt" font-family="sans-serif" line-height="14pt" space-after="10pt" text-align="start" border-after-width="1pt" border-after-color="orange" border-after-style="solid" keep-with-next="always">Attributes</fo:block> Attributes <fo:block font-style="italic" font-size="9pt" margin-left="10mm" margin-right="5mm" space-after="10pt"><fo:block text-align="left"> There's no gene for fate. </fo:block><fo:block text-align="right"> -- Vincent, Gattaca</fo:block></fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Attributes are the basic characteristics of all creatures in <fo:inline font-weight="bold">Yags</fo:inline>, and are a broad measure of natural talent and potential. There are eight primary attributes - strength, health, agility, dexterity, perception, intelligence, empathy and will - and two secondary attributes - size and move. </fo:block> <fo:block font-weight="bold" color="orange" font-size="14pt" font-family="sans-serif" line-height="14pt" space-after="10pt" text-align="start" border-after-width="1pt" border-after-color="orange" border-after-style="solid" keep-with-next="always">Size</fo:block> Size <fo:block font-style="italic" font-size="9pt" margin-left="10mm" margin-right="5mm" space-after="10pt"><fo:block text-align="left"> Start with the part where Jayne gets knocked out by a 90-pound girl, 'cause... I don't think that's ever getting old. </fo:block><fo:block text-align="right"> -- Wash, Serenity</fo:block></fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> How large a creature is can be measured in a number of ways - height, length and mass being the common criteria. In <fo:inline font-weight="bold">Yags</fo:inline>, the <fo:inline font-style="italic">Size</fo:inline> attribute is a measure of the creature's capacity to absorb damage, and how easy it is to hit. In general, the <fo:inline font-style="italic">Size</fo:inline> of a creature will increase logarithmically with its mass - every +5 increase in <fo:inline font-style="italic">Size</fo:inline> represents a ten fold increase in mass. </fo:block> <fo:block space-after="0pt" space-before="0px" text-align="center"><fo:external-graphic src="images/sizes.jpg" display-align="center" content-width="60mm"/></fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Adult humans range in <fo:inline font-style="italic">Size</fo:inline> from 4 (a small, slim woman) to 6 (a heavyweight boxer or stereotypical Norse warrior). Anything other than the default of 5 represents the extreme edge of human variation. The biggest effect it has is to provide a little bit more (or less) capacity to resist damage. The default character generation rules also put upper and lower limits on <fo:inline font-style="italic">Strength</fo:inline> for noticeably large or small characters. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. </fo:block> <fo:block space-after="0pt" space-before="0px" text-align="center"><fo:external-graphic src="images/hover-tank.jpg" display-align="center" content-width="6cm"/></fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Have far and fast you (or any creature in <fo:inline font-weight="bold">Yags</fo:inline>) can move depends on your attributes, skill and how much you are carrying. There are two types of movement - combat movement which covers short distances over a period of a few seconds, and overland movement which covers walking, hiking or running for minutes or hours at a time. </fo:block> <fo:block font-size="10pt" font-family="Times" line-height="12pt" space-after="10pt"> Racing down an ally, leaping from roof top to roof top, climbing rapidly up walls or swinging across chasms on ropes - these are all tasks for which the <fo:inline font-style="italic">Athletics</fo:inline> skill is vital. It covers a wide range of athletic, acrobatic and gymnastic feats, including running, swimming, jumping and climbing. It can provide bonuses in combat, but only if you specialise in certain acrobatic styles of fighting. </fo:block> </fo:flow></fo:page-sequence></fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org