2005-04-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/page-layout.scm (default-page-make-stencil): always combine
+ the header stencil, even if empty. This prevents the body text to
+ reach up to the margins.
+
* po/rw.po (Module): new file, for Kinyarwanda.
* input/test/spacing-optical.ly (Module): new file.
\score {
{ \transpose c' bes \allegro }
\layout { }
- \header { piece = "allegro" opus = "" }
+ \header { piece = "Allegro" opus = "" }
\midi { \tempo 4=90 }
}
\score {
{ \transpose c' bes \romanze }
- \header { piece = "romanze" opus = "" }
+ \header { piece = "Romanze" opus = "" }
\midi { \tempo 4 = 70 }
\layout {}
}
\score
{
{ \transpose c' bes \rondo }
- \header { piece = "rondo" opus = "" }
+ \header { piece = "Rondo" opus = "" }
\midi { \tempo 4 = 100 }
\layout { }
}
empty-stencil))
oddHeaderMarkup = \markup
-\on-the-fly #not-single-page
+ % \on-the-fly #not-single-page
\fill-line {
- ""
+ %% force the header to take some space, otherwise the
+ %% page layout becomes a complete mess.
+ " "
\on-the-fly #not-first-page \fromproperty #'header:instrument
\on-the-fly #not-first-page \fromproperty #'page:page-number-string
}
"leftmargin " leftmargin "rightmargin " rightmargin
)))
- (if (and
- (ly:stencil? head)
- (not (ly:stencil-empty? head)))
- (set! page-stencil (ly:stencil-combine-at-edge
- page-stencil Y DOWN head 0. 0.)))
+ (set! page-stencil (ly:stencil-combine-at-edge
+ page-stencil Y DOWN
+ (if (and
+ (ly:stencil? head)
+ (not (ly:stencil-empty? head)))
+ head
+ (ly:make-stencil "" (cons 0 0) (cons 0 0)))
+ 0. 0.))
(map add-system (zip lines offsets))
(if (and (ly:stencil? foot)