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}
\chord{E}In des Waldes grüner Laube \\
saß ein J \chord{H7}äger mit seiner Bra \chord{E}ut. \\
/: Saß ein \chord{H7}Jäger, mit seiner L \chord{E}ola, \\
in der L \chord{A}aube, g \chord{H7}anz all \chord{E}ein. :/
saß ein \chord{H7}Jäger mit seiner \chord{E}Braut. \\
/: Saß ein \chord{H7}Jäger, mit seiner \chord{E}Lola, \\
in der \chord{A}Laube, \chord{H7}ganz \chord{E}allein. :/
\end{verse}
\begin{verse}