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,11 +7,11 @@
}
\begin{verse}
Im S \chord{a}ommer war das G \chord{d}ras so tief, dass jeder W \chord{G}ind daran \\
vorüber \chord{C}lief. Ich habe \chord{a}da dein \chord{e}Blut gesp \chord{G}ürt, und wie es h \chord{F}eiß \\
zu mir herüberra \chord{a}nn. Du hast nur mein Gesi \chord{d}cht berührt, da \\
starb er ei \chord{G}nfach hin, der harte M \chord{C}ann. Weil's solche Li \chord{a}ebe \\
n \chord{e}icht mehr g \chord{G}ibt: Ich hab mich i \chord{F}n dein rotes Haar verli \chord{a}ebt.
Im \chord{a}Sommer war das \chord{d}Gras so tief, dass jeder \chord{G}Wind daran \\
\chord{C}vorüberlief. Ich habe \chord{a}da dein \chord{e}Blut \chord{G}gespürt, und wie es \chord{F}heiß \\
zu mir \chord{a}herüberrann. Du hast nur mein \chord{d}Gesicht berührt, da \\
starb er \chord{G}einfach hin, der harte \chord{C}Mann. Weil's solche \chord{a}Liebe \\
\chord{e}nicht mehr \chord{G}gibt: Ich hab mich \chord{F}in dein rotes Haar \chord{a}verliebt.
\end{verse}
\begin{verse}