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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user