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:
@@ -9,10 +9,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wir s \chord{C}itzen im rostigen Haifisch, \\
|
||||
der R \chord{G}um durch die Kehl \chord{G7}e uns rinn \chord{D}t. \\
|
||||
/: Der W \chord{a}irt gibt noch gern eine Ru \chord{d}nde, haha, \\
|
||||
wenn je \chord{a}der ´ne Sto \chord{E}ry erfin \chord{a}d´t. :/
|
||||
Wir \chord{C}sitzen im rostigen Haifisch, \\
|
||||
der \chord{G}Rum durch die \chord{G7}Kehle uns \chord{D}rinnt. \\
|
||||
/: Der \chord{a}Wirt gibt noch gern eine \chord{d}Runde, haha, \\
|
||||
wenn \chord{a}jeder ´ne \chord{E}Story \chord{a}erfind´t. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user