Re: Bug with region-body margins and page-seqeunces

2006-10-11 Thread Jeremias Maerki

On 11.10.2006 01:00:52 Nicol Bolas wrote:
> 
> 
> 
> Nicol Bolas wrote:
> > 
> > 
> > 
> > Vincent Hennebert-3 wrote:
> >> 
> >> That's a known issue: in a given page sequence, the ipd (width) of the
> >> first page is used for all of the other pages, whatever you specify for
> >> them. So if on subsequent pages the margin settings are different, only
> >> the left margin will be taken into account, and its value + the forced
> >> value of the content width will constrain the value of the right margin.
> >> 
> >> That is because Fop uses the Knuth breaking algorithm to optimize the
> >> page breaks over a whole page sequence, and is currently unable to deal
> >> with differing page widths. There is ongoing work to fix that, but as
> >> the changes are quite important no result should be expected before some
> >> time. The only workaround is to ensure that you specify identical widths
> >> for all the pages of a page sequence.
> >> 
> > 
> > Yeah, didn't think about that. That explains everything.
> > 
> > 
> 
> BTW, one thing I forgot to mention. You should make a note of this on the
> conformance page, so that others don't get tripped up by it.

Done. This will be published with the next website update.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug with region-body margins and page-seqeunces

2006-10-10 Thread Nicol Bolas



Nicol Bolas wrote:
> 
> 
> 
> Vincent Hennebert-3 wrote:
>> 
>> That's a known issue: in a given page sequence, the ipd (width) of the
>> first page is used for all of the other pages, whatever you specify for
>> them. So if on subsequent pages the margin settings are different, only
>> the left margin will be taken into account, and its value + the forced
>> value of the content width will constrain the value of the right margin.
>> 
>> That is because Fop uses the Knuth breaking algorithm to optimize the
>> page breaks over a whole page sequence, and is currently unable to deal
>> with differing page widths. There is ongoing work to fix that, but as
>> the changes are quite important no result should be expected before some
>> time. The only workaround is to ensure that you specify identical widths
>> for all the pages of a page sequence.
>> 
> 
> Yeah, didn't think about that. That explains everything.
> 
> 

BTW, one thing I forgot to mention. You should make a note of this on the
conformance page, so that others don't get tripped up by it.
-- 
View this message in context: 
http://www.nabble.com/Bug-with-region-body-margins-and-page-seqeunces-tf2414895.html#a6747327
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug with region-body margins and page-seqeunces

2006-10-10 Thread Nicol Bolas



Vincent Hennebert-3 wrote:
> 
> Hi Nicol,
> 
>> I'm finding some really strange behavior dealing with
>> page-sequence-masters,
>> page-sequences, and the margins of the region body in FOP 0.92beta.
>> 
>> If you have a page-sequence master that has an initial page that is
>> unique,
>> then has a repeated page choice (even and odd pages), then certain things
>> start to happen. I'm not even sure I can fully explain what all the
>> wierdness is.
>> 
>> So, the situation looks something like this in FO:
>> 
>> 
>> > master-reference="chapter-start-pg"/>
>> 
>> > blank-or-not-blank="blank"
>> master-reference="blank-pg"/>
>> > master-reference="chapter-lhpg"/>
>> > master-reference="chapter-rhpg"/>
>> 
>> 
>> 
>> 
>> First, you can't control margin-right on one of the pages after the first
>> unique one (in this case, none of the pagest except "chapter-start-pg").
>> You
>> can control margin-left, but that just causes the region body to shift to
>> the right, sliding content off the right side of the page.
>> 
>> However, if you change the margin-right on the unique first page
>> (chapter-start-pg), then it works... excpet that it changes it for all of
>> the pages in that page sequence. If you change margin-left on the unique
>> first page, then margin-RIGHT gets applied to the subsequent pages.
> 
> That's a known issue: in a given page sequence, the ipd (width) of the
> first page is used for all of the other pages, whatever you specify for
> them. So if on subsequent pages the margin settings are different, only
> the left margin will be taken into account, and its value + the forced
> value of the content width will constrain the value of the right margin.
> 
> That is because Fop uses the Knuth breaking algorithm to optimize the
> page breaks over a whole page sequence, and is currently unable to deal
> with differing page widths. There is ongoing work to fix that, but as
> the changes are quite important no result should be expected before some
> time. The only workaround is to ensure that you specify identical widths
> for all the pages of a page sequence.
> 

Yeah, didn't think about that. That explains everything.


