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:
@@ -11,10 +11,10 @@ Refrain 2x
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Der So \chord{a}hn bringt uns die frohe Kunde in unsre \chord{F} kleine \\
|
||||
Pfadirunde. Die Frau \chord{D} kocht uns `nen heiße \chord{C}n Tee und \\
|
||||
un \chord{a}serm Chef auch `nen Kaffee. In einem Jahr ist‘s wieder \\
|
||||
Zeit, der Ho \chord{F}lzschuhmann macht sich bereit. Ein \chord{D}e Woche \\
|
||||
Der \chord{a}Sohn bringt uns die frohe Kunde in unsre \chord{F}kleine \\
|
||||
Pfadirunde. Die Frau \chord{D}kocht uns `nen \chord{C}heißen Tee und \\
|
||||
\chord{a}unserm Chef auch `nen Kaffee. In einem Jahr ist‘s wieder \\
|
||||
Zeit, der \chord{F}Holzschuhmann macht sich bereit. \chord{D}Eine Woche \\
|
||||
\chord{C}ist er heiter, in \chord{a}Dwingeloo als Lagerleiter.
|
||||
\end{verse}
|
||||
|
||||
@@ -23,7 +23,7 @@ Refrain 2x
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
O \chord{a}hne Abschied \chord{F}er verschwand, \chord{D}in sein Hinter \chord{C}wä \chord{G}ld \chord{a}lerland.
|
||||
\chord{a}Ohne Abschied \chord{F}er verschwand, \chord{D}in sein \chord{a}Hinterwäldlerland.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user