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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user