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,14 +6,14 @@
}
\begin{verse}
\chord{G}Sausende Steine, \chord{C}eiskalter W \chord{G}ind, beißt in die nackten Beine, \\
Die A \chord{D7}ugen sind halb bli \chord{G}nd.
\chord{G}Sausende Steine, \chord{C}eiskalter \chord{G}Wind, beißt in die nackten Beine, \\
Die \chord{D7}Augen sind halb \chord{G}blind.
\end{verse}
\begin{verse}
Ref: \\
/: H \chord{C}eulender Motor, Bar \chord{G}ett schief überm Ohr, w \chord{D7}ild wehn die \\
H \chord{G}aare, fl \chord{D7}attern in den W \chord{G}ind. :/
/: \chord{C}Heulender Motor, \chord{G}Barett schief überm Ohr, \chord{D7}wild wehn die \\
\chord{G}Haare, \chord{D7}flattern in den \chord{G}Wind. :/
\end{verse}
\begin{verse}