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:
@@ -18,20 +18,20 @@
|
||||
% übrig.
|
||||
|
||||
\begin{verse}
|
||||
H \chord{e}ei, wie vorn der F \chord{H7}etzen fliegt, \\
|
||||
hei, w \chord{e}ie er sich im W \chord{H7}inde wiegt \\
|
||||
\chord{a}ohne Ra \chord{e}st und o \chord{H7}hne \chord{e} Ruh. \\
|
||||
So wiegen wir mit fr \chord{H7}eiem Sinn \\
|
||||
uns ü \chord{e}ber tausend St \chord{H7}raßen hin, \\
|
||||
\chord{a}ohne E \chord{e}nde, i \chord{H7}mmerz \chord{e}u.
|
||||
\chord{e}Hei, wie vorn der \chord{H7}Fetzen fliegt, \\
|
||||
hei, \chord{e}wie er sich im \chord{H7}Winde wiegt \\
|
||||
\chord{a}ohne \chord{e}Rast und \chord{H7}ohne \chord{e}Ruh. \\
|
||||
So wiegen wir mit \chord{H7}freiem Sinn \\
|
||||
uns \chord{e}über tausend \chord{H7}Straßen hin, \\
|
||||
\chord{a}ohne \chord{e}Ende, \chord{e}immerzu.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref: \\
|
||||
B \chord{C}ündische Va \chord{G}ganten \\
|
||||
ti \chord{D}ppeln in die Welt. Hey - t \chord{G}ippeln in die Welt. \\
|
||||
B \chord{C}ündische Vaga \chord{G}nten \\
|
||||
tip \chord{D}peln in die Welt - Ho o Ay \chord{G}en!
|
||||
\chord{C}Bündische \chord{G}Vaganten \\
|
||||
\chord{D}tippeln in die Welt. Hey - \chord{G}tippeln in die Welt. \\
|
||||
\chord{C}Bündische \chord{G}Vaganten \\
|
||||
\chord{D}tippeln in die Welt - Ho o \chord{G}Ayen!
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user