[EMAIL PROTECTED] writes:
> >   \override Lyrics #'X-extent-callback  = #(lambda (grob)
> >      (lookup-latex-dimension the-dimension-table (ly:get-property grob 'text)))
> 
> I don't fully understand what I shall do.  Can you give a real
> example, please?  Assume that the words `foo', `bar', and `baz' are
> used as a lied text.  Then lilypond could emit, say, this:
> 
>   \lilystring{foo}
>   \lilystring{bar}
>   \lilystring{baz}
> 
> What shall LaTeX write into an auxiliary file so that lilypond can
> read it back easily?

You have to write the "read back" routines yourself too, so it depends
on how you write those.  Probably reading them as a lisp file is
easiest, so dump

widths.scm containing

  '(("foo" .  2.0)
    ("bar" . 3.0)
    ("baz" . 3.5))

and eval that. Then write a function to transform it to
the internal equivalent of

\lyrics {
  { \override LyricText #'width = #'(0 . 2.0)
    foo
  }
  { \override LyricText #'width = #'(0 . 3.0)
    bar
  }
  { \override LyricText #'width = #'(0 . 3.5)
    baz
  }
}


-- 

 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



_______________________________________________
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to