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,9 +7,9 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wie k \chord{d}ommt´s, dass du so tra \chord{F}urig bist / und \chord{g}gar nicht \\
|
||||
einmal l \chord{d}achst?/ Ich s \chord{C}eh´s dir an den A \chord{F}ugen an,/ dass \\
|
||||
\chord{A}du geweinet ha \chord{d}st, / dass d \chord{A}u geweinet has \chord{d}t.
|
||||
Wie \chord{d}kommt´s, dass du so \chord{F}traurig bist / und \chord{g}gar nicht \\
|
||||
einmal \chord{d}lachst?/ Ich \chord{C}seh´s dir an den \chord{F}Augen an,/ dass \\
|
||||
\chord{A}du geweinet \chord{d}hast, / dass \chord{A}du geweinet \chord{d}hast.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user