lilypond-user-fr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lettrine dans un titre


From: Philippe Nenert
Subject: Re: Lettrine dans un titre
Date: Sat, 5 Oct 2013 22:18:52 +0200

Bonsoir,

Je n’avais pas lu ton courriel en entier et j'ai cherché, alors voici ma version

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.17.26"
#(define setTITLE "Donne-moi ton regard")
#(define setLETTRINE (substring setTITLE 0 1))
#(define setSUITE (substring setTITLE 1))

\markup\column {
\concat {
% \magnify #4 \bold "D"
\magnify #4 \bold \setLETTRINE
\raise #3.5
\column {
% \magnify #2 \bold "onne-moi ton regard"
\magnify #2 \bold \setSUITE
\magnify #1.5 \italic "© Ateliers du Fresne."
}
}
\bold {
" "
"Donne-moi ton regard, Ô Seigneur,"
"Apprends-moi à te voir."
"Montre-toi dans le Frère, Ô Seigneur,"
"Donne-moi ton regard."
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

A bientôt,
Philippe


On 3 oct. 2013, at 00:13, Vincent Pottier <address@hidden> wrote:

Merci Pierre,
Je progresse : la mise en page est impécable.

Maintenant, je voudrais mettre ce code dans la fonction bookTitleMarkup du fichier /usr/share/lilypond/2.16.0/ly/titling-init.ly pour qu'il s'applique à toutes les mises en page.
Pour cela, il faut que je puisse remplacer la ligne :
\magnify #4 \bold "D"
par
\magnify #4 \bold la-fonction-qui-récupère-le-premier-caractère-de header:title
et
\magnify #2 \bold "onne-moi ton regard"
par
\magnify #2 \bold la-fonction-qui-récupère-la-suite-de header:title

J'ai vu [1] qu'il existait une fonction substring.

Merci encore.
Vincent

[1] http://www.cs.vassar.edu/cgi-bin/info2www?%28lilypond%29New+markup+command+definition


Le 02/10/2013 16:43, Pierre Perol-Schneider a écrit :
Bonjour Vincent,
Je ne suis pas sûr de comprendre ce que tu souhaites faire en lisant ton code.
Je t'en propose un, dans le même "esprit", qui reproduit ta pièce jointe.


\version 2.17.27 

\markup\column {
\concat {
\magnify #4 \bold "D"
\raise #3.5
\column {
\magnify #2 \bold "onne-moi ton regard"
\magnify #1.5 \italic "© Ateliers du Fresne."
}
}
\bold {
" "
"Donne-moi ton regard, Ô Seigneur,"
"Apprends-moi à te voir."
"Montre-toi dans le Frère, Ô Seigneur,"
"Donne-moi ton regard."
}
}

En espérant que cela puisse t'aider,
Pierre

_______________________________________________
liste de diffusion lilypond-user-fr
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user-fr


reply via email to

[Prev in Thread] Current Thread [Next in Thread]