Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(468)

Issue 53120044: Parser: harmonize \lyricsto and \addlyrics arguments (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by dak
Modified:
12 years ago
Reviewers:
janek, lemzwerg
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Parser: harmonize \lyricsto and \addlyrics arguments Previously, they allowed arbitrary music but since that required looking at lookahead tokens in the wrong mode, it led to strange errors like with lyr=\lyricsto A { } mus={c} when mus= was parsed as a single token in lyrics mode. Now both \addlyrics and \lyricsto accept merely the same kind of delimited argument list that \lyrics or \chords accept. Additionally, to preserve compatibility to a lot of examples, music identifiers like \mus are permitted as the argument to \lyricsto and \addlyrics.

Patch Set 1 #

Patch Set 2 : convert-ly rules for harmonizing \lyricsto usage #

Patch Set 3 : Further pattern fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -86 lines) Patch
M Documentation/de/essay/engraving.itely View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/es/essay/engraving.itely View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/essay/engraving.itely View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/fr/essay/engraving.itely View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/learning/templates.itely View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Documentation/ly-examples/sesto-full.ly View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/ly-examples/sesto-piano.ly View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/snippets/aligning-syllables-with-melisma.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Documentation/snippets/satb-choir-template---four-staves.ly View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M input/regression/hara-kiri-stanza-number.ly View 1 1 chunk +2 lines, -2 lines 0 comments Download
M input/regression/lyric-combine-empty-warning.ly View 1 2 chunks +4 lines, -4 lines 0 comments Download
M input/regression/lyric-combine-new.ly View 1 3 chunks +4 lines, -4 lines 0 comments Download
M input/regression/lyric-combine-polyphonic.ly View 1 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/lyric-extender-broken.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/lyric-extender-completion.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/lyric-phrasing.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/lyrics-after-grace.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/lyrics-melisma-beam.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/midi-lyric-barcheck.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/morgenlied.ly View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M input/regression/page-spacing-nonstaff-lines-and-markup.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/page-spacing-nonstaff-lines-independent.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/song-melisma.ly View 1 2 chunks +2 lines, -2 lines 0 comments Download
M input/regression/song-repetition.ly View 1 2 chunks +4 lines, -4 lines 0 comments Download
M input/regression/span-bar-allow-span-bar.ly View 1 4 chunks +4 lines, -4 lines 0 comments Download
M input/regression/typography-demo.ly View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M lily/parser.yy View 3 chunks +23 lines, -18 lines 0 comments Download
M python/convertrules.py View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 14
lemzwerg
LGTM.
12 years, 1 month ago (2014-01-16 11:08:59 UTC) #1
dak
convert-ly rules for harmonizing \lyricsto usage
12 years, 1 month ago (2014-01-16 13:29:25 UTC) #2
lemzwerg
A side question: What about a syntax like \new Lyrics \with { lyricsto = "bla" ...
12 years, 1 month ago (2014-01-16 13:55:43 UTC) #3
dak
On 2014/01/16 13:55:43, lemzwerg wrote: > A side question: What about a syntax like > ...
12 years, 1 month ago (2014-01-16 13:58:17 UTC) #4
dak
Further pattern fixes
12 years, 1 month ago (2014-01-16 14:43:31 UTC) #5
janek
So, does it mean that i'll be able to write \mus = { c'2 d'8 ...
12 years, 1 month ago (2014-01-16 19:49:16 UTC) #6
dak
On 2014/01/16 19:49:16, janek wrote: > So, does it mean that i'll be able to ...
12 years, 1 month ago (2014-01-16 19:55:40 UTC) #7
janek
On 2014/01/16 19:55:40, dak wrote: > On 2014/01/16 19:49:16, janek wrote: > > So, does ...
12 years, 1 month ago (2014-01-16 19:57:11 UTC) #8
janek
On 2014/01/16 19:57:11, janek wrote: > On 2014/01/16 19:55:40, dak wrote: > > On 2014/01/16 ...
12 years, 1 month ago (2014-01-16 19:58:32 UTC) #9
dak
On 2014/01/16 19:57:11, janek wrote: > On 2014/01/16 19:55:40, dak wrote: > > On 2014/01/16 ...
12 years, 1 month ago (2014-01-16 19:59:25 UTC) #10
dak
On 2014/01/16 19:58:32, janek wrote: > On 2014/01/16 19:57:11, janek wrote: > > On 2014/01/16 ...
12 years, 1 month ago (2014-01-16 20:01:54 UTC) #11
janek
2014/1/16 <dak@gnu.org>: > On 2014/01/16 19:58:32, janek wrote: >> mus = { c'2 d'8 e' ...
12 years, 1 month ago (2014-01-16 20:09:32 UTC) #12
dak
When replying to a code review, please at least keep the URL of the review ...
12 years, 1 month ago (2014-01-17 08:59:28 UTC) #13
lemzwerg
12 years, 1 month ago (2014-01-17 09:44:05 UTC) #14
> What's the advantage?

Harmonized, uniform syntax, but...

> A context property (which may well be defined at a later
> point of time in a layout definition) is not available
> for making that decision at the time it needs to be done.

... this explains why it doesn't work, thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b