lilypond-user
[Top][All Lists]
Advanced

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

Re: feature request: semi-automatic vertical spacement


From: Han-Wen Nienhuys
Subject: Re: feature request: semi-automatic vertical spacement
Date: Tue, 10 Jan 2006 20:42:19 +0100
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Nicolas Sceaux wrote:
Han-Wen,

It turns out that manually setting vertical spacement tweak is
way too fragile. They are easily broken when changing LilyPond version
for instance. Or if one set manually all tweaks, and then is told:
"could you make margins a bit larger, or use another font size", then
the whole work has to be done again. and again.

When you made the vertical spacement tweaks possible, you added that it
could be possible as an extra feature to output a tweak file that could
be included later, for a second lilypond run.

Please tell me how much the following would cost, if possible:


Hi,

here is an overview of what needs to be done for this:


* Refactoring layout-page-layout.scm so there is a page structure,
  where we can can easily access, information such free space on a
  page.

* Adding a routine to walk each page, note the amount of free space,
  and divide that it over the system. The dividing should be done by a
  user-definable function.

  The pagebreak/linebreak/stretching is put into an alist, and stored
  with the system in a table

* At the end of the loop, the contents of the table are dumped to a
  .ly file. The \objectid syntax can be used to mark each score with a
  tag,

  \book{ \objectid "foo"
    \score {
      \objectid "bar"
      ..
    }
  }


  so the tweaks are dumped to bookfoo-scorebar-pagelayout.ly

I will add the above for 195 EUR

* For reading tweaks, just before processing each score, the music is
  subsitituted by

    << [parse_file("bookfoo-scorebar-pagelayout.ly") if it exists]
       original_music
       >>

I will add this for 65 EUR.


Caveats

 - there will be no tweaking for titling blocks, as they don't support
   any kind of \override.

 - the tweaks.ly file will be as barebones as possible.

Regards,

--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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