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:
shahondin1624
2026-04-02 16:36:06 +02:00
parent d875fd225b
commit 7b99778f67
295 changed files with 1804 additions and 1782 deletions

View File

@@ -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}