]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/define-markup-commands.scm (justify-field): add.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 12 Jul 2005 20:46:24 +0000 (20:46 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 12 Jul 2005 20:46:24 +0000 (20:46 +0000)
* scm/define-grobs.scm (all-grob-descriptions): decrease font size.

ChangeLog
THANKS
scm/define-grobs.scm
scm/define-markup-commands.scm
scm/framework-scm.scm
scm/framework-socket.scm
scm/output-socket.scm

index 1602dd7508c322fbce6ea849e84c9ac80f7d2d9b..589755724675fbcdb52b669cb14072fb517d9582 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-12  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scm/define-markup-commands.scm (justify-field): add. 
+
+       * scm/define-grobs.scm (all-grob-descriptions): decrease font size.
+
 2005-07-11  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/lookup.cc (filled_box): express filled_box with
diff --git a/THANKS b/THANKS
index 37488a8a4ad855120cae8943bccadbdfa369084d..4712da10e69c27e6225721b465a2b695ce47425b 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -22,6 +22,12 @@ Sven Axelsson
 
 
 
+BUG HUNTERS/SUGGESTIONS
+
+Erlend Aasland
+
+
+
 Release 2.6
 ***********
 
index 60ca3f11709e8c65bd7928b71119e28a26f0ee4b..91dc17cc1eec26d4ce097bec75ef6a79a3050f3d 100644 (file)
      . (
        (print-function . ,Text_interface::print)
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
+       (font-size . -2)
        (stem-attachment-function . ,tablature-stem-attachment-function)
        (font-series . bold)
        (meta . ((interfaces
index 98d2161c37b4dd9696c0c05f52d32e11bc0e9fb1..df97c7d41c5603d3b6c712c231cc58b896f5cb94 100644 (file)
@@ -507,7 +507,24 @@ determines the space between each markup in @var{args}."
 (def-markup-command (justify-string layout props arg) (string?)
   "Justify a string. Paragraphs may be separated with double newlines"
   (wordwrap-string layout props #t arg))
-  
+
+
+(def-markup-command (wordwrap-field layout props symbol) (symbol?)
+   (let* ((m (chain-assoc-get symbol props)))
+     (if (string? m)
+      (interpret-markup layout props
+       (list wordwrap-string-markup m))
+      (ly:make-stencil '()  '(1 . -1) '(1 . -1)))))
+
+(def-markup-command (justify-field layout props symbol) (symbol?)
+   (let* ((m (chain-assoc-get symbol props)))
+     (if (string? m)
+      (interpret-markup layout props
+       (list justify-string-markup m))
+      (ly:make-stencil '()  '(1 . -1) '(1 . -1)))))
+
+
+
 (def-markup-command (combine layout props m1 m2) (markup? markup?)
   "Print two markups on top of each other."
   (let* ((s1 (interpret-markup layout props m1))
index 3454a18a5dcf3cfcca26812bc9764c37d1e1c7db..d1ee804cd86da114701a0b93c6ecff83b17a7959 100644 (file)
@@ -25,6 +25,8 @@
      (pretty-print (ly:stencil-expr page) file))
    (ly:paper-book-pages book))))
 
+(define-public output-classic-framework output-framework)
+
 
 (define-public (convert-to-ps . args) #t)
 (define-public (convert-to-pdf . args) #t)
index a2a000e1e22fc988e056e0c68ecf2082d6dfe955..799e95d77b59411e3cee54ac8621d2f940d3bde6 100644 (file)
 
 (define-public (output-framework channel book scopes fields )
   (let*
-      (
-       (ctor-arg (if (string? channel)
+      ((ctor-arg (if (string? channel)
                     (open-output-file (format "~a.socket" channel))
                     channel))
        (outputter (ly:make-paper-outputter
                   ctor-arg
-                  "socket")))
-
-    (for-each
-     (lambda (page)
-       (ly:outputter-dump-stencil outputter page))
-     (ly:paper-book-pages book))))
+                  "socket"))
+       (systems (ly:paper-book-systems book)))
 
+    (if (pair? systems)
+       (ly:outputter-dump-stencil outputter
+                                  (ly:paper-system-stencil (car systems))))
+    ))
 
 (define-public output-classic-framework output-framework)
 
index 54bf5d13427eb360c594c3aa6220f6f1847c3838..74451f3aa89a2cfa69ed8b60c104ca284e12b1c1 100644 (file)
  
  (ly:all-stencil-expressions))
 
+
+(define-public (draw-line thick x1 y1 x2 y2)
+  (format "drawline ~a ~a ~a ~a ~a"
+         thick x1 y2 x2 y2))
+
+
 (define-public (named-glyph font glyph)
-  (format "~a ~a glyphshow" glyph
-         (ly:font-name font)))
+  (format "glyphshow ~a \"~a\" ~a"
+         (ly:font-glyph-name-to-charcode font glyph)
+         (ly:font-name font)
+         (modified-font-metric-font-scaling font)
+         ))
 
 (define-public (placebox x y s) 
-  (format "place at ~a ~a: ~a\n" x y s))
+  (format "at ~a ~a ~a\n" x y s))
 
-(define-public (round-filled-box x y width height blotdiam)
-  (format "~a ~a ~a ~a ~a draw_round_box"
-         x y width height blotdiam
+(define-public (round-filled-box  breapth width depth height blot-diameter)
+  (format "draw_round_box ~a ~a ~a ~a ~a"
+         breapth width depth height blot-diameter
          ))
 
+(define (music-cause grob)
+  (let*
+      ((cause (ly:grob-property  grob 'cause)))
+
+    (cond
+     ((ly:music? cause) cause)
+     ((ly:grob? cause) (music-cause cause))
+     (else
+      #f))))
+
+(define (grob-bbox grob offset)
+  (let*
+      ((x-ext (ly:grob-extent grob grob X))
+       (y-ext (ly:grob-extent grob grob Y))
+       (x (car offset))
+       (y (cdr offset))
+       )
+
+    (list (+ x (car x-ext))
+         (+ y (car y-ext))
+         (+ x (cdr x-ext))
+         (+ y (cdr y-ext)))
+    ))
+
+(define-public (no-origin)
+  "nocause\n")
+
+(define-public (grob-cause offset grob)
+  (let*
+      ((cause (music-cause grob)))
+  (if (and cause (integer? (ly:music-property cause 'input-tag)))
+      (apply format
+            (append
+             (list "cause ~a ~a ~a ~a ~a\n" (ly:music-property cause 'input-tag))
+             (grob-bbox grob offset)
+            ))
+      "")))
+
 (define-public (glyph-string
         postscript-font-name
         size cid?
         x-y-named-glyphs)
   
-  (format "~a ~a text: ~a " postscript-font-name size
+  (format "text \"~a\" ~a ~a " postscript-font-name size
          (string-join (map (lambda (xyn) (caddr xyn))
                            x-y-named-glyphs))))