X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Flily.scm;h=7122ac3694be6d2fbd11daa1bf83310a2d329ebd;hb=3863f416bea79ef29dded3b1b8a3f61419098f7a;hp=c324e2bab83b73a4d1c80aed03a697876e48f643;hpb=93d4b870dbcd205aad7618619dac0aee6f3faf94;p=lilypond.git diff --git a/scm/lily.scm b/scm/lily.scm index c324e2bab8..7122ac3694 100644 --- a/scm/lily.scm +++ b/scm/lily.scm @@ -2,7 +2,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 1998--2007 Jan Nieuwenhuizen +;;;; (c) 1998--2008 Jan Nieuwenhuizen ;;;; Han-Wen Nienhuys ;; Internationalisation: (_i "to be translated") gets an entry in the @@ -17,6 +17,11 @@ (read-enable 'positions) (debug-enable 'debug) +(define-public PLATFORM + (string->symbol + (string-downcase + (car (string-tokenize (utsname:sysname (uname))))))) + (define scheme-options-definitions `( @@ -26,7 +31,7 @@ ;; - [subject-]-verb-object-object (anti-alias-factor 1 "render at higher resolution and scale down result\nto prevent jaggies in PNG") - (backend ps "which backend to use by default; Options: eps, ps [default], scm, svg, tex, texstr)") + (backend ps "which backend to use by default; Options: eps, ps [default], scm, svg)") (check-internal-types #f "check every property assignment for types") (clip-systems #f "Generate cut-out snippets of a score") (datadir #f "LilyPond prefix for data files (Readonly).") @@ -55,6 +60,10 @@ ensure that all refs to parsed objects are dead. This is an internal option, an (include-eps-fonts #t "Include fonts in separate-system EPS files.") (job-count #f "Process in parallel") (log-file #f "redirect output to log FILE.log") + (midi-extension ,(if (eq? PLATFORM 'windows) + "mid" + "midi") + "set the default file extension for MIDI") (old-relative #f "relative for simultaneous music works @@ -154,17 +163,9 @@ on errors, and print a stack trace.") (if (ly:get-option 'trace-scheme-coverage) (coverage:enable)) -(define-public tex-backend? - (member (ly:get-option 'backend) '(texstr tex))) - (define-public parser #f) -;; TeX C++ code actually hooks into TEX_STRING_HASHLIMIT -(define-public TEX_STRING_HASHLIMIT 10000000) - - - ;; gettext wrapper for guile < 1.7.2 (if (defined? 'gettext) (define-public _ gettext) @@ -180,22 +181,6 @@ on errors, and print a stack trace.") (if (ly:get-option 'verbose) (ly:progress "]")))) -;; Cygwin -;; #(CYGWIN_NT-5.1 Hostname 1.5.12(0.116/4/2) 2004-11-10 08:34 i686) -;; -;; Debian -;; #(Linux hostname 2.4.27-1-686 #1 Fri Sep 3 06:28:00 UTC 2004 i686) -;; -;; Mingw -;; #(Windows XP HOSTNAME build 2600 5.01 Service Pack 1 i686) -;; - -;; ugh, code dup. -(define-public PLATFORM - (string->symbol - (string-downcase - (car (string-tokenize (vector-ref (uname) 0) char-set:letter))))) - (define-public DOS (let ((platform (string-tokenize (vector-ref (uname) 0) char-set:letter+digit))) @@ -258,8 +243,6 @@ predicates. Print a message at LOCATION if any predicate failed." ;;(define-public (output-framework) (write "hello\n")) -(define output-tex-module - (make-module 1021 (list (resolve-interface '(scm output-tex))))) (define output-ps-module (make-module 1021 (list (resolve-interface '(scm output-ps))))) @@ -337,8 +320,11 @@ The syntax is the same as `define*-public'." "font.scm" "encoding.scm" + "flag-styles.scm" "fret-diagrams.scm" - "define-markup-commands.scm" + "harp-pedals.scm" + "predefined-fretboards.scm" + "define-markup-commands.scm" "define-grob-properties.scm" "define-grobs.scm" "define-grob-interfaces.scm"