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}
Wir li \chord{G}eben die Stürme, die brau \chord{D}senden Wog \chord{G}en, / \\
der e \chord{C}iskalten Wi \chord{G}nde rau \chord{D7}es Gesicht \chord{G}. / Wir sind \\
schon der Meere so viel \chord{D}e gezogen \chord{G}, / und den \chord{C}noch \\
s \chord{G}ank unsere Fah \chord{D7}ne nich \chord{G}t. / Hei-o \chord{G}, hei-o, \chord{D7}hei-o, \\
h \chord{G}ei-o, hei-o, \chord{C}he \chord{G}i- \chord{D7}o, hei-o, hei \chord{G}-o.
Wir \chord{G}lieben die Stürme, die \chord{D}brausenden \chord{G}Wogen, / \\
der \chord{C}eiskalten \chord{G}Winde \chord{D7}raues \chord{G}Gesicht. / Wir sind \\
schon der Meere so \chord{D}viele \chord{G}gezogen, / und \chord{C}dennoch \\
\chord{G}sank unsere \chord{D7}Fahne \chord{G}nicht. / \chord{G}Hei-o, hei-o, \chord{D7}hei-o, \\
\chord{G}hei-o, hei-o, \chord{D7}hei-o, hei-o, \chord{G}hei-o.
\end{verse}
\begin{verse}