* scm/define-grobs.scm (all-grob-descriptions): decrease font size.
+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
+BUG HUNTERS/SUGGESTIONS
+
+Erlend Aasland
+
+
+
Release 2.6
***********
. (
(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
(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))
(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)
(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)
(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))))