]> git.donarmstrong.com Git - lilypond.git/commit
* scm/layout-page-layout.scm (page-breaking-wrapper): new
authorNicolas Sceaux <nicolas.sceaux@free.fr>
Sun, 1 Oct 2006 11:10:15 +0000 (11:10 +0000)
committerNicolas Sceaux <nicolas.sceaux@free.fr>
Sun, 1 Oct 2006 11:10:15 +0000 (11:10 +0000)
commit28eb8b5ae1302d6cfba9d054d4d764f7d59cb195
tree4386bd8cc2ebd3b80ddf925f1045367ed6df2aa2
parent0aa4202d3d301a4bfc59412be4665255e393d77f
* scm/layout-page-layout.scm (page-breaking-wrapper): new
function. Call the page breaking function selected in the
`page-breaking' \paper variable, then the post processing function
chosen using the `page-post-process' \paper variable.
(line-height): new function. Return the height of a system.
(line-minimum-position-on-page): new function. Return the position
of a system on page (using the previous line position), only
considering between system padding.
(stretchable-line?): new function. Says whether a line can be
stretched (ie. is not a title nor a single staff system).
(page-maximum-space-left): new function. Computes space left on a
page, when all systems are separated by their padding.

* lily/page-breaking.cc (breaking::make_pages): Move page post
processing function call to page breaking wrapper (common to all
page breakers).

* lily/paper-book.cc (book::pages): call the page breaking
wrapper, instead of the page breaker directly

* ly/paper-defaults.ly: Add \paper variables for page breaking
wrapper and page post processing function. Make
`write-page-layout' value depend on the 'dump-tweaks option. Add a
`system-maximum-stretch-procedure' variable for holding a function
computing the maximum stretch a system allows.

* scm/layout-page-dump.scm (write-page-breaks): computes the
stretch to apply to systems on a page to minimize left
space. Dump this stretch length.

* ly/music-functions-init.ly (spacingTweaks): implement it. Read
the system-stretch property of the tweak data to stretch the
system.
(includePageLayoutFile): Void function which includes the
generated page-layout file if it exists and if the page layout
dumping is not asked.
(scoreTweak): if the score tweak named by the argument exists,
return it.
ChangeLog
lily/page-breaking.cc
lily/paper-book.cc
ly/music-functions-init.ly
ly/paper-defaults.ly
scm/layout-page-dump.scm
scm/layout-page-layout.scm
scm/lily.scm