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,17 +7,17 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Der Ta \chord{G}g begann, der Tag \chord{D} verg \chord{e}eht, \\
|
||||
vorbe \chord{C}i ist seine Z \chord{D}eit, \\
|
||||
wenn glei \chord{G}ch der Mond am Hi \chord{D}mmel st \chord{e}eht, \\
|
||||
ist \chord{C}er Verga \chord{D}ngenhe \chord{G}it.
|
||||
Der \chord{G}Tag begann, der Tag \chord{e}vergeht, \\
|
||||
\chord{C}vorbei ist seine \chord{D}Zeit, \\
|
||||
wenn \chord{G}gleich der Mond am \chord{D}Himmel \chord{e}steht, \\
|
||||
ist \chord{C}er \chord{G}Vergangenheit.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Refrain: \\
|
||||
Di \chord{G}ese Nacht in Go \chord{D}ttes Hand, \\
|
||||
le \chord{e}gen wir in G \chord{h}ottes Hand. \\
|
||||
Di \chord{C}ese Nacht, j \chord{G}ede Nacht, i \chord{D}n Gottes H \chord{G}and.
|
||||
\chord{G}Diese Nacht in \chord{D}Gottes Hand, \\
|
||||
\chord{e}legen wir in \chord{h}Gottes Hand. \\
|
||||
\chord{C}Diese Nacht, \chord{G}jede Nacht, \chord{D}in Gottes \chord{G}Hand.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user