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

@@ -5,15 +5,15 @@
}
\begin{verse}
\chord{a}Nicht die S \chord{F}üße, n \chord{C}ur die \chord{G}Saure, n \chord{a}ur für \chord{F}Schorle \chord{C}lebe i \chord{G}ch. / \\
\chord{C}Trinkt ihr \chord{E}Leute n \chord{a}ur den Schoppen, s \chord{F}eid ihr b \chord{G}ald schon \\
\chord{e}nicht mehr d \chord{a}a.
\chord{a}Nicht die \chord{F}Süße, \chord{C}nur die \chord{G}Saure, \chord{a}nur für \chord{F}Schorle \chord{C}lebe \chord{G}ich. / \\
\chord{C}Trinkt ihr \chord{E}Leute \chord{a}nur den Schoppen, \chord{F}seid ihr \chord{G}bald schon \\
\chord{e}nicht mehr \chord{a}da.
\end{verse}
\begin{verse}
Ref.: \chord{a}Wo S \chord{F}chorle, \chord{G}wo \chord{C} Schorle, \chord{a}wo \chord{F} Schorle, S \chord{G}chmac \chord{e}ko \chord{a}fatz! \\
\chord{C}Trinkt ihr L \chord{E}eute n \chord{a}ur den Schoppen, s \chord{F}eid ihr b \chord{G}ald schon \\
n \chord{e}icht mehr d \chord{a}a.
Ref.: \chord{a}Wo \chord{F}Schorle, \chord{G}wo \chord{C}Schorle, \chord{a}wo \chord{F}Schorle, \chord{a}Schmackofatz! \\
\chord{C}Trinkt ihr \chord{E}Leute \chord{a}nur den Schoppen, \chord{F}seid ihr \chord{G}bald schon \\
\chord{e}nicht mehr \chord{a}da.
\end{verse}
\begin{verse}