lilypond-devel
[Top][All Lists]
Advanced

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

Re: non-ascii chars in lilypond-book input does not work


From: Mats Bengtsson
Subject: Re: non-ascii chars in lilypond-book input does not work
Date: Thu, 13 Jun 2002 11:05:33 +0200

> The following at the en of the message, compiled like this:
> 
> lilypond-book filename.mb
> latex filename.latex
> xdvi filename.latex
> 
> does not display the norwegian characters.

Since the Lilypond generated TeX code uses low-level TeX
font selection mechanisms, not the ordinary LaTeX font
selection, you should only use the latin1 input encoding, 
not the T1 font encoding. So, just replace the line
\usepackage{t1enc,isolatin1}
by
\usepackage{isolatin1}
or preferably
\usepackage[latin1]{inputenc}


An alternative if you use version 1.5.xx, is to explicitly 
specify that you want the T1 encoded European Computer Modern
font. Then, Lilypond will stop complaining about unknown 
ascii characters and will calculate the width of each syllable
correctly. Also, if you copy/paste the lyrics from a PDF version
of the score, the norwegian characters will come out right.
To do this, keep your original line
\usepackage{t1enc,isolatin1}

(I personally prefer the two lines
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
)

and add the following property setting at the beginning of
your tekst definition:
\property Lyrics . LyricText \override #'font-name = #"ecrm1000"

Unfortunately, you have to specify the font including the size,
so it's a bit clumsier to change to bold, italic or some other
size.

   /Mats





reply via email to

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