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

@@ -9,14 +9,14 @@
}
\begin{verse}
Wen \chord{C}n der A \chord{G7}bend naht \chord{d}ganz sach \chord{a}t und \chord{G}le \chord{G7}is, \\
f \chord{C}inden \chord{G7}wir uns e \chord{d}in im F \chord{a}euerk \chord{G}re \chord{G7}is. \\
\chord{C}Wenn der \chord{G7}Abend naht \chord{d}ganz \chord{a}sacht und \chord{G7}leis, \\
\chord{C}finden \chord{G7}wir uns \chord{d}ein im \chord{G7}Feuerkreis. \\
Ref.: \\
Und wer n \chord{C}ie an seine Freu \chord{G7}nde denkt / und auch \\
n \chord{a}ie den roten We \chord{E7}in ausschenkt, / der kann \\
bl \chord{C}eiben, \chord{G7}wo \chord{C}er ist. / Draußen weht gewiss ein \\
k \chord{G7}alter Wind, / doch die Fe \chord{a}uer nicht er \chord{E7}loschen sind / \\
für uns S \chord{C}änger, w \chord{G7}ie ihr wi \chord{C}sst.
Und wer \chord{C}nie an seine \chord{G7}Freunde denkt / und auch \\
\chord{a}nie den roten \chord{E7}Wein ausschenkt, / der kann \\
\chord{C}bleiben, \chord{G7}wo \chord{C}er ist. / Draußen weht gewiss ein \\
\chord{G7}kalter Wind, / doch die \chord{a}Feuer nicht \chord{E7}erloschen sind / \\
für uns \chord{C}Sänger, \chord{G7}wie ihr \chord{C}wisst.
\end{verse}
\begin{verse}