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:
@@ -6,10 +6,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
\chord{a}Staub, S \chord{F}taub \chord{G}und Steppenl \chord{a}and \\
|
||||
zwei alte \chord{F}Mulis \chord{G}am Wegesr \chord{a}and, \\
|
||||
zieh‘n den \chord{F}Wagen \chord{G} aus der \chord{d}Stadt \\
|
||||
weiter nach O \chord{a}sten d \chord{E}reht sich das \chord{a}Rad.
|
||||
\chord{a}Staub, \chord{F}Staub \chord{G}und \chord{a}Steppenland \\
|
||||
zwei alte \chord{F}Mulis \chord{G}am \chord{a}Wegesrand, \\
|
||||
zieh‘n den \chord{F}Wagen \chord{G}aus der \chord{d}Stadt \\
|
||||
weiter nach \chord{a}Osten \chord{E}dreht sich das \chord{a}Rad.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user