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

@@ -8,16 +8,16 @@
}
\begin{verse}
S \chord{e}iehst du die Feuer vergl \chord{D}immen zur N \chord{e}acht, \\
siehst du am Him \chord{D}mel die Ster \chord{e}ne? \\
Schoschonen am Feuer, ein Kriege \chord{D}r hält Wac \chord{e}ht, \\
die Büffel, sie st \chord{D}ampfen von f \chord{e}erne.
\chord{e}Siehst du die Feuer \chord{D}verglimmen zur \chord{e}Nacht, \\
siehst du am \chord{D}Himmel die \chord{e}Sterne? \\
Schoschonen am Feuer, ein \chord{D}Krieger hält \chord{e}Wacht, \\
die Büffel, sie \chord{D}stampfen von \chord{e}ferne.
\end{verse}
\begin{verse}
Ref.: \\
Hoa, h \chord{e}oa der Nebel zie \chord{D}ht. \\
Hoa, h \chord{e}oa \chord{D} der Büffel fl \chord{e}ieht.
Hoa, \chord{e}hoa der Nebel \chord{D}zieht. \\
Hoa, \chord{e}hoa \chord{D}der Büffel \chord{e}flieht.
\end{verse}
\begin{verse}