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:
@@ -5,9 +5,9 @@
|
||||
|
||||
\begin{verse}
|
||||
\chord{E}In des Waldes grüner Laube \\
|
||||
saß ein J \chord{H7}äger mit seiner Bra \chord{E}ut. \\
|
||||
/: Saß ein \chord{H7}Jäger, mit seiner L \chord{E}ola, \\
|
||||
in der L \chord{A}aube, g \chord{H7}anz all \chord{E}ein. :/
|
||||
saß ein \chord{H7}Jäger mit seiner \chord{E}Braut. \\
|
||||
/: Saß ein \chord{H7}Jäger, mit seiner \chord{E}Lola, \\
|
||||
in der \chord{A}Laube, \chord{H7}ganz \chord{E}allein. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user