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

@@ -14,16 +14,16 @@
% nahtegal" (Nhd.: Tandaradei, schön sang die Nachtigall).
\begin{verse}
\chord{e}dchen, Männer, Meister wert, \\
k \chord{D}ommt in diese R \chord{e}unde!
\chord{e}dchen, Männer, Meister wert, \\
\chord{D}kommt in diese \chord{e}Runde!
\end{verse}
\begin{verse}
Keinem sei ein Platz verwehrt, \\
w \chord{D}ie es Brauch im Bu \chord{e}nde. \\
\chord{D}wie es Brauch im \chord{e}Bunde. \\
Ref.: \\
/: T \chord{e}anderadei, \chord{G}tanderadei, \\
schön singt die Na \chord{D}chtig \chord{e}all. :/
/: \chord{e}Tanderadei, \chord{G}tanderadei, \\
schön singt die \chord{e}Nachtigall. :/
\end{verse}
\begin{verse}