Thomas Morley <[email protected]> writes:

> Am Mo., 17. Dez. 2018 um 21:20 Uhr schrieb David Kastrup <[email protected]>:
>>
>> Thomas Morley <[email protected]> writes:
>
>> > The idea:
>> >
>> > #(define-markup-command (wordwrap-field layout props symbol)
>> >   (symbol?)
> [doc-string dropped]
>> >   (let* ((m (chain-assoc-get symbol props)))
>> >     (cond ((string? m)
>> >            (wordwrap-string-markup layout props m))
>> >           ((markup-list? m)
>> >            (wordwrap-markup layout props m))
>> >           ((markup? m)
>> >            (interpret-markup layout props m))
>> >           (else empty-stencil))))
>
>> BTW, I am not convinced of the string/markup differentiation since a
>> string _is_ a simple markup.  This is sort of icky.
>
> Well, work on this one is not finished ...
>
> Though, every string is a simple markup, yes, thus it's checked first.
> Why do you think it's icky?

Because a string is formatted/treated _differently_ from a markup.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to