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}
|
||||
H \chord{D}ell strahlt die So \chord{h}nne, der T \chord{e}ag ist erw \chord{A}acht und die \\
|
||||
V \chord{D}ögel, sie si \chord{h}ngen so f \chord{G}röhlich nach der Na \chord{A}cht. \\
|
||||
L \chord{D}icht leuchtet au \chord{h}f und durchfl \chord{e}utet die W \chord{A}elt, die N \chord{D}atur \\
|
||||
spiegelt Gl \chord{h}anz und das Du \chord{G}nkel ist erhe \chord{A}llt.
|
||||
\chord{D}Hell strahlt die \chord{h}Sonne, der \chord{e}Tag ist \chord{A}erwacht und die \\
|
||||
\chord{D}Vögel, sie \chord{h}singen so \chord{G}fröhlich nach der \chord{A}Nacht. \\
|
||||
\chord{D}Licht leuchtet \chord{h}auf und \chord{e}durchflutet die \chord{A}Welt, die \chord{D}Natur \\
|
||||
spiegelt \chord{h}Glanz und das \chord{G}Dunkel ist \chord{A}erhellt.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user