]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-text-spanners.ly
LSR updates from tarball
[lilypond.git] / Documentation / snippets / creating-text-spanners.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "expressive-marks, tweaks-and-overrides, text"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13   texidoces = "
14 Las instrucciones @code{\\startTextSpan} y @code{\\stopTextSpan}
15 permiten la creación de elementos de extensión textuales tan
16 fácilmente como indicaciones de pedal u
17 octavaciones. Sobreescribimos ciertas propiedades del objeto
18 @code{TextSpanner} para modificar su salida.
19
20 "
21   doctitlees = "Crear elementos de extensión textuales"
22
23 %% Translation of GIT committish: f5cfaf8ef4ac347702f554af0944ef0d8396e73a
24   texidocfr = "
25 Les commandes @code{\\startTextSpan} et @code{\\stopTextSpan} permettent
26 d'ajouter une ligne de prolongation aux indications textuelles, à
27 l'instar des indications de pédale ou d'octaviation.  Jouer sur les
28 propriétés de l'objet @code{TextSpanner} permet d'en modifier le rendu.
29
30 "
31   doctitlefr = "Création d'extensions de texte"
32
33   texidoc = "
34 The @code{\\startTextSpan} and @code{\\stopTextSpan} commands allow the
35 creation of text spanners as easily as pedal indications or
36 octavations. Override some properties of the @code{TextSpanner} object
37 to modify its output.
38
39 "
40   doctitle = "Creating text spanners"
41 } % begin verbatim
42
43
44 \paper { ragged-right = ##f }
45
46 \relative c'' {
47   \override TextSpanner #'(bound-details left text) = #"bla"
48   \override TextSpanner #'(bound-details right text) = #"blu"
49   a4 \startTextSpan
50   b4 c
51   a4 \stopTextSpan
52
53   \override TextSpanner #'style = #'line
54   \once \override TextSpanner
55     #'(bound-details left stencil-align-dir-y) = #CENTER
56   a4 \startTextSpan
57   b4 c
58   a4 \stopTextSpan
59
60   \override TextSpanner #'style = #'dashed-line
61   \override TextSpanner #'(bound-details left text) =
62     \markup { \draw-line #'(0 . 1) }
63   \override TextSpanner #'(bound-details right text) =
64     \markup { \draw-line #'(0 . -2) }
65   \once \override TextSpanner #'(bound-details right padding) = #-2
66
67   a4 \startTextSpan
68   b4 c
69   a4 \stopTextSpan
70
71   \set Staff.middleCPosition = #-13
72   \override TextSpanner #'dash-period = #10
73   \override TextSpanner #'dash-fraction = #0.5
74   \override TextSpanner #'thickness = #10
75   a4 \startTextSpan
76   b4 c
77   a4 \stopTextSpan
78 }
79