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,14 +6,14 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
\chord{G}Sausende Steine, \chord{C}eiskalter W \chord{G}ind, beißt in die nackten Beine, \\
|
||||
Die A \chord{D7}ugen sind halb bli \chord{G}nd.
|
||||
\chord{G}Sausende Steine, \chord{C}eiskalter \chord{G}Wind, beißt in die nackten Beine, \\
|
||||
Die \chord{D7}Augen sind halb \chord{G}blind.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref: \\
|
||||
/: H \chord{C}eulender Motor, Bar \chord{G}ett schief überm Ohr, w \chord{D7}ild weh‘n die \\
|
||||
H \chord{G}aare, fl \chord{D7}attern in den W \chord{G}ind. :/
|
||||
/: \chord{C}Heulender Motor, \chord{G}Barett schief überm Ohr, \chord{D7}wild weh‘n die \\
|
||||
\chord{G}Haare, \chord{D7}flattern in den \chord{G}Wind. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user