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,21 +6,21 @@
}
\begin{verse}
\chord{H7}J'm'en souvien \chord{e}s, j'avais 6 ans, \\
\chord{H7}J'm'en \chord{e}souviens, j'avais 6 ans, \\
J'comprenais pas \chord{a}c'que voulaient mes parents \\
Quand ils m'ont dit \chord{C} „Mon enfant, \\
Va chez les scou \chord{H7}ts, c'est important!“ \\
Moi j'flippais gr \chord{e}ave au début \\
J'sortais d'chez moi \chord{a}, d'mes habitudes \\
Mais la rib \chord{C}ambelle m'ouvre la porte \\
Et au fina \chord{H7}l le rire m'emporte
Quand ils m'ont dit \chord{C}„Mon enfant, \\
Va chez les \chord{H7}scouts, c'est important!“ \\
Moi j'flippais \chord{e}grave au début \\
J'sortais d'chez \chord{a}moi, d'mes habitudes \\
Mais la \chord{C}ribambelle m'ouvre la porte \\
Et au \chord{H7}final le rire m'emporte
\end{verse}
\begin{verse}
/: Ensembl \chord{e}e on est mieux \\
On a du m \chord{C}al à s'dire adieu \\
Les scouts nous p \chord{G}ortent, nous transportent \\
Nous font d \chord{H7}anser comme le feu :/
/: \chord{e}Ensemble on est mieux \\
On a du \chord{C}mal à s'dire adieu \\
Les scouts nous \chord{G}portent, nous transportent \\
Nous font \chord{H7}danser comme le feu :/
\end{verse}
\begin{verse}