[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lyrics problems: Bar_engraver, ß (SS) , ü, hyphens
From: |
Mats Bengtsson |
Subject: |
Re: lyrics problems: Bar_engraver, ß (SS) , ü, hyphens |
Date: |
Fri, 24 Sep 2004 13:07:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 |
The problem is that when LilyPond tries to calculate the horizontal
space occupied by each syllable, it doesn't realize that the
\"u is just one character and therefore thinks that syllables
J\"un and t\"o are much longer than they actually are. The consequence
is that the hyphen is placed too far to the right.
The simple solution is to directly enter the Latin1 encoded characters
instead: Jün -- ger tö -- richt ...
By chance, these characters will show up correctly in the output, since
they have the same character code in Latin1 as in the T1 encoding of the
font used.
/Mats
Russ Ross wrote:
Finally, hyphens within words are not always displaying properly.
Where before they would be centered between two syllables, now they
sometimes stick to the second syllable.
I don't think I have seen this problem. Could you find an example?
Certainly; here's a snippet from a recitative that shows the problem:
\version "2.3.18"
altoNotes = \relative c'' {
a8 d, c' b b b r fis |
dis dis dis e fis r r b, |
}
altoLyrics = \lyricmode {
J\"un -- ger t\"o -- richt strei -- ten, daß
die -- ses from -- me Weib mit
}
\score {
\simultaneous {
\context Staff = altoStaff
\context Voice = altoVoice {
\autoBeamOff
\clef treble
\key b \minor
\altoNotes
}
\lyricsto altoVoice \new Lyrics \altoLyrics
}
\paper {}
}
In this example "Jün -- ger" and "tö -- richt" both show the problem,
rendering as something like "Jün -ger" and "tö -richt" respectively.
If you comment out the second measure, the problem is corrected: as
the first measure expands the hyphens move to the center.
By coincidence, the example also happens to include both a 'ß' and two
'ü's that render incorrectly, which you indicated was a known issue
with character encodings.
Thanks,
Russ
_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel
--
=============================================
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
=============================================