]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/backend-library.scm (output-scopes, header-to-file): Move
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 12 Mar 2005 23:26:58 +0000 (23:26 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 12 Mar 2005 23:26:58 +0000 (23:26 +0000)
from framework-tex.scm.

* scm/framework-ps.scm (output-framework)
(output-preview-framework):
* scm/framework-eps.scm (output-classic-framework)
(output-framework): Use it.  Fixes collated files.

18 files changed:
ChangeLog
input/les-nereides.ly
input/mutopia/E.Satie/petite-ouverture-a-danser.ly
input/mutopia/F.Schubert/morgenlied.ly
input/mutopia/J.S.Bach/bwv940.ly
input/mutopia/J.S.Bach/wtk1-fugue2.ly
input/mutopia/R.Schumann/romanze-op28-2.ly
input/mutopia/W.A.Mozart/mozart-hrn-3.ly
input/mutopia/W.A.Mozart/mozart-hrn3-defs.ily
input/mutopia/W.A.Mozart/mozart-hrn3-romanze.ily
input/mutopia/W.A.Mozart/mozart-hrn3-rondo.ily
input/test/coriolan-margin.ly
input/test/dynamic-extra.ly
input/test/title-markup.ly
scm/backend-library.scm
scm/framework-eps.scm
scm/framework-ps.scm
scm/framework-tex.scm

index 53836e2229274bb316dd0a0375f485b2e739979b..4ae70b3f3572f2bd84612b4c50703e5b96591d2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-03-13  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * scm/backend-library.scm (output-scopes, header-to-file): Move
+       from framework-tex.scm.
+
+       * scm/framework-ps.scm (output-framework)
+       (output-preview-framework):
+       * scm/framework-eps.scm (output-classic-framework)
+       (output-framework): Use it.  Fixes collated files.
+
 2005-03-12  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * input/sakura-sakura.ly: 
index 1f1fbc575405ff6051a615fa42a9425c216b0572..27e0b55460f87f46969425180c20aa6138657958 100644 (file)
@@ -296,6 +296,7 @@ theScore = \score{
 }
     
 %%% Local variables:
+%%% coding: utf-8
 %%% LilyPond-indent-level:4
 %%% End:
 
index f2bef8b2b4b339eabfc356db13b1b97e3810ec1d..28fd54b8c7fd51aeff9918ed76585722c4bf7ba6 100644 (file)
@@ -1,13 +1,13 @@
 \header {
   title = "Petite Ouverture à danser"
-  subtitle =   "4"
+  subtitle = "4"
   source = ""
   composer = "Erik Satie (1866-1925)"
   enteredby = "jcn"
   copyright = "Public Domain"
 }
 
-\version "2.4.0"
+\version "2.5.13"
 
 \include "nederlands.ly"
 
@@ -163,4 +163,6 @@ lower = \context Staff  \relative c{
     }
 }
 
-
+%% Local Variables:
+%% coding: utf-8
+%% End:
index ff3416f0f8a86c248c95b244c1aaaacca20dff38..90442b062b8be793b9ec0f8693a91f6948980675 100644 (file)
@@ -27,7 +27,7 @@ been lowered
 
 }
 
-\version "2.4.0"
+\version "2.5.13"
 manuscriptBreak = { \break }
 
 
index 61a2b620f6467076ce3e0598f9d8aa0ae047d2cb..5eb7bce4eac02e8ad7eb7f5d85df9425a793d314 100644 (file)
@@ -1,5 +1,5 @@
 #(ly:set-option 'old-relative)
-\version "2.4.0"
+\version "2.5.13"
 
 %{
  Header for Petites Preludes.
index 990a0fda1ddd8e41d17caf02885c70f28accf1b4..e1e1c086822d04ff9d7ca25ce6b2c7b900de35d2 100644 (file)
@@ -44,7 +44,7 @@ to match up.
 %}
 
 
-\version "2.5.2"
+\version "2.5.13"
 
 
 
