[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
goal of current programming
From: |
Han-Wen Nienhuys |
Subject: |
goal of current programming |
Date: |
Sat, 10 Apr 2004 18:32:01 +0200 |
address@hidden 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 | address@hidden | http://www.xs4all.nl/~hanwen