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:
@@ -7,12 +7,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wohl \chord{G}über E \chord{C}rde, W \chord{D}ald und F \chord{G}eld / geht \chord{G}unser S \chord{C}ingen \\
|
||||
\chord{D}um die W \chord{G}elt. / Kehrt m \chord{e}unter ein in jedes H \chord{D}aus, / treibt \\
|
||||
M \chord{e}üdigkeit und Kummer \chord{D}aus. / \\
|
||||
Es r \chord{C}uft den Sch \chord{D}laf jetzt a \chord{G}ufzug \chord{e}eben, / füllt R \chord{C}aum und \\
|
||||
Z \chord{D}eit mit n \chord{G}euem L \chord{e}eben, / auf d \chord{C}ass der A \chord{D}nfang ist \\
|
||||
gem \chord{G}acht, / mit d \chord{e}em der H \chord{a}err uns he \chord{D}ut bed \chord{G}acht.
|
||||
Wohl \chord{G}über \chord{C}Erde, \chord{D}Wald und \chord{G}Feld / geht \chord{G}unser \chord{C}Singen \\
|
||||
\chord{D}um die \chord{G}Welt. / Kehrt \chord{e}munter ein in jedes \chord{D}Haus, / treibt \\
|
||||
\chord{e}Müdigkeit und Kummer \chord{D}aus. / \\
|
||||
Es \chord{C}ruft den \chord{D}Schlaf jetzt \chord{e}aufzugeben, / füllt \chord{C}Raum und \\
|
||||
\chord{D}Zeit mit \chord{G}neuem \chord{e}Leben, / auf \chord{C}dass der \chord{D}Anfang ist \\
|
||||
\chord{G}gemacht, / mit \chord{e}dem der \chord{a}Herr uns \chord{D}heut \chord{G}bedacht.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user