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,17 +7,17 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Kl \chord{e}ingt ein Lied durch die \chord{D}Nacht, klingt so sc \chord{G}hrecklich \\
|
||||
ve \chord{D}rtraut, \\
|
||||
voller Se \chord{e}hnsucht doch l \chord{h}üstern, mordg \chord{C}ierig u \chord{D}nd \chord{e} roh. \\
|
||||
Alle Ratten an B \chord{D}ord eh der M \chord{G}orgen uns \chord{H7}graut. \\
|
||||
Ihr Ge \chord{a}suchten, Verruchten, auf ewig Verf \chord{e}luchten. \\
|
||||
\chord{D}Und schon b \chord{G}ald schallt e \chord{e}s \chord{G}laut: Pir \chord{H7}aten Johoo!
|
||||
\chord{e}Klingt ein Lied durch die \chord{D}Nacht, klingt so \chord{G}schrecklich \\
|
||||
\chord{D}vertraut, \\
|
||||
voller \chord{e}Sehnsucht doch \chord{h}lüstern, \chord{C}mordgierig \chord{D}und \chord{e}roh. \\
|
||||
Alle Ratten an \chord{D}Bord eh der \chord{G}Morgen uns \chord{H7}graut. \\
|
||||
Ihr \chord{a}Gesuchten, Verruchten, auf ewig \chord{e}Verfluchten. \\
|
||||
\chord{D}Und schon \chord{G}bald schallt \chord{e}es \chord{G}laut: \chord{H7}Piraten Johoo!
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref.: \\
|
||||
/: J \chord{e}o \chord{C}hoo, g \chord{G}rüßet uns f \chord{D}ro \chord{a}h, \chord{e} Johoo, f \chord{D}ern Falad \chord{e}o! \chord{e}: \chord{C}/
|
||||
/: \chord{C}Johoo, \chord{G}grüßet uns \chord{a}froh, \chord{e}Johoo, \chord{D}fern \chord{C}Falado!:/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
@@ -33,12 +33,12 @@ Ref.: Johoo,...
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
\chord{e}Auf Krämerseel \chord{C}en, Bankiers \chord{D} und Kriegshelde \chord{A}n. Zum \\
|
||||
h \chord{e}öfischen Ta \chord{G}nz - wer nicht sch \chord{D}warz trägt, ist b \chord{A}unt. \\
|
||||
Ein fr \chord{e}eies Ge \chord{C}sicht lacht im R \chord{G}hythmus der Mess \chord{A}er. \\
|
||||
Riecht nach bren \chord{F}nenden Planken, Schweiß, Meersalz, \\
|
||||
Fisch und mit Ah \chord{G}oi, einem Kuss, einem Fluch und mit \\
|
||||
Glück geht es dre \chord{H7}imal zum Teufel und dreimal zurück.
|
||||
\chord{e}Auf \chord{C}Krämerseelen, Bankiers \chord{D}und \chord{A}Kriegshelden. Zum \\
|
||||
\chord{e}höfischen \chord{G}Tanz - wer nicht \chord{D}schwarz trägt, ist \chord{A}bunt. \\
|
||||
Ein \chord{e}freies \chord{C}Gesicht lacht im \chord{G}Rhythmus der \chord{A}Messer. \\
|
||||
Riecht nach \chord{F}brennenden Planken, Schweiß, Meersalz, \\
|
||||
Fisch und mit \chord{G}Ahoi, einem Kuss, einem Fluch und mit \\
|
||||
Glück geht es \chord{H7}dreimal zum Teufel und dreimal zurück.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
@@ -54,7 +54,7 @@ Ref.: Johoo ...
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
\chord{D}Und zum \chord{G}Ende tr \chord{e}inkt \chord{G}aus -- Pir \chord{H7}aten, Johoo!
|
||||
\chord{D}Und zum \chord{G}Ende \chord{e}trinkt \chord{G}aus -- \chord{H7}Piraten, Johoo!
|
||||
\end{verse}
|
||||
|
||||
\end{song}
|
||||
|
||||
Reference in New Issue
Block a user