]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4487/3: Implement partial markups
authorDavid Kastrup <dak@gnu.org>
Sun, 15 Jun 2014 12:12:34 +0000 (14:12 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 18 Jul 2015 04:42:13 +0000 (06:42 +0200)
commit1fb0cec0362ad8c6d2468c33af3bdd4d5bef827a
treea7313fb2aabc60b8c51ddc2e21c1bf5a4a3ed47c
parentb579529b5f3f89a5b8a17760bb199b0eacc671be
Issue 4487/3: Implement partial markups

A partial markup acts as a chain of markup commands where everything but
the final markup has already been supplied.

For example:

bold-red-markup = \markup \bold \with-color #red \etc

\markup \bold-red "text"
\markuplist \column-lines \bold-red { One Two Three }

Please note that in order for \markup to recognize the resulting markup
command inside of markup expressions, the identifier to which the
resulting markup command is assigned needs to have "-markup" appended to
its name: LilyPond encodes markup command names in this manner so that
markup commands can use the same name as other entities outside of
markup mode.

Note also that this will not work with the markup macro since the latter
additionally requires the definition of a suitable make-bold-red-markup
command.
input/regression/markup-partial.ly [new file with mode: 0644]
lily/include/lily-imports.hh
lily/lily-imports.cc
lily/parser.yy
scm/ly-syntax-constructors.scm