]> git.donarmstrong.com Git - lilypond.git/blob - scm/framework-scm.scm
* lily/include/translator.icc: new file.
[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              (lily))
14
15 (define-public (output-framework basename book scopes fields )
16   (let*
17       ((file (open-output-file (format "~a.scm" basename))))
18     
19     (display ";; raw SCM output\n" file)
20
21   (for-each
22    (lambda (page)
23      (display
24        ";;;;;;;;;;;;;;;;;;;;;;;;;;\n;;;PAGE\n" file)
25 ;     (pretty-print (ly:stencil-expr page) file)
26      (write (ly:stencil-expr page) file)
27      )
28    (ly:paper-book-pages book))))
29
30 (define-public output-classic-framework output-framework)
31
32
33 (define-public (convert-to-ps . args) #t)
34 (define-public (convert-to-pdf . args) #t)
35 (define-public (convert-to-png . args) #t)
36 (define-public (convert-to-dvi . args) #t)
37 (define-public (convert-to-tex . args) #t)