X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=scm%2Fframework-scm.scm;h=53905e087dcf56f6f93b1b94680c8b51d8feb8a0;hb=ec538f9d8b43800a6529afee25819d8476d5a08a;hp=3454a18a5dcf3cfcca26812bc9764c37d1e1c7db;hpb=57be7394ffa2e7d7ba6d60548dba563f3409d472;p=lilypond.git diff --git a/scm/framework-scm.scm b/scm/framework-scm.scm index 3454a18a5d..53905e087d 100644 --- a/scm/framework-scm.scm +++ b/scm/framework-scm.scm @@ -5,25 +5,30 @@ (use-modules (ice-9 regex) (ice-9 string-fun) - (ice-9 format) (guile) (srfi srfi-1) (ice-9 pretty-print) (srfi srfi-13) + (scm page) (lily)) (define-public (output-framework basename book scopes fields ) (let* - ((file (open-output-file (format "~a.scm" basename)))) + ((file (open-output-file (format #f "~a.scm" basename)))) + (display ";;Creator: LilyPond\n" file) (display ";; raw SCM output\n" file) (for-each (lambda (page) (display ";;;;;;;;;;;;;;;;;;;;;;;;;;\n;;;PAGE\n" file) - (pretty-print (ly:stencil-expr page) file)) - (ly:paper-book-pages book)))) +; (pretty-print (ly:stencil-expr page) file) + (write (ly:stencil-expr page) file) + ) + (map page-stencil (ly:paper-book-pages book))))) + +(define-public output-classic-framework output-framework) (define-public (convert-to-ps . args) #t)