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

@@ -8,19 +8,19 @@
}
\begin{verse}
Zieh mit un \chord{e}s in die Welt, \\
ob´s auch stür \chord{D}mt, ob Regen fäl \chord{G}lt, \\
Zieh mit \chord{e}uns in die Welt, \\
ob´s auch \chord{D}stürmt, ob Regen \chord{G}fällt, \\
fis H7 \\
durchbrich´ den Wall, der dich umgibt. \\
cis \\
Zieh´ mit uns in die Welt, \\
mit Git \chord{E}arre und mit Zelt, \\
mit \chord{E}Gitarre und mit Zelt, \\
fis D H7 \\
allein darin das Glück uns liegt.
\end{verse}
\begin{verse}
\: Und der G \chord{E}eist der F \chord{A}ahrt uns durchd \chord{E}ringt, alle \chord{H7}zeit. \\
\: Und der \chord{E}Geist der \chord{A}Fahrt uns \chord{E}durchdringt, \chord{H7}allezeit. \\
A Fis H7 \\
Unsre Banner wehen stets im Wind. :/
\end{verse}