lilypond-devel
[Top][All Lists]
Advanced

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

Re: Proposal: page breaking protocol


From: Joe Neeman
Subject: Re: Proposal: page breaking protocol
Date: Sat, 05 Aug 2006 20:26:37 +1000

On Sat, 2006-08-05 at 12:07 +0200, Nicolas Sceaux wrote:
> Joe Neeman <address@hidden> writes:
> 
> > The problem is that the two page-breaking problems may not be
> > independent. In the page-turn-page-breaker, a page break after an even
> > page is different from a page break after an odd page. The wrapper
> > function wouldn't be able to make this distinction without
> > re-implementing most of the algorithm anyway.
> 
> > Would it be possible to
> > - divide the functionality of the unified wrapper function into several
> > functions
> > - define a small wrapper function for each individual page-breaking
> > algorithm
> >
> > that is, optimal-breaking (and probably most other breakers) will
> > 1) split the problem up depending on inter-score page breaks
> > 2) send each sub-problem to actual-optimal-breaking
> > 3) do post-processing stuff
> >
> > and page-turn-page-breaking can just skip the first step:
> > 1) send the entire problem to actual-page-turn-breaking
> > 2) do post-processing stuff
> >
> > That way you can get the code reuse without forcing each algorithm to
> > reuse exactly the same code.
> 
> You're right on all these points.
> 
> Isn't you patch mature enough to be commited?

I don't know, I sent it to the list a while ago. Nudge, nudge, Han-Wen?






reply via email to

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