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:
@@ -10,10 +10,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wir f \chord{a}ahren übers weite Meer, \\
|
||||
hu \chord{F}llabaloo bal \chord{a}ay, h \chord{F}ullabaloo baloo bal \chord{a}ay. \\
|
||||
Die He \chord{a}imat sieht uns nim \chord{E}mermehr. \\
|
||||
/: Hullaba \chord{E7}loo ba \chord{a}lay. :/
|
||||
Wir \chord{a}fahren übers weite Meer, \\
|
||||
\chord{F}hullabaloo \chord{a}balay, \chord{F}hullabaloo baloo \chord{a}balay. \\
|
||||
Die \chord{a}Heimat sieht uns \chord{E}nimmermehr. \\
|
||||
/: \chord{E7}Hullabaloo \chord{a}balay. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user