Re: exchange LyricHyphen with a "proper" hyphen

2016-12-14 Thread Noeck
That went smoothly without any problems. The contrib documentation describes it really well and more importantly, the usual configure/make commands just work like expected. I will have a look at the patches and their effect on my scrores on Saturday. Cheers, Joram

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-14 Thread Noeck
>> I won't be able to do more testing until the weekend. >> >> Can I compile lilypond on Ubuntu? > > Ofcourse. Thanks. >> I've read >> http://lilypond.org/doc/v2.19/Documentation/contributor/requirements-for-compiling-lilypond#ubuntu > > Useful as well: >

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-14 Thread Thomas Morley
2016-12-14 23:12 GMT+01:00 Noeck : > Thank you both! That looks good. I tested it with one vocal score. I > won't be able to do more testing until the weekend. > > Can I compile lilypond on Ubuntu? Ofcourse. > I've read >

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-14 Thread Noeck
Thank you both! That looks good. I tested it with one vocal score. I won't be able to do more testing until the weekend. Can I compile lilypond on Ubuntu? I've read http://lilypond.org/doc/v2.19/Documentation/contributor/requirements-for-compiling-lilypond#ubuntu But if you already know that it

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-13 Thread Alexander Kobel
Hi. On 2016-12-10 20:23, Knut Petersen wrote: Am 07.12.2016 um 23:59 schrieb Thomas Morley: So here a very first shot. Thanks for your work. I think the attached code shows a problem of your code ... Back on the topic for this thread. I also noticed that behavior, and I thought I have a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-12 Thread Alexander Kobel
Hi Knut, hi all. On 2016-12-12 00:52, Knut Petersen wrote: Hi Alexander IIUC (I didn't compile it in), your patch inhibits extenders on a single note, correct? Yes. Is that really what we want unconditionally, Currently we get a short extender ... that is imho of no use and should be

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Knut Petersen
Hi Alexander IIUC (I didn't compile it in), your patch inhibits extenders on a single note, correct? Yes. Is that really what we want unconditionally, Currently we get a short extender ... that is imho of no use and should be killed. or are there reasonable use cases where one might

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Noeck
Hi, > That’s a design question. There are styles which use extenders on single > notes (e.g. for very wide c.f. notes), I also think I have seen it for long notes, for instance in a final measure. I could also think of a situation where a voice splits up into two in the final measure (bass

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Simon Albrecht
On 11.12.2016 23:33, Alexander Kobel wrote: IIUC (I didn't compile it in), your patch inhibits extenders on a single note, correct? Is that really what we want unconditionally, or are there reasonable use cases where one might want to have an extender printed after a single note? That’s a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Alexander Kobel
On 2016-12-11 17:24, Knut Petersen wrote: Am 11.12.2016 um 09:05 schrieb Simon Albrecht: Sorry to ask so bluntly, but can it really be that simple? I thought a solution must consider the x-extent of the syllable vs. the melisma as well… I think this is sufficiently easy to handle with the

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Knut Petersen
Am 11.12.2016 um 09:05 schrieb Simon Albrecht: On 11.12.2016 08:37, Knut Petersen wrote: The attached patch should solve your problem. Thanks for having a look into it! Would you mind posting your patch as reply under issue 4509, to keep the information in one place? No. Now and here's the

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Knut Petersen
Hi Alexander! Here's a first shot. Please test thoroughly... #(define (has-hyphen? event) (let* ((art (ly:music-property event 'articulations)) (is-hyphen? (lambda (ev) (eq? (ly:music-property ev 'name) 'HyphenEvent (find is-hyphen? art))) [] Thanks a lot for

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Knut Petersen
Am 11.12.2016 um 10:08 schrieb David Kastrup: Noeck writes: Btw, I realized that at least visually setting the min. length to 0 already makes the non-melismata hyphens disappear even without your code to kill them: \layout { \override

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Alexander Kobel
On 2016-12-10 23:33, Alexander Kobel wrote: On 2016-12-10 20:20, Noeck wrote: [...] Would it be possible to have automatic extender lines? For every melisma there is an extender line if it would be longer than the minimum-length? Hm. Iterate over lyrics and add Extender events for each

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Alexander Kobel
On 2016-12-11 11:04, Alexander Kobel wrote: Hi Joram. On 2016-12-11 09:28, Noeck wrote: Hi Alexander, Am 11.12.2016 um 01:17 schrieb Alexander Kobel: Ah, no, here's the problem, as can be readily seen in the "Brich an, o schönes Morgenlicht", first full measure I don't think so. Because

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Alexander Kobel
Hi Joram. On 2016-12-11 09:28, Noeck wrote: Hi Alexander, Am 11.12.2016 um 01:17 schrieb Alexander Kobel: Ah, no, here's the problem, as can be readily seen in the "Brich an, o schönes Morgenlicht", first full measure I don't think so. Because for notes like the second one in the soprano

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread David Kastrup
Noeck writes: > Btw, I realized that at least visually setting the min. length to 0 > already makes the non-melismata hyphens disappear even without your code > to kill them: > > \layout { > \override Lyrics.LyricExtender.minimum-length = 0.0 > } > > { a a( a) } >

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Noeck
Btw, I realized that at least visually setting the min. length to 0 already makes the non-melismata hyphens disappear even without your code to kill them: \layout { \override Lyrics.LyricExtender.minimum-length = 0.0 } { a a( a) } \addlyrics { A __ B __} Cheers, Joram

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Noeck
Hi Alexander, Am 11.12.2016 um 01:17 schrieb Alexander Kobel: > Ah, no, here's the problem, as can be readily seen in the "Brich an, o > schönes Morgenlicht", first full measure I don't think so. Because for notes like the second one in the soprano voice ("an,"), the added extender line is very

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-11 Thread Simon Albrecht
On 11.12.2016 08:37, Knut Petersen wrote: The attached patch should solve your problem. Thanks for having a look into it! Would you mind posting your patch as reply under issue 4509, to keep the information in one place? Sorry to ask so bluntly, but can it really be that simple? I thought a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Knut Petersen
Hi Joram! Ok, I misunderstood your problem. What I do is shown here [like 1]: \new ChoirStaff << \new Staff \soprano \addlyrics \text \new Staff \alto \addlyrics \text \new Staff { \clef "treble_8" \tenor } \addlyrics \text \new Staff {

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Alexander Kobel
Hi again, On 2016-12-10 23:33, Alexander Kobel wrote: On 2016-12-10 20:20, Noeck wrote: Hi Alexander, where is this from: conditional-kill-lyric-extender-callback? [...] It is a perfect solution for a problem I had for quite some time: In chorales (4 voices, mostly homophone), I often have

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Alexander Kobel
On 2016-12-10 20:20, Noeck wrote: Hi Alexander, where is this from: conditional-kill-lyric-extender-callback? Does it have any drawback? Hi Joram, glad it helped. It seems that I wrote it, probably modeled after a suggestion by Kieren:

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Noeck
Hi Simon, > Well… https://sourceforge.net/p/testlilyissues/issues/4509/ … :) That's exactly what I meant. With (a) this conditional-kill-lyric-extender-callback in Alexander's files and (b) a "put extenders after every syllable" philosophy this does not sound very complicated. (a) is quite

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Simon Albrecht
On 10.12.2016 20:20, Noeck wrote: Would it be possible to have automatic extender lines? For every melisma there is an extender line if it would be longer than the minimum-length? Well… … Best, Simon

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Noeck
Hi Knut, Am 10.12.2016 um 20:37 schrieb Knut Petersen: > Currently lyrics are attached to one voice, but you use them for up to > four voices in a staff like "SA combined, lyrics, TB combined". > A better lyrics engraver would allow to attach the lyrics to more than > one voice and handle the

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Knut Petersen
Hi Joram! Would it be possible to have automatic extender lines? For every melisma there is an extender line if it would be longer than the minimum-length? Currently lyrics are attached to one voice, but you use them for up to four voices in a staff like "SA combined, lyrics, TB combined". A

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Knut Petersen
Am 07.12.2016 um 23:59 schrieb Thomas Morley: So here a very first shot. Thanks for your work. I think the attached code shows a problem of your code ... Knut \version "2.19.53" #(define (lh-test-stencil arg) (lambda (grob) (if (ly:stencil? (ly:lyric-hyphen::print grob)) (let*

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Noeck
Hi Alexander, where is this from: conditional-kill-lyric-extender-callback? Does it have any drawback? It is a perfect solution for a problem I had for quite some time: In chorales (4 voices, mostly homophone), I often have common lyrics but sometimes different melismata. So just because of one

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Alexander Kobel
On 2016-12-10 09:40, Knut Petersen wrote: Am 10.12.2016 um 00:36 schrieb Alexander Kobel: [...] And with this, all of this week's issues of mine are worked around, and I can proudly present a beautiful little setting of a beautiful little piece by Reger... :-) Those old settings by Max Reger

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Alexander Kobel
On 2016-12-10 11:50, Michael Gerdau wrote: And with this, all of this week's issues of mine are worked around, and I can proudly present a beautiful little setting of a beautiful little piece by Reger... :-) Nice one (Others already mentioned the two hyphen in bar 30) Would you share the

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Alexander Kobel
Hi all, On 2016-12-10 08:33, Noeck wrote: Dear Alexander, a very nice score! thanks Joram and Knut. I don't like to spoil it but in the last line (measure 30) I see an extra hyphen. I like that you spoil, that's why I posted it - always better to hame some more pairs of eyes look at it

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Michael Gerdau
> And with this, all of this week's issues of mine are worked around, and > I can proudly present a beautiful little setting of a beautiful little > piece by Reger... :-) Nice one (Others already mentioned the two hyphen in bar 30) Would you share the source(s)? Kind regards, Michael --

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-10 Thread Knut Petersen
Am 10.12.2016 um 00:36 schrieb Alexander Kobel: Maybe minimum-distance may help here, not tested though. AFAICS for now: Works like a charm. Thanks a ton again. And with this, all of this week's issues of mine are worked around, and I can proudly present a beautiful little setting of a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-09 Thread Noeck
Dear Alexander, a very nice score! I don't like to spoil it but in the last line (measure 30) I see an extra hyphen. I guess it is no problem to remove it though. It is in the lyrics of the upper and lower staff inside the syllable "ten" of "deuten". So probably not an issue of harms code but

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-09 Thread Alexander Kobel
On 2016-12-07 23:59, Thomas Morley wrote: 2016-12-07 22:03 GMT+01:00 Simon Albrecht : On 07.12.2016 11:45, Alexander Kobel wrote: I'm not sure whether Harm's proof of concept also involved pre-compile-time modifications. It certainly didn’t; Harm is a Schemer, not a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Alexander Kobel
On 2016-12-07 23:59, Thomas Morley wrote: [...] So here a very first shot. For now I let display the new _and_ the colored default LyricHyphen. You'll see a drawback already: In tight situations the default gets shortened until it vanishs. This is not possible or at least not desirable for

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Thomas Morley
2016-12-07 22:03 GMT+01:00 Simon Albrecht : > On 07.12.2016 11:45, Alexander Kobel wrote: >> >> I'm not sure whether Harm's proof of concept also involved >> pre-compile-time modifications. > > > It certainly didn’t; Harm is a Schemer, not a C++ guy :-) Indeed. So here a

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Noeck
Dear Harm, > Anyway, I tried some coding resulting in the attached image. Wow. I should know it better by now, but time after time I am astonished at what you are able to achieve. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Simon Albrecht
On 07.12.2016 11:45, Alexander Kobel wrote: I'm not sure whether Harm's proof of concept also involved pre-compile-time modifications. It certainly didn’t; Harm is a Schemer, not a C++ guy :-) Best, Simon ___ lilypond-user mailing list

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Alexander Kobel
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

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-07 Thread Knut Petersen
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

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel
On 2016-12-07 00:10, Thomas Morley wrote: 2016-12-06 23:41 GMT+01:00 Alexander Kobel : On 2016-12-06 23:28, Simon Albrecht wrote: On 06.12.2016 23:00, Alexander Kobel wrote: replace the LyricHyphen "elementary stencil" by a properly printed hyphen from the LyricText font

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Thomas Morley
2016-12-06 23:41 GMT+01:00 Alexander Kobel : > On 2016-12-06 23:28, Simon Albrecht wrote: >> >> On 06.12.2016 23:00, Alexander Kobel wrote: >>> >>> replace the LyricHyphen "elementary stencil" by a properly printed >>> hyphen from the LyricText font >> >> >> A very good request

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel
On 2016-12-06 23:28, Simon Albrecht wrote: On 06.12.2016 23:00, Alexander Kobel wrote: replace the LyricHyphen "elementary stencil" by a properly printed hyphen from the LyricText font A very good request :-) Oh, right. Yeah, I know

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Simon Albrecht
On 06.12.2016 23:00, Alexander Kobel wrote: replace the LyricHyphen "elementary stencil" by a properly printed hyphen from the LyricText font A very good request :-) Best, Simon ___

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel
Hi Abraham, On 2016-12-06 23:14, tisimst wrote: Alexander, [...] I failed with \override LyricHyphen.text = #"-" \override LyricHyphen.stencil = #lyric-text::print trying to replace the LyricHyphen "elementary stencil" by a properly printed hyphen from the LyricText

Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread tisimst
ed into this before, but it requires a complete re-write of the stencil function because the "elementary stencil" is actually a single dashed line spanner rather than a bunch of line segments. I haven't been able to come up with a working solution, though. Best, Abraham -- View thi

exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel
Dear all, 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