bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 163 in lilypond: huge (ugly) slur (both phrasing and normal)


From: Colin Campbell
Subject: Re: Issue 163 in lilypond: huge (ugly) slur (both phrasing and normal)
Date: Thu, 23 Jun 2011 06:48:47 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

On 11-06-23 05:46 AM, Graham Percival wrote:
On Wed, Jun 22, 2011 at 06:52:43PM -0600, Colin Campbell wrote:
On 11-06-22 05:47 AM, Dmytro O. Redchuk wrote:
I would start with this:
Looks great; Colin, could you add that to the CG in the Issues
chapter?


That's Dmytro's script, Graham!  My bash-fu is still at an early stage.

After a bit of testing, it seems that settings in \included files,
however the include is done (very smooth trick, that, David!), are
overridden if the tag exists in the destination file.
So if you run the script on
\header { tagline="foo" }
\relative c' { c4}

you'll still get a tagline?  IMO that's an (accidental) feature,
not a bug!  Most bug reports are short and don't have a tagline
defined, so you want to trim the existing one.  If a bug report
explicitly adds a tagline="abcd", then it would be good to not
trim that one.  (if the tagline= is not relevant to the bug, then
the bug report should be rejected because it's not Tiny)


A problem arises when, as I suspect, the default behaviour is tagline = ##t, even when not explicitly stated in the \header block. IOW, the absence of "tagline = " doesn't mean absence of a tagline. The presence of the tagline means convert must include the entire page in the trimmed area, which defeats the purpose of the trim.


Where a .ly file already has  the tagline set, it cancels the
imported one.  To do this from a script will, after all, take
some sed or perhaps python magic.  I'll keep at it, as much for
education as for the satisfaction!
Well, go ahead for your own satisfaction, but I'd reject any patch
that changes the script to do this.  :)

Cheers,
- Graham


If you like, I can carry on with Dmytro's script, put it into \scripts\auxiliar with strip-whitespace and friends, then update the CG, with a note about the taglines. Marek Klein has also reminded us about a script Jonathan Kulp wrote in 208, called lily2image, so I'll take that for a spin and see what it can do.

Colin

--
The human race has one really effective weapon, and that is laughter.
-- Mark Twain




reply via email to

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