X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Ftitling.scm;h=23fdce87752f5415d1f6d4626c7e6df7d061219a;hb=17098f34eace028d047ee7f9cd6f81a84e0e7537;hp=9fa0c4f74db6533362c88d1721e67f7e80204634;hpb=3b2376c6828136cdbc078015c0b9bee26bffb448;p=lilypond.git diff --git a/scm/titling.scm b/scm/titling.scm index 9fa0c4f74d..23fdce8775 100644 --- a/scm/titling.scm +++ b/scm/titling.scm @@ -2,12 +2,12 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2004 Jan Nieuwenhuizen -;;;; Han-Wen Nienhuys +;;;; (c) 2004--2007 Jan Nieuwenhuizen +;;;; Han-Wen Nienhuys -(define-public (page-properties layout) - (list (append `((linewidth . ,(ly:paper-get-number - layout 'linewidth))) +(define-public (layout-extract-page-properties layout) + (list (append `((line-width . ,(ly:paper-get-number + layout 'line-width))) (ly:output-def-lookup layout 'text-font-defaults)))) ;;;;;;;;;;;;;;;;;; @@ -24,7 +24,7 @@ page:last?, page:page-number-string and page:page-number (define (interpret-in-page-env potential-markup) (if (markup? potential-markup) - (let* ((alists (map ly:module->alist scopes)) + (let* ((alists (map ly:module->alist scopes)) (prefixed-alists (map (lambda (alist) (map (lambda (entry) @@ -36,24 +36,22 @@ page:last?, page:page-number-string and page:page-number (cdr entry))) alist)) alists)) - (tagline (ly:modules-lookup scopes 'tagline)) - (pgnum-alist (list - (cons 'header:tagline (if (markup? tagline) - tagline - TAGLINE)) + (cons 'header:tagline + (ly:modules-lookup scopes 'tagline + (ly:output-def-lookup layout 'tagline))) (cons 'page:last? last?) (cons 'page:page-number-string (number->string page-number)) - (cons 'page:page-number page-number))) + (cons 'page:page-number page-number))) (props (append (list pgnum-alist) prefixed-alists - (page-properties layout)))) - + (layout-extract-page-properties layout)))) + (interpret-markup layout props potential-markup)) - + empty-stencil)) (interpret-in-page-env @@ -72,7 +70,7 @@ PROPS argument will include variables set in SCOPES (prefixed with (let ((x (ly:modules-lookup scopes sym))) (if (markup? x) x #f))) - (let* ((alists (map ly:module->alist scopes)) + (let* ((alists (map ly:module->alist scopes)) (prefixed-alist (map (lambda (alist) (map (lambda (entry) @@ -85,7 +83,7 @@ PROPS argument will include variables set in SCOPES (prefixed with alist)) alists)) (props (append prefixed-alist - (page-properties layout))) + (layout-extract-page-properties layout))) (markup (ly:output-def-lookup layout what)))