]> git.donarmstrong.com Git - lilypond.git/commitdiff
(new_lyrics): \addlyrics -> \oldaddlyrics,
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 2 Aug 2004 17:40:46 +0000 (17:40 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 2 Aug 2004 17:40:46 +0000 (17:40 +0000)
\newlyrics -> \addlyrics

ChangeLog
Documentation/user/notation.itely
Documentation/user/tutorial.itely
lily/lily-lexer.cc
lily/parser.yy
scripts/convert-ly.py

index 455ccb2102302cc54d03cc9ad0dcab8e06b07282..2bf659a3bc4611a66df7d2eb309c0125a42fa49e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-08-02  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/parser.yy (new_lyrics): \addlyrics -> \oldaddlyrics,
+       \newlyrics -> \addlyrics
+
        * lily/text-spanner.cc (print): use it.
 
        * lily/dynamic-text-spanner.cc (print): use it.
index 9bf63f97381ecefd17a58fee34a3d4ef21db8472..a113e720fac32bafe04cd0df94692a728cad2a44 100644 (file)
@@ -3550,29 +3550,29 @@ noFlag = \once \override Stem  #'flag-style = #'no-flag
 The easiest way to add lyrics to a melody, is by appending
 
 
-@cindex \newlyrics
+@cindex \addlyrics
 @example
-  \newlyrics @{ @var{the lyrics} @} 
+  \addlyrics @{ @var{the lyrics} @} 
 @end example
 
 to a melody. Here is an example,
 
 @lilypond[raggedright,verbatim]
   \relative { \time 3/4 c2 e4 g2. }
-  \newlyrics { play the game } 
+  \addlyrics { play the game } 
 @end lilypond
 
 More stanzas can be added by adding more
-@code{\newlyrics} sections 
+@code{\addlyrics} sections 
 
 @lilypond[raggedright,verbatim]
   \relative { \time 3/4 c2 e4 g2. }
-  \newlyrics { play the game } 
-  \newlyrics { speel het spel } 
-  \newlyrics { joue le jeu } 
+  \addlyrics { play the game } 
+  \addlyrics { speel het spel } 
+  \addlyrics { joue le jeu } 
 @end lilypond
 
-The @code{\newlyrics} keyword has three functions: it interprets the
+The @code{\addlyrics} keyword has three functions: it interprets the
 following words as texts instead of notes, it sets up a context for
 printing texts (the @code{Lyrics} context), and it couples the melody
 with the lyrics, so the durations of both are aligned.
@@ -3878,7 +3878,7 @@ For example,
 
 @lilypond[verbatim,raggedright]
 \relative { c c g' }
-\newlyrics {
+\addlyrics {
   twin -- \skip 4
   kle
 }
@@ -3984,10 +3984,10 @@ Stanza numbers can be added by setting @code{stanza}, e.g.
 @lilypond[quote,verbatim,relative=2]
 \context Voice {
     \time 3/4 g2 e4 a2 f4 g2.
-} \newlyrics {
+} \addlyrics {
      \set stanza = "1. "
      Hi, my name is Bert.
-} \newlyrics {
+} \addlyrics {
      \set stanza = "2. "
      Oh, che -- ri, je t'aime
 }
@@ -4003,10 +4003,10 @@ the line, just like instrument names.  They are created by setting
 @lilypond[quote,verbatim,relative=2]
 \context Voice {
     \time 3/4 g2 e4 a2 f4 g2.
-} \newlyrics {
+} \addlyrics {
      \set vocalName = "Bert "
      Hi, my name is Bert.
-} \newlyrics {
+} \addlyrics {
      \set vocalName = "Ernie "
      Oh, che -- ri, je t'aime
 }
index 7fdb20242eae186205c178ba9a02021615dcd912..49765a2528e989a278e9c61cb46961df8ba42cc3 100644 (file)
@@ -979,9 +979,8 @@ Consider the melody
 }
 @end lilypond
 
-@c FIXME: when/how/to what rename newlyrics?
 The lyrics can be set to these notes, combining both with the
-@code{\newlyrics} keyword
+@code{\addlyrics} keyword
 
 @lilypond[quote,verbatim,fragment,raggedright]
 <<
@@ -989,7 +988,7 @@ The lyrics can be set to these notes, combining both with the
     r4 c \times 2/3 { f g g }
     \times 2/3 { g4( a2) }
   }
-  \newlyrics { I want to break free }
+  \addlyrics { I want to break free }
 >>
 @end lilypond
 
@@ -1010,7 +1009,7 @@ line}.  It is entered as two underscores, i.e.,
     r4 c \times 2/3 { f g g }
     \times 2/3 { g4( a2) }
   }