Vincent Hennebert-3 wrote:
> 
>> Also, the layout itself seems a bit peculiar. The left-hand edge of the
>> heading (in a region-begin) on the subsequent pages is lined up with the
>> text, but it isn't aligned with the right side of the text. For some
>> reason,
>> the region-begin seems to hang over the edge of the region body. Which is
>> how I found the margin-right wierdness; I was trying to adjust the
>> margin-right so that they would match up. Obviously, it didn't work.
> 
> Not so sure here, but I guess that for region-before the actual page
> width is taken into account, unlike for region-body. Specifying
> identical widths should solve the problem.
> 

The width of the region-before is not directly specified; it is inferred
from the page region dimensions. And I'm not (knowingly) giving the
region-body a right margin.
-- 
View this message in context: 
http://www.nabble.com/Bug-with-region-body-margins-and-page-seqeunces-tf2414895.html#a6741910
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug with region-body margins and page-seqeunces

2006-10-10 Thread Vincent Hennebert
Hi Nicol,

> I'm finding some really strange behavior dealing with page-sequence-masters,
> page-sequences, and the margins of the region body in FOP 0.92beta.
> 
> If you have a page-sequence master that has an initial page that is unique,
> then has a repeated page choice (even and odd pages), then certain things
> start to happen. I'm not even sure I can fully explain what all the
> wierdness is.
> 
> So, the situation looks something like this in FO:
> 
> 
>  master-reference="chapter-start-pg"/>
> 
>  blank-or-not-blank="blank"
> master-reference="blank-pg"/>
>  master-reference="chapter-lhpg"/>
>  master-reference="chapter-rhpg"/>
> 
> 
> 
> 
> First, you can't control margin-right on one of the pages after the first
> unique one (in this case, none of the pagest except "chapter-start-pg"). You
> can control margin-left, but that just causes the region body to shift to
> the right, sliding content off the right side of the page.
> 
> However, if you change the margin-right on the unique first page
> (chapter-start-pg), then it works... excpet that it changes it for all of
> the pages in that page sequence. If you change margin-left on the unique
> first page, then margin-RIGHT gets applied to the subsequent pages.

That's a known issue: in a given page sequence, the ipd (width) of the
first page is used for all of the other pages, whatever you specify for
them. So if on subsequent pages the margin settings are different, only
the left margin will be taken into account, and its value + the forced
value of the content width will constrain the value of the right margin.

That is because Fop uses the Knuth breaking algorithm to optimize the
page breaks over a whole page sequence, and is currently unable to deal
with differing page widths. There is ongoing work to fix that, but as
the changes are quite important no result should be expected before some
time. The only workaround is to ensure that you specify identical widths
for all the pages of a page sequence.


> Also, the layout itself seems a bit peculiar. The left-hand edge of the
> heading (in a region-begin) on the subsequent pages is lined up with the
> text, but it isn't aligned with the right side of the text. For some reason,
> the region-begin seems to hang over the edge of the region body. Which is
> how I found the margin-right wierdness; I was trying to adjust the
> margin-right so that they would match up. Obviously, it didn't work.

Not so sure here, but I guess that for region-before the actual page
width is taken into account, unlike for region-body. Specifying
identical widths should solve the problem.


HTH,
Vincent

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bug with region-body margins and page-seqeunces

2006-10-10 Thread Nicol Bolas

I'm finding some really strange behavior dealing with page-sequence-masters,
page-sequences, and the margins of the region body in FOP 0.92beta.

If you have a page-sequence master that has an initial page that is unique,
then has a repeated page choice (even and odd pages), then certain things
start to happen. I'm not even sure I can fully explain what all the
wierdness is.

So, the situation looks something like this in FO:











First, you can't control margin-right on one of the pages after the first
unique one (in this case, none of the pagest except "chapter-start-pg"). You
can control margin-left, but that just causes the region body to shift to
the right, sliding content off the right side of the page.

However, if you change the margin-right on the unique first page
(chapter-start-pg), then it works... excpet that it changes it for all of
the pages in that page sequence. If you change margin-left on the unique
first page, then margin-RIGHT gets applied to the subsequent pages.

Also, the layout itself seems a bit peculiar. The left-hand edge of the
heading (in a region-begin) on the subsequent pages is lined up with the
text, but it isn't aligned with the right side of the text. For some reason,
the region-begin seems to hang over the edge of the region body. Which is
how I found the margin-right wierdness; I was trying to adjust the
margin-right so that they would match up. Obviously, it didn't work.

Is this some known screwyness with FOP? Or is this something recent?
-- 
View this message in context: 
http://www.nabble.com/Bug-with-region-body-margins-and-page-seqeunces-tf2414895.html#a6731370
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]