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,17 +9,17 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Der da \chord{D}vorn so l \chord{A}aut die Tr \chord{D}ommel, Trommel schlägt, \\
|
||||
hat auch e \chord{A}in \chord{D} Herz. \\
|
||||
Und so trommelt e \chord{A}r, damit \chord{D} die Zeit vergeht \\
|
||||
und auch de \chord{A}r Schmerz \chord{D}.
|
||||
Der da \chord{D}vorn so \chord{A}laut die \chord{D}Trommel, Trommel schlägt, \\
|
||||
hat auch \chord{A}ein \chord{D}Herz. \\
|
||||
Und so trommelt \chord{A}er, damit \chord{D}die Zeit vergeht \\
|
||||
und auch \chord{A}der \chord{D}Schmerz.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref.: \\
|
||||
Es re \chord{A}gnet schon lang, zehn Tage mag sein, \\
|
||||
/: Kamer \chord{D}ad, denkst \chord{G}du noch da \chord{D}ran, \\
|
||||
\chord{G}an \chord{D} Liebe \chord{A}und We \chord{D}in? :/
|
||||
Es \chord{A}regnet schon lang, zehn Tage mag sein, \\
|
||||
/: \chord{D}Kamerad, denkst \chord{G}du noch \chord{D}daran, \\
|
||||
\chord{G}an \chord{D}Liebe \chord{A}und \chord{D}Wein? :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user