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: Tue, 04 Mar 2014 10:46:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2014-03-04 0:06 GMT+01:00 David Kastrup <address@hidden>:
>> Thomas Morley <address@hidden> writes:
>>
>>> 2014-03-03 15:51 GMT+01:00 David Kastrup <address@hidden>:
>>>
>>>> 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



reply via email to

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