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

@@ -10,18 +10,18 @@
}
\begin{verse}
\chord{e}Am Ura \chord{D}l \chord{e}, fern von der Heimat, \\
sitzen Kos \chord{D}aken beim Feuersch \chord{e}ei \chord{D}n \chord{e}. \\
Der e \chord{e}in \chord{D}e \chord{e} spielt Balaleika, \\
die a \chord{D}nderen, sie stimmen mit \chord{e}ei \chord{D}n \chord{e}.
\chord{e}Am \chord{e}Ural, fern von der Heimat, \\
sitzen \chord{D}Kosaken beim \chord{e}Feuerschein. \\
Der \chord{D}eine \chord{e}spielt Balaleika, \\
die \chord{D}anderen, sie stimmen mit \chord{e}ein.
\end{verse}
\begin{verse}
Ref.: \\
Hey, \chord{e}Ossa, Ossa, schöne Stadt am Karmar, \\
\chord{D}Ossa, Ossa, schöne Stadt am Karmar, \\
O \chord{e}ssa, Ossa, schöne Stadt am Karmar, \\
j \chord{D}ohei, j \chord{e}oh \chord{D}ei \chord{e} j \chord{D}o, \chord{e} j \chord{D}oh \chord{e}ei jo, hei jo,
\chord{e}Ossa, Ossa, schöne Stadt am Karmar, \\
\chord{D}johei, \chord{D}johei \chord{D}jo, \chord{e}johei jo, hei jo,
\end{verse}
\begin{verse}