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:
@@ -5,16 +5,16 @@
|
||||
|
||||
\begin{verse}
|
||||
\chord{A}Oh, I thought I heard the old Man say: \\
|
||||
„ \chord{E}Leave her, Johnny, l \chord{A}eave her.“ \\
|
||||
Tom \chord{D}orrow y \chord{A}ou will \chord{h}get your p \chord{A}ay. \\
|
||||
And it‘s ti \chord{A}me for \chord{E}us to l \chord{A}eave her.
|
||||
\chord{E}„Leave her, Johnny, \chord{A}leave her.“ \\
|
||||
\chord{D}Tomorrow \chord{A}you will \chord{h}get your \chord{A}pay. \\
|
||||
And it‘s \chord{A}time for \chord{E}us to \chord{A}leave her.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref.: \chord{E}Leave her, Johnny, l \chord{A}eave her! \\
|
||||
Oh, l \chord{D}eave her, Johnny, l \chord{A}eave her! \\
|
||||
For the \chord{D}voyage is lo \chord{A}ng and the w \chord{h}inds don‘t bl \chord{A}ow \\
|
||||
And it‘s t \chord{A}ime for \chord{E}us to le \chord{A}ave her.
|
||||
Ref.: \chord{E}Leave her, Johnny, \chord{A}leave her! \\
|
||||
Oh, \chord{D}leave her, Johnny, \chord{A}leave her! \\
|
||||
For the \chord{D}voyage is \chord{A}long and the \chord{h}winds don‘t \chord{A}blow \\
|
||||
And it‘s \chord{A}time for \chord{E}us to \chord{A}leave her.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user