Re: whitespace issue with ly:one-line-breaking
On Sat, Jun 30, 2012 at 7:42 AM, Werner LEMBERG w...@gnu.org wrote: Consider this example file `foo.ly': \version 2.15.41 \paper { page-breaking = #ly:one-line-breaking } \header { copyright = ##f footer = ##f tagline = ##f } \relative c' { \repeat unfold 200 { d16 d d d e e e e f f f f g g g g } } If called with lilypond --png foo.ly I get a PNG file with the dimensions 58201x1181. This is far too high. If you load this in GIMP and do an autocrop operation, you get a size of 58123x52. Adding a 40px top and bottom margin (similar to the left and right one), the correct height would be approx. 130px. Where do the additional vertical 1000px come from? Looks like a bug... It comes from the height of the page: ly:one-line-breaking doesn't (currently) adjust the height, but only the width. And what about documentation of ly:one-line-breaking? In particular, I miss the constraints (besides ignoring the paper format), for example, whether \header is ignored, or whether the `indent' parameter in the \paper block gets honoured. Point taken, I'll write some documentation... Cheers, Joe ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: whitespace issue with ly:one-line-breaking
Where do the additional vertical 1000px come from? Looks like a bug... It comes from the height of the page: ly:one-line-breaking doesn't (currently) adjust the height, but only the width. Ah, ok. I've only skimmed the code with gitk and missed that. I suggest to (optionally?) adjust height also. BTW, it then makes sense to show how to achieve the same without page cropping, this is, using \context { \Score \override NonMusicalPaperColumn #'line-break-permission = ##f } And what about documentation of ly:one-line-breaking? [...] Point taken, I'll write some documentation... Great :-) Werner ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
whitespace issue with ly:one-line-breaking
Consider this example file `foo.ly': \version 2.15.41 \paper { page-breaking = #ly:one-line-breaking } \header { copyright = ##f footer = ##f tagline = ##f } \relative c' { \repeat unfold 200 { d16 d d d e e e e f f f f g g g g } } If called with lilypond --png foo.ly I get a PNG file with the dimensions 58201x1181. This is far too high. If you load this in GIMP and do an autocrop operation, you get a size of 58123x52. Adding a 40px top and bottom margin (similar to the left and right one), the correct height would be approx. 130px. Where do the additional vertical 1000px come from? Looks like a bug... And what about documentation of ly:one-line-breaking? In particular, I miss the constraints (besides ignoring the paper format), for example, whether \header is ignored, or whether the `indent' parameter in the \paper block gets honoured. Werner ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel