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

@@ -18,15 +18,15 @@
% Codex]
\begin{verse}
Wir wo \chord{A}llen zu Land ausfa \chord{D}hr \chord{A}en \\
wohl über die Flur \chord{E}en \chord{A} weit, \\
a \chord{D}ufwärts \chord{E}zu den k \chord{A}laren \\
Gipfeln der E \chord{E}insamk \chord{A}eit. \\
Wollen la \chord{D}uschen, woher der St \chord{h}urmwind braust, \\
Wir \chord{A}wollen zu Land \chord{A}ausfahren \\
wohl über die \chord{E}Fluren \chord{A}weit, \\
\chord{D}aufwärts \chord{E}zu den \chord{A}klaren \\
Gipfeln der \chord{A}Einsamkeit. \\
Wollen \chord{D}lauschen, woher der \chord{h}Sturmwind braust, \\
E(7) A \\
schauen, was hinter den Bergen haust. \\
Und wie die Welt so w \chord{D}eit. \\
Und wi \chord{A}e die We \chord{E}lt so w \chord{A}eit.
Und wie die Welt so \chord{D}weit. \\
Und \chord{A}wie die \chord{E}Welt so \chord{A}weit.
\end{verse}
\begin{verse}