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,10 +11,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Ro \chord{E}te Ritterschar \chord{A}en stürm \chord{H7}en die Bastion, \chord{E} / blaue \\
|
||||
Knappen ware \chord{A}n wir au \chord{H7}f Waldeck schon. / \\
|
||||
/: F \chord{A}rei von aller F \chord{E}ron k \chord{A}lingt´s von der Bast \chord{E}ion / \\
|
||||
ins B \chord{H7}aybachtal: Horridoh \chord{E}! Horr \chord{A}id \chord{E}oh! :/
|
||||
\chord{E}Rote \chord{A}Ritterscharen \chord{H7}stürmen die Bastion, \chord{E}/ blaue \\
|
||||
Knappen \chord{A}waren wir \chord{H7}auf Waldeck schon. / \\
|
||||
/: \chord{A}Frei von aller \chord{E}Fron \chord{A}klingt´s von der \chord{E}Bastion / \\
|
||||
ins \chord{H7}Baybachtal: \chord{E}Horridoh! \chord{E}Horridoh! :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user