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

@@ -5,10 +5,10 @@
}
\begin{verse}
Ref: Nun Freunde, la \chord{E}sst es mich e \chord{A}inmal s \chord{E}agen. \\
Gut wieder h \chord{H7}ier zu sein - g \chord{E}ut eu \chord{H7}ch zu se \chord{E}hn. \\
Mit meinen \chord{E}nschen, mit m \chord{A}einen F \chord{E}ragen \\
fühl ich mich ni \chord{H7}cht allein. Gut euch zu se \chord{E}hn.
Ref: Nun Freunde, \chord{E}lasst es mich \chord{A}einmal \chord{E}sagen. \\
Gut wieder \chord{H7}hier zu sein - \chord{E}gut \chord{H7}euch zu \chord{E}sehn. \\
Mit meinen \chord{E}nschen, mit \chord{A}meinen \chord{E}Fragen \\
fühl ich mich \chord{H7}nicht allein. Gut euch zu \chord{E}sehn.
\end{verse}
\begin{verse}