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:
@@ -7,12 +7,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die S \chord{G}traßen grau, der Kop \chord{D}f ist so schwer. \\
|
||||
Würd‘ al \chord{C}les tun, damit \chord{G}’s nicht so wär. \\
|
||||
Ich hab genug vom alltäg \chord{D}lichen Ort. \\
|
||||
In \chord{C}meinem Herzen bin ich län \chord{G}gst schon fort. \\
|
||||
Mir fällt da was Best \chord{D}immtes ein. \\
|
||||
Ein k \chord{C}leines Städtlein do \chord{D}rt am Rhein.
|
||||
Die \chord{G}Straßen grau, der \chord{D}Kopf ist so schwer. \\
|
||||
Würd‘ \chord{C}alles tun, \chord{G}damit’s nicht so wär. \\
|
||||
Ich hab genug vom \chord{D}alltäglichen Ort. \\
|
||||
In \chord{C}meinem Herzen bin ich \chord{G}längst schon fort. \\
|
||||
Mir fällt da was \chord{D}Bestimmtes ein. \\
|
||||
Ein \chord{C}kleines Städtlein \chord{D}dort am Rhein.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
@@ -20,9 +20,9 @@ Ref.:
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
\chord{G}Sankt \chord{h}Goar. \chord{D}Wir sind hier wie j \chord{C}edes Jahr. \\
|
||||
\chord{G}Sankt \chord{h}Goar. Die St \chord{D}adt, die immer g \chord{C}astlich war. \\
|
||||
\chord{G}Sankt \chord{h}Goar. E \chord{D}ndlich sind wir w \chord{C}ieder da.
|
||||
\chord{G}Sankt \chord{h}Goar. \chord{D}Wir sind hier wie \chord{C}jedes Jahr. \\
|
||||
\chord{G}Sankt \chord{h}Goar. Die \chord{D}Stadt, die immer \chord{C}gastlich war. \\
|
||||
\chord{G}Sankt \chord{h}Goar. \chord{D}Endlich sind wir \chord{C}wieder da.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user