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

@@ -8,18 +8,18 @@
}
\begin{verse}
\chord{D}In unserm Na \chord{A}men Europa \chord{G} steht \chord{D}, \\
er \chord{D}zeigt, woh \chord{A}in unser S \chord{G}innen g \chord{D}eht: \\
Nicht j \chord{A}eder al \chord{D}lein und im \chord{G}Größen \chord{A}wahn, \\
Zusa \chord{E}mmenarbeit \chord{A}geht alle \chord{E} a \chord{A}n!
\chord{D}In unserm \chord{A}Namen Europa \chord{D}steht, \\
er \chord{D}zeigt, \chord{A}wohin unser \chord{G}Sinnen \chord{D}geht: \\
Nicht \chord{A}jeder \chord{D}allein und im \chord{A}Größenwahn, \\
\chord{E}Zusammenarbeit \chord{A}geht alle \chord{A}an!
\end{verse}
\begin{verse}
Eur \chord{D}opapfa \chord{A}dfinder S \chord{G}t. Michae \chord{D}l, \\
der B \chord{D}und der u \chord{A}ns zusa \chord{G}mmenh \chord{A}äl \chord{D}t. \\
\chord{A}Europapfadfinder \chord{G}St. \chord{D}Michael, \\
der \chord{D}Bund der \chord{A}uns \chord{D}zusammenhält. \\
fis h G A A7 \\
Für jeden da sein in diesem Kreis, \\
bei \chord{G}unsrer \chord{D}Ehre zu \chord{e}Go \chord{A}tt \chord{D}es Preis!
bei \chord{G}unsrer \chord{D}Ehre zu \chord{D}Gottes Preis!
\end{verse}
\begin{verse}