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,10 +9,10 @@
}
\begin{verse}
Es s \chord{e}oll sich d \chord{D}er \chord{G} Mensch nicht mit der L \chord{D}iebe abg \chord{e}eben, \\
denn die Liebe h \chord{D}at ver \chord{G}nichtet schon so m \chord{D}anch junges \\
L \chord{e}eben. / Es h \chord{C}at mir mein T \chord{a}rina die T \chord{D}reue \chord{D7}ver \chord{e}sagt, / \chord{G}d \chord{D}as \\
s \chord{e}ei euch g \chord{D}ek \chord{e}la \chord{G}g \chord{D}t \chord{e}. \chord{D}T \chord{e}üterütütütü.
Es \chord{e}soll sich \chord{D}der \chord{G}Mensch nicht mit der \chord{D}Liebe \chord{e}abgeben, \\
denn die Liebe \chord{D}hat \chord{G}vernichtet schon so \chord{D}manch junges \\
\chord{e}Leben. / Es \chord{C}hat mir mein \chord{a}Trina die \chord{D}Treue \chord{e}versagt, / \chord{D}das \\
\chord{e}sei euch \chord{e}geklagt. \chord{e}Tüterütütütü.
\end{verse}
\begin{verse}