lilypond-user
[Top][All Lists]
Advanced

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

Re: Using lyrics in a markup


From: jakob lund
Subject: Re: Using lyrics in a markup
Date: Thu, 20 Jan 2011 09:20:03 +0100

2011/1/19 Jan-Peter Voigt <address@hidden>:
> 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 -- lem.
>   Sieh, __ dein Kö -- nig kommt zu dir,
>   ja, __ er kommt, der Frie -- de -- fürst.
>   Toch -- ter Zi -- on, freu -- e dich,
>   jauch -- ze laut, Je -- ru -- sa -- lem.
> }
> \markup \column{ \wordwrap { \verse #strI } }
> \markuplines \justified-lines { \verse #strI }
> --snip--
> it will not wrap lines but cross the page margin. Do have an idea how to
> deal with that?

That's a good point.. After experimenting a bit I think that replacing
make-line-markup with make-justify-markup in the macro definition (the
define-markup-command part) does what you want.

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,
  jauchze laut, Jerusalem.

rather than

  Tochter Zion, freue dich, jauchze laut, Jerusalem. Sieh, dein König
kommt zu dir, ja, er kommt, der Friedefürst. Tochter Zion, freue dich,
jauchze laut, Jerusalem.

where the line breaking depends on column width, font size etc.? I
can't think of way to control the line breaks, except to enter each
line individually, like

strIa = \lyricmode { Toch -- ter Zi -- on, freu -- e dich, }
strIb = \lyricmode {  jauch -- ze laut, Je -- ru -- sa -- lem.}
strIc = \lyricmode { Sieh, __ dein Kö -- nig kommt zu dir, }
strId = \lyricmode {  ja, __ er kommt, der Frie -- de -- fürst. }

.. etc, and then eventually

\markup \column { \verse #strIa \verse #strIb \verse #strIc \verse #strId }


Regards
 -- Jakob.



reply via email to

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