Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 3a7b4dfc766af1222d90c7f03a0844e6 > files > 8154

lilypond-doc-2.11.57-1mdv2009.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- header_tag -->
<html lang="en">
<head>
<title>Introduction aux étiquettes de texte - GNU LilyPond - manuel de notation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="GNU LilyPond - manuel de notation">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.fr.html#Top">
<link rel="up" href="Formatting-text.fr.html#Formatting-text" title="Mise en forme du texte">
<link rel="next" href="Nested-scores.fr.html#Nested-scores" title="Partitions emboîtées">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
hr { border:0; height:1; color: #000000; background-color: #000000; }
/* hr {
  border:  none;
  height: 1px;
  color: #666666;
  background-color: #666666;
}
body {
  border-left: 1px solid #666666;
  border-right: 1px solid #666666;
  color: #332d28;
  margin-right: auto;
  margin-left: auto;
  width: 60em;
  list-style-type: square;
  font-family: Arial,Helvetica,sans-serif;
  padding-right: 1em;
  padding-left: 1em;
}
a {
  border-bottom: 1px dashed #344242;
  text-decoration: none;
  color: #344242;
}
a:link {
  text-decoration: none;
}
a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
a:active {
  border-bottom: 1px solid #00cccc;
  color: #00cccc;
}
a:hover {
  border-bottom: 1px solid #1d7b85;
  color: #1d7b85;
}
blockquote {
  border: 1px solid #cccccc;
  padding: 3px;
  width: 40em;
}
.node {
  border-left: 1px solid #666666;
  margin: -0.5em 0px 1em;
  padding: 2px 1px 0px;
  font-style: italic;
}
.node a {
  border:  none;
  text-decoration: underline;
  font-style: normal;
  font-weight: bold;
}
.verbatim {
  font-family: "Courier New",Courier,monospace;
}
.unnumberedsubsubsec {
  font-size: large;
  color: #1d7b85;
}
.subsubheading {
  font-size: large;
  color: #3b220d;
}
.contents {
  border: 1px dashed #339999;
  margin: 3px 2em;
  list-style-type: square;
  padding-right: 1em;
  width: 40em;
  background-color: #fcfff9;
}
.contents a {
  border-bottom: 1px dashed #423d34;
  text-decoration: none;
  color: #423d34;
}
.contents a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
.contents a:active {
  border-bottom: 1px solid #f0d86d;
  color: #f0d86d;
}
.contents a:hover {
  border-bottom: 1px solid #3b220d;
  color: #3b220d;
}
.menu {
  border-left: 1px dashed #339999;
  margin: 3px 2em 1em;
  list-style-type: square;
  padding-left: 1.4em;
  width: 40em;
}
.unnumbered {
}
h2 {
  font-size: x-large;
  color: #1d7b85;
}
*/
--></style>
</head>
<BODY BGCOLOR=WHITE TEXT=BLACK>

<div class="node">
<p>
<a name="Text-markup-introduction"></a>
Suivant&nbsp;:&nbsp;<a rel="next" accesskey="n" href="Nested-scores.fr.html#Nested-scores">Partitions emboîtées</a>,
Haut&nbsp;:&nbsp;<a rel="up" accesskey="u" href="Formatting-text.fr.html#Formatting-text">Mise en forme du texte</a>
<hr>
</div>

<h5 class="unnumberedsubsubsec">Introduction aux étiquettes de texte</h5>

<p><a name="index-g_t_00c3_00a9tiquette-693"></a><a name="index-commentaire-textuel-694"></a><a name="index-g_t_00c3_00a9tiquette-textuelle-695"></a><a name="index-texte-ajout_00c3_00a9-696"></a>
La commande <code>\markup</code> permet d'ajouter du texte.  Vous pouvez y
inclure des commandes, précédées d'un antislash <code>\</code>&nbsp;; les
caractères <code>\</code> et <code>#</code> doivent être encadrés de guillemets
informatiques <code>"</code>.

   <blockquote>
<pre class="verbatim">     
     c1^\markup { hello }
     c1_\markup { hi there }
     c1^\markup { hi \bold there, is \italic {anyone home?} }
     c1_\markup { "\special {weird} #characters" }
</pre>
     <p>
 <a href="../82/lily-d5f43779.ly"> <img align="middle" border="0" src="../82/lily-d5f43779.png" alt="[image of music]"> </a>
</p>

   </blockquote>

<p class="noindent">Pour une liste des différentes commandes disponibles, consultez
<a href="Text-markup-commands.fr.html#Text-markup-commands">Text markup commands</a>.

   <p><code>\markup</code> est avant tout conçu pour gérer les
<a name="index-TextScript-697"></a><a href="../lilypond-internals/TextScript.fr.html#TextScript">TextScript</a>s, mais rien ne s'oppose à son utilisation
pour traiter du texte avec LilyPond.

   <blockquote>
<pre class="verbatim">     
     \header{ title = \markup{ \bold { foo \italic { bar! } } } }
     \score{
       \relative c'' {
         \override Score.RehearsalMark
           #'break-visibility = #begin-of-line-invisible
         \override Score.RehearsalMark #'self-alignment-X = #right
     
         \set Staff.instrumentName = \markup{ \column{ Alto solo } }
         c2^\markup{ don't be \flat }
         \override TextSpanner #'bound-details #'left #'text = \markup{\italic rit }
         b2\startTextSpan
         a2\mark \markup{ \large \bold Fine }
         r2\stopTextSpan
         \bar "||"
       }
       \addlyrics { bar, foo \markup{ \italic bar! } }
     }
</pre>
     <p>
 <a href="../8d/lily-f6d8dadc.ly"> <img align="middle" border="0" src="../8d/lily-f6d8dadc.png" alt="[image of music]"> </a>
</p>

   </blockquote>

   <p>La commande <code>\markup</code> peut intervenir à tout moment, y compris en
dehors d'un bloc <code>\score</code>. Voir à ce sujet
<a href="Multiple-scores-in-a-book.fr.html#Multiple-scores-in-a-book">Plusieurs partitions dans un même ouvrage</a>.

   <blockquote>
<pre class="verbatim">     
     \markup{ Here is some text. }
</pre>
     <p>
 <a href="../07/lily-6d423c0d.ly"> <img align="middle" border="0" src="../07/lily-6d423c0d.png" alt="[image of music]"> </a>
</p>

   </blockquote>

   <p><a name="index-changer-de-police-698"></a>
Le <em>markup</em> de l'exemple précédent montre comment utiliser les
commandes de changement de police. Les commandes <code>\bold</code> et
<code>\italic</code> n'affectent que le premier mot qui les suit&nbsp;; encadrez
les par des accolades si vous désirez que ces commandent s'appliquent
à plusieurs mots.

<pre class="example">\markup { \bold { c'est moi } }
</pre>
   <p class="noindent">Une bonne habitude à prendre consiste à utiliser des accolades même
pour un seul mot, comme ici&nbsp;:
<pre class="example">\markup { qui \italic { est } là<font size="-4">&nbsp;</font>? }
</pre>
   <p>En mode <em>markup</em>, vous pouvez composer des expressions comme
en mathématiques, des documents XML ou bien les expressions musicales. 
Vous pouvez empiler ces expressions grâce à la commande
<code>\column</code>, ou les centrer par rapport à leur milieu avec
<code>\center-column</code>.

   <blockquote>
<pre class="verbatim">     
     c1^\markup { \column { a bbbb \line { c d } } }
     c1^\markup { \center-column { a bbbb c } }
     c1^\markup { \line { a b c } }
</pre>
     <p>
 <a href="../0a/lily-3bfd1f5d.ly"> <img align="middle" border="0" src="../0a/lily-3bfd1f5d.png" alt="[image of music]"> </a>
</p>

   </blockquote>

   <p>Des listes non précédées de commande ne sont pas isolées. Ainsi,
<pre class="example">\center-column { { a b } { c d } }
</pre>
   <p class="noindent">est la même expression que

<pre class="example">\center-column { a b c d }
</pre>
   <p class="noindent">L'utilisation des <code>"</code> ou de la commande <code>\line</code> permet de
différencier les listes de mots.

   <blockquote>
<pre class="verbatim">     
     \textLengthOn
     c4^\markup{ \center-column { on three lines } }
     c4^\markup{ \center-column { "all one line" } }
     c4^\markup{ \center-column { { on three lines } } }
     c4^\markup{ \center-column { \line { on one line } } }
</pre>
     <p>
 <a href="../cd/lily-b4221220.ly"> <img align="middle" border="0" src="../cd/lily-b4221220.png" alt="[image of music]"> </a>
</p>

   </blockquote>

   <p>Vous pouvez stocker les étiquettes textuelles en tant que variables,
et attacher ces identificateurs à des notes, comme
<pre class="example">allegro = \markup { \bold \large { Allegro } }
 { a^\allegro b c d }
</pre>
   <p>Certains objets possèdent leurs propres procédures d'alignement, qui
annuleront toute spécification d'alignement que vous pourriez affecter
à un argument de type <em>markup</em> que vous leur auriez fourni.  Par
exemple, les <a name="index-RehearsalMark-699"></a><a href="../lilypond-internals/RehearsalMark.fr.html#RehearsalMark">RehearsalMark</a> sont centrées
horizontalement&nbsp;; de fait, utiliser
<code>\mark \markup { \left-align .. }</code> sera sans effet.

   <p>Par ailleurs, le placement vertical n'est effectué qu'après la
création de l'objet <em>étiquette textuelle</em>. Si donc vous souhaitez
déplacer une étiquette, il vous faudra utiliser la propriété
<code>#'padding</code> ou créer un &laquo;<font size="-4">&nbsp;</font>point d'ancrage<font size="-4">&nbsp;</font>&raquo; à l'intérieur même
de l'étiquette (généralement avec <code>\hspace #0</code>).

   <blockquote>
<pre class="verbatim">     
     \textLengthOn
     c'4^\markup{ \raise #5 "not raised" }
     \once \override TextScript #'padding = #3
     c'4^\markup{ raised }
     c'4^\markup{ \hspace #0 \raise #1.5 raised }
</pre>
     <p>
 <a href="../ba/lily-b4349974.ly"> <img align="middle" border="0" src="../ba/lily-b4349974.png" alt="[image of music]"> </a>
</p>

   </blockquote>

   <p>Certaines situations particulières, telles que les indications de
nuance, possèdent des propriétés prédéfinies quant à leur police. 
Nous vous conseillons, en pareil cas, de réinitialiser ces propriétés
en utilisant <code>normal-text</code>.  Pour plus d'informations, consultez
<a href="Text-markup-commands.fr.html#Text-markup-commands">Text markup commands</a>.

<p class="noindent">

<h5 class="subsubheading">Voir aussi</h5>

<p>Dans ce manuel&nbsp;: <a href="Text-markup-commands.fr.html#Text-markup-commands">Text markup commands</a>.

   <p>Référence du programme&nbsp;: <a name="index-TextScript-700"></a><a href="../lilypond-internals/TextScript.fr.html#TextScript">TextScript</a>.

   <p>Fichiers d'initialisation&nbsp;: <samp><span class="file">scm/new-markup.scm</span></samp>.

<p class="noindent">

<h5 class="subsubheading">Problèmes connus et avertissements</h5>

<p>Le crénage ou la génération de ligatures ne sont accessibles que lors
d'un retraitement par TeX.  Dans ce cas, LilyPond n'en tient pas
compte, et l'espacement de tels textes sera trop large.

   <p>Les erreurs de syntaxe sont peu loquaces.

   <!-- footer_tag --><br><hr>
<div class="node">
<p>
Suivant&nbsp;:&nbsp;<a rel="next" accesskey="n" href="Nested-scores.fr.html#Nested-scores">Partitions emboîtées</a>,
Haut&nbsp;:&nbsp;<a rel="up" accesskey="u" href="Formatting-text.fr.html#Formatting-text">Mise en forme du texte</a>
</div>

<div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;">
<p>
<font size="-1">
Cette page documente LilyPond-2.11.57 (branche de développement).
<br>
<address>
Rapportez toute anomalie en français à <a href="mailto:lilypond-user-fr@gnu.org">lilypond-user-fr@gnu.org</a> ou en anglais à <a href="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs">http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs</a> </address>
<br>
Vos <a href="http://lilypond.org/web/devel/participating/documentation-adding">suggestions à propos de la documentation</a> sont les bienvenues.
</font>
</p>
</div>


<P>
 Autres langues&nbsp;: <a href="Text-markup-introduction.html">English</a>, <a href="Text-markup-introduction.es.html">español</a>.
 <BR>
 
</P>
</BODY></html>