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:
@@ -9,14 +9,14 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Das Le \chord{D}ben ist ein Wür \chord{G}felspiel, \\
|
||||
wir w \chord{A}ürfeln alle T \chord{D}age, \\
|
||||
dem ei \chord{D}nen schenkt das Leb \chord{G}en viel, \\
|
||||
dem an \chord{A7}dern Müh und Plage \chord{D}. \\
|
||||
Das \chord{D}Leben ist ein \chord{G}Würfelspiel, \\
|
||||
wir \chord{A}würfeln alle \chord{D}Tage, \\
|
||||
dem \chord{D}einen schenkt das \chord{G}Leben viel, \\
|
||||
dem \chord{A7}andern Müh und \chord{D}Plage. \\
|
||||
Ref.: \\
|
||||
/: Drum frisch \chord{D}auf, Kameraden, den Be \chord{G}cher zur Hand, \\
|
||||
zwei Se \chord{D}chsen auf den Tis \chord{A}ch, ja auf den Tisch: \\
|
||||
die e \chord{D}ine für mein V \chord{G}aterland, die \chord{A7}andere für m \chord{D}ich. :/
|
||||
/: Drum frisch \chord{D}auf, Kameraden, den \chord{G}Becher zur Hand, \\
|
||||
zwei \chord{D}Sechsen auf den \chord{A}Tisch, ja auf den Tisch: \\
|
||||
die \chord{D}eine für mein \chord{G}Vaterland, die \chord{A7}andere für \chord{D}mich. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user