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:
@@ -6,13 +6,13 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Drei T \chord{C}ropfen Blut im w \chord{F}eißen Schne \chord{C}e \\
|
||||
und t \chord{a}räumend steht der re \chord{d}ine \chord{a}Tor, \\
|
||||
geb \chord{G}annt in s \chord{d}einem Weh \chord{a}.
|
||||
Drei \chord{C}Tropfen Blut im \chord{F}weißen \chord{C}Schnee \\
|
||||
und \chord{a}träumend steht der \chord{d}reine \chord{a}Tor, \\
|
||||
\chord{G}gebannt in \chord{d}seinem \chord{a}Weh.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Oh m \chord{e}anda liet, oh m \chord{G}anda liet, m \chord{e}in Ges \chord{G}elle c \chord{D}humet n \chord{e}iet.
|
||||
Oh \chord{e}manda liet, oh \chord{G}manda liet, \chord{e}min \chord{G}Geselle \chord{D}chumet \chord{e}niet.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user