Le 01/08/2021 à 09:58, Kees van den Doel a écrit :
OK, so I'll stick with my own convert-ly files as I'm on the
stabgle version.
Problem now seems to be that the positioning tweak in persian.ly
<http://persian.ly> such as "persianStringsXExtents" is no longer
working correctly with my file. Strangely the YExtents and Offset work
fine, eg if I make Y-Extent large the beams move out of the way.
persianStringsXExtents = #`(
(-3/10 . (0 . 1) )
(1/5 . (0 . 1.8)) %<--- this should control how "wide"
the koron is but it has no effect
(0 . (0 . 1))
(1/2 . (0 . 1))
(2/5 . (0 . 1))
(-1/2 . (0 . 1))
(-3/5 . (0 . 1))
(-1/10 . (0 . 1))
(-1 . (0 . 1.8))
( 1 . (0 . 1.3))
)
\override Accidental.X-extent = #(lambda (grob)
(cdr (assoc (ly:grob-property grob 'alteration)
persianStringsXExtents )))
Does this code illustrate your problem?
\version "2.22.1"
{
\override Accidental.X-extent = #'(-2 . 2)
<ges' aes'>
}
If so, this comes from the spacing of accidentals
being based on so-called skylines, namely outlines,
and not only extents. This was probably not the
case for accidentals in an old version such as 2.12.
You can observe the skylines using
\version "2.22.1"
#(ly:set-option 'debug-skylines)
\layout {
\context {
\Score
\override Accidental.after-line-breaking =
#(lambda (grob)
(set! (ly:grob-property grob 'stencil)
(ly:stencil-add
(ly:grob-property grob 'stencil)
(ly:separation-item::print grob))))
% \override Accidental.horizontal-skylines =
#ly:grob::simple-horizontal-skylines-from-extents
}
}
{
\override Accidental.X-extent = #'(-2 . 2)
<ges' aes'>
}
Now try adding
\layout {
\context {
\Score
\override Accidental.horizontal-skylines =
#ly:grob::simple-horizontal-skylines-from-extents
}
}
and you'll get an effect on spacing.
Best,
Jean