]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/fr/user/macros.itexi
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / Documentation / fr / user / macros.itexi
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: d30aabb4adc9e13c7a5a99a22230e97a0f164255
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9
10 @c   ***** Displaying text *****
11
12 @c we need this since @q{\} doesn't work with makeinfo 4.8 --
13 @c say @q{@value{backslash}} instead
14 @set backslash \
15
16 @c to get decent quotes in `foo' and ``foo''
17 @c  these need to be split up so that "@qq{foo}." looks nice.  :(
18 @iftex
19 @macro q{TEXT}
20 @quoteleft{}\TEXT\@quoteright{}
21 @end macro
22
23 @macro qq{TEXT}
24 @guillemetleft{}@tie{}\TEXT\@tie{}@guillemetright{}
25 @end macro
26 @end iftex
27
28
29 @ifinfo
30 @macro q{TEXT}
31 `\TEXT\'
32 @end macro
33
34 @macro qq{TEXT}
35 « \TEXT\ »
36 @end macro
37 @end ifinfo
38
39
40 @ifhtml
41 @macro q{TEXT}
42 @html
43 ‘\TEXT\’
44 @end html
45 @end macro
46
47 @c FIXME: hack unbreakable thin spaces
48 @macro qq{TEXT}
49 @html
50 « \TEXT\ »
51 @end html
52 @end macro
53 @end ifhtml
54
55
56 @ifdocbook
57 @macro q{TEXT}
58 @xml
59 ‘\TEXT\’
60 @end xml
61 @end macro
62
63 @c FIXME: hack unbreakable thin spaces
64 @macro qq{TEXT}
65 @xml
66 « \TEXT\ »
67 @end xml
68 @end macro
69 @end ifdocbook
70
71 @macro warning{TEXT}
72 @quotation
73 @quotation
74 @cartouche
75 @b{Note :} \TEXT\
76 @end cartouche
77 @end quotation
78 @end quotation
79 @end macro
80
81 @ifnotinfo
82 @macro notation{TEXT}
83 @var{\TEXT\}
84 @end macro
85 @end ifnotinfo
86
87 @ifinfo
88 @macro notation{TEXT}
89 \TEXT\
90 @end macro
91 @end ifinfo
92
93 @macro smallspace
94 @sp 1
95 @end macro
96
97
98 @c   **** Displaying images not generated by lilypond-book
99
100 @c current installation setup of Info docs requires that all images are
101 @c expected to be found in lilypond/ subdirectory.  lilypond-book already
102 @c generates proper @image commands for images of music; these macros
103 @c definitions do the same for other images.
104
105 @ifnotinfo
106 @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT}
107 @image{\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\}
108 @end macro
109 @end ifnotinfo
110
111 @ifinfo
112 @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT}
113 @image{lilypond/\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\}
114 @end macro
115 @end ifinfo
116
117
118
119 @c   **** Headings in a doc subsection ****
120
121 @macro predefined
122 @noindent
123 @subsubheading Predefined commands
124
125 @end macro
126
127 @macro snippets
128 @noindent
129 @subsubheading Selected Snippets
130
131 @end macro
132
133 @c obsolete, remove when translation is fully updated
134 @macro commonprop
135 @noindent
136 @subsubheading Commonly tweaked properties
137
138 @end macro
139
140 @macro seealso
141 @noindent
142 @subsubheading See also
143
144 @end macro
145
146 @macro knownissues
147 @noindent
148 @subsubheading Known issues and warnings
149
150 @end macro
151
152 @macro context{TEXT}
153 @vindex \TEXT\
154 @code{\TEXT\}@c should use internalsref
155 @end macro
156
157 @macro refcommand{TEXT}
158 @vindex \TEXT\
159 @code{\TEXT\}
160 @end macro
161
162 @macro funindex {TEXT}
163 @findex \TEXT\
164 @kindex \TEXT\
165 @end macro
166
167
168
169 @c   **** Links and references ****
170
171 @c usage: @lsr{ancient,custodes.ly}
172 @macro lsr{DIR,TEXT}
173 @ifhtml
174 @uref{source/input/lsr/\DIR\/collated-files.html#\TEXT\,@file{\DIR\/\TEXT\}}
175 @end ifhtml
176 @ifnothtml
177 @file{\DIR\/\TEXT\}
178 @end ifnothtml
179 @end macro
180
181 @macro lsrdir{DIR}
182 @ifhtml
183 @uref{source/input/lsr/\DIR\/collated-files.html,@file{\DIR\}/}
184 @end ifhtml
185 @ifnothtml
186 @file{\DIR\}
187 @end ifnothtml
188 @end macro
189
190
191
192
193 @c  Definitions for references:
194 @c     @internalsref
195 @c     @rglos
196 @c     @rprogram
197 @c     @ruser
198 @c     @rlearning
199
200 @ifhtml
201 @c ***** HTML *****
202
203 @c makeinfo-4.7 encodes html names, which means that nodes that
204 @c contain nonalphanum characters will be broken links on the website.
205 @c @uref{../lilypond-internals/\TEXT\.html,\TEXT\}@c
206 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
207 @c better than a broken link.
208 @c @inforef{\TEXT\,,lilypond-internals}@c
209 @c using @ref without punctuation is OK without for formats other than info
210
211 @ifset bigpage
212
213 @macro internalsref{TEXT}
214 @vindex \TEXT\
215 @ref{\TEXT\,,,lilypond-internals-big-page}
216 @end macro
217
218 @macro rglos{TEXT}
219 @vindex \TEXT\
220 @ref{\TEXT\,,,music-glossary-big-page}
221 @end macro
222
223 @macro rprogram{TEXT}
224 @vindex \TEXT\
225 @ref{\TEXT\,,,lilypond-program-big-page}
226 @end macro
227
228 @macro ruser{TEXT}
229 @vindex \TEXT\
230 @ref{\TEXT\,,,lilypond-big-page}
231 @end macro
232
233 @macro rlearning{TEXT}
234 @vindex \TEXT\
235 @ref{\TEXT\,,,lilypond-learning-big-page}
236 @end macro
237
238 @end ifset
239
240
241 @ifclear bigpage
242
243 @macro internalsref{TEXT}
244 @vindex \TEXT\
245 @ref{\TEXT\,,,lilypond-internals}
246 @end macro
247
248 @macro rglos{TEXT}
249 @vindex \TEXT\
250 @ref{\TEXT\,,,music-glossary}
251 @end macro
252
253 @macro rprogram{TEXT}
254 @vindex \TEXT\
255 @ref{\TEXT\,,,lilypond-program}
256 @end macro
257
258 @macro ruser{TEXT}
259 @vindex \TEXT\
260 @ref{\TEXT\,,,lilypond}
261 @end macro
262
263 @macro rlearning{TEXT}
264 @vindex \TEXT\
265 @ref{\TEXT\,,,lilypond-learning}
266 @end macro
267
268 @end ifclear
269
270 @end ifhtml
271
272
273 @ifdocbook
274 @c ***** DOCBOOK-XML *****
275
276 @macro internalsref{TEXT}
277 @vindex \TEXT\
278 @ref{\TEXT\,,,lilypond-internals}
279 @end macro
280
281 @macro rglos{TEXT}
282 @vindex \TEXT\
283 @ref{\TEXT\,,,music-glossary}
284 @end macro
285
286 @macro rprogram{TEXT}
287 @vindex \TEXT\
288 @ref{\TEXT\,,,lilypond-program}
289 @end macro
290
291 @macro ruser{TEXT}
292 @vindex \TEXT\
293 @ref{\TEXT\,,,lilypond}
294 @end macro
295
296 @macro rlearning{TEXT}
297 @vindex \TEXT\
298 @ref{\TEXT\,,,lilypond-learning}
299 @end macro
300
301 @end ifdocbook
302
303
304 @ifinfo
305 @c **** INFO ****
306
307 @macro internalsref{NAME}
308 @vindex \NAME\
309 @inforef{\NAME\,,lilypond-internals}
310 @end macro
311
312 @macro rglos{NAME}
313 @vindex \NAME\
314 @inforef{\NAME\,,music-glossary}
315 @end macro
316
317 @macro rprogram{TEXT}
318 @vindex \TEXT\
319 @ref{\TEXT\,,,lilypond-program}
320 @end macro
321
322 @macro ruser{TEXT}
323 @vindex \TEXT\
324 @ref{\TEXT\,,,lilypond}
325 @end macro
326
327 @macro rlearning{TEXT}
328 @vindex \TEXT\
329 @ref{\TEXT\,,,lilypond-learning}
330 @end macro
331
332 @end ifinfo
333
334
335 @c **** TEX ****
336 @iftex
337
338 @macro internalsref{TEXT}
339 @vindex \TEXT\
340 @code{\TEXT\}
341 @end macro
342
343 @macro rglos {TEXT}
344 @vindex \TEXT\
345 @code{\TEXT\}
346 @end macro
347
348 @macro rprogram{TEXT}
349 @emph{Manuel d'utilisation du programme, \TEXT\}
350 @end macro
351
352 @macro ruser{TEXT}
353 @emph{Manuel de l'utilisateur, \TEXT\}
354 @end macro
355
356 @macro rlearning{TEXT}
357 @emph{Manuel d'apprentissage du programme, \TEXT\}
358 @end macro
359
360 @end iftex
361
362
363 @c EOF