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,14 +6,14 @@
}
\begin{verse}
Wir s \chord{C}ind Kamera \chord{G}den und hal \chord{a}ten zusam \chord{E}m, \\
eg \chord{C}al ob bei T \chord{a}ag oder N \chord{G7}acht. \\
Wir f \chord{C}ühren die Kr \chord{G}one in \chord{a}unserer \chord{E}Fahn \\
und zi \chord{C}eh´n immer mu \chord{a}nter unsre Ba \chord{G7}hn! \\
Wir \chord{C}sind \chord{G}Kameraden und \chord{a}halten \chord{E}zusamm, \\
\chord{C}egal ob bei \chord{a}Tag oder \chord{G7}Nacht. \\
Wir \chord{C}führen die \chord{G}Krone in \chord{a}unserer \chord{E}Fahn \\
und \chord{C}zieh´n immer \chord{a}munter unsre \chord{G7}Bahn! \\
Ref.: \\
/: Ja, f \chord{C}rei wie ein \chord{G}Albatros ziehen wir \chord{a} durch die \chord{E}Welt, \\
heute hie \chord{C}r, morgen dort, grade wie e \chord{F}s uns gefällt, \\
ja, so fr \chord{C}ei ist die P \chord{G}fadfinder \chord{C}ei! :/
/: Ja, \chord{C}frei wie ein \chord{G}Albatros ziehen wir \chord{a}durch die \chord{E}Welt, \\
heute \chord{C}hier, morgen dort, grade wie \chord{F}es uns gefällt, \\
ja, so \chord{C}frei ist die \chord{C}Pfadfinderei! :/
\end{verse}
\begin{verse}