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

@@ -24,10 +24,10 @@
% ten.
\begin{verse}
Die Ge \chord{G}danken sind frei, wer kan \chord{C}n sie \chord{a} erra \chord{D7}ten \chord{G}? \\
Sie fliegen vorbei, wie n \chord{C}äc \chord{a}ht \chord{D7}lic \chord{G}he Schatten. / Kein \\
Me \chord{D}nsch kann sie wiss \chord{G}en, kein Jäge \chord{D}r erschieß \chord{G}en / \\
mit Pu \chord{C}lver und Bl \chord{G}ei, die Geda \chord{D}nken sind fr \chord{G}ei!
Die \chord{G}Gedanken sind frei, wer \chord{C}kann sie \chord{G}erraten? \\
Sie fliegen vorbei, wie \chord{G}nächtliche Schatten. / Kein \\
\chord{D}Mensch kann sie \chord{G}wissen, kein \chord{D}Jäger \chord{G}erschießen / \\
mit \chord{C}Pulver und \chord{G}Blei, die \chord{D}Gedanken sind \chord{G}frei!
\end{verse}
\begin{verse}