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:
@@ -14,10 +14,10 @@
|
||||
% von unseren Fahrten nicht mehr nach Hause kehren.
|
||||
|
||||
\begin{verse}
|
||||
/: Die r \chord{E}oten F \chord{H7}ahnen bre \chord{E}nnen im Wind / \\
|
||||
und die Lilie dar \chord{H7}auf ist mein H \chord{E}erz. :/ \\
|
||||
/: Und a \chord{A}lle, die mit uns gez \chord{E}ogen sind, \\
|
||||
wollen nie me \chord{H7}hr zurüc \chord{E}k. :/
|
||||
/: Die \chord{E}roten \chord{H7}Fahnen \chord{E}brennen im Wind / \\
|
||||
und die Lilie \chord{H7}darauf ist mein \chord{E}Herz. :/ \\
|
||||
/: Und \chord{A}alle, die mit uns \chord{E}gezogen sind, \\
|
||||
wollen nie \chord{H7}mehr \chord{E}zurück. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user