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,11 +7,11 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wir li \chord{G}eben die Stürme, die brau \chord{D}senden Wog \chord{G}en, / \\
|
||||
der e \chord{C}iskalten Wi \chord{G}nde rau \chord{D7}es Gesicht \chord{G}. / Wir sind \\
|
||||
schon der Meere so viel \chord{D}e gezogen \chord{G}, / und den \chord{C}noch \\
|
||||
s \chord{G}ank unsere Fah \chord{D7}ne nich \chord{G}t. / Hei-o \chord{G}, hei-o, \chord{D7}hei-o, \\
|
||||
h \chord{G}ei-o, hei-o, \chord{C}he \chord{G}i- \chord{D7}o, hei-o, hei \chord{G}-o.
|
||||
Wir \chord{G}lieben die Stürme, die \chord{D}brausenden \chord{G}Wogen, / \\
|
||||
der \chord{C}eiskalten \chord{G}Winde \chord{D7}raues \chord{G}Gesicht. / Wir sind \\
|
||||
schon der Meere so \chord{D}viele \chord{G}gezogen, / und \chord{C}dennoch \\
|
||||
\chord{G}sank unsere \chord{D7}Fahne \chord{G}nicht. / \chord{G}Hei-o, hei-o, \chord{D7}hei-o, \\
|
||||
\chord{G}hei-o, hei-o, \chord{D7}hei-o, hei-o, \chord{G}hei-o.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user