2005-03-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/define-markup-commands.scm (fontsize): new markup
+ command. Also set baseline-skip
+
* lily/main.cc (do_chroot_jail): paranoia security for webserver
use. Patch by Sebastiano Vigna <vigna@dsi.unimi.it>.
\raise #0.7 \beam #2.0 #0.5 #0.48
}
-%% FIXME: Would using http://lilypond.org/pdflink#music%20notation
-%% help Google to find us even better? Is it bad not to point
-%% to our main page, for this reason? How bad is using /web
-%% iso /?
tagline = \markup {
\with-url
- #"http://lilypond.org/pdflink/"
+
+ % todo: lilypond.org/music-engraving
+ #"http://lilypond.org/web/"
\line {
- "Engraving by LilyPond"
+ "Music engraving by LilyPond"
#(ly:export (lilypond-version))
"-"
"www.lilypond.org"
(def-markup-command (column layout props args) (markup-list?)
"Stack the markups in @var{args} vertically. The property
@code{baseline-skip} determines the space between each markup in @var{args}."
+ (display (chain-assoc-get 'baseline-skip props))(newline)
(stack-lines
-1 0.0 (chain-assoc-get 'baseline-skip props)
(remove ly:stencil-empty?
"
(interpret-markup layout (cons (list new-prop) props) arg))
-(def-markup-command (smaller layout props arg) (markup?)
- "Decrease the font size relative to current setting"
+
+(def-markup-command (fontsize layout props increment arg) (number? markup?)
+ "Add @var{increment} to the font-size. Adjust baseline skip accordingly."
+
(let* ((fs (chain-assoc-get 'font-size props 0))
- (entry (cons 'font-size (- fs 1))))
- (interpret-markup layout (cons (list entry) props) arg)))
+ (bs (chain-assoc-get 'baseline-skip props 2))
+ (entries (list
+ (cons 'baseline-skip (* bs (magstep increment)))
+ (cons 'font-size (+ fs increment )))))
+ (interpret-markup layout (cons entries props) arg)))
+
(def-markup-command (bigger layout props arg) (markup?)
"Increase the font size relative to current setting"
- (let* ((fs (chain-assoc-get 'font-size props 0))
- (entry (cons 'font-size (+ fs 1))))
- (interpret-markup layout (cons (list entry) props) arg)))
+ (interpret-markup layout props
+ `(,fontsize-markup 1 ,arg)))
+
+(def-markup-command (smaller layout props arg) (markup?)
+ "Decrease the font size relative to current setting"
+ (interpret-markup layout props
+ `(,fontsize-markup -1 ,arg)))
(def-markup-command larger (markup?) bigger-markup)