lilypond-user
[Top][All Lists]
Advanced

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

Re: exchange LyricHyphen with a "proper" hyphen


From: Knut Petersen
Subject: Re: exchange LyricHyphen with a "proper" hyphen
Date: Wed, 7 Dec 2016 11:37:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hi Alexander!

every now and then, I use a font for lyrics where the hyphen is quite different from Lilypond's LyricHyphen (in particular, sometimes it's slightly slanted). That combined with lyrics where a hyphen has to appear looks, well, ugly. (Recent example: a repetition of part of a word that has to be written as { ro -- sen-, ro -- sen -- rot }.)

I failed with [...]

Did anyone ever successfully try to do that, or has an idea how to approach 
such a tweak?

Yes, there is a solution in my local git repository. To activate the code you 
would include something like

     \override Lyrics.LyricText #'font-size = #+1.5

      \override Lyrics.LyricHyphen.use-markup = ##t
      \override Lyrics.LyricHyphen.text = "-"
      \override Lyrics.LyricHyphen #'font-size = #'1.5
      \override Lyrics.LyricHyphen #'font-name = "OffenbacherSchwab OT"
      \override Lyrics.LyricHyphen #'minimum-distance = #0.8

into \layout{}. It's on top of some other changes either not published or not 
accepted, but I could tear it out.

Of course, you would need to rebuild lilypond as the solution requires changes 
to the c++ sources.

cu,
 Knut



reply via email to

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