]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3644: A \score-lines markup list command for multi-lines embedded scores
authorDavid Kastrup <dak@gnu.org>
Sun, 3 Nov 2013 07:54:21 +0000 (08:54 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 13 Nov 2013 10:53:40 +0000 (11:53 +0100)
commit11445b15ef9d7ad25d1506145bec845664f61a2c
treede51823e8b554fbaae54a3e7838ef7c55623305e
parent00100625132c3205d455942c2f776795776f9157
Issue 3644: A \score-lines markup list command for multi-lines embedded scores

Originally requested as issue 1334.

Like the \score markup, \score-lines is not called through the normal
markup list command mechanisms as it would require something awkward
along the lines of

\score-lines ##{ \score { ... } #}

to get this through.  Instead, a reserved word \score-lines in the
parser will manually call the command with an embedded score, leading
to just

\score-lines { ... }

This is somewhat clumsy in several ways: it requires an additional
reserved identifier (no other reserved identifier contains a dash),
and it means that a score may occur in a file without an explicit
enclosing \score command.

Nevertheless, the previous semantics implemented as issue 1334 were
not tenable: particularly after issue 3270 had been passed, it was
close to impossible for the average user to come up with a way of
getting an actual markup list from a score.

Note that there are as of yet no user-level commands spacing a markup
list in a way similar to the spacing inside of a \score markup.
input/regression/score-lines.ly [new file with mode: 0644]
lily/lexer.ll
lily/parser.yy
scm/define-markup-commands.scm