Fix chord alignment: snap to word boundaries
Improve merge_chord_lyric() to snap chord positions to the start
of the word they fall within, instead of splitting words mid-way.
Fixes artifacts like "Liebespaar \chord{C}e" → "\chord{C}Liebespaare".
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
G \chord{d}ospodar, dein Groß \chord{g}gut birg \chord{d}t heut u \chord{a}nsre Band \chord{d}. \\
|
||||
U \chord{F}nsre guten Flinten h \chord{C}ängen an der Wand \chord{d}. \\
|
||||
Fr \chord{g}ost knarrt in den Ästen, Wi \chord{C}nd pfeift durch die R \chord{d}itz; \\
|
||||
gute Wärme gibs \chord{g}t du, Brud \chord{d}er Sli \chord{a}wo \chord{d}witz.
|
||||
\chord{d}Gospodar, dein \chord{g}Großgut \chord{d}birgt heut \chord{a}unsre \chord{d}Band. \\
|
||||
\chord{F}Unsre guten Flinten \chord{C}hängen an der \chord{d}Wand. \\
|
||||
\chord{g}Frost knarrt in den Ästen, \chord{C}Wind pfeift durch die \chord{d}Ritz; \\
|
||||
gute Wärme \chord{g}gibst du, \chord{d}Bruder \chord{d}Sliwowitz.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user