]> git.donarmstrong.com Git - lilypond.git/blob - scm/framework-scm.scm
* scm/define-markup-commands.scm (justify-field): add.
[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    (ly:paper-book-pages book))))
27
28 (define-public output-classic-framework output-framework)
29
30
31 (define-public (convert-to-ps . args) #t)
32 (define-public (convert-to-pdf . args) #t)
33 (define-public (convert-to-png . args) #t)
34 (define-public (convert-to-dvi . args) #t)
35 (define-public (convert-to-tex . args) #t)