Hi Knut,

thanks for looking into that. IIUC (and without looking into your code - is it on Github or otherwise publicly avaiable?), it seems that you essentially add a text-interface to LyricHyphen. That's what would have been my idea as well, if I were up to it.
Rebuilding is not a problem - I usually use a self-compiled version 
anyway, though I try to avoid relying on it too much. But this would be 
a change that you can do once and for all in a separate style file, and 
if you use a vanilla version, you can just resort to not include that part.
I'm not sure whether Harm's proof of concept also involved 
pre-compile-time modifications. If not, that would be an ever better 
option for my taste. Otherwise, I'll come back to you... ;-) Thanks!

Cheers,
Alexander


On 2016-12-07 11:37, Knut Petersen wrote:
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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to