[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Magnetic snap and whiteout on LyricText: warnings
From: |
Simon Albrecht |
Subject: |
Magnetic snap and whiteout on LyricText: warnings |
Date: |
Mon, 5 Jun 2023 21:23:15 +0200 |
Hello everyone,
I don’t know where the “Lyric syllable magnetic snap” snippet is mainly
stored, I grabbed it from the list years ago and attach it in the
version that I have, from December 2011 and with links to user list
archive. I hope I’m not somehow behind time with this, having followed
the user list only sporadically in the years since.
I have tracked down why I always got warnings about “infinity or nan” in
every vocal music score I engraved: with the snippet, the last syllable
of a LyricWord gets a #ly:text-interface::print stencil with
#empty-markup as text, which results in multiple warnings each time Lily
tries to apply whiteout to such a syllable. (tiny example below)
This is fixed by, in line 187 of the attached file, replacing
ly:text-interface::print with point-stencil (an infinitely small
stencil, IIUC). To avoid misunderstandings: the attached version does
NOT have the fix applied.
I’m not aware of this snippet being available anywhere except the list
archives. Surely it would be a good candidate for the LSR and OLL,
wouldn’t it?
Best, Simon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.25.5"
\include "lyr-syl-magn-snap.ily"
\layout {
\context {
\Lyrics
\override LyricText.whiteout = 1
}
}
<<
{ 2 2 }
\addlyrics { aaaaaaaaaaaaaaaaaaaaaaaaaaa -- bbbbbbbbbbbbbbbbbbbbbbbbb }
>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
lyr-syl-magn-snap.ly
Description: Text Data
- Magnetic snap and whiteout on LyricText: warnings,
Simon Albrecht <=