[MU4 Issue] Lyrics layout breaks on incomplete input
Describe the bug
Lyrics self-intersect when ending with a minus (-).
To Reproduce Steps to reproduce the behavior:
- Enter more than one note.
- Click on the first note
- Type Ctrl-L to enter lyrics mode
- Type "Froh-" without quotes
- Press the
Esckey, or click some empty part of the score, to abort entering lyrics
Expected behavior I wouldn't be surprised by any of the following behaviors:
- Because the minus key is supposed to indicate a single connected word and the user refused to write the rest of the word, the minus is removed, and only "Froh" remains.
- Because the user refused to enter anything further, the lyrics "Froh - " appear.
- A dialog appears asking the user what they want.
- Because the input doesn't make sense, MuseScore reinterprets the input as "Froh_".
Actual behavior The layout algorithm seems to think that "Froh" is the only remaining text node, and does the layout accordingly. However, the "-" (minus symbol) also appears, in a place that would be reasonable if "Froh" hadn't moved in the meantime. The result is that "Froh" and "-" overlap awkwardly.
Screenshots
I wrote "Fröh-", but that doesn't really make a difference:
I didn't edit that screenshot, the weird line in the text is the minus sign.
Platform information
- OS: Linux, German locale, but that probably doesn't matter.
Additional context Am I spamming too much or should I keep going? Writing 8 bug reports in a row starts feeling like I should stop doing that.
Not spamming at all - if they are all valid bugs, we need to know about them :) (though do check whether they have been reported already)
I feel like 1. is the best solution here; we can't assume what the user wants. If they are just interrupting the input process and will return to it, they can then easily do so.
The syllable should also return to being centered (rather than left-justified) when this happens.
The same should happen if the user exits after pressing _ only once. Currently MuseScore 3 left us with this in that situation:
which is also no good. MU4 doesn't show the _ (probably because very short melisma lines are now not drawn, by default), but there shouldn't even be an implied one.
Thank you! That sounds reasonable. And yes, I always check first, and in one case even found out that a translation bug is already fixed in Transifex (and is apparently just in the pipeline for the next website update or something.)