lilypond-devel
[Top][All Lists]
Advanced

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

Design suggestion -- was: Re: more stupid questions


From: Han-Wen Nienhuys
Subject: Design suggestion -- was: Re: more stupid questions
Date: Tue, 17 Jun 2003 23:47:31 +0200

address@hidden writes:
> Feed the .tex unchanged thoug lilypond-book to latex. It should contain
> something like \usepackage{lilypond}. When latex reaches a
> lilypond-environment, it should write out a nice message and then pass
> everything inside the environment to stdout. lilypond-book takes this
> output and feeds it to lilypond. Whenever lily finds a box which dosn't
> contain native lilypond elements (e.g. Notes, bars, etc.) passes this
> code back to lilypond-book, which feeds it to latex. latex should create
> this box inside a register and compute the dimensions. After doing so it
> passes the dimensions back to lilypond-book which feeds it back to
> lilypond. Now lilypond has the exact size without having to know how to
> deal with the TeX code. After processing lilpond gives the produced tex
> code back to latex via lilypond-book.

This is way too complex. Why don't you write a small
script/program/macro-processor that will pre-process a .ly file,
replacing

  \someWierdText

with

  \once \property Lyrics.LyricText \set #'X-extent = #(cons A B)
  "\\someWierdText"

where A B are the dimensions of the object, and might be computed
through a latex run.

-- 

Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 




reply via email to

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