[frogs] Re: Add option to indicate frets by letters in tablature(issue164063) |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Trevor Daniels <t.daniels@xxxxxxxxxxx>, "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Subject: [frogs] Re: Add option to indicate frets by letters in tablature(issue164063)
- From: Carl Sorensen <c_sorensen@xxxxxxx>
- Date: Mon, 7 Dec 2009 07:18:31 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Thread-index: Acp3NUJ0OA/LfgUOSlae5FSkpfVUvwAEuSaB
- Thread-topic: Add option to indicate frets by letters in tablature(issue164063)
On 12/7/09 5:03 AM, "Trevor Daniels" <t.daniels@xxxxxxxxxxx> wrote:
> Carl
>
> I think I need some froggy help!
>
> You asked
>
>>> The fretLabels list wouldn't need to
>>> be characters; they could be markups or stencils, so users could
>>> define whatever is needed or desired.
>
> and I replied
>
>> I'll look at implementing markups.
>
> but I can't find an example of mixing strings and
> markup in a property to crib from, and I can't see
> how to identify a markup or how to process it, other
> than looking for a string starting "\markup".
I don't think there's anything special to do in terms of mixing strings or
markups in a property. The property is just a list.
When it's time to display, you can use the string? and markup? predicates to
decide whether a given fretLabel is a string or a markup, if you need to.
Actually, as I read the code, you don't need to do anything, because
make-vcenter-markup just does interpret-markup on its argument (see
scm/define-markup-commands.scm and search for vcenter to see how this
works). So interpret-markup will operate on the argument (either a string
or a markup) and create a stencil.
Has this helped?
Thanks,
Carl
---
----
Join the Frogs!