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,16 +11,16 @@
\begin{verse}
D A h Fis \\
Wilde Reiter, immer weiter auf der großen Straßenleiter \\
\chord{G}jagen wir durch T \chord{D}ag und Nacht zum Me \chord{A}ere. \\
\chord{G}jagen wir durch \chord{D}Tag und Nacht zum \chord{A}Meere. \\
D A h Fis \\
In Erinnerung der Zeiten, da der Buchten stolze Weiten \\
\chord{G}uns befreit von a \chord{D}ller Erdensch \chord{A}w \chord{D}ere.
\chord{G}uns befreit von \chord{D}aller \chord{D}Erdenschwere.
\end{verse}
\begin{verse}
Refrain: \\
/: Je pense a vous, mademoiselle, je pense a v \chord{G}ous, \\
mademoiselle, a la t \chord{D}erre, a la m \chord{A}er, Cap Fre \chord{D}hel. :/
/: Je pense a vous, mademoiselle, je pense a \chord{G}vous, \\
mademoiselle, a la \chord{D}terre, a la \chord{A}mer, Cap \chord{D}Frehel. :/
\end{verse}
\begin{verse}