lilypond-devel
[Top][All Lists]
Advanced

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

Re: Some points about hyphens (and a possible patch)


From: Mats Bengtsson
Subject: Re: Some points about hyphens (and a possible patch)
Date: Fri, 06 Feb 2004 10:27:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113



Bertalan Fodor wrote:
Hello,

I played a bit with lyric hyphens.

1. First I found that with latin1-encoded accented characters calculating
the bounding box is not totally exact.
Try ÖÜÖÜÖÜ and \"O\"U\"O\"U as a syllable and compare.

Yes, LilyPond is cheating in several ways when it comes to font
handling. First of all, it doesn't know anything about the NSFF
font selection scheme that LaTeX uses, instead it uses low-level
TeX commands. Secondly, when it calculates the width of each
lyrics syllable, it ignores TeX commands like \" and it also
ignores characters it doesn't find in the default CMR font.

For most of the characters in latin1, the character number is the
same in the T1 font encoding as in the Latin1 input encoding. You
can exploit this by setting
\property Lyrics . LyricText \override #'font-name = #"ecrm1000"
and remove the line
\usepackage[latin1]{inputenc}
in the LaTeX wrapper created by the lilypond script.
(You can do this either by
- lilypond -k myfile.ly, edit lilypond.dir/myfile.latex,
  cd lilypond.dir, latex myfile.latex
or
- edit /usr/bin/lilypond and comment out the code that generates
  the inputenc line.)

I leave your second comment to others.

   /Mats




reply via email to

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