|
From: | Carl Sorensen |
Subject: | Re: Text spanner shorten-pair |
Date: | Wed, 13 Feb 2019 14:33:39 +0000 |
User-agent: | Microsoft-MacOutlook/10.10.7.190210 |
From:
Trevor Bača <address@hidden> On Tue, Feb 12, 2019 at 6:12 PM Carl Sorensen <address@hidden> wrote:
Ok, wow, this is actually hugely interesting. Thank you so much for the specificity of the first part of the answer: "Padding is a minimum amount of blank space between two pieces of ink on the page." That is actually
genuinely new information to me about a small-but-pervasive concept in LilyPond. Right up until just now, I had assumed that padding meant "a minimum amount of blank space between TWO THINGS on the page (whether the things are visible or not)"; we are hugely
concerned with the (frequently invisible) start- and stop-anchors of things when engraving objects in score; and I had incorrectly assumed that padding at the edges of, say, a piano pedal bracket would pad between the invisible start-anchor of the bracket
(which you described earlier as some flavor of column) and the visible start of the bracket itself. This is apparently not the case. I think that I was incorrect in saying “ink on the page”, although that is the intent of padding. I should have said “between two bounding boxes”. One way to make spanners respect padding would be to increase the vertical extent of the
bounding box (but that comes with a cost of preventing markups from sitting above or below the bounding box. This probably explains a small part of why I may have found the spacing behavior of piano pedal brackets flakey, to a certain extent, for well over a decade. So my surprise here (that the Lily concept of "padding" won't pad between the invisible anchors of things that I'm always mentally tracking when I work), makes me think that this surprisingly-restricted (at least
to me ;) model of padding is possibly a "mis-model" in the system, or maybe a not-yet-realized possibility for a more complete generalization of what spanners are. I think that you have hit on an important fundamental that is not properly represented in LilyPond. Spanners might be properly said to be anchored to note columns *regardless* of whether they have anything in them at a particular
vertical location. Maybe the spacing algorithms for spanners should assume a note-column with infinite vertical extents…. Thanks for your good thoughts about this. Carl |
[Prev in Thread] | Current Thread | [Next in Thread] |