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,9 +9,9 @@
}
\begin{verse}
Bu \chord{a}rschen, Burs \chord{G}chen, wir v \chord{d}erderben \chord{a}, \\
geht es fort so wil \chord{E}d und tol \chord{a}l. \\
/: H \chord{a}ej \chord{G}, \chord{a}hej, hej, hej \chord{G}o, \chord{a} w \chord{E}il \chord{a}d und toll. :/
\chord{a}Burschen, \chord{G}Burschen, wir \chord{a}verderben, \\
geht es fort so \chord{E}wild und \chord{a}toll. \\
/: \chord{G}Hej, \chord{a}hej, hej, \chord{G}hejo, \chord{a}wild und toll. :/
\end{verse}
\begin{verse}