[Top][All Lists]

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

What about the -dcrop option?

From: Urs Liska
Subject: What about the -dcrop option?
Date: Mon, 16 Jul 2018 14:15:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

I'm wondering if there's a bug or if I'm doing something wrong:

$ lilypond -dcrop --pdf crop.ly
GNU LilyPond 2.19.80
warning: no such internal option: crop
Processing »crop.ly«
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to »crop«...
Converting to »crop.pdf«...
Deleting »/tmp/lilypond-e9uQnJ«...
Success: compilation successfully completed

When using -dcrop LilyPond complains about not having that option available, and the resulting PDF isn't cropped.
The option seems to have been added in 2.19.66

commit dcb458c225534895f69f4c05137809d20d6a79b9
Author: Étienne Beaulé <address@hidden>
Date:   Fri Aug 4 02:21:44 2017 -0300

    Add '-dcrop' option to ps and svg backends
This change allows the output of scores in the format provided by the
    '-dpreview' option but including all systems, not just the first.
This would allow for easier SVG use in HTML, without the need for
    cropping snippets. Further, SVG is an HTML standard, and its vector
    nature makes its use unparalleled for the web. This change would allow
    SVG use in 'lilypond-book' in the future.

and I didn't find any mention of the option in the newer Git history.

Is this a bug or can I do something more "correct" to get cropped SVG files?


reply via email to

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