]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/framework-scm.scm
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / scm / framework-scm.scm
index 058217e0b329a35ccf1d0359a47d84b77d10800f..7c7c7e1045a31a88d4e62da4edfdb7114b32e54b 100644 (file)
@@ -1,3 +1,4 @@
+;;;; framework-scm.scm
 
 (define-module (scm framework-scm)
   #:export (output-framework)
@@ -5,17 +6,18 @@
 
 (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
@@ -25,7 +27,7 @@
 ;     (pretty-print (ly:stencil-expr page) file)
      (write (ly:stencil-expr page) file)
      )
-   (ly:paper-book-pages book))))
+   (map page-stencil (ly:paper-book-pages book)))))
 
 (define-public output-classic-framework output-framework)
 
@@ -33,5 +35,3 @@
 (define-public (convert-to-ps . args) #t)
 (define-public (convert-to-pdf . args) #t)
 (define-public (convert-to-png . args) #t)
-(define-public (convert-to-dvi . args) #t)
-(define-public (convert-to-tex . args) #t)