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:
@@ -5,16 +5,16 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Ich kann dich se \chord{e}hen, doch nicht verste \chord{D}hen. \\
|
||||
Aber ich s \chord{C}pür‘, dein He \chord{D}rz ist schw \chord{e}er. \\
|
||||
Wenn du nicht rede \chord{e}st, kann ich‘s nicht a \chord{D}hnen. \\
|
||||
Der Ko \chord{H7}pf ist voll, die Worte l \chord{e}eer.
|
||||
Ich kann dich \chord{e}sehen, doch nicht \chord{D}verstehen. \\
|
||||
Aber ich \chord{C}spür‘, dein \chord{D}Herz ist \chord{e}schwer. \\
|
||||
Wenn du nicht \chord{e}redest, kann ich‘s nicht \chord{D}ahnen. \\
|
||||
Der \chord{H7}Kopf ist voll, die Worte \chord{e}leer.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref: \\
|
||||
Ich sage ni \chord{G}cht: Red \chord{D}e! Nur w \chord{e}as man von Dir hören wi \chord{H7}ll. \\
|
||||
Es gibt so v \chord{G}iel‘ We \chord{D}ge \chord{e}. Sag was! Dein M \chord{H7}und \chord{D} bleibt s \chord{e}till.
|
||||
Ich sage \chord{G}nicht: \chord{D}Rede! Nur \chord{e}was man von Dir hören \chord{H7}will. \\
|
||||
Es gibt so \chord{G}viel‘ \chord{e}Wege. Sag was! Dein \chord{H7}Mund \chord{D}bleibt \chord{e}still.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user