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:
@@ -24,14 +24,14 @@
|
||||
% Karl von Holtei (1798-1880).
|
||||
|
||||
\begin{verse}
|
||||
\chord{G7}Fordr \chord{C}e niemand, mein Sc \chord{G7}hicksal zu h \chord{C}ö \chord{F}ren, \\
|
||||
von Euch \chord{C}allen, die \chord{G7}ihr in Arbeit st \chord{C}eht. \\
|
||||
\chord{G7}Ja, wohl k \chord{C}önnte ich M \chord{G7}eister beschw \chord{C}ö \chord{F}ren, \\
|
||||
es wär d \chord{C}och bis m \chord{G7}orgen schon zu sp \chord{C}ät. \\
|
||||
Auf der Wa \chord{F}nderschaft lustigen T \chord{C}a \chord{G}g \chord{C}en \\
|
||||
setz ich K \chord{F}leider und Reisegeld \chord{G7}zu. \\
|
||||
/: Und so \chord{C}hab ich denn nun w \chord{G7}eiter nichts zu tr \chord{C}a \chord{F}gen \\
|
||||
als mein´ R \chord{C}ock und mein´ St \chord{G7}ock und die Sc \chord{C}huh. :/
|
||||
\chord{C}Fordre niemand, mein \chord{G7}Schicksal zu \chord{F}hören, \\
|
||||
von Euch \chord{C}allen, die \chord{G7}ihr in Arbeit \chord{C}steht. \\
|
||||
\chord{G7}Ja, wohl \chord{C}könnte ich \chord{G7}Meister \chord{F}beschwören, \\
|
||||
es wär \chord{C}doch bis \chord{G7}morgen schon zu \chord{C}spät. \\
|
||||
Auf der \chord{F}Wanderschaft lustigen \chord{C}Tagen \\
|
||||
setz ich \chord{F}Kleider und Reisegeld \chord{G7}zu. \\
|
||||
/: Und so \chord{C}hab ich denn nun \chord{G7}weiter nichts zu \chord{F}tragen \\
|
||||
als mein´ \chord{C}Rock und mein´ \chord{G7}Stock und die \chord{C}Schuh. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user