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,10 +7,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Am Br \chord{D}unnen vor dem Tore, da s \chord{A}teht ein Lindenb \chord{D}aum. \\
|
||||
Ich t \chord{D}räumt in seinem Schatten so m \chord{A}anchen süßen Tr \chord{D}aum. \\
|
||||
Ich schn \chord{A}itt in seine R \chord{D}inde so m \chord{G}anches liebe W \chord{A}ort. \\
|
||||
Es \chord{A7}zog in Freud und Le \chord{D}iden /: zu ihm mich i \chord{A}mmer f \chord{D}ort. :/
|
||||
Am \chord{D}Brunnen vor dem Tore, da \chord{A}steht ein \chord{D}Lindenbaum. \\
|
||||
Ich \chord{D}träumt in seinem Schatten so \chord{A}manchen süßen \chord{D}Traum. \\
|
||||
Ich \chord{A}schnitt in seine \chord{D}Rinde so \chord{G}manches liebe \chord{A}Wort. \\
|
||||
Es \chord{A7}zog in Freud und \chord{D}Leiden /: zu ihm mich \chord{A}immer \chord{D}fort. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user