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,10 +7,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Al \chord{F}lzeit be \chord{C}reit! Den k \chord{a}urzen S \chord{d}pruch als L \chord{F}osung \chord{D}ic \chord{C}h erkor; \\
|
||||
ihn sc \chord{F}hreib ich \chord{d}in mein \chord{B}Lebensb \chord{C}uch, ihn halt ich stets \chord{G}mi \chord{C}r vor. \\
|
||||
Das gibt dem L \chord{F}eben Z \chord{B}weck und Ziel, gibt \chord{D}Mut und H \chord{d}ei \chord{C}te \chord{F}rkeit; \\
|
||||
zu heilgem E \chord{B}rnst, zu frohem Spiel a \chord{F}llzeit, \chord{C}allzeit b \chord{F}ereit!
|
||||
\chord{F}Allzeit \chord{C}bereit! Den \chord{a}kurzen \chord{d}Spruch als \chord{F}Losung \chord{C}ich erkor; \\
|
||||
ihn \chord{F}schreib ich \chord{d}in mein \chord{C}Lebensbuch, ihn halt ich stets \chord{C}mir vor. \\
|
||||
Das gibt dem \chord{F}Leben \chord{B}Zweck und Ziel, gibt \chord{D}Mut und \chord{F}Heiterkeit; \\
|
||||
zu heilgem \chord{B}Ernst, zu frohem Spiel \chord{F}allzeit, \chord{C}allzeit \chord{F}bereit!
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user