lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scandinavian letters in lyrics and text markup


From: Mats Bengtsson
Subject: Re: Scandinavian letters in lyrics and text markup
Date: Mon, 19 Apr 2004 13:28:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

You don't need to change the font-name or add the t1enc package
unless you want to be able to search for the lyrics in Acrobat
or copy/paste them from Acrobat to some other file.

Also, with most text editors (i.e. with editors that can
output latin1 coded text), you can just write the letters
as usual:

\score{
    <<
        \notes\relative c' {
            a4 a a a a a a a
            a4 a a a a a a a
        }
        \lyricsto "" \new Lyrics \lyrics {
            Han f\o -- rer d\o - dens s\aa g\aa_r
            Han før -- rer dø - dens så går
        }
    >>
}

I have answered similar question on the mailing list several times and
also pointed out the inability to add options to a specific package.
I think Jan had some extra problems, since he probably used the latest
development version, where the default font handling has changed.
Actually, ecrm12 (I assume the ecrb12 was a misprint) is not part of
any default TeX installation.
Jan's proposed solution has another problem, namely that the space after
the \aa is interpreted as "end of syllable" instead of as a space to be
copied into the generated TeX code. I used underscore instead (which is
translated to space in the generated code). Another possibility is to
include the syllable in double quotes:
"g\aa r"
Then you can also say
"g\aa{}r"
which is equivalent, but maybe is more logical viewed as TeX code.

    /Mats

Jan Nieuwenhuizen wrote:
Oddgeir Finstad writes:

You may try this:

\header{
    latexpackages="t1enc"
    }
\score{
    <<
        \notes\relative c' {
a4 a a a a a a a }
        \lyricsto "" \new Lyrics \lyrics {
            \override LyricText #'font-name = #"ecrb12"
            Han f\o -- rer d\o {} - dens s\aa g\aa r
        }
    >>
}

I'm amazed how much time it took me to figure this out, we should have
some good examples on this.  The v2.2.0 lilypond script is not very
flexible or elegant with respect to setting special latex options.

I'm fairly sure that with some good bug reports (with latex code
solutions) this could have been fixed eons ago.

Jan.


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]