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,11 +7,11 @@
\begin{verse}
Am \chord{a}alten Hafen ein \chord{d}Lichtlein noch brennt, \\
die ge \chord{E}sunk'nen Gestalten mit N \chord{a}amen man nicht kennt. \\
die \chord{E}gesunk'nen Gestalten mit \chord{a}Namen man nicht kennt. \\
Raue Kehle letztes \chord{d}Lied noch nicht sang, \\
am H \chord{E}olztisch, der letzte \chord{a}Heller noch nicht sprang. \\
|: Unser Ruf eilt uns vora \chord{d}us: \\
Der T \chord{E}od kann warten auf uns Pi \chord{a}raten! :|
am \chord{E}Holztisch, der letzte \chord{a}Heller noch nicht sprang. \\
|: Unser Ruf eilt uns \chord{d}voraus: \\
Der \chord{E}Tod kann warten auf uns \chord{a}Piraten! :|
\end{verse}
\begin{verse}