[Top][All Lists]

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

Re: Cropped SVG Output

From: David Sankel
Subject: Re: Cropped SVG Output
Date: Wed, 28 Oct 2015 15:05:31 -0600

Answering my own question here...

On Wed, Oct 28, 2015 at 2:14 PM, David Sankel <address@hidden> wrote:

> I'm happy to work on a patch that dumps a "preview" of all systems, but
> I'm a bit stuck as to how. I'm looking at 'framework-svg.scm' here:
> (define (output-preview-framework basename book scopes fields)
>   (let* ((paper (ly:paper-book-paper book))
>          (systems (relevant-book-systems book))
>          (to-dump-systems (relevant-dump-systems systems)))
>     (dump-preview paper
>                   (stack-stencils Y DOWN 0.0
>                                   (map paper-system-stencil
>                                        (reverse to-dump-systems)))
>                   (format #f "~a.preview.svg" basename))))
> Is the first system being selected by the 'relevant-dump-systems' call?
> That seems to filter through all systems looking for one with an "is-title"
> property. What is the "is-title" property and when would a system have it?

I modified the 'relevant-dump-systems' function to keep all systems and it
worked as I hoped. Here are some conclusions:

   1. relevant-dump-systems filters through all systems and only returns
   those that have an 'is-title' property which is marked as 'true'.
   2. The first system is the only one which has the 'is-title' property
   and it is always set to 'true'. This is done in 'lily/'.

Would anyone object to a patch where I add a
'-dpreview-include-all-systems' option to lilypond? This would be used in
the 'relevant-dump-systems' call in the same way that the
'-dinclude-book-title-preview' is used in the 'relevant-book-systems'
function to control title display. I would also add comments and make some
clarity motivated function renames in this patch.

-- David Sankel

reply via email to

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