lilypond-devel
[Top][All Lists]
Advanced

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

Re: Issue 2314 - workaround and patch


From: James Lowe
Subject: Re: Issue 2314 - workaround and patch
Date: Tue, 22 Dec 2015 09:21:01 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Hello Knut,

On 21/12/15 13:50, Knut Petersen wrote:
> Hi everybody!
>
> Werner: You reported in 2012 that lilypond emits a space glyph
> referencing
> the century schoolbook font at the top of every page.
>
> David: At that time you were not sure if this is a bug.
>
> The problem is still present, and it definitely is a bug because that
> extra space glyph
> has a nasty effect:
>
> If you use ghostscript (old versions and current git master) or
> pdfcrop to crop the
> output of a pdf containing multiple pages and print-page-number = ##f
> in the paper
> section of the lilypond file , you can observe that there is excessive
> white space at the
> top of even pages.
>
> We could argue that ghostscript should handle that case better, but a
> recent gs bug report
> http://bugs.ghostscript.com/show_bug.cgi?id=696445 was closed with a
> "WONTFIX".
>
> There is a workaround within lilypond:
>
> \paper {
>     [...]
>     oddHeaderMarkup = \markup \null
>     evenHeaderMarkup = \markup \null
> }
>
> A look at the lilypond source code reveals that the space glyph is
> introduced by the definition
> of oddHeaderMarkup and evenHeaderMarkup in ly/titling-init.ly. There
> we read a comment that
> suggest that the space is necessary:
>
> %% force the header to take some space, otherwise the
> %% page layout becomes a complete mess.
>
> Nevertheless, changing " " to "" cured the problem for me and had no
> negative side effects here ...
> but that probably needs further testing.
>
> As bounding boxes are changed this patch certainly has effects in
> situations where lilypond
> snippets are used by other programs.
>
> cu,
>  Knut
>
>
> _______________________________________________
> lilypond-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-devel

Thank you.

Ticket updated at: https://sourceforge.net/p/testlilyissues/issues/2314/

and the patch has now been put into the test/review process.

I'll include you on the Rietveld ticket (referenced in the issue but
owned by myself) so you can see if anyone has any corrections or
questions. If there are any corrections, you can send me the corrected
patch and I'll continue to manage it for you.

-- 
James

-------

B8F4 5395 CBE2 ED37 7513 B075 FF32 5682 A84B D8BE



reply via email to

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