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

@@ -19,16 +19,16 @@
% Lied als Hymne für das Weltpfadfindertum aus.
\begin{verse}
Nehmt \chord{E}Abschied, Brüder, un \chord{H7}gewiss ist all \chord{E}e \\
Wiederk \chord{A}ehr, die \chord{E}Zukunft liegt in \chord{H7}Finsternis \\
und m \chord{A}acht das He \chord{H7}rz uns schwer. \\
Nehmt \chord{E}Abschied, Brüder, \chord{H7}ungewiss ist \chord{E}alle \\
\chord{A}Wiederkehr, die \chord{E}Zukunft liegt in \chord{H7}Finsternis \\
und \chord{A}macht das \chord{H7}Herz uns schwer. \\
Ref.:
\end{verse}
\begin{verse}
De \chord{A}r \chord{E}Himmel wölbt sich \chord{H7}übers Land, ade \chord{E}, auf \\
Wiederse \chord{A}hn, wir ru \chord{E}hen all in G \chord{H7}ottes Hand, \\
lebt wo \chord{A}hl, auf Wi \chord{H7}ede \chord{E}rsehn.
\chord{A}Der \chord{E}Himmel wölbt sich \chord{H7}übers Land, \chord{E}ade, auf \\
\chord{A}Wiedersehn, wir \chord{E}ruhen all in \chord{H7}Gottes Hand, \\
lebt \chord{A}wohl, auf \chord{E}Wiedersehn.
\end{verse}
\begin{verse}