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

@@ -17,14 +17,14 @@
% es in Vergessenheit geriet. (siehe Friedolin ll)
\begin{verse}
Ein stolzes Sc \chord{G}hiff streicht \chord{C}einsam durch die W \chord{G}ellen \\
und führt uns u \chord{a}nsre d \chord{D}eutschen Brüder fo \chord{G}rt. \\
Die Fahne weht, die w \chord{C}eißen Segel sch \chord{G}wellen \\
Ameri \chord{a}ka ist i \chord{D}hr Bestimmung \chord{G}sort. \\
S \chord{e}eht auf dem Verdeck sie s \chord{C}tehen, \\
sich noch e \chord{e}inmal umzu \chord{C}sehen \\
ins Vaterl \chord{G}and, ins heimatliche G \chord{D}rün, \\
s \chord{e}eht, wie sie übers g \chord{C}roße W \chord{D}eltmeer z \chord{G}iehn.
Ein stolzes \chord{G}Schiff streicht \chord{C}einsam durch die \chord{G}Wellen \\
und führt uns \chord{a}unsre \chord{D}deutschen Brüder \chord{G}fort. \\
Die Fahne weht, die \chord{C}weißen Segel \chord{G}schwellen \\
\chord{a}Amerika ist \chord{D}ihr \chord{G}Bestimmungsort. \\
\chord{e}Seht auf dem Verdeck sie \chord{C}stehen, \\
sich noch \chord{e}einmal \chord{C}umzusehen \\
ins \chord{G}Vaterland, ins heimatliche \chord{D}Grün, \\
\chord{e}seht, wie sie übers \chord{C}große \chord{D}Weltmeer \chord{G}ziehn.
\end{verse}
\begin{verse}