From: Graham Percival Date: Sat, 16 Feb 2008 19:03:16 +0000 (-0800) Subject: LSR update. X-Git-Tag: release/2.11.40-1~3^2^2~1^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=915b77915e296998929057be75c8776db3020126;p=lilypond.git LSR update. --- diff --git a/input/lsr/spacing.snippet-list b/input/lsr/spacing.snippet-list index d9f5825d2e..1762bd4f7b 100644 --- a/input/lsr/spacing.snippet-list +++ b/input/lsr/spacing.snippet-list @@ -1,5 +1,6 @@ -alignment-vertical-spacing.ly vertically-aligning-ossias-and-lyrics.ly +adjusting-lyrics-vertical-spacing.ly +alignment-vertical-spacing.ly page-label.ly +vertically-centered-dynamics-and-textscripts.ly proportional-strict-notespacing.ly -adjusting-lyrics-vertical-spacing.ly diff --git a/input/lsr/tweaks-and-overrides.snippet-list b/input/lsr/tweaks-and-overrides.snippet-list index eb85822dca..f1322ee7d8 100644 --- a/input/lsr/tweaks-and-overrides.snippet-list +++ b/input/lsr/tweaks-and-overrides.snippet-list @@ -1,8 +1,8 @@ altering-the-number-of-stems-in-a-beam.ly time-signature-in-parentheses.ly -changing-the-default-text-font-family.ly +vertically-centered-dynamics-and-textscripts.ly proportional-strict-notespacing.ly -making-an-object-invisible-with-the-transparent-property.ly +changing-the-default-text-font-family.ly transcription-of-ancient-music-with-incipit.ly alignment-vertical-spacing.ly manually-controlling-beam-positions.ly @@ -10,6 +10,7 @@ custodes.ly drawing-boxes-around-grobs.ly move-specific-text.ly drawing-circles-around-various-objects.ly +making-an-object-invisible-with-the-transparent-property.ly rest-styles.ly creating-text-spanners.ly using-the--tweak-command-to-tweak-individual-grobs.ly diff --git a/input/lsr/vertically-centered-dynamics-and-textscripts.ly b/input/lsr/vertically-centered-dynamics-and-textscripts.ly new file mode 100644 index 0000000000..5d183b4fd2 --- /dev/null +++ b/input/lsr/vertically-centered-dynamics-and-textscripts.ly @@ -0,0 +1,38 @@ +%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% This file is in the public domain. +\version "2.11.38" + +\header { + lsrtags = "tweaks-and-overrides, spacing" + texidoc = " +By setting the Y-extent property to a fixed value (here -1.5 . 1.5), we +force LilyPond to align every elements of the DynamicLineSpanner (text +elements and dynamics) to a common reference point, regardless to the +actual extent of these objects. This way, every element will be +vertically centered, for a nicer output (you can compare the first and +the second line in this example; the trick is only applied on the +second line). + +The same idea is used to align the text scripts along their baseline. +" } +% begin verbatim +\paper { indent = 0 line-width = 5\in } + +music = \relative c'' +{ + c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" } + c4\p c \f \> c c \! \p +} + +\score +{ + { + \music \break + + \override DynamicLineSpanner #'staff-padding = #2.0 + \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5) + \override TextScript #'Y-extent = #'(-1.5 . 1.5) + \music + } +} +