[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: text formatting inside \addlyrics
From:       "Gerard McConnell" <gerrymcc () indigo ! ie>
Date:       2010-04-23 22:08:18
Message-ID: 871D9E87CF184EDFB0105645D794675A () netOne
[Download RAW message or body]

Hi James,
I tried it and that's what happened; I've attached the file in case you'd 
like a look at the result.
On the other hand, I can confirm that Phil Holme's idea does work -
\override LyricText #'font-shape = #'italic italic text \override LyricText 
#'font-shape = #'normal
Gerard

----- Original Message ----- 
From: "James Bailey" <derhindemith@googlemail.com>
To: "Gerard McConnell" <gerrymcc@indigo.ie>
Cc: "Kieren MacMillan" <kieren_macmillan@sympatico.ca>; 
<lilypond-user@gnu.org>
Sent: Friday, April 23, 2010 6:43 AM
Subject: Re: text formatting inside \addlyrics


>
> On 22.04.2010, at 23:04, Gerard McConnell wrote:
>
>>
>> ----- Original Message ----- From: "Kieren MacMillan" 
>> <kieren_macmillan@sympatico.ca>
>> To: "Gerard McConnell" <gerrymcc@indigo.ie>
>> Cc: <lilypond-user@gnu.org>
>> Sent: Thursday, April 22, 2010 12:16 PM
>> Subject: Re: text formatting inside \addlyrics
>>
>>
>>> Hi Gerard,
>>>
>>>> How do I italicize a section of text inside \addlyrics?
>>>
>>> \markup \italic { a section of text to be italicised }
>>>
>> I don't think that will work; that will italicize the section of  text, 
>> but the words will no longer be treated as lyrics, that is,  they won't 
>> be aligned under the notes as lyrics would be.
>
> What would lead you to come to this conclusion?
> 

["forJamesBailey.ly" (text/lilypond-source)]

\version "2.12.0"
\layout {
	indent = #0
    \context {
        \Score
	\remove "Bar_number_engraver"
    }
	\context {
		\Lyrics \override LyricText #'font-size = #-1
	}
}

\header {
	title = "All Creatures Of Our God And King" 
	tagline = ##f
}

% to get an svg output file  use the LilyPondTool console and enter - %lilypond -dbackend=svg %buffer

#(set-global-staff-size 25)

\relative c' {
	\key d \major
	\time 3/2
	\partial 2 d2 | d4 e fis d fis g | a1 d,2 | d4 e fis d fis g | a1 d4 cis | b2 a d4 cis
	b2 a^\markup { \musicglyph #"scripts.ufermata" } d | 
	d4 a a g fis g | a1 d2 | d4 a a g fis g | a1 g4( fis) | e2 d g4( fis) | e2 d d'4 cis |
	b2 a d4 cis | b2 a g4 fis | e1. | d2 \bar "|." 
}

	\addlyrics { All crea -- tures of our God and King.
		lift up your voice and with us sing
		Al -- le -- lu -- ia, al -- le -- lu -- ia!
		Thou burn -- ing sun with gol -- den beam,
		thou sil -- ver moon with soft -- er gleam;
		\markup \italic { 
		O praise Him, O praise him,
		al -- le -- lu -- ia, al -- le -- lu -- ia, al -- le -- lu -- ia! } 
		}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic