Re: Using lyrics in a markup

2011-03-04 Thread Jan-Peter Voigt
On 10.02.2011 09:20, Marc Hohl wrote: Am 08.02.2011 12:00, schrieb Jan-Peter Voigt: Hello Marc, hello Jakob, hello list, I just wanted to share a tiny extension of the lyrics-markup function: ... (cond ((eq? (ly:music-property lyrics 'name) 'LyricEvent)

Re: Using lyrics in a markup

2011-03-04 Thread Marc Hohl
Am 04.03.2011 12:12, schrieb Jan-Peter Voigt: [...] Hello again, I came across our lyrics-markup snippet and made another extension: Stanza numbers often are left to the verse block. Now there is another bool-parameter to the verse-command, wich tells, if the stanza number shall be left

Re: Using lyrics in a markup

2011-02-10 Thread Marc Hohl
Am 08.02.2011 12:00, schrieb Jan-Peter Voigt: Hello Marc, hello Jakob, hello list, I just wanted to share a tiny extension of the lyrics-markup function: ... (cond ((eq? (ly:music-property lyrics 'name) 'LyricEvent) (ly:music-property lyrics 'text))

Re: Using lyrics in a markup

2011-02-08 Thread Jan-Peter Voigt
Hello Marc, hello Jakob, hello list, I just wanted to share a tiny extension of the lyrics-markup function: ... (cond ((eq? (ly:music-property lyrics 'name) 'LyricEvent) (ly:music-property lyrics 'text)) ((eq? (ly:music-property lyrics

Re: Using lyrics in a markup

2011-01-24 Thread jakob lund
Hi 2011/1/23 jakob lund jakob.be...@gmail.com: 2011/1/23 Jan-Peter Voigt jp.vo...@gmx.de: Hello and thank you Jakob, hello list, this piece is a great work. It compiles well in 2.13(.47 lilybuntu) and adds a very useful function to lily! The .ly is attached again, because I think it is

Re: Using lyrics in a markup

2011-01-24 Thread Jan-Peter Voigt
Hi Jakob, hello list, I was about to answer with my 2.12-version ;-) It is essentially like your version (using let and assoc props ...) but yours is open for override extension ... Now its posted to LSR and has to be approved. Best regards and cheers! Jan-Peter On 24.01.2011 10:35, jakob

Re: Using lyrics in a markup

2011-01-24 Thread Jan-Peter Voigt
Hi, On 24.01.2011 13:22, jakob lund wrote: By the way, the first version (no line breaks) is here http://lsr.dsi.unimi.it/LSR/Item?id=744 might as well just update that entry if possible? This has to be done by an LSR-administrator ;-) If someone is able and willing to do this, go ahead and

Re: Using lyrics in a markup

2011-01-24 Thread jakob lund
Hi 2011/1/24 Jan-Peter Voigt jp.vo...@gmx.de: Hi Jakob, hello list, I was about to answer with my 2.12-version ;-) It is essentially like your version (using let and assoc props ...) but yours is open for override extension ... Why? The only difference (AFAICT) is that you did the clever

Re: Using lyrics in a markup

2011-01-24 Thread Phil Holmes
I've slightly lost the plot of what's needed here. There's http://lsr.dsi.unimi.it/LSR/Item?id=744 which I think could be edited for the new improvements, and there's an improved version waiting for approval. Please let me know if the old version is to be edited or deleted, and whether the

Re: Using lyrics in a markup

2011-01-24 Thread Jan-Peter Voigt
Hello Phil, I posted the improved version this morning with a bit more text about the possible overrides. So you can approve that and delete the old one or copy either the code of the new snippet (or the attached one) to the old and delete the new one. ... huh??? OK, I try once more ;-) -

Re: Using lyrics in a markup

2011-01-24 Thread Phil Holmes
- Original Message - From: Jan-Peter Voigt jp.vo...@gmx.de To: Phil Holmes m...@philholmes.net Cc: jakob lund jakob.be...@gmail.com; Lilypond-User lilypond-user@gnu.org Sent: Monday, January 24, 2011 2:33 PM Subject: Re: Using lyrics in a markup Hello Phil, I posted the improved

Re: Using lyrics in a markup

2011-01-24 Thread Marc Hohl
Am 24.01.2011 15:33, schrieb Jan-Peter Voigt: Hello Phil, I posted the improved version this morning with a bit more text about the possible overrides. So you can approve that and delete the old one or copy either the code of the new snippet (or the attached one) to the old and delete the

Re: Using lyrics in a markup

2011-01-23 Thread jakob lund
oops, forgot to reply to list (sorry about the extra spam Jan-Peter) 2011/1/23 jakob lund jakob.be...@gmail.com: Hi again After fiddling some more with this, I came up with a simple solution. Instead of a string, a LineBreakEvent is inserted into the lyric -- neither \lyricmode or \addlyrics

Re: Using lyrics in a markup

2011-01-23 Thread Jan-Peter Voigt
Hello and thank you Jakob, hello list, this piece is a great work. It compiles well in 2.13(.47 lilybuntu) and adds a very useful function to lily! The .ly is attached again, because I think it is good to have it on the devel-list. I would like to add it to LSR to have it in the main distro

Re: Using lyrics in a markup

2011-01-23 Thread jakob lund
2011/1/23 Jan-Peter Voigt jp.vo...@gmx.de: Hello and thank you Jakob, hello list, this piece is a great work. It compiles well in 2.13(.47 lilybuntu) and adds a very useful function to lily! The .ly is attached again, because I think it is good to have it on the devel-list. I would like

Re: Using lyrics in a markup

2011-01-21 Thread Jan Warchoł
2011/1/20 Marc Hohl m...@hohlart.de Am 20.01.2011 09:20, schrieb jakob lund: However, I am guessing that the desired output is actually   Tochter Zion, freue dich,   jauchze laut, Jerusalem.   Sieh, dein König kommt zu dir,   ja, er kommt, der Friedefürst.   Tochter Zion, freue dich,  

Re: Using lyrics in a markup

2011-01-21 Thread David Kastrup
Jan Warchoł lemniskata.bernoulli...@gmail.com writes: 2011/1/20 Marc Hohl m...@hohlart.de What do you think of allowing to define a additional line break character, for example ś, which could be filtered out within \lyricsmode, and used as a newline in the \verse? +1, however i'd vote for

Re: Using lyrics in a markup

2011-01-21 Thread Jan Warchoł
2011/1/21 David Kastrup d...@gnu.org Jan Warchoł lemniskata.bernoulli...@gmail.com writes: The ś character that you used is used in polish language, for example. That's just a bug of your mail reading software.  He used the pilcrow sign, namely ¶ and not ś. Oh. Good to know. Thanks, Janek

Re: Using lyrics in a markup

2011-01-21 Thread Jan-Peter Voigt
Hello again, so you would have to check (pseudo-scheme): ... (if (and (string? x)(string=? x someIndicatorStringNooneWouldEverUseInARealLyric)) (introduceNewLine ...)) ... and this would probably be done in the (reduce-hyphens text)-method/function. If this works one could define a

Re: Using lyrics in a markup

2011-01-20 Thread jakob lund
2011/1/19 Jan-Peter Voigt jp.vo...@gmx.de: Hello scheme-gurus, nr. 744 is bookmarked ;-) There's one more thing. I tried the verse-command and it works nicely, but it will wrap lines: say you have a stanza like this --snip-- strI = \lyricmode {   \set stanza = 1.   Toch -- ter Zi -- on,

Re: Using lyrics in a markup

2011-01-20 Thread Marc Hohl
Am 20.01.2011 09:20, schrieb jakob lund: 2011/1/19 Jan-Peter Voigtjp.vo...@gmx.de: Hello scheme-gurus, nr. 744 is bookmarked ;-) There's one more thing. I tried the verse-command and it works nicely, but it will wrap lines: say you have a stanza like this --snip-- strI = \lyricmode { \set

Re: Using lyrics in a markup

2011-01-20 Thread Jan-Peter Voigt
Congratulations and thank you very much! :-) The first desired output would be nice, but in that case one has to use line by line input of the lyrics. I think thats OK for church songs like this one. But there are many cases, where I just want a justified markup of the lyrics. Best regards,

Re: Using lyrics in a markup

2011-01-20 Thread Jan-Peter Voigt
What do you think of allowing to define a additional line break character, for example ¶, which could be filtered out within \lyricsmode, and used as a newline in the \verse? Thats a good idea! So your input will look like \override Lyrics #'ignore-chars= #'(¶) % this is pseudo code! Lets

Re: Using lyrics in a markup

2011-01-19 Thread jakob lund
2011/1/18 Marc Hohl m...@hohlart.de: Am 18.01.2011 18:56, schrieb Graham Percival: On Tue, Jan 18, 2011 at 05:24:11PM +0100, Marc Hohl wrote: These functions should be bundled in a snippet, or perhaps included in the lilypond distribution? Start by adding it to LSR. Done.

Re: Using lyrics in a markup

2011-01-19 Thread Jan-Peter Voigt
Hello scheme-gurus, nr. 744 is bookmarked ;-) There's one more thing. I tried the verse-command and it works nicely, but it will wrap lines: say you have a stanza like this --snip-- strI = \lyricmode { \set stanza = 1. Toch -- ter Zi -- on, freu -- e dich, jauch -- ze laut, Je -- ru -- sa

Re: Using lyrics in a markup

2011-01-18 Thread Marc Hohl
Am 15.01.2011 21:51, schrieb Neil Puttock: On 15 January 2011 19:01, Marc Hohlm...@hohlart.de wrote: Now I wonder whether it is possible to create a kind of text book by including the lyrics in a markup, perhaps with a scheme function which replaces the -- by . Is it possible to store the

Re: Using lyrics in a markup

2011-01-18 Thread jakob lund
2011/1/18 Marc Hohl m...@hohlart.de: Am 15.01.2011 21:51, schrieb Neil Puttock: On 15 January 2011 19:01, Marc Hohlm...@hohlart.de  wrote: Now I wonder whether it is possible to create a kind of text book by including the lyrics in a markup, perhaps with a scheme function which replaces the

Re: Using lyrics in a markup

2011-01-18 Thread Jan-Peter Voigt
Hello List, this is a very cool snippet! I also thought of trying this excersize ... perhaps tomorrow ;-) I think it should be posted to LSR! There is one thing I tried: If you have markups in your lyrics: words = \lyricmode { This is my ex -- am -- ple \markup { \italic text } } this

Re: Using lyrics in a markup

2011-01-18 Thread jakob lund
2011/1/18 Jan-Peter Voigt jp.vo...@gmx.de: Hello List, this is a very cool snippet! I also thought of trying this excersize ... perhaps tomorrow ;-) I think it should be posted to LSR! There is one thing I tried: If you have markups in your lyrics: words = \lyricmode { This is my ex -- am

Re: Using lyrics in a markup

2011-01-18 Thread Marc Hohl
Am 18.01.2011 16:10, schrieb jakob lund: [...] Sure... You have to play the game, right? [...] snip Jakob Wow, I am very impressed! The named let construct is absolutely new to me, but allows for very elegant code. These functions should be bundled in a snippet, or perhaps included in the

Re: Using lyrics in a markup

2011-01-18 Thread Graham Percival
On Tue, Jan 18, 2011 at 05:24:11PM +0100, Marc Hohl wrote: These functions should be bundled in a snippet, or perhaps included in the lilypond distribution? Start by adding it to LSR. Cheers, - Graham ___ lilypond-user mailing list

Re: Using lyrics in a markup

2011-01-18 Thread Marc Hohl
Am 18.01.2011 18:56, schrieb Graham Percival: On Tue, Jan 18, 2011 at 05:24:11PM +0100, Marc Hohl wrote: These functions should be bundled in a snippet, or perhaps included in the lilypond distribution? Start by adding it to LSR. Done. http://lsr.dsi.unimi.it/LSR/Snippet?id=744 Regards,

Re: Using lyrics in a markup

2011-01-18 Thread Jean-Charles Malahieude
Le 18/01/2011 20:21, Marc Hohl disait : Am 18.01.2011 18:56, schrieb Graham Percival: On Tue, Jan 18, 2011 at 05:24:11PM +0100, Marc Hohl wrote: These functions should be bundled in a snippet, or perhaps included in the lilypond distribution? Start by adding it to LSR. Done.

Re: Using lyrics in a markup

2011-01-16 Thread Marc Hohl
Am 15.01.2011 21:51, schrieb Neil Puttock: On 15 January 2011 19:01, Marc Hohlm...@hohlart.de wrote: Now I wonder whether it is possible to create a kind of text book by including the lyrics in a markup, perhaps with a scheme function which replaces the -- by . Is it possible to store the

Using lyrics in a markup

2011-01-15 Thread Marc Hohl
Hello list, is there a possibility to re-use lyrics in a markup? I am working on a musical for children and I get the sheets for several instruments, choir, partition etc. by a simple shell script which calls sed and lilypond. Now I wonder whether it is possible to create a kind of text book

Re: Using lyrics in a markup

2011-01-15 Thread Neil Puttock
On 15 January 2011 19:01, Marc Hohl m...@hohlart.de wrote: Now I wonder whether it is possible to create a kind of text book by including the lyrics in a markup, perhaps with a scheme function which replaces the -- by . Is it possible to store the text in a variable? Store the lyrics