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:
@@ -7,10 +7,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
N \chord{a}o you won’t get me down underground in your \chord{G} mines, \\
|
||||
Aw \chord{F}ay from the tr \chord{C}ees and the fl \chord{G}owers so fi \chord{C}ne. \\
|
||||
D \chord{F}own in the d \chord{C}ark where the s \chord{G}un never sh \chord{E}in \chord{E7}es. \\
|
||||
No you wo \chord{a}n’t get me do \chord{G}wn in your mine \chord{a}s.
|
||||
\chord{a}No you won’t get me down underground in your \chord{G}mines, \\
|
||||
\chord{F}Away from the \chord{C}trees and the \chord{G}flowers so \chord{C}fine. \\
|
||||
\chord{F}Down in the \chord{C}dark where the \chord{G}sun never \chord{E7}shines. \\
|
||||
No you \chord{a}won’t get me \chord{G}down in your \chord{a}mines.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user