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:
@@ -11,12 +11,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Ich k \chord{e}omme schon durch ma \chord{H7}nche Lan \chord{e}d, ave \chord{H7}c que \\
|
||||
la marmotte, und i \chord{e}mmer was zu \chord{H7}essen f \chord{e}and, \chord{H7}avec \\
|
||||
que la marm \chord{e}otte. \\
|
||||
Ich \chord{e}komme schon durch \chord{H7}manche \chord{e}Land, \chord{H7}avec que \\
|
||||
la marmotte, und \chord{e}immer was zu \chord{H7}essen \chord{e}fand, \chord{H7}avec \\
|
||||
que la \chord{e}marmotte. \\
|
||||
Ref.: \\
|
||||
A \chord{G}vec que \chord{D}si \chord{G}, avec que \chord{D}la \chord{e}, avec que la mar \chord{H7}motte. \\
|
||||
Av \chord{G}ec que \chord{D}si \chord{G}, avec que \chord{D}la \chord{e}, avec que \chord{H7} la marm \chord{e}otte.
|
||||
\chord{G}Avec que \chord{G}si, avec que \chord{e}la, avec que la \chord{H7}marmotte. \\
|
||||
\chord{G}Avec que \chord{G}si, avec que \chord{e}la, avec que \chord{H7}la \chord{e}marmotte.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user