[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change color for some symbols in a sylable
From: |
Светлана |
Subject: |
Re: Change color for some symbols in a sylable |
Date: |
Tue, 10 Jan 2012 13:34:19 +0400 |
10.01.2012, 03:47, "Carl Sorensen" <address@hidden>:
> On 1/9/12 3:59 PM, "Francisco Vila" <address@hidden> wrote:
>>
>> #(define-markup-command (firstred layout props sone stwo) (string?
>> string?)
>> "Print the first string in red"
>> (interpret-markup layout props
>> (markup #:concat ((#:with-color red sone) stwo))))
>>
>> { c' c' c' c' }
>> \addlyrics {
>>
>> \markup \firstred #"A" #"bc"
>> Def
>> Ghi
>> \markup \firstred #"Jk" #"l"
>> }
>
> One could also do the following
> #(define-markup-command (center_red layout props sone stwo sthree)
> (string? string? string?)
> "Print the middle string in red"
> (interpret-markup layout props
> (markup #:concat (sone (#:with-color red stwo) sthree))))
>
> { c' c' c' c' }
> \addlyrics {
>
> \markup \center_red #"A" #"bc" #""
> Def
> \markup \center_red #"" #"G" #"hi"
> \markup \center_red #"J" #"k" #"l"
> }
>
> Or one could define three markup commands: first_red, center_red, and
> last_red.
>
> HTH,
>
> Carl
Thank you, Carl, this starts to make sense, though David's function is a magic
if we could make it to take a list of symbols, not just one.
- Re: Change color for some symbols in a sylable, (continued)
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/11
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/12
- Re: Change color for some symbols in a sylable, James, 2012/01/12
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/13
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/13
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/19
- Re: Change color for some symbols in a sylable, Svetlana, 2012/01/28
- Message not available
- Message not available
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/13
- Re: Change color for some symbols in a sylable, Carl Sorensen, 2012/01/14
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/10
- Re: Change color for some symbols in a sylable,
Светлана <=