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:
@@ -6,9 +6,9 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Una matti \chord{e}na mi sono alzato , o bella ciao …, \\
|
||||
Una matti \chord{a}na mi sono alza \chord{e}to, \\
|
||||
e ho tro \chord{H7}vato l’invas \chord{e}or.
|
||||
Una \chord{e}mattina mi sono alzato , o bella ciao …, \\
|
||||
Una \chord{a}mattina mi sono \chord{e}alzato, \\
|
||||
e ho \chord{H7}trovato \chord{e}l’invasor.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user