]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/centering-markup-on-note-heads-automatically.ly
Web-hu: Fix tiny mistake
[lilypond.git] / Documentation / snippets / centering-markup-on-note-heads-automatically.ly
index ff1a10b22956a7c994da5951caefdefa693592ed..6b48240774121091d67c099ca73b6203d7cb47c1 100644 (file)
@@ -1,41 +1,29 @@
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.15.31
-\version "2.15.31"
+%% DO NOT EDIT this file manually; it is automatically
+%% 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.18.0"
 
 \header {
-%% Translation of GIT committish: 1cda7b7b8219cb97399b8e7b56c1115aaf82c002
-  texidocfr = "
-Des raisons techniques sont à l'origine de la difficulté de centrer des
-scripts textuels attachés à des têtes de note, ce qui n'est pas le cas
-des articulations.
+  lsrtags = "contexts-and-engravers, text, tweaks-and-overrides"
 
-Plutôt que de procéder par tâtonnement, voici comment élaborer un
-graveur en Scheme, chargé de redéfinir le parent horizontal de chaque
-@emph{markup} sur un empilement de notes (un @code{NoteColumn}).  Il
-permet aussi au texte de suivre les têtes ayant été décalées par un
-@code{force-hshift}.
-"
-  doctitlefr = "Centrage automatique d'un @emph{markup} sur la tête de note"
-
-  lsrtags = "text, tweaks-and-overrides, contexts-and-engravers"
   texidoc = "
 For technical reasons, text scripts attached to note heads cannot
 easily be centered on a note head's width, unlike articulations.
 
 Instead of using trial-and-error offset tweaks, this snippet uses a
 Scheme engraver to reset the horizontal parent of each markup to a
-@code{NoteColumn}.  This also allows text to follow note heads which have
-been shifted via @code{force-hshift}.
+@code{NoteColumn}.  This also allows text to follow note heads which
+have been shifted via @code{force-hshift}.
+
+
+
 "
   doctitle = "Centering markup on note heads automatically"
 } % begin verbatim
 
-
 #(define (Text_align_engraver ctx)
   (let ((scripts '())
         (note-column #f))
@@ -61,15 +49,15 @@ been shifted via @code{force-hshift}.
   \context {
     \Voice
     \consists #Text_align_engraver
-    \override TextScript #'X-offset =
+    \override TextScript.X-offset =
       #ly:self-alignment-interface::aligned-on-x-parent
-    \override TextScript #'self-alignment-X = #CENTER
+    \override TextScript.self-alignment-X = #CENTER
   }
 }
 
 \new Staff <<
   \relative c'' {
-    \override NoteColumn #'force-hshift = #3
+    \override NoteColumn.force-hshift = #3
     c1-\markup { \arrow-head #Y #DOWN ##t }
   }
   \\