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,14 +8,14 @@
}
\begin{verse}
St \chord{C}eigt so ein kleiner Tr \chord{a}oll von dem Fjell, \\
n \chord{G}ähert sich l \chord{C}ei \chord{F}s, hat in der Hand H \chord{C}exenkraut, \\
w \chord{G}as niemand weiß \chord{C}. \\
\chord{C}Steigt so ein kleiner \chord{a}Troll von dem Fjell, \\
\chord{G}nähert sich \chord{F}leis, hat in der Hand \chord{C}Hexenkraut, \\
\chord{G}was niemand \chord{C}weiß. \\
Ref.: \\
Si \chord{C}tzt du am F \chord{F}euer und die L \chord{d}ieder sind ver \chord{G}weht, \\
dann bleib ganz st \chord{C}umm! \\
De \chord{C}nn in dem La \chord{F}nd, das dich umgib \chord{d}t, \\
ist was erw \chord{G}acht und schleicht he \chord{C}rum.
\chord{C}Sitzt du am \chord{F}Feuer und die \chord{d}Lieder sind \chord{G}verweht, \\
dann bleib ganz \chord{C}stumm! \\
\chord{C}Denn in dem \chord{F}Land, das dich \chord{d}umgibt, \\
ist was \chord{G}erwacht und schleicht \chord{C}herum.
\end{verse}
\begin{verse}