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:
@@ -22,11 +22,11 @@
|
||||
% bei.
|
||||
|
||||
\begin{verse}
|
||||
A \chord{G}nd‘re, die das Land so sehr nicht l \chord{D}iebten, \\
|
||||
wa \chord{e}r‘n von Anfang \chord{C}an gewillt zu g \chord{G}eh‘n. \\
|
||||
I \chord{e}hnen - manche s \chord{C}ind schon fort - ist‘s \chord{G}besser, \\
|
||||
ich doch müsste mit dem eig‘nen Mess \chord{D}er, \\
|
||||
me \chord{e}ine Wurzeln au \chord{C}s der Er \chord{D}de dre \chord{G}h‘n.
|
||||
\chord{G}And‘re, die das Land so sehr nicht \chord{D}liebten, \\
|
||||
\chord{e}war‘n von Anfang \chord{C}an gewillt zu \chord{G}geh‘n. \\
|
||||
\chord{e}Ihnen - manche \chord{C}sind schon fort - ist‘s \chord{G}besser, \\
|
||||
ich doch müsste mit dem eig‘nen \chord{D}Messer, \\
|
||||
\chord{e}meine Wurzeln \chord{C}aus der \chord{D}Erde \chord{G}dreh‘n.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user