Re: Left align first word of lyrics

2015-12-29 Thread Stephen
Wilbert Berendsen xs4all.nl> writes: > It is complicated just now to paste the code how we did it, because > everything is so intermingled, but I'll show it later on in a nice > writeup. We wrote many functions that read custom variables from the > paper or layout blocks (using ly:output-def-look

Re: Left align first word of lyrics

2013-05-27 Thread Wilbert Berendsen
Op Sun, 19 May 2013 03:11:12 +0200 (CEST) Gregory Heytings schreef: > > Hi list, > > Is it possible to automatically left align the first word of multiple > line lyrics ? By default the lyrics are all centered under the note, > which is okay in most situations, but perhaps not optimal for the

Re: Left align first word of lyrics

2013-05-23 Thread Carl Peterson
David, This is amazing. I was able to drop this into my own project without any trouble except changing the lyrics context command to reflect me using 2.16 instead of 2.17. Kudos. Cheers, Carl On Wed, May 22, 2013 at 1:06 PM, David Nalesnik wrote: > Well, comparing the lengths of strings is a

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Well, comparing the lengths of strings is a bit shortsighted, as all four-letter words don't occupy the same space... Revised to work with stencil sizes, as David Kastrup suggests earlier in this thread. Argh. lyrics-alignment2.ly Description: Binary data ___

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Hi Carl, On Wed, May 22, 2013 at 10:36 AM, Carl Peterson wrote: > I'm not in a position to test this at the moment, but just for > confirmation, will this work with an arbitrary number of tagged syllables > through a Lyrics context? > > ex: > > tagIt = \once \override Lyrics.LyricText #'tagged =

Re: Left align first word of lyrics

2013-05-22 Thread Carl Peterson
I'm not in a position to test this at the moment, but just for confirmation, will this work with an arbitrary number of tagged syllables through a Lyrics context? ex: tagIt = \once \override Lyrics.LyricText #'tagged = ##t \new Lyrics \lyricsto A { \tagIt This is the first phrase in my so

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Hi On Tue, May 21, 2013 at 8:41 PM, David Nalesnik wrote: > Hi Gregory, > > Here's another version which will automatically find the longest syllable. > You can tag any one of the lyric syllables at a given timestep. > > Noticed a problem. Corrected file attached. --David lyrics-alignment2.

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi Gregory, Here's another version which will automatically find the longest syllable. You can tag any one of the lyric syllables at a given timestep. HTH, David lyrics-alignment2.ly Description: Binary data ___ lilypond-user mailing list lilypond-us

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
On Tue, May 21, 2013 at 4:27 PM, David Nalesnik wrote: > > > Basically, the idea is that you tag the syllable you want the column to > left-align to by overriding an invented property which I called `tagged' > for lack of any inspiration. > > On a side note: I think it could potentially be very us

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi, On Tue, May 21, 2013 at 4:32 AM, Gregory Heytings wrote: > >> What should the lyrics be left-aligned to then if not to the note? >> >> > To each other. This would give something like: > > o > Cccc > C > Cc > Ccc > c > > with the note on the first line, and the lyrics on the five next

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi Kieren, On Tue, May 21, 2013 at 10:34 AM, Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > > But of course it would be far better for this to be an > #'after-line-breaking callback (or whatever), to optionally override the > alignment of the first syllable on each line. > > Unfortun

Re: Left align first word of lyrics

2013-05-21 Thread Kieren MacMillan
Hi Carl, > Would it be possible to pass the lyrics to Scheme as a list of lists (a list > of verses, with each verse a list of words), so that for each syllable > placement it could look at the nth item of each list and determine correct > placement. This may require some manual line breaking (

Re: Left align first word of lyrics

2013-05-21 Thread Carl Peterson
Just thinking about some of the stuff I've been working on. Would it be possible to pass the lyrics to Scheme as a list of lists (a list of verses, with each verse a list of words), so that for each syllable placement it could look at the nth item of each list and determine correct placement. This

Re: Left align first word of lyrics

2013-05-21 Thread Kieren MacMillan
Hi Gregory, >> A tedious solution is likely doable where you basically specify something >> like >> >> \syllable #1 { Cccc C Cc Ccc c } >> in the first stanza, >> \syllable #2 { Cccc C Cc Ccc c } >> >> in the second stanza and so on: then each stanza would typeset the whole >> column,

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings writes: >> A tedious solution is likely doable where you basically specify >> something like >> >> \syllable #1 { Cccc C Cc Ccc c } >> in the first stanza, >> \syllable #2 { Cccc C Cc Ccc c } >> >> in the second stanza and so on: then each stanza would typeset the >> whol

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
So the lyrics are supposed to be aligned as a block first which is then centered on the note. Exactly. I think that the current machinery is rather working by aligning everything independently to the note in question. Indeed. That would place the prealignment of the lyrics into

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings writes: >> >>> Indeed, many thanks, I did not expect that the solution would be so >>> trivial. I tried with various values of self-alignment-X, but not >>> with -1... >> >> -1 is the same as LEFT > > Okay, I did not read the manual carefully enough (again). That was just inten

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
Indeed, many thanks, I did not expect that the solution would be so trivial. I tried with various values of self-alignment-X, but not with -1... -1 is the same as LEFT Okay, I did not read the manual carefully enough (again). I know and see that you put much effort in it, but please u

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings writes: >> l=\once \override LyricText #'self-alignment-X = #-1 >> >> \score { >> \new Staff << >>\new Voice = A { \relative c' { c d e f } } >>\new Lyrics \lyricsto A { \l Ccc ddd eee fff } >>\new Lyrics \lyricsto A { \l Cc dd ee ff } >>\new Lyrics \lyricsto A {

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal for the first word of a staff. For example, the words "Ccc", "Cc" and "C" are centered under

Re: Left align first word of lyrics

2013-05-19 Thread Phil Holmes
- Original Message - From: "Gregory Heytings" To: Sent: Sunday, May 19, 2013 2:11 AM Subject: Left align first word of lyrics Hi list, Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the n

Left align first word of lyrics

2013-05-18 Thread Gregory Heytings
Hi list, Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal for the first word of a staff. For example, the words "Ccc", "Cc" and "C" are centere