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

@@ -6,10 +6,10 @@
}
\begin{verse}
A \chord{d}ll dies W \chord{A7}ellen, ja diese W \chord{d}ellen, \\
die sollen b \chord{C}loß zur Hölle fa \chord{F}hr \chord{D7}'n, \\
/: und keine Ka \chord{g}rten von diesen Ste \chord{d}llen, \\
ich treibe \chord{g}vorwärts o \chord{A7}hne Pla \chord{d}n. \chord{D7} :/
\chord{d}All dies \chord{A7}Wellen, ja diese \chord{d}Wellen, \\
die sollen \chord{C}bloß zur Hölle \chord{D7}fahr'n, \\
/: und keine \chord{g}Karten von diesen \chord{d}Stellen, \\
ich treibe \chord{g}vorwärts \chord{A7}ohne \chord{d}Plan. \chord{D7}:/
\end{verse}
\begin{verse}