Re: color text in markup
> Tell me how to make the first letter in the \markup department red. > > d4^\markup { "Tell me how to make" } d4 Try ``` { d'4^\markup \concat { \with-color #red T ell " me how to make" } d'4 } ``` Werner
Re: color text in markup
I'm grateful for your help. But you could not suggest the same solution but for the text in \lyricmode section.Юрий Виноградов07:16, 10 июня 2024 г., Werner LEMBERG : Tell me how to make the first letter in the \markup department red. d4^\markup { "Tell me how to make" } d4Try```{ d'4^\markup \concat { \with-color #red T ell " me how to make" } d'4}```Werner
Re: color text in markup
Виноградов Юрий writes: > I'm grateful for your help. But you could not suggest the same > solution but for the text in \lyricmode section. \markup … can perfectly well be used for lyrics. -- David Kastrup
Re: color text in markup
Greetings!I understand that you can make the same settings for lyricmode. But I ask you to show me some example. Since I am not very good at lilypond myself. I really need to be able to make the first syllable of a word, the beginning of a sentence of a song or a romance or a psalm in red or any other color for my next sets of notes. It is very much requested that you teach me how to do this. As the specificity of my set will often meet with such phenomenon as, "red first letter of a syllable". Please!Юрий Виноградов14:56, 10 июня 2024 г., David Kastrup :Виноградов Юрийwrites: I'm grateful for your help. But you could not suggest the same solution but for the text in \lyricmode section.\markup … can perfectly well be used for lyrics.-- David Kastrup
Re: color text in markup
On Mon 10 Jun 2024 at 20:27:37 (+0300), Виноградов Юрий wrote: > Greetings!I understand that you can make the same settings for > lyricmode. But I ask you to show me some example. Since I am not very good at > lilypond myself. I really need to be able to make the first syllable of a > word, the beginning of a sentence of a song or a romance or a psalm in red or > any other color for my next sets of notes. It is very much requested that you > teach me how to do this. As the specificity of my set will often meet with > such phenomenon as, "red first letter of a syllable". Please! id="d6a0f08e75753cc2cursor-target">Юрий Виноградов />14:56, 10 июня 2024 г., David Kastrup: />Виноградов Юрий < href="mailto:hagrid@yandex.ru";>hagrid@yandex.ru> writes: /> I'm grateful for > your help. But you could not suggest the same solution but for the text > in \lyricmode section.\markup … can perfectly > well be used for lyrics. class="f55bbb4eeef208e8wmi-sign">-- David Kastrup /> Open the Notation Reference, turn to the index, and look up "markup, in lyrics". Turn to the page indicated (p316 in mine) and there are examples for lyrics involving fonts, size and colour. Cheers, David.
Re: color text in markup
> I really need to be able to make the first syllable of a word, the > beginning of a sentence of a song or a romance or a psalm in red or > any other color for my next sets of notes. It is very much requested > that you teach me how to do this. As the specificity of my set will > often meet with such phenomenon as, "red first letter of a > syllable". Combine my previous example with the code from this LSR snippet: https://lsr.di.unimi.it/LSR/Item?id=373 If you have problems please post a (failing) example that we can help you improve. Werner
Re: color text in markup
On 2024-06-10 10:27 am, Виноградов Юрий wrote: Greetings! I understand that you can make the same settings for lyricmode. But I ask you to show me some example. Since I am not very good at lilypond myself. I really need to be able to make the first syllable of a word, the beginning of a sentence of a song or a romance or a psalm in red or any other color for my next sets of notes. It is very much requested that you teach me how to do this. As the specificity of my set will often meet with such phenomenon as, "red first letter of a syllable". Please! That's a fairly big ask to the members on the mailing list. Technically, you have been shown all the basic techniques of \markup commands to be able to do this. To make a reference to school, we are not going to do your homework. Now, if you have a specific question along with code you have written as reference, we are more than willing to try to answer it. But an open-ended request for "teach me to how to do this long list of things" is probably not going to see much response. I do not want to leave you with nothing, lest I come across as being judgmental. Take a look at this bit of Lilypond: \version "2.25.13" \paper { indent = 0 tagline = #f } rubricRed = #(x11-color 'firebrick) %% Manual method in markup. \markup { \concat { { \with-color \rubricRed Sanc } { tus } } } \relative { \key f \major bes'2 c4( a) | bes1 \fine } \addlyrics { %% Manual method in markup within lyricsmode. \markup \with-color \rubricRed Glo -- ri -- a. } %% Automated methods (ADVANCED). redden = #(define-scheme-function (red-text normal-text) (markup? markup?) #{ \markup \concat { { \with-color \rubricRed #red-text } { #normal-text } } #}) %% Testing with automation. \markup { \redden Sanc tus } \relative { \key f \major bes'2 c4( a) | bes1 \fine } \addlyrics { %% Testing with automation. \redden Glo "" -- ri -- a. } -- Aaron Hill
Re: color text in markup
On 2024-06-10 11:11 am, Aaron Hill wrote: Oops. I attached the wrong image. Sorry about that. -- Aaron Hill
Re: color text in markup
Okey.Юрий Виноградов21:13, 10 июня 2024 г., Aaron Hill :On 2024-06-10 11:11 am, Aaron Hill wrote:Oops. I attached the wrong image. Sorry about that.-- Aaron Hill
Re: color text in markup
I'm very grateful to you. No offense taken. I'll try to send you the code next time to sort out the problem. Thank you again!!!Юрий Виноградов21:11, 10 июня 2024 г., Aaron Hill :On 2024-06-10 10:27 am, Виноградов Юрий wrote: Greetings! I understand that you can make the same settings for lyricmode. But I ask you to show me some example. Since I am not very good at lilypond myself. I really need to be able to make the first syllable of a word, the beginning of a sentence of a song or a romance or a psalm in red or any other color for my next sets of notes. It is very much requested that you teach me how to do this. As the specificity of my set will often meet with such phenomenon as, "red first letter of a syllable". Please!That's a fairly big ask to the members on the mailing list. Technically, you have been shown all the basic techniques of \markup commands to be able to do this. To make a reference to school, we are not going to do your homework. Now, if you have a specific question along with code you have written as reference, we are more than willing to try to answer it. But an open-ended request for "teach me to how to do this long list of things" is probably not going to see much response.I do not want to leave you with nothing, lest I come across as being judgmental. Take a look at this bit of Lilypond: \version "2.25.13" \paper { indent = 0 tagline = #f } rubricRed = #(x11-color 'firebrick) %% Manual method in markup. \markup { \concat { { \with-color \rubricRed Sanc } { tus } } } \relative { \key f \major bes'2 c4( a) | bes1 \fine } \addlyrics { %% Manual method in markup within lyricsmode. \markup \with-color \rubricRed Glo -- ri -- a. } %% Automated methods (ADVANCED). redden = #(define-scheme-function (red-text normal-text) (markup? markup?) #{ \markup \concat { { \with-color \rubricRed #red-text } { #normal-text } } #}) %% Testing with automation. \markup { \redden Sanc tus } \relative { \key f \major bes'2 c4( a) | bes1 \fine } \addlyrics { %% Testing with automation. \redden Glo "" -- ri -- a. }-- Aaron Hill