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

@@ -9,15 +9,15 @@
}
\begin{verse}
R \chord{e}oter Wein im Becher, / der b \chord{D7}este Rebensaf \chord{G}t. \\
Wir s \chord{D}ind ein Haufen Z \chord{G}ec \chord{a}her / und ge \chord{e}hn auf \\
W \chord{H7}anderschaft \chord{e}.
\chord{e}Roter Wein im Becher, / der \chord{D7}beste \chord{G}Rebensaft. \\
Wir \chord{D}sind ein Haufen \chord{a}Zecher / und \chord{e}gehn auf \\
\chord{e}Wanderschaft.
\end{verse}
\begin{verse}
Ref.: \\
/:Radi, radi, radi \chord{C}ra la \chord{G}la \chord{D}, radi, radi, \\
r \chord{e}ad \chord{H7}i radi ra la \chord{e}la.:/
/:Radi, radi, radi \chord{C}ra la \chord{D}la, radi, radi, \\
\chord{H7}radi radi ra la \chord{e}la.:/
\end{verse}
\begin{verse}