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,13 +9,13 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
H \chord{C}eute wird wohl kein \chord{a}Schiff mehr gehn \\
|
||||
und k \chord{d}einer geht mehr vor die T \chord{G}ür. \\
|
||||
\chord{C}Alle sind heute versch \chord{a}üchtert; \\
|
||||
nur i \chord{d}ch bin es nicht und \chord{G}das liegt an dir. \\
|
||||
Am F \chord{E}enster fliegt eine \chord{a}Kuh vorbei; \\
|
||||
da kommt j \chord{F}ede Hilfe zu \chord{C}s \chord{G}pät. \\
|
||||
\chord{C}Ein Glas auf die K \chord{G}uh und eins auf die \chord{C}See.
|
||||
\chord{C}Heute wird wohl kein \chord{a}Schiff mehr gehn \\
|
||||
und \chord{d}keiner geht mehr vor die \chord{G}Tür. \\
|
||||
\chord{C}Alle sind heute \chord{a}verschüchtert; \\
|
||||
nur \chord{d}ich bin es nicht und \chord{G}das liegt an dir. \\
|
||||
Am \chord{E}Fenster fliegt eine \chord{a}Kuh vorbei; \\
|
||||
da kommt \chord{F}jede Hilfe zu \chord{G}spät. \\
|
||||
\chord{C}Ein Glas auf die \chord{G}Kuh und eins auf die \chord{C}See.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
@@ -49,7 +49,7 @@ Ein Glas auf die Kuh und eins auf die See.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
\chord{C}Ein Glas auf \chord{G}uns und eins auf die S \chord{C}ee.
|
||||
\chord{C}Ein Glas auf \chord{G}uns und eins auf die \chord{C}See.
|
||||
\end{verse}
|
||||
|
||||
\end{song}
|
||||
|
||||
Reference in New Issue
Block a user