Re: keep-together question

2016-02-26 Thread Matthew R. Wilson
On Fri, Feb 26, 2016 at 09:33:16AM +0100, Pascal Sancho wrote:
> from my POV, integer value seems to behave as 'auto' does. That sounds
> like a bug.
> 
> Please, can you file in a bug entry on JIRA, attaching your modified
> FO, resulting PDF, and if possible, expected result.

Sure, I've filed FOP-2582 for this.

Thanks,
Matthew


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



Re: keep-together question

2016-02-26 Thread Matthew R. Wilson
On Thu, Feb 25, 2016 at 09:45:09PM +0100, Andreas Delmelle wrote:
> While I can't speak to the integer-keep support, from what I can make
> out here, it does seem like you would be greatly helped by decent
> orphans/widows support.

Hmm...an interesting idea. My example was simplified; in reality there
are differences in the content that will make it much less predictable
in terms of how many lines would fit on the page. But perhaps with some
experimentation an estimate in the right ballpark would be better than
nothing.
 
> The good news: there is a patch available in JIRA (look for FOP-1488),
> which I worked on quite some time back [...]
> 
> Are you fluent enough in Subversion, Ant etc. to check out the trunk,
> apply the patch and build FOP

Yep, if I find some free time this weekend I'll take a look at that and
build a version with the patch applied.

Thanks,
Matthew

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



Re: keep-together question

2016-02-26 Thread Pascal Sancho
Hi,

from my POV, integer value seems to behave as 'auto' does. That sounds
like a bug.

Please, can you file in a bug entry on JIRA, attaching your modified
FO, resulting PDF, and if possible, expected result.


2016-02-25 19:12 GMT+01:00 Matthew R. Wilson :
> On Thu, Feb 25, 2016 at 09:41:20AM +0100, Pascal Sancho wrote:
>> That can be achieved using an integer value rather than 'always'.
>> See [1] (compliance page) & [2] (XSL-FO rec v1.1) for further info.
>>
>> NOTE: keep-together should be considered as a shorthand for
>> *.within-line, *.within-column, and *.within-page
>
> I've tried using an integer value, but that doesn't seem to do anything.
> For example, changing my original example attachment to the following
> snippet
>
>   
> line 1
> line 2
> 
> line n
>   
>
> does not do what I expect. Even though this block can fit on a page, I
> don't end up with a page break before it and it just breaks in the
> middle. The same block with keep-together.within-page="always" results
> in the expected page break before the block. I've removed all other
> keeps in the document so there shouldn't be anything conflicting with
> the attempt to make this block appear on its own page.
>
> The FOP compliance page says that there is "Minimal support for
>  values", but I don't see anything explaining further. So I'm
> back to not knowing if I'm just not doing it right (i.e. is there
> something more to it than changing "always" to "100"), or am I hitting a
> scenario that isn't supported by the minimal support.
>
> Thanks,
> Matthew
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>



-- 
pascal

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