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

@@ -6,14 +6,14 @@
}
\begin{verse}
Ihr \chord{E}lfe, kommt und schlie \chord{H7}ßt den Kreis, \\
ein Wo \chord{E}lf will von uns g \chord{A}eh'n. \\
Ihr \chord{E}lfe, kommt und schl \chord{H7}ießt den Kreis, \\
sagt \chord{E}ihm auf Wie \chord{A}derseh \chord{E}'n. \\
\chord{A}Er \chord{E} geht nun zu den Men \chord{H7}schen fort \\
und scha \chord{E}ut noch 'mal zurü \chord{A}ck. \\
Wir \chord{E}nschen ihm am fremd \chord{H7}en Ort \\
viel B \chord{E}eute u \chord{A}nd viel G \chord{E}lück.
Ihr \chord{E}lfe, kommt und \chord{H7}schließt den Kreis, \\
ein \chord{E}Wolf will von uns \chord{A}geh'n. \\
Ihr \chord{E}lfe, kommt und \chord{H7}schließt den Kreis, \\
sagt \chord{E}ihm auf \chord{E}Wiederseh'n. \\
\chord{A}Er \chord{E}geht nun zu den \chord{H7}Menschen fort \\
und \chord{E}schaut noch 'mal \chord{A}zurück. \\
Wir \chord{E}nschen ihm am \chord{H7}fremden Ort \\
viel \chord{E}Beute \chord{A}und viel \chord{E}Glück.
\end{verse}
\begin{verse}