[Top][All Lists]

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

Different minimum-length for broken spanner

From: Mark Knoop
Subject: Different minimum-length for broken spanner
Date: Thu, 04 Aug 2022 12:58:29 +0100
User-agent: mu4e 1.8.7; emacs 28.1


I'm creating a TextSpanner to indicate a gradual transition between 
instrumental techniques. In order that the left and right texts don't collide, 
my before-line-breaking callback sets the minimum-length property of the 
spanner to the sum of the width of the two markups.

This all works well, until the spanner is broken. Then, the first part retains 
this minimum-length, making it unnecessarily long. The problem is that once the 
spanner has been broken, it is too late to reset minimum-length.

Ideally there could be a property `minimum-length-before-break` to match 
`minimum-length-after-break` to address this? Or am I simply approaching this 
problem from the wrong angle?

See attachments for code and examples.

Thanks for any input,


Description: Text document

Attachment: transitionSpanner.pdf
Description: Adobe PDF document

Mark Knoop

reply via email to

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