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:
@@ -7,12 +7,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Der Pa \chord{C}pa \chord{a}gei ein Vo \chord{d}gel is \chord{G7}t, rot, g \chord{C}elb und gr \chord{a}ün ge \chord{d}tupft, a \chord{G7}ha \\
|
||||
er w \chord{C}ohnt gern a \chord{a}uf dem Gum \chord{d}mibaum, \chord{G7} und wenn er \chord{C}dort \\
|
||||
so h \chord{d}upft, dann s \chord{G7}ingt er: \\
|
||||
Der \chord{a}Papagei ein \chord{d}Vogel \chord{G7}ist, rot, \chord{C}gelb und \chord{a}grün \chord{d}getupft, \chord{G7}aha \\
|
||||
er \chord{C}wohnt gern \chord{a}auf dem \chord{d}Gummibaum, \chord{G7}und wenn er \chord{C}dort \\
|
||||
so \chord{d}hupft, dann \chord{G7}singt er: \\
|
||||
Ref.: \\
|
||||
|: \chord{C}Inge dinge di \chord{a}nge, u \chord{d}se wuse \chord{G7}wuse, s \chord{C}aba daba d \chord{a}aba, \\
|
||||
d \chord{d}ei juch \chord{G7}ei! :|
|
||||
\chord{C}|:Inge dinge \chord{a}dinge, \chord{d}use wuse \chord{G7}wuse, \chord{C}saba daba \chord{a}daba, \\
|
||||
\chord{d}dei \chord{G7}juchei! :|
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user