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:
@@ -9,10 +9,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die Maz \chord{e}ur \chord{D}ka \chord{G} lockt, \chord{D}si \chord{G}e fährt uns in die G \chord{H7}lieder / jeder \\
|
||||
B \chord{e}ursch sp \chord{D}ringt \chord{G}au \chord{D}f \chord{G}und packt sein Lieb´ ums M \chord{H7}ieder. / \\
|
||||
/: T \chord{G}anzen wir, b \chord{D}is alleine w \chord{e}eiter wirbeln \chord{H7}Rock und Beine, \\
|
||||
falalala \chord{e}la \chord{H7} la \chord{e} la la la lala \chord{H7}Falalala \chord{e}la \chord{H7} la \chord{e} la la la. :/
|
||||
Die \chord{D}Mazurka \chord{G}lockt, \chord{G}sie fährt uns in die \chord{H7}Glieder / jeder \\
|
||||
\chord{e}Bursch \chord{D}springt \chord{D}auf \chord{G}und packt sein Lieb´ ums \chord{H7}Mieder. / \\
|
||||
/: \chord{G}Tanzen wir, \chord{D}bis alleine \chord{e}weiter wirbeln \chord{H7}Rock und Beine, \\
|
||||
falalala \chord{e}la \chord{H7}la \chord{e}la la la lala \chord{H7}Falalala \chord{e}la \chord{H7}la \chord{e}la la la. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user