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,9 +9,9 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Bu \chord{a}rschen, Burs \chord{G}chen, wir v \chord{d}erderben \chord{a}, \\
|
||||
geht es fort so wil \chord{E}d und tol \chord{a}l. \\
|
||||
/: H \chord{a}ej \chord{G}, \chord{a}hej, hej, hej \chord{G}o, \chord{a} w \chord{E}il \chord{a}d und toll. :/
|
||||
\chord{a}Burschen, \chord{G}Burschen, wir \chord{a}verderben, \\
|
||||
geht es fort so \chord{E}wild und \chord{a}toll. \\
|
||||
/: \chord{G}Hej, \chord{a}hej, hej, \chord{G}hejo, \chord{a}wild und toll. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user