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,9 +9,9 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die Dä \chord{D}mmerung fällt \chord{A}, wir sind müde v \chord{G}om Trabe \chord{D}n. \\
|
||||
Die Stra \chord{A}ßen, sie ha \chord{D}ben der \chord{G}Steine \chord{D}gar v \chord{A}iel. \\
|
||||
/: L \chord{D}asst sie für h \chord{A}eute all \chord{D}ein. :/
|
||||
Die \chord{D}Dämmerung \chord{A}fällt, wir sind müde \chord{G}vom \chord{D}Traben. \\
|
||||
Die \chord{A}Straßen, sie \chord{D}haben der \chord{G}Steine \chord{D}gar \chord{A}viel. \\
|
||||
/: \chord{D}Lasst sie für \chord{A}heute \chord{D}allein. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user