lilypond-devel
[Top][All Lists]
Advanced

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

Re: Enhancement: Page breaking to avoid widow lines


From: Joe Neeman
Subject: Re: Enhancement: Page breaking to avoid widow lines
Date: Thu, 14 Jan 2010 01:38:42 +1100

On Wed, 2010-01-13 at 09:11 -0500, Boris Shingarov wrote:
> Joe,
> 
> > Paper_book::get_system_specs then you wouldn't even need the
> > markup-list-id property: you could add an avoid-orphan property that
> > only gets set for the last line of a multi-line markup list if it is
> > short. That might also simplify Page_spacer::calc_subproblem. 
> 
> This is the first idea that came to my mind when I started implementing 
> this code. 
> I wanted to have a member called "is_last_line_" instead of 
> "markup_list_id_", that way the nested ifs in calc_subproblem() become 
> much more readable.  But I wasn't sure how to calculate that property 
> inside the Line_details(...) constructor. 

Can't you do it in Paper_book::get_system_specs and store it in the Prob
(and then read it from the Prob in Line_details(Prob*))?

Joe





reply via email to

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