]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/lily.scm
release: 1.5.23
[lilypond.git] / scm / lily.scm
index b8f28858fe2bb9342ede77af788c90aabf788858..5f10a15e7c704fa54d1903f59104cfd5ddd80939 100644 (file)
@@ -13,6 +13,9 @@
 
 ;;; General settings
 
+
+
+
 (debug-enable 'backtrace)
 
 
            (symbol->string (car y))))
 
 
-(map (lambda (x) (eval-string (ly-gulp-file x)))
-     '("output-lib.scm"
-       "tex.scm"
-       "ps.scm"
-       "pdf.scm"
-       "pdftex.scm"
-       "ascii-script.scm"
-       ))
+(define (ly-load x) (eval-string (ly-gulp-file x)))
+
+(ly-load "output-lib.scm")
+
+
+
+(use-modules (scm tex)
+            (scm ps)
+            (scm pysk)
+            (scm ascii-script)
+            (scm sketch)
+            )
+
+(define output-alist
+  `(
+    ("tex" . ,tex-output-expression)
+    ("ps" . ,ps-output-expression)
+    ("scm" . ,write)
+    ("as" . ,as-output-expression)
+    ("pysk" . ,pysk-output-expression)
+    ("sketch" . ,sketch-output-expression)
+))
+
+
+(define (find-dumper format )
+  (let*
+      ((d (assoc format output-alist)))
+    
+    (if (pair?  d)
+               (cdr d)
+            scm-output-expression)
+           ))
+
 
 (if (not standalone)
-    (map (lambda (x) (eval-string (ly-gulp-file x)))
-        '("c++.scm"
+    (map ly-load
+                                       ; load-from-path
+        '("output-lib.scm"
+          "sketch.scm"
+          "pdf.scm"
+          "pdftex.scm"
+          "c++.scm"
           "grob-property-description.scm"
           "translator-property-description.scm"
+          "context-description.scm"
           "interface-description.scm"
           "beam.scm"
           "clef.scm"
           )))
 
 
+
+1