Thomas Morley <thomasmorle...@gmail.com> writes:

> 2014-03-04 0:06 GMT+01:00 David Kastrup <d...@gnu.org>:
>> Thomas Morley <thomasmorle...@gmail.com> writes:
>>
>>> 2014-03-03 15:51 GMT+01:00 David Kastrup <d...@gnu.org>:
>>>
>>>> Another approach would be to have a markup list command \line-parts
>>
>>> I tried the \line-parts approach:
>>> Although it is quite easy to split a simple markup back into a
>>> markup-list, I found no way to return a simple list of markups (or
>>> stencils) from a markup-command.
>>
>> That's why I was suggesting making \line-parts a markup list command
>> rather than a markup command as you do here:
>>
>>> #(define-markup-command (line-parts layout props arg)(markup?)
>>
> Had overlooked it. Thanks for the hint!
> I now come up with the code below.
> Not sure, if the list picking is really save.

It should likely test that this is indeed a \line markup rather than
just dissecting anything.  While separating out \line seems a bit
one-sided, \line _is_ special in that \markup { a b c } implicitly
engages \line anyway.  So it seems like a defensible choice.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to