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:
shahondin1624
2026-04-02 16:36:06 +02:00
parent d875fd225b
commit 7b99778f67
295 changed files with 1804 additions and 1782 deletions

View File

@@ -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}