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

@@ -11,10 +11,10 @@ Refrain 2x
\end{verse}
\begin{verse}
Der So \chord{a}hn bringt uns die frohe Kunde in unsre \chord{F} kleine \\
Pfadirunde. Die Frau \chord{D} kocht uns `nen heiße \chord{C}n Tee und \\
un \chord{a}serm Chef auch `nen Kaffee. In einem Jahr ists wieder \\
Zeit, der Ho \chord{F}lzschuhmann macht sich bereit. Ein \chord{D}e Woche \\
Der \chord{a}Sohn bringt uns die frohe Kunde in unsre \chord{F}kleine \\
Pfadirunde. Die Frau \chord{D}kocht uns `nen \chord{C}heißen Tee und \\
\chord{a}unserm Chef auch `nen Kaffee. In einem Jahr ists wieder \\
Zeit, der \chord{F}Holzschuhmann macht sich bereit. \chord{D}Eine Woche \\
\chord{C}ist er heiter, in \chord{a}Dwingeloo als Lagerleiter.
\end{verse}
@@ -23,7 +23,7 @@ Refrain 2x
\end{verse}
\begin{verse}
O \chord{a}hne Abschied \chord{F}er verschwand, \chord{D}in sein Hinter \chord{C}\chord{G}ld \chord{a}lerland.
\chord{a}Ohne Abschied \chord{F}er verschwand, \chord{D}in sein \chord{a}Hinterwäldlerland.
\end{verse}
\begin{verse}