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

@@ -7,16 +7,16 @@
}
\begin{verse}
Als w \chord{C}ir noch Knaben waren, die Z \chord{a}eit ist lang vorbei, \\
ein je \chord{F}des Jahr im Frühling beg \chord{C}ann die Tippelei. \\
Wir tr \chord{C}äumten von Kosaken, Sold \chord{a}aten und Piraten, \\
von D \chord{F}schingis Goldner Horde und \chord{C}andren Heldentaten.
Als \chord{C}wir noch Knaben waren, die \chord{a}Zeit ist lang vorbei, \\
ein \chord{F}jedes Jahr im Frühling \chord{C}begann die Tippelei. \\
Wir \chord{C}träumten von Kosaken, \chord{a}Soldaten und Piraten, \\
von \chord{F}Dschingis Goldner Horde und \chord{C}andren Heldentaten.
\end{verse}
\begin{verse}
Ref.: \\
/: H \chord{C}e, \chord{G} heute gehts uns gut! \chord{C}Es ist noch Suppe da, \\
e \chord{F}s ist noch Suppe da, he, z \chord{C}ünd´ das F \chord{G}euer a \chord{C}n! :/
/: \chord{C}He, \chord{G}heute gehts uns gut! \chord{C}Es ist noch Suppe da, \\
\chord{F}es ist noch Suppe da, he, \chord{C}zünd´ das \chord{G}Feuer \chord{C}an! :/
\end{verse}
\begin{verse}