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