]> git.donarmstrong.com Git - lilypond.git/commitdiff
(circle): support circle.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 27 May 2005 12:00:15 +0000 (12:00 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 27 May 2005 12:00:15 +0000 (12:00 +0000)
(bracket): stub for bracket.

ChangeLog
scm/framework-tex.scm
scm/lily.scm
scm/output-svg.scm

index 7f7b49da7a35d9a032f2198ffbc28e13b3654df8..22764291f2d83c753bca5bd11df8fb218f9ebf11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-05-27  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/output-svg.scm (circle): support circle.
+       (bracket): stub for bracket.
+
        * scripts/lilypond-book.py (main): make sure --psfonts warning is correct.
 
 2005-05-26  Graham Percival  <gperlist@shaw.ca>
index 561c5c5e7c7f00fd2df76656c7ef08f08cd74cc2..568c5e7c409632c845b35bd2dfde25534cf2e935 100644 (file)
 (define (header-end)
   (string-append
    "\\def\\scaletounit{ "
-   (number->string (lily-unit->bigpoint-factor))
+   (number->string lily-unit->bigpoint-factor)
    " mul }%\n"
    "\\ifx\\lilypondstart\\undefined\n"
    "  \\input lilyponddefs\n"
index a956f55073461df5e0efc63e70ff39b4e7ebd6b6..c385f0b809ea6fe930088b72d5c09eff5d7ca2ce 100644 (file)
@@ -405,7 +405,6 @@ The syntax is the same as `define*-public'."
            (exit 1))
          (exit 0)))))
 
-
 (define (gui-no-files-handler)
   (let* ((ly (string-append (ly:effective-prefix) "/ly/"))
         ;; FIXME: soft-code, localize
index 830bba9ab274e73ed358793d29d7c765c0e8c2d8..edf86aa119bcb4ddf5d2995eb2da5ad8ca908b10 100644 (file)
            (stroke-linecap . "round")
            (stroke-width . ,thick)
            (stroke . "black")
-           ;;'(fill . "black")
            (x1 . ,x1)
-           (y1 . ,y1)
+           (y1 . ,(- y1))
            (x2 . ,x2)
-           (y2 . ,y2))
+           (y2 . ,(- y2)))
          alist)))
 
 (define (dashed-line thick on off dx dy)
          `(transform . ,(format #f "translate (~f, ~f)"
                                 x (- y)))))
 
-
-(define (polygon coords blot-diameter)
-  (entity 'polygon ""
-         '(stroke-linejoin . "round")
-         '(stroke-linecap . "round")
-         `(stroke-width . ,blot-diameter)
-         '(stroke . "black")
-         ;;'(fill . "black")
-         `(points . ,(string-join
-                      (map offset->point (ly:list->offsets '() coords))))
-  ))
+(define (polygon coords blot-diameter is-filled)
+  (entity
+   'polygon ""
+   '(stroke-linejoin . "round")
+   '(stroke-linecap . "round")
+   `(stroke-width . ,blot-diameter)
+   `(fill . ,(if is-filled "black" "none"))
+   '(stroke . "black")
+   `(points . ,(string-join
+               (map offset->point (ly:list->offsets '() coords))))
+   ))
 
 (define (round-filled-box breapth width depth height blot-diameter)
   (entity 'rect ""
          `(ry . ,(/ blot-diameter 2))
          ))
 
+(define (circle radius thick is-filled)
+  (entity
+   'circle ""
+   '(stroke-linejoin . "round")
+   '(stroke-linecap . "round")
+   `(fill . ,(if is-filled "black" "none"))
+   `(stroke . "black")
+   `(stroke-width . ,thick)
+   `(r . ,radius)))
+
 (define (text font string)
   (dispatch `(fontify ,font ,(entity 'tspan (string->entities string)))))
 
 (define (utf8-string pango-font-description string)
   (dispatch `(fontify ,pango-font-description ,(entity 'tspan string))))
+
+(define (bracket arch_angle arch_width arch_height height arch_thick thick)
+  ;; FIXME.
+  ""
+  )