lilypond-user
[Top][All Lists]
Advanced

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

Re: fret-diagrams.scm:657:42: Wrong type: #f


From: David Kastrup
Subject: Re: fret-diagrams.scm:657:42: Wrong type: #f
Date: Sun, 23 Aug 2015 07:23:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2015-08-22 10:46 GMT+02:00 David Kastrup <address@hidden>:
>> ClausRogge <address@hidden> writes:
>>
>>> OK thanks for all your suggestions ... the error was very simple - one space
>>> too much here
>>> \stopStaff s2 s_\markup {\bold "D dur"}^\markup{{\fret-diagram #"s:6;h:5;
>>>  <-!!
>>> 6-2;6-3;6-5;5-2;5-4;5-5;4-2;4-4;4-5;3-2;3-4;2-2;2-3;2-5;1-2;1-3;1-5;"}}
>>>
>>> I didn't show in my posting because of the automatic line breaking.
>>
>> That begs the question on whether \fret-diagram should be ignoring
>> embedded whitespace in order to allow for more readable formatting of
>> the command string.
>>
>> --
>> David Kastrup
>
>
> How about a check like:
>
>   (string-filter
>     "s:2;h:5;
>      6-x;
>      5-x;
>      4-4;
>      3-2;
>      2-3;
>      1-x;"
>     (char-set-union
>       char-set:letter+digit
>       char-set:punctuation))
>
> If no better suggestion, I'll put up a patch

I'd really just filter on whitespace.  If people rely on arbitrary
characters getting filtered out, we are not free to extend the syntax at
some later point of time with more characters.

-- 
David Kastrup



reply via email to

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