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

@@ -7,17 +7,17 @@
}
\begin{verse}
Einst warf ich mi \chord{D}ch ins v \chord{G}olle L \chord{D}eben, \\
ins Re \chord{e}ich der Göt \chord{A}ter hi \chord{D}nzustreben, \\
Einst warf ich \chord{D}mich ins \chord{G}volle \chord{D}Leben, \\
ins \chord{e}Reich der \chord{A}Götter \chord{D}hinzustreben, \\
G D Fis h \\
dem stillen Alltag zu entflieh´n \\
auf S \chord{G}uche na \chord{D}ch Zentauri \chord{e}en \chord{A}. \\
auf \chord{G}Suche \chord{D}nach \chord{A}Zentaurien. \\
Refrain: \\
D fis \\
l:So reiste ich dem Morgen zu, der Abend ließ mir \\
G A G D fis h \\
keine Ruh, der kühle Westwind trieb mich hin \\
vom Ok \chord{G}zident \chord{D} zum Anb \chord{e}eg \chord{A}in \chord{D}n. :l
vom \chord{G}Okzident \chord{D}zum \chord{D}Anbeginn. :l
\end{verse}
\begin{verse}