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,10 +10,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wir si \chord{E}nd durch Deutschland gef \chord{H7}ahr \chord{E}en \\
|
||||
vom Meer \chord{H7} bis zum Alpenschnee \chord{E}. \\
|
||||
/: Wir h \chord{A}aben noch Wind in den H \chord{H7}aar \chord{E}en, \\
|
||||
den Win \chord{H7}d von Bergen und Seen \chord{E}. :/
|
||||
Wir \chord{E}sind durch Deutschland \chord{E}gefahren \\
|
||||
vom Meer \chord{H7}bis zum \chord{E}Alpenschnee. \\
|
||||
/: Wir \chord{A}haben noch Wind in den \chord{E}Haaren, \\
|
||||
den \chord{H7}Wind von Bergen und \chord{E}Seen. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user