text on even pages, images on odd pages

2012-11-11 Thread Bonekrusher
Hi,

I have an odd requirement for outputting text and images for a "pocket size
book" (4in x 5.5in). The requirement states:

"Place text for pocket-sized manuals on the right-hand pages with supporting
illustration on the
facing left-hand pages"

Is this possible with xsl-fo, that is, to request a figure be rendered on an
even page only or do I need to manipulated the xml->xsl->fo to rearrange the
text images into alternating page sequences? 

After some though, I think this is almost an impossible requirement to
handle by xslt/xsl-fo programing. 

Any suggestions or ideas? 



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/text-on-even-pages-images-on-odd-pages-tp37330.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: text on even pages, images on odd pages

2012-11-11 Thread Rob Sargent

This is entirely do-able.

Define two page masters. left-master has normal region-body and will get 
all the text. right-master will have zero-length region-body and 
region-before consumes entire page length.  All your images go into 
static-content. You may want a first-page master for special things on 
each section of the manual.


make a repeating page layout sequence of left-master, right-master, 
using even/odd as needed.


Expect to have fun with text which doesn't have matching images; text 
only on the last page;



On 11/11/2012 06:16 AM, Bonekrusher wrote:

Hi,

I have an odd requirement for outputting text and images for a "pocket size
book" (4in x 5.5in). The requirement states:

"Place text for pocket-sized manuals on the right-hand pages with supporting
illustration on the
facing left-hand pages"

Is this possible with xsl-fo, that is, to request a figure be rendered on an
even page only or do I need to manipulated the xml->xsl->fo to rearrange the
text images into alternating page sequences?

After some though, I think this is almost an impossible requirement to
handle by xslt/xsl-fo programing.

Any suggestions or ideas?



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/text-on-even-pages-images-on-odd-pages-tp37330.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: text on even pages, images on odd pages

2012-11-11 Thread Bonekrusher
Thanks. This is a good approach except I could have text only which would
render on both odd and even.  Perhaps I could use markers defined on the odd
pages for the images, but this might be an issue if more than one image is
found on a page...

I'll work on it.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/text-on-odd-pages-images-on-even-pages-tp37330p37332.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: text on even pages, images on odd pages

2012-11-11 Thread Rob Sargent
You can dynamically size the region-body and region-before of the 
right-page master if you have any information on page layout from the 
incoming xml - ie. if it's known or knowable that the upcoming 
right-page has a single image with text.  This can be accomplished if 
the app capturing the printable information also collects information 
about image count (how much of the page is required) and placement.


What does your incoming data look like?



On 11/11/2012 08:56 AM, Bonekrusher wrote:

Thanks. This is a good approach except I could have text only which would
render on both odd and even.  Perhaps I could use markers defined on the odd
pages for the images, but this might be an issue if more than one image is
found on a page...

I'll work on it.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/text-on-odd-pages-images-on-even-pages-tp37330p37332.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org






-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org