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

@@ -6,15 +6,15 @@
}
\begin{verse}
Wir r \chord{E}ufen \chord{H7}zu dir, M \chord{E}ichael, du Fürst des H \chord{H7}immelshe \chord{E}ers. \\
Du f \chord{E}ührst den W \chord{H7}eg uns s \chord{E}tets heran, bist Schild uns, \\
Sch \chord{H7}utz und W \chord{E7}ehr.
Wir \chord{E}rufen \chord{H7}zu dir, \chord{E}Michael, du Fürst des \chord{E}Himmelsheers. \\
Du \chord{E}führst den \chord{H7}Weg uns \chord{E}stets heran, bist Schild uns, \\
\chord{H7}Schutz und \chord{E7}Wehr.
\end{verse}
\begin{verse}
Ref.: \\
Du gr \chord{A}oßer F \chord{E}ürst, mein \chord{A}Bannerh \chord{E}err, \\
zeig u \chord{A}ns den W \chord{H7}eg zu Ch \chord{E}ristus, St. \chord{H7}Mic \chord{E}hael!
Du \chord{A}großer \chord{E}Fürst, mein \chord{E}Bannerherr, \\
zeig \chord{A}uns den \chord{H7}Weg zu \chord{E}Christus, St. \chord{E}Michael!
\end{verse}
\begin{verse}