[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special markups
From: |
Neil Puttock |
Subject: |
Re: Special markups |
Date: |
Thu, 21 May 2009 01:00:55 +0100 |
2009/5/19 Carl D. Sorensen <address@hidden>:
>
>
>
> On 5/18/09 4:09 PM, "Neil Puttock" <address@hidden> wrote:
>> Here's a slightly simplified version:
>>
>> #(define-markup-command (fingernail layout props) ()
>> (ly:make-stencil
>> (list 'bezier-sandwich
>> '(list 1.6 1.5 0.4 1.5 0 0 2 0
> ^^^^
> This list is unnecessary, since the list is quoted, I think.
It doesn't work without it, though quote could be used as an alternative:
'(quote (1.6 1.5 0.4 1.5 0 0 2 0
0.4 0.75 1.6 0.75 2 0 0 0))
>
>> 0.4 0.75 1.6 0.75 2 0 0 0)
>> 0.15)
>> '(0 . 2)
>> '(0 . 1.75)))
>>
>
> Perhaps for maximum clarity, we should write this as:
>
> #(define-markup-command (fingernail layout props) ()
> (ly:make-stencil
> (list 'bezier-sandwich
> (list 1.6 1.5 0.4 1.5 0 0 2 0
> 0.4 0.75 1.6 0.75 2 0 0 0)
> 0.15)
> (cons 0 2)
> (cons 0 1.75)))
>
>
> I think we just had a discussion where we decided that the '(A . B) syntax
> was more confusing than (cons A B) because the period could be overlooked.
If you're talking about Mats's recent comments on \translate, it seems
to me the conclusion was precisely the opposite, apart from the cases
where backquoting would be required.
Regards,
Neil
- Special markups, Helge Kruse, 2009/05/18
- Re: Special markups, Helge Kruse, 2009/05/18
- Message not available
- Re: Special markups, Helge Kruse, 2009/05/18
- Re: Special markups, James E. Bailey, 2009/05/18
- Re: Special markups, Mark Polesky, 2009/05/18
- Re: Special markups, Neil Puttock, 2009/05/18
- Re: Special markups, Carl D. Sorensen, 2009/05/18
- Re: Special markups, Helge Kruse, 2009/05/19
- Re: Special markups, Graham Percival, 2009/05/20
- Re: Special markups, Helge Kruse, 2009/05/21
- Re: Special markups,
Neil Puttock <=