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

@@ -14,10 +14,10 @@
% von unseren Fahrten nicht mehr nach Hause kehren.
\begin{verse}
/: Die r \chord{E}oten F \chord{H7}ahnen bre \chord{E}nnen im Wind / \\
und die Lilie dar \chord{H7}auf ist mein H \chord{E}erz. :/ \\
/: Und a \chord{A}lle, die mit uns gez \chord{E}ogen sind, \\
wollen nie me \chord{H7}hr zurüc \chord{E}k. :/
/: Die \chord{E}roten \chord{H7}Fahnen \chord{E}brennen im Wind / \\
und die Lilie \chord{H7}darauf ist mein \chord{E}Herz. :/ \\
/: Und \chord{A}alle, die mit uns \chord{E}gezogen sind, \\
wollen nie \chord{H7}mehr \chord{E}zurück. :/
\end{verse}
\begin{verse}