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}
|
||||
Ich \chord{C}war noch so jung und war doch schon so arm. / \\
|
||||
Kein G \chord{F}eld hatt´ ich im B \chord{C}eutel, dass G \chord{G7}ott sich mein \\
|
||||
erb \chord{C}arm. /Da nahm ich meinen St \chord{d}ab und m \chord{G}einen \\
|
||||
Bettels \chord{C}ack / und p \chord{a}fiff das V \chord{e}at \chord{F}er \chord{C}unser den lieben \chord{G7}langen \\
|
||||
T \chord{C}ag.
|
||||
Kein \chord{F}Geld hatt´ ich im \chord{C}Beutel, dass \chord{G7}Gott sich mein \\
|
||||
\chord{C}erbarm. /Da nahm ich meinen \chord{d}Stab und \chord{G}meinen \\
|
||||
\chord{C}Bettelsack / und \chord{a}pfiff das \chord{C}Vaterunser den lieben \chord{G7}langen \\
|
||||
\chord{C}Tag.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user