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:
@@ -5,10 +5,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Ein kl \chord{C}einer Matr \chord{F}o \chord{C}se um \chord{G7}segelte die W \chord{C}elt. \\
|
||||
Er liebte ein M \chord{F}äd \chord{C}chen, das h \chord{G7}atte gar kein \chord{C}Geld. \\
|
||||
Das M \chord{G7}ädchen muss st \chord{D}erben und wer war schuld da \chord{G}ran? \\
|
||||
Ein k \chord{C}leiner Matr \chord{F}o \chord{C}se in \chord{G7}seinem Liebesw \chord{C}ahn.
|
||||
Ein \chord{C}kleiner \chord{C}Matrose \chord{G7}umsegelte die \chord{C}Welt. \\
|
||||
Er liebte ein \chord{C}Mädchen, das \chord{G7}hatte gar kein \chord{C}Geld. \\
|
||||
Das \chord{G7}Mädchen muss \chord{D}sterben und wer war schuld \chord{G}daran? \\
|
||||
Ein \chord{C}kleiner \chord{C}Matrose in \chord{G7}seinem \chord{C}Liebeswahn.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user