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,9 +5,9 @@
}
\begin{verse}
Wem G \chord{C}ott will re \chord{F}chte Gunst erw \chord{C}eisen, den sc \chord{G7}hickt er in die \\
\chord{C}weite W \chord{G}elt; dem \chord{G7}will er s \chord{C}eine Wunder w \chord{F}ei \chord{C}sen; /: in B \chord{a}erg \\
und Tal und \chord{G}Strom und F \chord{C}eld. :/
Wem \chord{C}Gott will \chord{F}rechte Gunst \chord{C}erweisen, den \chord{G7}schickt er in die \\
\chord{C}weite \chord{G}Welt; dem \chord{G7}will er \chord{C}seine Wunder \chord{C}weisen; /: in \chord{a}Berg \\
und Tal und \chord{G}Strom und \chord{C}Feld. :/
\end{verse}
\begin{verse}