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

@@ -8,22 +8,22 @@
}
\begin{verse}
Eines M \chord{e}orgens ging ich so f \chord{G}ür mich \chord{D}hin, \\
im J \chord{e}uli-Sonnensch \chord{D}ein, \\
den Wi \chord{e}esenpfad, den H \chord{G}ang hin \chord{D}ab, \\
kam ein sch \chord{e}önes M \chord{D}ägdel \chord{e}ein. \\
Und sie l \chord{G}acht mich an \\
und ich f \chord{D}reu mich dran, \\
und bew \chord{e}und´re ihr nussbraunes H \chord{D}aar. \\
Einer l \chord{e}ockenden Fee kam ich k \chord{G}aum in die N \chord{D}äh, \\
ganz ver \chord{e}wirrt von dem n \chord{D}ussbraunen H \chord{e}aar.
Eines \chord{e}Morgens ging ich so \chord{G}für mich \chord{D}hin, \\
im \chord{D}Juli-Sonnenschein, \\
den \chord{e}Wiesenpfad, den \chord{G}Hang \chord{D}hinab, \\
kam ein \chord{e}schönes \chord{e}Mägdelein. \\
Und sie \chord{G}lacht mich an \\
und ich \chord{D}freu mich dran, \\
und \chord{e}bewund´re ihr nussbraunes \chord{D}Haar. \\
Einer \chord{e}lockenden Fee kam ich \chord{G}kaum in die \chord{D}Näh, \\
ganz \chord{e}verwirrt von dem \chord{D}nussbraunen \chord{e}Haar.
\end{verse}
\begin{verse}
/: Oh, from Ba \chord{G}ntry Bay up to Der \chord{D}ry Quay \\
and from G \chord{e}alway to Dublin \chord{D}town, \\
no m \chord{e}aid I´ve seen like this b \chord{G}rown coll \chord{D}een, \\
that I m \chord{e}et in the co \chord{D}unty do \chord{e}wn. :/
/: Oh, from \chord{G}Bantry Bay up to \chord{D}Derry Quay \\
and from \chord{e}Galway to \chord{D}Dublintown, \\
no \chord{e}maid I´ve seen like this \chord{G}brown \chord{D}colleen, \\
that I \chord{e}met in the \chord{D}county \chord{e}down. :/
\end{verse}
\begin{verse}