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,11 +8,11 @@
}
\begin{verse}
Stu \chord{e}rm bricht los aus Wol \chord{D}kentür \chord{G}men. / Lasst ihn r \chord{e}asen, \\
l \chord{D}asst ihn st \chord{H7}ürmen, / soll das Schw \chord{G}ache \chord{C}er ver \chord{D7}wehen, / \\
lässt er d \chord{a}och das Starke ste \chord{H7}hen! \\
/: \chord{G}Wie des Don \chord{e}ners Hamm \chord{D}er bebt,/ \chord{G} wie der Blit \chord{D}z im \\
A \chord{e}uge lebt.:/
\chord{e}Sturm bricht los aus \chord{G}Wolkentürmen. / Lasst ihn \chord{e}rasen, \\
\chord{D}lasst ihn \chord{H7}stürmen, / soll das \chord{G}Schwache \chord{C}er \chord{D7}verwehen, / \\
lässt er \chord{a}doch das Starke \chord{H7}stehen! \\
\chord{G}/:Wie des \chord{e}Donners \chord{D}Hammer bebt,/ \chord{G}wie der \chord{D}Blitz im \\
\chord{e}Auge lebt.:/
\end{verse}
\begin{verse}