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

@@ -16,13 +16,13 @@
% Rüstplatz sein können für Ausfahrt und Heimkehr.“ Alexej Stachowitsch
\begin{verse}
Der Ge \chord{G}ist ist müd, die Hof \chord{e}fnung leer, \\
die W \chord{A}elt ist \chord{A7}mir zu \chord{D}wi \chord{D7}der. \\
Halb Str \chord{C}olch, halb Revolu \chord{G}tionär, \\
so t \chord{A}önen rings die L \chord{D}ie \chord{D7}der. \\
Der \chord{G}Geist ist müd, die \chord{e}Hoffnung leer, \\
die \chord{A}Welt ist \chord{A7}mir \chord{D7}zuwider. \\
Halb \chord{C}Strolch, halb \chord{G}Revolutionär, \\
so \chord{A}tönen rings die \chord{D7}Lieder. \\
Ref.: \\
T \chord{G}rüb hängen Wolken in den Tag, fah \chord{C}ren, ja f \chord{G}ahren! \\
Wann bricht ein Licht in uns´re Plag? \chord{C}F \chord{D}a \chord{G}hren!
\chord{G}Trüb hängen Wolken in den Tag, \chord{C}fahren, ja \chord{G}fahren! \\
Wann bricht ein Licht in uns´re Plag? \chord{G}Fahren!
\end{verse}
\begin{verse}