X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Foutput-socket.scm;h=352ff2989dfbbed5ee8d02245d48d94972e322fd;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=c86047815ade2ecc0a9ea9aec2074a91a58f77ef;hpb=f41973ff763d5972a85995b6d40c864281ec6714;p=lilypond.git diff --git a/scm/output-socket.scm b/scm/output-socket.scm index c86047815a..352ff2989d 100644 --- a/scm/output-socket.scm +++ b/scm/output-socket.scm @@ -48,18 +48,8 @@ ;;; stencil commands ;;; -(define (bezier-sandwich lst thick) - (format "bezier_sandwich ~a [~a]" - thick - (string-append - (string-join (map - (lambda (x) - (format "(~a,~a)" (car x) (cdr x))) - lst) - ",")))) - (define (draw-line thick x1 y1 x2 y2) - (format "drawline ~a ~a ~a ~a ~a" + (format #f "drawline ~a ~a ~a ~a ~a" thick x1 y2 x2 y2)) (define (grob-cause offset grob) @@ -70,12 +60,12 @@ -1)) (name (assoc-get 'name (ly:grob-property grob 'meta)))) - (apply format - (append (list "cause ~a \"~a\" ~a ~a ~a ~a\n" tag name) - (grob-bbox grob offset))))) + (apply format #f + "cause ~a \"~a\" ~a ~a ~a ~a\n" tag name + (grob-bbox grob offset)))) (define (named-glyph font glyph) - (format "glyphshow ~a \"~a\" ~a \"~a\"" + (format #f "glyphshow ~a \"~a\" ~a \"~a\"" (ly:font-glyph-name-to-charcode font glyph) (ly:font-name font) (modified-font-metric-font-scaling font) @@ -86,21 +76,21 @@ (define (placebox x y s) (if (not (string-null? s)) - (format "at ~a ~a ~a\n" x y s) + (format #f "at ~a ~a ~a\n" x y s) "")) (define (polygon xy-coords blot do-fill) - (format "polygon ~a ~a ~a" + (format #f "polygon ~a ~a ~a" blot (if do-fill "True" "False") (string-join (map number->string xy-coords)))) (define (round-filled-box breapth width depth height blot-diameter) - (format "draw_round_box ~a ~a ~a ~a ~a" + (format #f "draw_round_box ~a ~a ~a ~a ~a" breapth width depth height blot-diameter)) (define (utf-8-string descr string) - (format "utf-8 \"~a\" \"~a\"" + (format #f "utf-8 \"~a\" \"~a\"" (escape-string descr) ;; don't want unescaped spaces. (escape-string string)))