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

@@ -9,14 +9,14 @@
}
\begin{verse}
Wa \chord{C}ch nun auf aus deinen Träumen, \\
\chord{C}Wach nun auf aus deinen Träumen, \\
\chord{a}es gilt jetzt nichts zu versäumen, \\
de \chord{F}nn wir brauchen dich und deine Krä \chord{G}ft \chord{G7}e. \\
Fl \chord{C}edermäuse sind verflogen, \\
b \chord{a}ist du noch nicht angezogen, \\
de \chord{F}nn das Spiel des Tages fängt jetzt \chord{G}an. \\
/:Die Nac \chord{C}ht ist jetzt vorbe \chord{a}i, \\
das Tageslich \chord{F}t bricht nun here \chord{G}in!:/
\chord{F}denn wir brauchen dich und deine \chord{G7}Kräfte. \\
\chord{C}Fledermäuse sind verflogen, \\
\chord{a}bist du noch nicht angezogen, \\
\chord{F}denn das Spiel des Tages fängt jetzt \chord{G}an. \\
/:Die \chord{C}Nacht ist jetzt \chord{a}vorbei, \\
das \chord{F}Tageslicht bricht nun \chord{G}herein!:/
\end{verse}
\begin{verse}