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:
@@ -4,12 +4,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Dass das \chord{D}Bier in meiner Hand alko \chord{Dmaj7}holfrei ist, ist \chord{D7}Teil einer \\
|
||||
Demonstra \chord{G}ti \chord{g}on gegen die Dramati \chord{D}sierung meiner \\
|
||||
\chord{E}Lebenssitua \chord{A}tion. Doch a \chord{D}ndererseits sagt man, das \\
|
||||
\chord{Dmaj7}Schweinesystem sei auf nü \chord{D7}chterne Lohnsklaven sc \chord{G}harf, \\
|
||||
darum \chord{g}steht da auch noch ein W \chord{D}hiskey, weil man de \chord{e}m \\
|
||||
niemals n \chord{A}achgeben d \chord{D}ar \chord{D7}f.
|
||||
Dass das \chord{D}Bier in meiner Hand \chord{Dmaj7}alkoholfrei ist, ist \chord{D7}Teil einer \\
|
||||
\chord{g}Demonstration gegen die \chord{D}Dramatisierung meiner \\
|
||||
\chord{A}Lebenssituation. Doch \chord{D}andererseits sagt man, das \\
|
||||
\chord{Dmaj7}Schweinesystem sei auf \chord{D7}nüchterne Lohnsklaven \chord{G}scharf, \\
|
||||
darum \chord{g}steht da auch noch ein \chord{D}Whiskey, weil man \chord{e}dem \\
|
||||
niemals \chord{A}nachgeben \chord{D7}darf.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
@@ -18,7 +18,7 @@ G fis h fis e A7 \\
|
||||
Kaffee und Karin, Birgit und Bier. Jammern und picheln im \\
|
||||
DD7 G fis h fis \\
|
||||
Gartencafé. Worte und Weißwein, Torte und Tier. \\
|
||||
U \chord{e}nd nur wenn ich la \chord{A7}chen muss, u \chord{e}nd nur wenn ich l \chord{A7}achen \\
|
||||
\chord{e}Und nur wenn ich \chord{A7}lachen muss, \chord{e}und nur wenn ich \chord{A7}lachen \\
|
||||
muss, tut es noch \chord{D}weh.
|
||||
\end{verse}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user