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,9 +6,9 @@
}
\begin{verse}
/: \chord{G}Un \chord{D}glück vo \chord{e}r mir, U \chord{G}ng \chord{D}\chord{C}ck nach mir, wo \chord{D} ich bin, \\
ist G \chord{e}lück :/ /: \chord{G}Wo ich bin, blieb \chord{C}eine F \chord{G}ährte :/ \\
u \chord{a}mgewor \chord{G}fnen Lands zurück \chord{D}.
/: \chord{D}Unglück \chord{e}vor mir, \chord{C}Ungck nach mir, wo \chord{D}ich bin, \\
ist \chord{e}Glück :/ /: \chord{G}Wo ich bin, blieb \chord{C}eine \chord{G}Fährte :/ \\
\chord{G}umgeworfnen Lands \chord{D}zurück.
\end{verse}
\begin{verse}
@@ -18,15 +18,15 @@ mir ein Paradies gemacht.
\end{verse}
\begin{verse}
/: \chord{H7}Meine N \chord{e}erven zi \chord{H7}ttern le \chord{e}is \chord{D}e in Gedanken an die \chord{e}ren, \\
d \chord{a}ie noch s \chord{H7}perren. :/ /: A \chord{G}n die Feuer, \chord{C}an die F \chord{G}euer :/ \\
d \chord{a}ie mich b \chord{G}itten, sie z \chord{D}u \chord{C}sc \chord{e}hüren.
/: \chord{H7}Meine \chord{e}Nerven \chord{H7}zittern \chord{D}leise in Gedanken an die \chord{e}ren, \\
\chord{a}die noch \chord{H7}sperren. :/ /: \chord{G}An die Feuer, \chord{C}an die \chord{G}Feuer :/ \\
\chord{a}die mich \chord{G}bitten, sie \chord{D}zu \chord{e}schüren.
\end{verse}
\begin{verse}
/: \chord{G}Ab \chord{D}er \chord{e} heute la \chord{G}ss \chord{D}t mich sc \chord{C}hlafen, h \chord{D}eute bin ich m \chord{e}üd´. :/ \\
/: \chord{G}Gestern bin ich st \chord{C}ark gew \chord{G}esen, :/ \\
m \chord{a}orgen wer \chord{G}d´ ich´s wieder \chord{D}se \chord{C}i \chord{e}n.
/: \chord{D}Aber \chord{e}heute \chord{D}lasst mich \chord{C}schlafen, \chord{D}heute bin ich \chord{e}müd´. :/ \\
/: \chord{G}Gestern bin ich \chord{C}stark \chord{G}gewesen, :/ \\
\chord{a}morgen \chord{G}werd´ ich´s wieder \chord{e}sein.
\end{verse}
\end{song}