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

@@ -8,9 +8,9 @@
}
\begin{verse}
Schließ \chord{d}Aug und Ohr für ei \chord{A}ne Weil vor dem \\
Getö \chord{A}s der Zei \chord{d}t. /: Du h \chord{F}eilst es nicht und h \chord{C}ast \\
kein H \chord{A}eil, als w \chord{d}o dein \chord{Asus4}Herz sich wei \chord{d}ht.:/
Schließ \chord{d}Aug und Ohr für \chord{A}eine Weil vor dem \\
\chord{A}Getös der \chord{d}Zeit. /: Du \chord{F}heilst es nicht und \chord{C}hast \\
kein \chord{A}Heil, als \chord{d}wo dein \chord{Asus4}Herz sich \chord{d}weiht.:/
\end{verse}
\begin{verse}