[Top][All Lists]

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

Limit the angle of broken hairpins

From: Urs Liska
Subject: Limit the angle of broken hairpins
Date: Tue, 18 Sep 2018 12:14:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1


as brought up in broken hairpins look ugly when they are too short. This is (as pointed out by Harm) due to the fact that the heights at the broken edges are hardcoded in the C++ function printing the hairpin.

I suggest a two-fold remedy:

1) limit the heights at the broken edges so the height/width ratio of the sibling doesn't exceed a certain value (I'd start with 1/2)

2) make that ratio and the broken-heights values user-settable as grob properties.

I've given it a partial try that can be seen at This commit (hopefully) implements part 1) of the above. I've also attached the patch. Since I don't have a working build environment right now I couldn't test this code, but it should be straightforward, I think.

I would be glad if someone could add the code to create the grob properties (should be little work but not if you have to first look everything up like me) in order to upload it for review later.


Attachment: 0001-Limit-angle-of-broken-hairpins.patch
Description: Text Data

Attachment: encore.png
Description: PNG image

reply via email to

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