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

@@ -9,16 +9,16 @@
}
\begin{verse}
/: Wir k \chord{E}amen e \chord{H7}inst von Piem \chord{E}ont und wollten \\
wei \chord{A}ter n \chord{H7}ach Ly \chord{E}on.:/ Ach im Beutel, da herrschte \\
Le \chord{H7}ere, sans dessus dessous et sans devant \\
derri \chord{E}ere. Burschen warn wir drei, doch nur ein
/: Wir \chord{E}kamen \chord{H7}einst von \chord{E}Piemont und wollten \\
\chord{A}weiter \chord{H7}nach \chord{E}Lyon.:/ Ach im Beutel, da herrschte \\
\chord{H7}Leere, sans dessus dessous et sans devant \\
\chord{E}derriere. Burschen warn wir drei, doch nur ein
\end{verse}
\begin{verse}
Sous! \\
Refrain: \\
/: S \chord{A}ans devant derr \chord{E}iere, sans des \chord{H7}sus dess \chord{E}ous.:/
/: \chord{A}Sans devant \chord{E}derriere, sans \chord{H7}dessus \chord{E}dessous.:/
\end{verse}
\begin{verse}