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:
@@ -15,11 +15,11 @@
|
||||
% gesamtdeutschen Gebietes halbiert, von 26 auf 13 Millionen.
|
||||
|
||||
\begin{verse}
|
||||
Es i \chord{d}st ein Schn \chord{C}itter, he \chord{a}ißt der T \chord{d}od, / hat Gew \chord{F}alt \\
|
||||
vom gro \chord{C}ßen Got \chord{F}t. / Heut wetzt er das Messer, es \\
|
||||
schne \chord{C}idt schon viel besser, / bald wir \chord{B}d er drein \\
|
||||
schneiden, wir müs \chord{A7}sen´s nur leiden. / Hüt’ \chord{d}dich \\
|
||||
schön´s Blüm \chord{C}el \chord{d}ein.
|
||||
Es \chord{d}ist ein \chord{C}Schnitter, \chord{a}heißt der \chord{d}Tod, / hat \chord{F}Gewalt \\
|
||||
vom \chord{C}großen \chord{F}Gott. / Heut wetzt er das Messer, es \\
|
||||
\chord{C}schneidt schon viel besser, / bald \chord{B}wird er drein \\
|
||||
schneiden, wir \chord{A7}müssen´s nur leiden. / Hüt’ \chord{d}dich \\
|
||||
schön´s \chord{d}Blümelein.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user