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

@@ -13,9 +13,9 @@
% chenlieder.
\begin{verse}
\chord{D}Großer Gott wir lo \chord{A}ben dic \chord{D}h. Herr, wir preisen de \chord{A}in \chord{A7}e Stärke \chord{D}; \\
v \chord{D}or dir neigt die \chord{A}Erde s \chord{D}ich und bewundert d \chord{A}ei \chord{A7}ne \chord{D}We \chord{A}rke. \\
Wie du warst vor a \chord{D}ll \chord{D7}er \chord{G}Zeit, so bleibst \chord{D}du in \chord{A}Ewigk \chord{D}eit.
\chord{D}Großer Gott wir \chord{A}loben \chord{D}dich. Herr, wir preisen \chord{A7}deine \chord{D}Stärke; \\
\chord{D}vor dir neigt die \chord{A}Erde \chord{D}sich und bewundert \chord{A7}deine \chord{A}Werke. \\
Wie du warst vor \chord{D7}aller \chord{G}Zeit, so bleibst \chord{D}du in \chord{D}Ewigkeit.
\end{verse}
\begin{verse}