]> git.donarmstrong.com Git - lilypond.git/blob - scm/framework-scm.scm
Merge with master
[lilypond.git] / scm / framework-scm.scm
1
2 (define-module (scm framework-scm)
3   #:export (output-framework)
4   )
5
6 (use-modules (ice-9 regex)
7              (ice-9 string-fun)
8              (ice-9 format)
9              (guile)
10              (srfi srfi-1)
11              (ice-9 pretty-print)
12              (srfi srfi-13)
13              (scm page)
14              (lily))
15
16 (define-public (output-framework basename book scopes fields )
17   (let*
18       ((file (open-output-file (format "~a.scm" basename))))
19     
20     (display ";;Creator: LilyPond\n" file)
21     (display ";; raw SCM output\n" file)
22
23   (for-each
24    (lambda (page)
25      (display
26        ";;;;;;;;;;;;;;;;;;;;;;;;;;\n;;;PAGE\n" file)
27 ;     (pretty-print (ly:stencil-expr page) file)
28      (write (ly:stencil-expr page) file)
29      )
30    (map page-stencil (ly:paper-book-pages book)))))
31
32 (define-public output-classic-framework output-framework)
33
34
35 (define-public (convert-to-ps . args) #t)
36 (define-public (convert-to-pdf . args) #t)
37 (define-public (convert-to-png . args) #t)
38 (define-public (convert-to-dvi . args) #t)
39 (define-public (convert-to-tex . args) #t)