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,10 +9,10 @@
}
\begin{verse}
Wie schö \chord{G}n blüht uns \chord{D7} der Maie \chord{G}n \chord{C}, /der So \chord{G}mmer fährt \\
dah \chord{G}in, /mir ist ein sc \chord{D7}hönes Jungfr \chord{G}ä \chord{C}ulein /ge \chord{G}fallen \\
in me \chord{D7}inem Sin \chord{G}n. /Bei ih \chord{G}r da wär mir w \chord{D7}ohl,/ wenn ich \\
nur an sie d \chord{C}en \chord{D7}ke,/ mein H \chord{G}erz ist f \chord{D7}reu \chord{G}devoll.
Wie \chord{G}schön blüht uns \chord{D7}der \chord{C}Maien, /der \chord{G}Sommer fährt \\
\chord{G}dahin, /mir ist ein \chord{D7}schönes \chord{C}Jungfräulein \chord{G}/gefallen \\
in \chord{D7}meinem \chord{G}Sinn. /Bei \chord{G}ihr da wär mir \chord{D7}wohl,/ wenn ich \\
nur an sie \chord{D7}denke,/ mein \chord{G}Herz ist \chord{G}freudevoll.
\end{verse}
\begin{verse}