lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: storing and manipulating multi-chunk texts


From: David Kastrup
Subject: Re: storing and manipulating multi-chunk texts
Date: Mon, 03 Mar 2014 15:51:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2014-02-27 2:21 GMT+01:00 Kieren MacMillan <address@hidden>:
>
> Though, I'm not convinced about it! Basically it's an extended
> \fromproperty accepting a markuplist, rebuilding \line and the
> column-commands (\right-column, \center-column etc)
> Following this direction would mean to rewrite every
> markuplist-command inside \fromproperty.
> Not very attractive. I think it's the wrong way.

Me too.  The main problem I see is that \fromproperty returns a markup,
not a markup list.  You try fudging around that, but that's not
convincing.  So what I think is needed is a

\fromproperty-lines

instead.  If course, this would require _all_ uses of page:title to
expect a property list.

Another approach would be to have a markup list command

\line-parts

that takes a line markup and splits it back into a markup list.  Then
you can use something like

title = \markup { "First part" "second part" } (which is an implicit
form of \markup \line { "First part" "second part" }), and use something
like
\center-column \line-parts \fromproperty #'page:title
in order to get the split version.

In the end, this sounds like something that could benefit from the
"markup/markup-list unification" project.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]