lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with page breaking code


From: David Kastrup
Subject: Re: Help with page breaking code
Date: Sun, 19 May 2013 19:10:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Hi,
> the following code produces 9 pages in current master:
>
> #(set! empty-stencil (ly:make-stencil '() empty-interval empty-interval))
> \markup \fill-line { }
> \markup { }
> \markup { }
> \markup { }
> \markup { }
> \markup { }
> \markup { }
> \markup { }
> \markup { }
>
> Basically, the first \markup produces an empty stencil with extents
> (+inf.0 . -inf.0) and the page breaking code goes bonkers on that.
> Since the current spacing code in issue 3330 requires this
> representation for empty stencil extents, I can't really commit in this
> state.
>
> As a corollary: if extent (+inf.0 . -inf.0) throws the page breaking
> code completely off-track in this case, it is unlikely that the
> _current_ extent (+1.0 . -1.0) for empty stencils produces a _correct_
> result either.  It will just be less noticeably wrong.
>
> Anybody have an idea where or how to look?

This one is likely easier to debug:

#(set! empty-stencil (ly:make-stencil '() empty-interval empty-interval))
\markup \fill-line { }
\markup *
\markup *
\markup *
\markup *
\markup *
\markup *
\markup *
\markup *


-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]