]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/creating-text-spanners.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / creating-text-spanners.ly
index 34b4f2eb785299b72a3270aa61aa27aed593ef05..d028a22773bee1749e6f3c3a21688b08a5a5f2b6 100644 (file)
@@ -1,45 +1,59 @@
-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% Do not edit this file; it is auto-generated from input/new
 %% This file is in the public domain.
-\version "2.11.38"
+\version "2.11.62"
 
 \header {
-  lsrtags = "expressive-marks, text, tweaks-and-overrides"
- texidoc = "
-The <code>\\startTextSpan</code> and <code>\\stopTextSpan</code>
-commands give you the ability to create text spanners as easily as
-pedals indications or octavations. Override some properties of the
-<code>TextSpanner</code> object to modify its output.
-" }
-% begin verbatim
-\relative c''{
-    \override TextSpanner  #'edge-text = #'("bla" . "blu")
-    a \startTextSpan
-    b c 
-    a \stopTextSpan
-
-    \override TextSpanner  #'dash-period = #2
-    \override TextSpanner  #'dash-fraction = #0.0
-    a \startTextSpan
-    b c 
-    a \stopTextSpan
-
-    \revert TextSpanner #'style
-    \override TextSpanner  #'style = #'dashed-line \override TextSpanner #'bound-details #'left #'text = \markup { \draw-line #'(0 . 1) }
- \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -2) }
-
-    a \startTextSpan
-    b c 
-    a \stopTextSpan
+  texidoces = "
+Las instrucciones @code{\\startTextSpan} y @code{\\stopTextSpan}
+permiten la creación de elementos de extensión textuales tan
+fácilmente como indicaciones de pedal u
+octavaciones. Sobreescribimos ciertas propiedades del objeto
+@code{TextSpanner} para modificar su salida.
 
+"
+  doctitlees = "Crear elementos de extensión textuales"
 
-    \set Staff.middleCPosition = #-13
-
-    \override TextSpanner  #'dash-period = #10
-    \override TextSpanner  #'dash-fraction = #.5
-    \override TextSpanner  #'thickness = #10
-    a \startTextSpan
-    b c 
-    a \stopTextSpan
-    \set Staff.middleCPosition = #-6   
+  lsrtags = "expressive-marks, text, tweaks-and-overrides"
+  texidoc = "The @code{\\startTextSpan} and @code{\\stopTextSpan}
+commands allow the creation of text spanners as easily as pedal
+indications or octavations.  Override some properties of the
+@code{TextSpanner} object to modify its output."
+
+  doctitle = "Creating text spanners"
+} % begin verbatim
+
+\paper { ragged-right = ##f }
+
+\relative c'' {
+  \override TextSpanner #'bound-details #'left #'text = #"bla"
+  \override TextSpanner #'bound-details #'right #'text = #"blu"
+  a4 \startTextSpan
+  b4 c
+  a4 \stopTextSpan
+  
+  \override TextSpanner #'style = #'line
+  \once \override TextSpanner #'bound-details
+    #'left #'stencil-align-dir-y = #CENTER
+  a4 \startTextSpan
+  b4 c
+  a4 \stopTextSpan
+  
+  \override TextSpanner #'style = #'dashed-line
+  \override TextSpanner #'bound-details #'left #'text =
+    \markup { \draw-line #'(0 . 1) }
+  \override TextSpanner #'bound-details #'right #'text =
+    \markup { \draw-line #'(0 . -2) }
+  \once \override TextSpanner #'bound-details #'right #'padding = #-2
+
+  a4 \startTextSpan
+  b4 c
+  a4 \stopTextSpan
+  
+  \set Staff.middleCPosition = #-13
+  \override TextSpanner #'dash-period = #10
+  \override TextSpanner #'dash-fraction = #0.5
+  \override TextSpanner #'thickness = #10
+  a4 \startTextSpan
+  b4 c
+  a4 \stopTextSpan
 }
-