]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / Documentation / snippets / using-ly-grob-object-to-access-grobs-with--tweak.ly
index a02f95dde42faeb69f6e3a7bb5604fe64f47ba5f..d07271b46a32b603babe466ffef6ab1cae63a7c4 100644 (file)
@@ -1,89 +1,19 @@
 %% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
+%% generated from LSR http://lsr.di.unimi.it
 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.14.2"
+\version "2.18.0"
 
 \header {
-%% Translation of GIT committish: d5307870fe0ad47904daba73792c7e17b813737f
-  texidocfr = "
-Certains objets graphiques ne sont accessibles que par le biais d'un
-@emph{callback} à partir d'un autre @code{grob}.  Ils sont normalement
-listés dans les « @emph{layout objects} » au sein de la section
-« Propriétés internes » d'une @emph{grob-interface}.  La fonction
-@code{ly:grob-object} permet d'accéder à ces objets.
-
-Voici plusieurs moyens d'accéder aux objets par un @emph{callback} sur
-@code{NoteHead}.  D'autres biais sont naturellement possible ;
-@code{NoteHead} a cependant l'avantage incontestable d'être utilisé
-implicitement par la commande @code{\\tweak}.
-
-La fonction @code{display-grobs} définie ci-dessous n'est probablement
-pas très utile.  Elle indique toutefois qu'il est tout à fait possible
-d'accéder aux objets.
-
-Voici par exemple ce qui sera émis dans la console :
-
-@example
---------------------
-#<Grob Accidental >
-#<Grob Arpeggio >
-#<Grob Stem >
-@end example
-
-"
-  doctitlefr = "Utilisation de ly:grob-object pour accéder aux grobs avec \\tweak"
-
-  lsrtags = "devel, tweaks-and-overrides, scheme-language"
-
-
-%% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
-
-  texidoces = "
-
-Se puede acceder @qq{lateralmente} a algunos grobs desde dentro de la
-función de callback de otro grob.  Éstos se encuentran relacionados
-normalmente como @qq{layout objects} (objetos de presentación) en la
-sección @qq{Internal properties} (propiedades internas) de un
-interface de grob.  Se usa la función @code{ly:grob-object} para
-acceder a estos grobs.
-
-
-Se presentan más abajo como ejemplo algunas formas de addecer a grobs
-desde dentro de una función de callback de NoteHead, pero la técnica
-no se limita a las cabezas de nota.  Sin embargo, la función de
-callback de NoteHead es especialmente importante, porque es la función
-de callback implícita que utiliza la instrucción @code{\\tweak}.
-
-
-La función de ejemplo que se define abajo (\"display-grobs\") no es
-probablemente tan útil, pero muestra que se está accediendo
-efectivamente a los grobs.
-
-
-Salida de ejemplo de la consola:
-
-
-@example
---------------------
-#-Grob Accidental -
-#-Grob Arpeggio -
-#-Grob Stem -
-@end example
-
-
-"
-
-  doctitlees = "Utilizar ly:grob-object para acceder a los grobs con \\tweak"
-
+  lsrtags = "devel, scheme-language, tweaks-and-overrides"
 
   texidoc = "
-Some grobs can be accessed @qq{laterally} from within another grob's
-callback. These are usually listed as @qq{layout objects} in the
-@qq{Internal properties} section of a grob-interface. The function
-@code{ly:grob-object} is used to access these grobs.
+Some grobs can be accessed “laterally” from within another grob’s
+callback. These are usually listed as “layout objects” in the “Internal
+properties” section of a grob-interface. The function ly:grob-object is
+used to access these grobs.
 
 
 Demonstrated below are some ways of accessing grobs from within a
@@ -100,7 +30,7 @@ accessed.
 Example console output:
 
 
--------------------- #-Grob Accidental - #-Grob Arpeggio - #-Grob Stem -
+@code{ #Grob Accidental () #Grob Stem}
 
 
 
@@ -138,10 +68,10 @@ Example console output:
 
 \relative c' {
   %% display grobs for each note head:
-  %\override NoteHead #'before-line-breaking = #display-grobs
+  %\override NoteHead.before-line-breaking = #display-grobs
   <c
   %% or just for one:
-  \tweak #'before-line-breaking #display-grobs
+  \tweak before-line-breaking #display-grobs
   es
   g>1\arpeggio
 }