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:
@@ -10,12 +10,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Fr \chord{e}ühling dr \chord{D}in \chord{G}gt \chord{D} i \chord{G}n den Norden, \\
|
||||
Berg und T \chord{D}al sind ein Bl \chord{C}ütenm \chord{D}eer gew \chord{e}orden. \\
|
||||
L \chord{D}etztes Eis treibt a \chord{G}uf dem Fluss, \\
|
||||
V \chord{C}ogelwerben bietet d \chord{G}ar \chord{C} die Geburt wie jedes J \chord{G}ahr. \\
|
||||
\chord{C}Elche st \chord{G}ehn´ in h \chord{a}ellem G \chord{e}rün, \\
|
||||
im Fr \chord{C}ühling h \chord{D}och im N \chord{e}orden.
|
||||
\chord{e}Frühling \chord{G}dringt \chord{G}in den Norden, \\
|
||||
Berg und \chord{D}Tal sind ein \chord{D}Blütenmeer \chord{e}geworden. \\
|
||||
\chord{D}Letztes Eis treibt \chord{G}auf dem Fluss, \\
|
||||
\chord{C}Vogelwerben bietet \chord{G}dar \chord{C}die Geburt wie jedes \chord{G}Jahr. \\
|
||||
\chord{C}Elche \chord{G}stehn´ in \chord{a}hellem \chord{e}Grün, \\
|
||||
im \chord{C}Frühling \chord{D}hoch im \chord{e}Norden.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user