Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(64)

Issue 324810043: Implement extra-offset for system positioning

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years ago by david.nalesnik
Modified:
6 years, 12 months ago
Reviewers:
dak, thomasmorley651
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Implement extra-offset for system positioning Add the property 'extra-offset to 'line-break-system-details. It is possible to position systems absolutely using the properties 'X-offset and 'Y-offset of 'line-break-system-details. Placement, however, is relative to the top left of the usable space, and can be difficult to gauge without considerable trial and error. An 'extra-offset property allows easy movement of systems relative to where they currently are on the page--either through their default positioning, or as a result of absolute positioning through 'X-offset and/or 'Y-offset. System separators will be properly positioned. (Thanks go to Thomas Morley.)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes based on Harm's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -6 lines) Patch
M Documentation/changes.tely View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Documentation/notation/spacing.itely View 2 chunks +37 lines, -1 line 0 comments Download
A input/regression/page-layout-extra-offset.ly View 1 1 chunk +45 lines, -0 lines 0 comments Download
M scm/page.scm View 1 2 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 11
david.nalesnik
Please review. Thanks!
7 years ago (2017-04-27 22:48:46 UTC) #1
thomasmorley651
Some nits, otherwise LGTM Worth an entry in changes? https://codereview.appspot.com/324810043/diff/1/input/regression/page-layout-extra-offset.ly File input/regression/page-layout-extra-offset.ly (right): https://codereview.appspot.com/324810043/diff/1/input/regression/page-layout-extra-offset.ly#newcode7 input/regression/page-layout-extra-offset.ly:7: ...
6 years, 12 months ago (2017-04-28 09:26:34 UTC) #2
david.nalesnik
Changes based on Harm's review
6 years, 12 months ago (2017-04-28 15:16:54 UTC) #3
david.nalesnik
Also added a "Changes" entry. Thanks! https://codereview.appspot.com/324810043/diff/1/input/regression/page-layout-extra-offset.ly File input/regression/page-layout-extra-offset.ly (right): https://codereview.appspot.com/324810043/diff/1/input/regression/page-layout-extra-offset.ly#newcode7 input/regression/page-layout-extra-offset.ly:7: printable area of ...
6 years, 12 months ago (2017-04-28 15:20:28 UTC) #4
dak
Does an extra-offset in X direction even make sense when the systems are spaced according ...
6 years, 12 months ago (2017-04-28 15:50:52 UTC) #5
david.nalesnik
On 2017/04/28 15:50:52, dak wrote: > Does an extra-offset in X direction even make sense ...
6 years, 12 months ago (2017-04-28 16:15:42 UTC) #6
david.nalesnik
On 2017/04/28 16:15:42, david.nalesnik wrote: > On 2017/04/28 15:50:52, dak wrote: > > Does an ...
6 years, 12 months ago (2017-04-28 22:24:57 UTC) #7
david.nalesnik
On 2017/04/28 22:24:57, david.nalesnik wrote: > On 2017/04/28 16:15:42, david.nalesnik wrote: > > On 2017/04/28 ...
6 years, 12 months ago (2017-04-28 22:27:12 UTC) #8
thomasmorley651
On 2017/04/28 22:27:12, david.nalesnik wrote: > On 2017/04/28 22:24:57, david.nalesnik wrote: > > On 2017/04/28 ...
6 years, 12 months ago (2017-04-28 22:49:25 UTC) #9
david.nalesnik
On 2017/04/28 22:49:25, thomasmorley651 wrote: > On 2017/04/28 22:27:12, david.nalesnik wrote: > > On 2017/04/28 ...
6 years, 12 months ago (2017-04-29 00:36:36 UTC) #10
dak
6 years, 12 months ago (2017-04-29 07:29:09 UTC) #11
On 2017/04/29 00:36:36, david.nalesnik wrote:
> On 2017/04/28 22:49:25, thomasmorley651 wrote:

> > So I'd vote for keeping extra-offset as in your last patch-set.
> > Although I'm aware David K's point is important, I think a user doing manual
> > positioning, is responsible to deal with possible problems (collisions),
too.
> 
> X-offset and Y-offset don't check for collisions.  You can put systems on top
of
> each other, and move them right off the page.  (That's another attraction of
> "extra-offset" for a name--there are plenty of warnings about potential
> collisions.)

When in doubt, let's not invent new interfaces.  The standard for changes done
_after_ spacing is resolved is extra-offset .  Even when just one of the extras
is non-zero and making the other non-zero is of very little usefulness.  I was
merely musing over whether there was any way to make it more useful, but then in
keeping with the general semantics used elsewhere, we should likely rather focus
on making X-offset do shifts before distance calculations and let extra-offset
work afterwards, useful or not.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b