]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-and-centering-instrument-names.ly
Merge branch 'translation' into staging
[lilypond.git] / Documentation / snippets / aligning-and-centering-instrument-names.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: 85394d425536d267ed0cb71d17023849f1611180
11   texidocfr = "
12 L'alignement horizontal des noms d'instrument se gère à l'aide de la
13 propriété @code{Staff.InstrumentName #'self-alignment-X}.  Les variables
14 @code{indent} et @code{short-indent}, attachées au bloc @code{\\layout},
15 déterminent l'espace alloué à l'alignement des noms d'instrument,
16 respectivement dans leurs formes développée et abrégée.
17
18 "
19   doctitlefr = "Alignement des noms d'instrument"
20
21   lsrtags = "text, paper-and-layout, titles"
22
23
24 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
25   texidoces = "
26 La alineación horizontal de los nombres de instrumento se puede
27 trucar modificando la propiedad @code{Staff.InstrumentName
28 #'self-alignment-X}.  Las variables de @code{\\layout}
29 @code{indent} y @code{short-indent} definen el espacio en que se
30 alinean los nombres de instrumento antes del primer sistema y de
31 los siguientes, respectivamente.
32
33 "
34   doctitlees = "Alinear y centrar los nombres de instrumento"
35
36   texidoc = "
37 The horizontal alignment of instrument names is tweaked by changing the
38 @code{Staff.InstrumentName #'self-alignment-X} property. The
39 @code{\\layout} variables @code{indent} and @code{short-indent} define
40 the space in which the instrument names are aligned before the first
41 and the following systems, respectively.
42
43 "
44   doctitle = "Aligning and centering instrument names"
45 } % begin verbatim
46
47
48 \paper {
49   left-margin = 3\cm
50 }
51
52 \score {
53   \new StaffGroup <<
54     \new Staff {
55       \override Staff.InstrumentName #'self-alignment-X = #LEFT
56       \set Staff.instrumentName = \markup \left-column {
57         "Left aligned"
58         "instrument name"
59       }
60       \set Staff.shortInstrumentName = #"Left"
61       c''1
62       \break
63       c''1
64     }
65     \new Staff {
66       \override Staff.InstrumentName #'self-alignment-X = #CENTER
67       \set Staff.instrumentName = \markup \center-column {
68         Centered
69         "instrument name"
70       }
71       \set Staff.shortInstrumentName = #"Centered"
72       g'1
73       g'1
74     }
75     \new Staff {
76       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
77       \set Staff.instrumentName = \markup \right-column {
78         "Right aligned"
79         "instrument name"
80       }
81       \set Staff.shortInstrumentName = #"Right"
82       e'1
83       e'1
84     }
85   >>
86   \layout {
87     ragged-right = ##t
88     indent = 4\cm
89     short-indent = 2\cm
90   }
91 }