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

Issue 5821051: Turns off TupletBracket collision avoidance if Script avoids slur (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by MikeSol
Modified:
12 years ago
Reviewers:
mike, dak
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Turns off TupletBracket collision avoidance if Script avoids slur

Patch Set 1 #

Patch Set 2 : Checks for slur in collision avoidance. #

Patch Set 3 : Adds regtest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
A input/regression/tuplet-number-slur-script.ly View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M lily/tuplet-bracket.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4
MikeSol
Meh...not my best work, but it is a first step towards fixing this problem. A ...
12 years, 1 month ago (2012-03-14 20:35:34 UTC) #1
dak
On 2012/03/14 20:35:34, MikeSol wrote: > Meh...not my best work, but it is a first ...
12 years, 1 month ago (2012-03-15 11:03:00 UTC) #2
mike_apollinemike.com
On Mar 15, 2012, at 12:03 PM, dak@gnu.org wrote: > On 2012/03/14 20:35:34, MikeSol wrote: ...
12 years, 1 month ago (2012-03-15 23:27:44 UTC) #3
mike_apollinemike.com
12 years, 1 month ago (2012-03-15 23:32:30 UTC) #4
On Mar 16, 2012, at 12:27 AM, mike@apollinemike.com wrote:

> On Mar 15, 2012, at 12:03 PM, dak@gnu.org wrote:
> 
>> On 2012/03/14 20:35:34, MikeSol wrote:
>>> Meh...not my best work, but it is a first step towards fixing this
>> problem.
>> 
>> To me it looks more like an attempt to hide the problem's symptoms.  It
>> does not appear to have any relation with line-breaking which is the
>> context in which the problem manifested itself.
>> 
> 
> The problem is a circular dependency:
> 
> --) Tuplet bracket position calculation trys to avoid script
> --) Tuplet bracket gets script's coordinates
> --) Script has slur offset callback chained to it
> --) Slur offset callback needs to know slur positions
> --) Slur positions determined by encompass objects
> --) Slur encompasses tuplet number
> --) Tuplet number depends on tuplet bracket's position
> 
> I don't know where/how line breaking factors into it, but the above
description is definitely what's going on.  What I've proposed is a short,
minimally invasive workaround until a more thorough solution can be thought out.

Sorry - I haven't had time to check the regtests yet, but I will either over the
weekend or next week - apparently some mangling is going on.
It'd delay 2.16, but this problem can be fully fleshed out over a few weeks.  Or
we could just revert the patch and then re-apply a better version after 2.16 is
out.  I'll have a better sense of the size of the job after I look into it a bit
more.

Cheers,
MS
Sign in to reply to this message.

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