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:
@@ -10,17 +10,17 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die grauen Nebel \chord{C} hat das Licht durchdrungen, \\
|
||||
und die d \chord{G7}üstren Tage sind dah \chord{C}in. \\
|
||||
Wir sehen ei \chord{C}ne frohe Schar von Jungen \\
|
||||
an der l \chord{G7}auten Stadt vorüberz \chord{C}iehn.
|
||||
Die grauen Nebel \chord{C}hat das Licht durchdrungen, \\
|
||||
und die \chord{G7}düstren Tage sind \chord{C}dahin. \\
|
||||
Wir sehen \chord{C}eine frohe Schar von Jungen \\
|
||||
an der \chord{G7}lauten Stadt \chord{C}vorüberziehn.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref.: \\
|
||||
K \chord{C}omm, komm lockt d \chord{F}er Sc \chord{C}hr \chord{G7}itt, komm, Kamerad, \\
|
||||
wir zi \chord{C}eh \chord{F}en \chord{C} mit. Komm, komm, lockt d \chord{F}er Sc \chord{C}hritt, \\
|
||||
k \chord{G7}omm wir marschieren m \chord{C}it.
|
||||
\chord{C}Komm, komm lockt \chord{F}der \chord{G7}Schritt, komm, Kamerad, \\
|
||||
wir \chord{F}ziehen \chord{C}mit. Komm, komm, lockt \chord{F}der \chord{C}Schritt, \\
|
||||
\chord{G7}komm wir marschieren \chord{C}mit.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user