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

Issue 255610043: Let \addlyrics accept an optional context mod (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 9 months ago by dak
Modified:
8 years, 7 months ago
Reviewers:
pkx166h, thomasmorley651, lemzwerg, t.daniels
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Let \addlyrics accept an optional context mod Since \addlyrics always creates a new Lyrics context, there seems to be little point in not allowing it to have a \with clause. This change allows the use of the syntax \new Voice {...} \addlyrics \with ... {...} in order to achieve the effect of what previously required << \new Voice = "name" {...} \new Lyrics \with ... \lyricsto "name" {...} >> I am actually having problems finding any suitable place to document this: use of \with ... with anything but \new ... does not seem documented.

Patch Set 1 #

Patch Set 2 : Use only \addlyrics in one regtest rather than mixing with \lyricsto #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M input/regression/page-spacing-nonstaff-lines-independent.ly View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/parser.yy View 1 chunk +13 lines, -5 lines 0 comments Download
M scm/ly-syntax-constructors.scm View 1 chunk +5 lines, -3 lines 1 comment Download

Messages

Total messages: 7
dak
Use only \addlyrics in one regtest rather than mixing with \lyricsto
8 years, 9 months ago (2015-08-03 08:21:22 UTC) #1
lemzwerg
LGTM, thanks.
8 years, 9 months ago (2015-08-03 09:07:25 UTC) #2
thomasmorley651
Can't review parser-code. Otherwise: Doing \layout { \context { \Lyrics ... } } will work ...
8 years, 9 months ago (2015-08-03 10:24:32 UTC) #3
dak
On 2015/08/03 10:24:32, thomasmorley651 wrote: > Can't review parser-code. > > Otherwise: > Doing \layout ...
8 years, 9 months ago (2015-08-03 10:42:03 UTC) #4
pkx166h
On 2015/08/03 10:42:03, dak wrote: > On 2015/08/03 10:24:32, thomasmorley651 wrote: > > Can't review ...
8 years, 9 months ago (2015-08-03 11:20:37 UTC) #5
dak
On 2015/08/03 11:20:37, J_lowe wrote: > Could we integrate this into > > https://code.google.com/p/lilypond/issues/detail?id=3592 > ...
8 years, 9 months ago (2015-08-03 11:37:52 UTC) #6
t.daniels_treda.co.uk
8 years, 9 months ago (2015-08-03 21:00:37 UTC) #7
dak@gnu.org wrote Monday, August 03, 2015 11:42 AM

> I think we should have some table with context starters and mode change
> commands somewhere also listing (discouraged but convenient) shorthands
> like \chords, \figures, \lyrics and listing which commands start a
> different mode and which create a context (and consequently allow for
> \with ...).
> 
> I mean, \addlyrics like \lyrics implies a \new Lyrics while \lyricsto
> doesn't, but all of those three imply \lyricmode.

The various modes are described rather superficially in NR 5.4.1.  Maybe this
could be expanded to include the table you mention.

Trevor
Sign in to reply to this message.

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