X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Ftitling.scm;h=4bb464ae68cc0bbbb18cde1762d1210ce36bcb59;hb=HEAD;hp=8e6ae7b7bb703b98533df4b6796eee23c56a9ce4;hpb=e24fb7cc5671aea95211d4a0c56f28fb6fe8720e;p=lilypond.git diff --git a/scm/titling.scm b/scm/titling.scm index 8e6ae7b7bb..4bb464ae68 100644 --- a/scm/titling.scm +++ b/scm/titling.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2004--2014 Jan Nieuwenhuizen +;;;; Copyright (C) 2004--2015 Jan Nieuwenhuizen ;;;; Han-Wen Nienhuys ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -23,7 +23,7 @@ ;;;;;;;;;;;;;;;;;; -(define-public ((marked-up-headfoot what-odd what-even) +(define ((marked-up-headfoot what-odd what-even) layout scopes page-number is-last-bookpart is-bookpart-last-page) "Read variables @var{what-odd}, @var{what-even} from @var{layout}, and interpret them as markup. The @var{props} argument will include @@ -48,6 +48,7 @@ variables set in @var{scopes} and @code{page:is-bookpart-last-page}, (cdr entry))) alist)) alists)) + (number-type (get 'page-number-type)) (pgnum-alist (list (cons 'header:tagline @@ -56,7 +57,7 @@ variables set in @var{scopes} and @code{page:is-bookpart-last-page}, (cons 'page:is-last-bookpart is-last-bookpart) (cons 'page:is-bookpart-last-page is-bookpart-last-page) (cons 'page:page-number-string - (number->string page-number)) + (number-format number-type page-number)) (cons 'page:page-number page-number))) (props (append (list pgnum-alist) @@ -71,8 +72,9 @@ variables set in @var{scopes} and @code{page:is-bookpart-last-page}, (markup? (get what-even))) (get what-even) (get what-odd)))) +(export marked-up-headfoot) -(define-public ((marked-up-title what) layout scopes) +(define ((marked-up-title what) layout scopes) "Read variables @var{what} from @var{scopes}, and interpret it as markup. The @var{props} argument will include variables set in @var{scopes} (prefixed with `header:'." @@ -101,3 +103,4 @@ with `header:'." (if (markup? markup) (interpret-markup layout props markup) empty-stencil))) +(export marked-up-title)