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

@@ -10,17 +10,17 @@
}
\begin{verse}
Jeden \chord{a}Aben \chord{E}d \chord{a}, träumt Jerchenkow, \\
träumt von N \chord{E}itschnij N \chord{E7}owgor \chord{a}od. \\
Damals \chord{a}als de \chord{E}r \chord{a}, Zar noch lebte, \\
vierzig J \chord{E}ahr, ist \chord{E7}er schon t \chord{a}ot \chord{E}.
Jeden \chord{a}Abend, träumt Jerchenkow, \\
träumt von \chord{E}Nitschnij \chord{a}Nowgorod. \\
Damals \chord{a}als \chord{a}der, Zar noch lebte, \\
vierzig \chord{E}Jahr, ist \chord{E7}er schon \chord{E}tot.
\end{verse}
\begin{verse}
Ref.: \\
/: Man m \chord{d}üsste wieder zw \chord{a}ei Pistolen \\
\chord{E}und ein Pferdchen h \chord{a}aben, \\
daz \chord{d}u mit einer R \chord{a}eiterschar \\
/: Man \chord{d}müsste wieder \chord{a}zwei Pistolen \\
\chord{E}und ein Pferdchen \chord{a}haben, \\
\chord{d}dazu mit einer \chord{a}Reiterschar \\
E E7 a(E)a daEa daEaEa \\
nach Nitschnij Nowgorod traben. :/
\end{verse}