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

@@ -29,16 +29,16 @@
% ders nach 1933 zur Identifikation anboten.
\begin{verse}
Na \chord{h}chts steht Hunger sta \chord{e}rr in unserm Tra \chord{h}um, \\
\chord{h}Nachts steht Hunger \chord{e}starr in unserm \chord{h}Traum, \\
e h Fis h \\
tags die Schüsse knallen her vom Waldessaum. \\
Elend hält mit d \chord{A}en Kolonnen Schri \chord{D}tt, \\
Elend hält mit \chord{A}den Kolonnen \chord{D}Schritt, \\
e h Fis h \\
und in Frost und Nebel ziehn die Wölfe mit. \\
h fis \\
Noch fliegt Russlands heiliger Adler, \\
\chord{G}tterchen, unser Bl \chord{D}ut gehört nur dir, \\
ma \chord{e}g das rote Hee \chord{h}r uns auch jagen, \\
\chord{G}tterchen, unser \chord{D}Blut gehört nur dir, \\
\chord{e}mag das rote \chord{h}Heer uns auch jagen, \\
Fis h \\
leuchtend steht noch immer das Panier.
\end{verse}