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

@@ -7,10 +7,10 @@
}
\begin{verse}
N \chord{a}o you wont get me down underground in your \chord{G} mines, \\
Aw \chord{F}ay from the tr \chord{C}ees and the fl \chord{G}owers so fi \chord{C}ne. \\
D \chord{F}own in the d \chord{C}ark where the s \chord{G}un never sh \chord{E}in \chord{E7}es. \\
No you wo \chord{a}nt get me do \chord{G}wn in your mine \chord{a}s.
\chord{a}No you wont get me down underground in your \chord{G}mines, \\
\chord{F}Away from the \chord{C}trees and the \chord{G}flowers so \chord{C}fine. \\
\chord{F}Down in the \chord{C}dark where the \chord{G}sun never \chord{E7}shines. \\
No you \chord{a}wont get me \chord{G}down in your \chord{a}mines.
\end{verse}
\begin{verse}