index 5fd784b3d31714365c06733533b267f42f1c50b3..ff08b92809aef39ba24f739406ec7e3ae8f46606 100644 (file)
@@ -5,7 +5,7 @@
 
 #(set-global-staff-size 16)
 
-\version "2.5.2"
+\version "2.5.13"
 
 \header {
   title = "Romanzen"
index 2ba9a4563c172c6bae5e9d1b939428b930a45515..9cc23eb4206ef892f55368ffa034bfe5ead6bac4 100644 (file)
@@ -1,8 +1,8 @@
 \header{
-  title =       "Konzert Nr. 3 Es dur"
-  subtitle = "für Horn und Orchester"
-  composer =    "Wolfgang Amadeus Mozart (1756-1791)"
-  enteredby =   "HWN"
+  title = "Konzert Nr. 3 Es dur"
+  subtitle = "für Horn und Orchester"
+  composer = "Wolfgang Amadeus Mozart (1756-1791)"
+  enteredby = "HWN"
   opus = "KV 447"
 
   copyright = "public domain"
@@ -41,7 +41,7 @@ virtuoso that taught in Geneva.
 
 %}
 
-\version "2.5.2"
+\version "2.5.13"
 
 \include "mozart-hrn3-defs.ily"
 \include "mozart-hrn3-allegro.ily"
@@ -55,31 +55,29 @@ virtuoso that taught in Geneva.
 
 
 \book {
-    \score
-    {
+    \score {
        { \transpose c' bes \allegro }
-       \layout{ }
+       \layout { }
        \header { piece = "allegro" opus = "" } 
-       \midi{ \tempo 4=90 }
+       \midi { \tempo 4=90 }
     }
 
-
-    \score
-    {
+    \score {
        { \transpose c' bes \romanze }
        \header { piece = "romanze" opus = "" } 
-       \midi{ \tempo 4 = 70  }
-       \layout{}
+       \midi { \tempo 4 = 70  }
+       \layout {}
     }
 
-
     \score
     {
-       { \transpose c' bes     \rondo }
+       { \transpose c' bes \rondo }
        \header { piece = "rondo" opus = "" }
-       \midi{ \tempo 4 = 100 }
+       \midi { \tempo 4 = 100 }
        \layout { }
     }
-
-
 }
+
+%% Local Variables:
+%% coding: utf-8
+%% End:
index fcf57342df5b1011e951220b4cc999c41e2ab60c..86b660df7c94029e8c2a8afd9a38246dd5cb5f00 100644 (file)
@@ -1,10 +1,10 @@
-% #(ly:set-point-and-click 'line-column)
+% 
 
 longgrace = \override Stem  #'stroke-style = #'()
 endlonggrace = \revert Stem #'stroke-style
 ritenuto = \markup { \italic  "rit." }
 
-\version "2.4.0"
+\version "2.5.13"
   
 cresc =  {
     #(ly:export (make-event-chord (list (make-span-event 'CrescendoEvent START)))) 
index e26e273b938d9e56ece37582e022f001d6fa54f2..a65f8ddebfbd2c1728935d7a2628edea5d45a43d 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.4.0"
+\version "2.5.13"
 \include  "mozart-hrn3-defs.ily"
 
 romanze =  \relative c' {
index 48270de3390b4e34a64a1d09f3941d8fa14bf1c6..ec36ca971aba13376d34895c470bc69e3c964621 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.4.0"
+\version "2.5.13"
 
 % \include "mozart-hrn3-defs.ily"
 
index 1551301c2e1101a29a950afba79279a8e16f1adc..c447c9a25dc88facbb73112dd78d9870fe9afcd6 100644 (file)
@@ -1,10 +1,10 @@
 
-\version "2.5.2"
+\version "2.5.13"
 
 
 % Ugh, we need to override some LaTeX titling stuff
 \header {
-  title =      "Ouvertüre"
+  title =      "Ouvertüre"
   subtitle =   "Zu Heinrich Joseph v. Collins Trauerspiel"
   subsubtitle =        \markup { \large \bold "Coriolan" }
   opus = "Op. 62"
@@ -154,3 +154,7 @@ violoncello =  \relative c' {
        linewidth=150.0\mm
     }
 }
+
+%% Local Variables:
+%% coding: utf-8
+%% End:
index 2992630ef794f12fc9f640580f594b56929b748b..b9a80203e04905b69f47436af840a5709544d8da 100644 (file)
@@ -1,9 +1,9 @@
 
-\version "2.4.0"
+\version "2.5.13"
 % probably should be merged into refman.
 \header{
     texidoc = "@cindex Dynamic Piu Forte
-Più forte dynamics is produced using @code{\markup}. " }
+Più forte dynamics is produced using @code{\markup}. " }
 
 piuf = \markup {  \italic "pi\\`u" \dynamic "f" }
 
@@ -19,3 +19,6 @@ piuf =        \markup {  \italic "pi\\`u" \dynamic "f" }
     }
 
 
+%% Local Variables:
+%% coding: utf-8
+%% End:
index bbfc6447df5848b0f2f464dafc6327a8617cdfd7..ed473415803bd2283835200d409201aac1a1f79a 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.5.2"
+\version "2.5.13"
 
 %{
    Markup titles also available for direct PostScript output:
@@ -33,7 +33,7 @@ For century schoolbook font:
 }
 
 latinTest = \markup {
-    "Hellö"
+    "Hellö"
 }
     
 sizeTest = \markup {
@@ -65,11 +65,11 @@ spaceTest = \markup { "two space chars" }
 
     tagline = "my tagline for "
     
-    %dedication = "För my dør Lily"
+    %dedication = "För my dør Lily"
     % ugh: encoding char-size
-    %dedication = "For my öòóôõø so dear Lily"
+    %dedication = "For my öòóôõø so dear Lily"
     dedication = \markup { "For my "
-%                         "öòóôõø"
+%                         "öòóôõø"
                           " so dear Lily" }
     title = "Title"
     subtitle = "(and (the) subtitle)"
@@ -121,3 +121,7 @@ spaceTest = \markup { "two space chars" }
        }
     }
 }
+
+%% Local Variables:
+%% coding: utf-8
+%% End:
index cb4ac82b0d36974748cb7b6fdf42c9e40faa61c1..d03b95870ca49543d4d4c61fec9a6d2fc058bcd5 100644 (file)
    '("tex" "dvi" "ps" "pdf" "png"))
 
   new-fmts)
+
+(define (header-to-file file-name key value)
+  (set! key (symbol->string key))
+  (if (not (equal? "-" file-name))
+      (set! file-name (string-append file-name "." key)))
+  (format (current-error-port)
+         (_ "Writing header field `~a' to `~a'...")
+         key
+         (if (equal? "-" file-name) "<stdout>" file-name))
+  (if (equal? file-name "-")
+      (display value)
+      (display value (open-file file-name "w")))
+  (newline (current-error-port))
+  "")
+
+(define-public (output-scopes scopes fields basename)
+  (define (output-scope scope)
+    (apply
+     string-append
+     (module-map
+      (lambda (sym var)
+       (let ((val (if (variable-bound? var) (variable-ref var) "")))
+         (if (and (memq sym fields) (string? val))
+             (header-to-file basename sym val))
+         ""))
+      scope)))
+  (apply string-append (map output-scope scopes)))
+
index 1e9631ec1612c546981100cd077bcbec5cce145e..fb853c9f7d995fa7b930686fa1b4c59cd13b36df 100644 (file)
 (define (dump-stencils-as-EPSes stencils book basename)
   (define paper (ly:paper-book-paper book))
   (define (dump-infinite-stack-EPS stencils)
-    (let*
-       ((dump-me (stack-stencils Y DOWN 2.0 stencils)))
-      (dump-stencil-as-EPS paper dump-me basename #t)
-      ))
+    (let* ((dump-me (stack-stencils Y DOWN 2.0 stencils)))
+      (dump-stencil-as-EPS paper dump-me basename #t)))
 
   (define (dump-stencils-as-separate-EPS stencils count)
     (if (pair? stencils)
-       (let*
-           ((line (car stencils))
-            (rest (cdr stencils)))
+       (let* ((line (car stencils))
+              (rest (cdr stencils)))
          (dump-stencil-as-EPS
           paper
           line (format "~a-~a" basename count)
           (ly:output-def-lookup paper 'force-eps-font-include))
-
-         (dump-stencils-as-separate-EPS rest (1+ count))
-         )))
+         
+         (dump-stencils-as-separate-EPS rest (1+ count)))))
   
   (let* ((tex-system-name (format "~a-systems.tex" basename))
         (texi-system-name (format "~a-systems.texi" basename))
     (postprocess-output book framework-eps-module
                        (format "~a.eps" basename) (ly:output-formats)))
 
-(define-public (output-classic-framework
-               basename book scopes fields)
-
+(define-public (output-classic-framework basename book scopes fields)
+  (output-scopes scopes fields basename)
   (dump-stencils-as-EPSes
    (map ly:paper-system-stencil (ly:paper-book-systems book))
    book
    basename))
 
 (define-public (output-framework basename book scopes fields)
-  (dump-stencils-as-EPSes (ly:paper-book-pages book)
-                         book
-                         basename))
+  (output-scopes scopes fields basename)
+  (dump-stencils-as-EPSes (ly:paper-book-pages book) book basename))
   
 
 ; redefine to imports from framework-ps
index 1176c6d66fa3950e00d1c4b5589162fb7f3e4841..e27cf4115a014bf8bf3cf6ca74af66d9ac1aee88 100644 (file)
         (page-count (length pages))
         (port (ly:outputter-port outputter)))
 
-
+    (output-scopes scopes fields basename)
     (display (page-header paper page-count #t) port)
     (write-preamble paper #t  port)
 
     ))
 
 
-(define-public (output-preview-framework basename book scopes fields )
+(define-public (output-preview-framework basename book scopes fields)
   (let* ((paper (ly:paper-book-paper book))
         (systems (ly:paper-book-systems book))
-        (scale  (ly:output-def-lookup paper 'outputscale))
+        (scale (ly:output-def-lookup paper 'outputscale))
         (titles (take-while ly:paper-system-title? systems))
         (non-title (find (lambda (x)
                            (not (ly:paper-system-title? x))) systems))
          (stack-stencils Y DOWN 0.0
                          (map ly:paper-system-stencil
                               (append titles (list non-title))))))
+    (output-scopes scopes fields basename)
     (dump-stencil-as-EPS paper dump-me
                         (format "~a.preview" basename)
                         #t)))
index 54f6539e4f7f8831755e1a52e8ae9e481589d0fd..fa6ba28bb5fc8ebfc21176df04d44de253a2af09 100644 (file)
          (map (lambda (x) (font-load-command paper x))
               (ly:paper-fonts paper)))))
 
-(define (header-to-file fn key val)
-  (set! key (symbol->string key))
-  (if (not (equal? "-" fn))
-      (set! fn (string-append fn "." key)))
-  (display
-   (format (_ "Writing header field `~a' to `~a'...")
-          key
-          (if (equal? "-" fn) "<stdout>" fn))
-   (current-error-port))
-  (if (equal? fn "-")
-      (display val)
-      (display val (open-file fn "w")))
-  (newline (current-error-port))
-  "")
-
-(define (output-scopes scopes fields basename)
-  (define (output-scope scope)
-    (apply
-     string-append
-     (module-map
-      (lambda (sym var)
-       (let ((val (if (variable-bound? var) (variable-ref var) "")))
-         (if (and (memq sym fields) (string? val))
-             (header-to-file basename sym val))
-         ""))
-      scope)))
-  (apply string-append (map output-scope scopes)))
-
 (define (tex-string-def prefix key str)
   (if (equal? "" (sans-surrounding-whitespace (sanitize-tex-string str)))
       (string-append "\\let\\" prefix (symbol->tex-key key) "\\undefined%\n")