-  \newlyrics { I want to break free __ }
+  \addlyrics { I want to break free __ }
 >>
 @end lilypond
 
@@ -1027,7 +1026,7 @@ Twin -- kle twin -- kle
      \time 2/4
      f4 f c' c
    }
-   \newlyrics { Twin -- kle twin -- kle }
+   \addlyrics { Twin -- kle twin -- kle }
 >>
 @end lilypond
 
@@ -1116,7 +1115,7 @@ a lead sheet, for example,
 <<
   \new ChordNames \chords @{ @emph{chords} @}
   @emph{the melody}
-  \newlyrics @{ @emph{the text} @}
+  \addlyrics @{ @emph{the text} @}
 >>
 @}
 @end example
@@ -1128,7 +1127,7 @@ a lead sheet, for example,
     r4 c' \times 2/3 { f g g }
     \times 2/3 { g4( a2) }
   }
- \newlyrics { I want to break free __ }
+ \addlyrics { I want to break free __ }
 >>
 @end lilypond
 
index 49e680a1225b4558e5648a5681912d01418b2f10..2f926ea67431e3519dfc951059e21a3c19d2cb53 100644 (file)
@@ -27,6 +27,7 @@
 static Keyword_ent the_key_tab[] = {
   {"accepts", ACCEPTS},
   {"addquote", ADDQUOTE},
+  {"addlyrics", ADDLYRICS},
   {"alias", ALIAS},
   {"alternative", ALTERNATIVE},
   {"bar", BAR},
@@ -52,7 +53,6 @@ static Keyword_ent the_key_tab[] = {
   {"midi", MIDI},
   {"name", NAME},
   {"new", NEWCONTEXT},
-  {"newlyrics", NEWLYRICS},
   {"notes", NOTES},
   {"octave", OCTAVE},
   {"once", ONCE},
index 6326421b81fc4e748bf1e9914fcf4760d1f612f9..0c9f9e54408b7f30139888559617555a10849453 100644 (file)
@@ -189,7 +189,7 @@ make_lyric_combine_music (SCM name, Music *music)
 deleting them.  Let's hope that a stack overflow doesnt trigger a move
 of the parse stack onto the heap. */
 
-%left NEWLYRICS
+%left ADDLYRICS
 
 %union {
        Book *book;
@@ -294,7 +294,7 @@ or
 %token SCM_T
 %token SCORE
 %token SEQUENTIAL
-%token NEWLYRICS
+%token ADDLYRICS
 %token SIMULTANEOUS
 %token SKIP
 %token SPANREQUEST
@@ -1180,7 +1180,7 @@ relative_music:
        ;
 
 new_lyrics:
-       NEWLYRICS { THIS->lexer_->push_lyric_state (); }
+       ADDLYRICS { THIS->lexer_->push_lyric_state (); }
        /*cont */
        Grouped_music_list {
        /* Can also use Music at the expensive of two S/Rs similar to
@@ -1194,7 +1194,7 @@ new_lyrics:
                $$ = scm_cons ($3->self_scm (), SCM_EOL);
 #endif
        }
-       | new_lyrics NEWLYRICS { THIS->lexer_->push_lyric_state (); }
+       | new_lyrics ADDLYRICS { THIS->lexer_->push_lyric_state (); }
        Grouped_music_list {
                THIS->lexer_->pop_state ();
                $$ = scm_cons ($4->self_scm (), $1);
index 12aeb22c94dad02d1db48a2f3ecf33056dc88fc1..39c20aabd1a537d64f77a8943e6c635d929d1dda 100644 (file)
@@ -2135,6 +2135,17 @@ conversions.append (((2, 3, 9), conv,
                     '''neo_mensural -> neomensural, if-text-padding -> bound-padding'''))
 
 
+
+def conv (str):
+       str = re.sub (r'\\addlyrics', '\\oldaddlyrics', str)
+       str = re.sub (r'\\newlyrics', '\\addlyrics', str)
+       return str
+
+conversions.append (((2, 3, 10), conv,
+                    '''\\addlyrics -> \\oldaddlyrics, \\newlyrics -> \\addlyrics'''))
+
+
+
 def conv_mode_experiment (str):
        str = re.sub (r'\\chords\b', r'\\chordmode', str)
        str = re.sub (r'\\lyrics\b', r'\\lyricmode', str)