Displaying accents in lyrics Portuguese or French

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Displaying accents in lyrics Portuguese or French

Eduardo Vieira
Hello fellows,
 
What can I do in order to make Lilypond generate a ps or pdf output that would show words with accents?
I know I'm a beginner and know very little about Lilypond, and probably this is a basic question, but consider helping me, please.
By the way I use Lilypond 2.7.4 in Windows (setup with mingw not Cygwin).
Here is the transcription of the file (Take notice of the lyrics)
 
\version "2.5.20"
\header {
 composer = "Arr. Tereza Dias     "
 crossRefNumber = "1     "
 footnotes = "\\\\"
 tagline = "Lily was here 2.7.4 -- automatically converted from ABC"
 title = "Você sabe solfejar?"
}
wordsBVA = \lyricmode {
Dó o di- a o lin- do di- a. Re, re- luz é ou- ro_em pó. 
Mi, é_as- sim que_eu cha- mo_a mim. Fá, é fá- cil de- co- rar.  
Sol, o nos- so_a- mi- go sol. Lá, em bem lon- ge da- qui.  
Si, in- di- ca con- di- ção. de- pois dis- so vem o dó.  
vo- cê sa- be sol- fe- jar?   En- tão po- de_as- sim can- tar.  
sol dó lá fá mi dó ré.   sol dó lá si dó ré dó dó ré mi fá sol lá si  
dó dó ré mi fá sol lá si dó dó ré mi fá sol lá si dó.  
}
wordsCVA = \lyricmode {
Dó o di- a o lin- do di- a. Ré, re- luz é ou- ro_em pó. 
Mi, é_as- sim que_eu cha- mo_a mim. Fá, é fá- cil de- co- rar.  
Sol, lá lá si   si dó sol lá sol fá mi.   vo- cê sa- be sol- fe- jar?  
En- tão po- de_as- sim can- tar.   sol dó lá fá mi dó ré.  
sol dó lá si dó ré dó   dó ré mi fá sol lá si dó dó ré mi fá sol lá si dó.  
}
wordsDVA = \lyricmode {
Dó_  ré_  mi_  fá  _  mi dó fá fi ré sol  
sé mi lá fá mi dó ré mi fá sol lá si  
dó dó si lá sol fá mi ré vo- cê sa- be sol- fe-  
jar? En- tão po- de_as- sim can-  
tar. dó mi mi mi sol sol ré fá fá lá si si dó mi mi mi sol sol  
ré fá fá lá si si dó mi mi mi sol sol fá lá lá sol si si lá dó dó si ré ré  
dó dó dó si lá sol fá mi ré dó.  
}
wordsEVA = \lyricmode {
Dó si lá sol dó si lá sol ré dó si lá sol lá si 
dó ré mi ré dó ré mi fá mi ré dó si dó ré   dó fé mi ré sol fá  
mi con- di- ção de pois o dó dó ré mi fá sol lá si  
dó dó si lá sol fá mi ré vo- cê sa- be sol- fe-  
jar? En- tão po- de_as- sim can-   tar. dó mi fá fá sol mi  
fá dó mi fá mi fá mi   _ dó si lá sol fá mi ré dó  
}
voiceB =  {
\set Score.defaultBarType = "empty"
 
\repeat volta 2 {
\time 4/4      \key c \major   c'4.    d'8    e'8    e'4    c'8    \bar "|"  
e'4    c'4    e'8    e'4.    \bar "|"   d'4.    e'8    f'8    f'8    e'8    d'8
   \bar "|"   f'1    \bar "|"     e'4.    f'8    g'4.    e'8    \bar "|"   g'4 
  e'4    g'2    \bar "|"   f'4.    g'8    a'8    a'8    g'8    f'8    \bar "|" 
 a'1    \bar "|"     g'4.    c'8    d'8    e'8    f'8    g'8    \bar "|"   a'1 
  \bar "|"   a'4.    d'8    e'8    fis'8    g'8    a'8    \bar "|"   b'1   
\bar "|"     b'4.    e'8    fis'8    g'8    a'8    b'8    \bar "|"   c''2.   
c''8    b'8    \bar "|"   a'4    f'4    b'4    g'4    }   c''1   ~    \bar "|" 
 c''1  \bar "|"     c''2    c''2    \bar "|"   c''2    c''2    \bar "|"   c''2 
  a'2    \bar "|"   b'1    \bar "|"     c''2    c''2    \bar "|"   c''2    d''2
   \bar "|"   c''2    b'2    \bar "|"   c''1    \bar "|"     g'2    c'2   
\bar "|"   a'2    f'2    \bar "|"   e'2    c'2    \bar "|"   d'1    \bar "|"   
 g'2    c'2    \bar "|"   a'2    b'2    \bar "|"   c''2    d''2    \bar "|"  
c''8    c'8    d'8    e'8    f'8    g'8    a'8    b'8    \bar "|"     c''8   
c'8    d'8    e'8    f'8    g'8    a'8    b'8    \bar "|"   c''8    c'8    d'8 
  e'8    f'8    g'8    a'8    b'8    \bar "|"   c''8    r8   r2.   \bar "|."  
}
voiceC =  {
\set Score.defaultBarType = "empty"
 
\repeat volta 2 {
\time 4/4      \key c \major   c'4.    d'8    e'8    e'4    c'8    \bar "|"  
e'4    c'4    e'8    e'4.    \bar "|"   d'4.    e'8    f'8    f'8    e'8    d'8
   \bar "|"   f'1    \bar "|"     e'4.    f'8    g'4.    e'8    \bar "|"   g'4 
  e'4    g'2    \bar "|"   f'4.    g'8    a'8    a'8    g'8    f'8    \bar "|" 
 a'1    \bar "|"     g'1    \bar "|"   a'1    \bar "|"   a'1    \bar "|"   b'1 
  \bar "|"     b'1    \bar "|"   c''2.    g'4    \bar "|"   a'2    g'4    f'4  
 }   e'1   ~    \bar "|"   e'1  \bar "|"     g'2    c'2    \bar "|"   a'2   
f'2    \bar "|"   e'2    c'2    \bar "|"   d'1    \bar "|"     g'2    c'2   
\bar "|"   a'2    b'2    \bar "|"   c''2    d''2    \bar "|"   c''1    \bar "|"
    g'2    c'2    \bar "|"   a'2    f'2    \bar "|"   e'2    c'2    \bar "|"  
d'1    \bar "|"     g'2    c'2    \bar "|"   a'2    b'2    \bar "|"   c''2   
d''2    \bar "|"   c''2    r2   \bar "|"     r8   c'8    d'8    e'8    f'8   
g'8    a'8    b'8    \bar "|"   c''8    c'8    d'8    e'8    f'8    g'8    a'8 
  b'8    \bar "|"   c''8    r8   r2.   \bar "|."  
}
voiceD =  {
\set Score.defaultBarType = "empty"
 
\repeat volta 2 {
\time 4/4      \key c \major   c'1   ~    \bar "|"   c'1  \bar "|"   d'1   ~   
\bar "|"   d'1  \bar "|"   e'1   ~    \bar "|"   e'1    f'1   ~    \bar "|"    
f'1  \bar "|"   e'2    c'2    \bar "|"   f'1    \bar "|"   fis'2    d'2   
\bar "|"   g'1    \bar "|"     gis'2    e'2    \bar "|"   a'1    \bar "|"   f'1
   }   e'8    c'8    d'8    e'8    f'8    g'8    a'8    b'8    \bar "|"    
c''8    c''8    b'8    a'8    g'8    f'8    e'8    d'8    \bar "|"   e'2    g'2
   \bar "|"   f'2    a'2    \bar "|"   g'2    fis'2    \bar "|"     f'1   
\bar "|"   e'2    g'2    \bar "|"   f'2    aes'2    \bar "|"   g'2    g'2   
\bar "|"     g'1    \bar "|"   c'8    e'8    e'4    e'8    g'8    g'4   
\bar "|"   d'8    f'8    f'4    a'8    b'8    b'4    \bar "|"   c'8    e'8   
e'4    e'8    g'8    g'4    \bar "|"     d'8    f'8    f'4    a'8    b'8    b'4
   \bar "|"   c'8    e'8    e'4    e'8    g'8    g'4    \bar "|"   f'8    a'8  
 a'4    g'8    b'8    b'4    \bar "|"   a'8    c''8    c''4    b'8    d''8   
d''4    \bar "|"     c''2    r2   \bar "|"   r1   \bar "|"   c'8    c''8    b'8
   a'8    g'8    f'8    e'8    d'8    \bar "|"   c'8    r8   r2.   \bar "|."  
}
voiceE =  {
\set Score.defaultBarType = "empty"
 
\repeat volta 2 {
\time 4/4      \key c \major   c'4    b4    a4    g4    \bar "|"   c'4    b4   
a4    g4    \bar "|"   d'4    c'4    b4    a4    \bar "|"   g4    a4    b2   
\bar "|"     c'4    d'4    e'4    d'4    \bar "|"   c'4    d'4    e'2   
\bar "|"   f'4    e'4    d'4    c'4    \bar "|"   b4    c'4    d'2    \bar "|" 
   c'1    \bar "|"   f'2    e'2    \bar "|"   d'1    \bar "|"   g'2    f'2   
\bar "|"     e'1    \bar "|"   a'4    aes'4    g'4    e'4    \bar "|"   f'2   
d'2    }   c'8    c'8    d'8    e'8    f'8    g'8    a'8    b'8    \bar "|"    
c''8    c''8    b'8    a'8    g'8    f'8    e'8    d'8    \bar "|"   c'2    e'2
   \bar "|"   f'2    f'2    \bar "|"   g'2    e'2    \bar "|"     f'1   
\bar "|"   c'2    e'2    \bar "|"   f'2    f'2    \bar "|"   e'2    f'2   
\bar "|"     e'1    \bar "|"   c'2    e'2    \bar "|"   f'2    f'2    \bar "|" 
 g'2    e'2    \bar "|"     f'1    \bar "|"   c'2    e'2    \bar "|"   f'2   
f'2    \bar "|"   e'2    f'2    \bar "|"     e'2    r2   \bar "|"   r1  
\bar "|"   r8   c''8    b'8    a'8    g'8    f'8    e'8    d'8    \bar "|"  
c'8    r8   r2.   \bar "|."      
}
voicedefault =  {
\set Score.defaultBarType = "empty"
 
% %continueall
 % Music
 % Tune name
 % Tune composer
 % Tune infos
 % Tempo
 
}
 
\score{
         <<
 
 \context Staff="1"
 {
     \voicedefault
     \voiceB
 }
 
 \addlyrics {
 \wordsBVA }
 \context Staff="2"
 {
     \voicedefault
     \voiceC
 }
 
 \addlyrics {
 \wordsCVA }
 \context Staff="3"
 {
     \voicedefault
     \voiceD
 }
 
 \addlyrics {
 \wordsDVA }
 \context Staff="4"
 {
     \voicedefault
     \voiceE
 }
 
 \addlyrics {
 \wordsEVA }
    >>
 \layout {
 }
 \midi {\tempo 4 = 100     }
}
 

_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Displaying accents in lyrics Portuguese or French

Pedro Kröger
"Eduardo Vieira" <[hidden email]> writes:

> What can I do in order to make Lilypond generate a ps or pdf output
> that would show words with accents?

You just to have to save the file as unicode. if you are using emacs it is
as easy as putting this line:

% -*- coding: utf-8 -*-

on the top of the file.

you can find more about it in the section "text encoding" of the manual[1]

Cheers.

Pedro Kröger

[1] http://lilypond.org/doc/v2.7/Documentation/user/out-www/lilypond/Text-encoding.html#Text-encoding



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Displaying accents in lyrics Portuguese or French

Nicolas Sceaux
[hidden email] (Pedro Kröger) writes:

> You just to have to save the file as unicode. if you are using emacs it is
> as easy as putting this line:
>
> % -*- coding: utf-8 -*-
>
> on the top of the file.

or hitting:
   C-x RET f utf-8 RET
and then saving the file.

To make utf-8 the default as soon as you add non-ASCII characters in
a buffer, put in your .emacs:
(prefer-coding-system 'utf-8)


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

What to put where for unicode using jedit?

Jay Hamilton, Sound and Silence
Nicolas was very clear if one is using emacs but what
about jedit it seems odd that if one cancels out a line
with % that it would affect how the text coding worked.
So is it the same?  Also I can't find the correct
numbers that have been referred to in past questions for
the rest of
utf-8 whatever.
Thanks.
Jay

Nicolas Sceaux wrote:

> [hidden email] (Pedro Kröger) writes:
>
>
>>You just to have to save the file as unicode. if you are using emacs it is
>>as easy as putting this line:
>>
>>% -*- coding: utf-8 -*-
>>
>>on the top of the file.
>
>
> or hitting:
>    C-x RET f utf-8 RET
> and then saving the file.
>
> To make utf-8 the default as soon as you add non-ASCII characters in
> a buffer, put in your .emacs:
> (prefer-coding-system 'utf-8)
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>

--
Childhood is a Journey not a race- Emma Sadinsky aged 8
Jay Hamilton
Sound and Silence
206-328-7694
www.soundand.com


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: What to put where for unicode using jedit?

Bertalan Fodor
Jay Hamilton, Sound and Silence wrote:

> Nicolas was very clear if one is using emacs but what about jedit it
> seems odd that if one cancels out a line with % that it would affect
> how the text coding worked.
> So is it the same?  Also I can't find the correct numbers that have
> been referred to in past questions for the rest of
> utf-8 whatever.

Sure. You van use on the top or the the bottom of the file.

% :encoding=UTF-8:



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user