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:
@@ -10,14 +10,14 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
N \chord{C}achts auf dem Dorfplatz, vo \chord{F}r der Schän \chord{C}ke, \\
|
||||
schwirren, kl \chord{G7}irren Tambour \chord{C}ine; Fiedel, Cimbal \\
|
||||
und Fl \chord{F}öte kl \chord{C}ingen, t \chord{G7}anzt und wirbelt, Sera \chord{C}fine! \\
|
||||
\chord{C}Nachts auf dem Dorfplatz, \chord{F}vor der \chord{C}Schänke, \\
|
||||
schwirren, \chord{G7}klirren \chord{C}Tambourine; Fiedel, Cimbal \\
|
||||
und \chord{F}Flöte \chord{C}klingen, \chord{G7}tanzt und wirbelt, \chord{C}Serafine! \\
|
||||
Ref.: \\
|
||||
To \chord{a}m tom tom diri tom tom tom, schm \chord{G}etternde \\
|
||||
Schlegel und T \chord{F}rommelto \chord{C}n. \chord{F} T \chord{C}om \chord{G} tom tom tom \\
|
||||
t \chord{a}om, schme \chord{C}tternde Schl \chord{a}eg \chord{d}el und \\
|
||||
Tr \chord{G7}ommelt \chord{C}on.
|
||||
\chord{a}Tom tom tom diri tom tom tom, \chord{G}schmetternde \\
|
||||
Schlegel und \chord{C}Trommelton. \chord{C}Tom \chord{G}tom tom tom \\
|
||||
\chord{a}tom, \chord{C}schmetternde \chord{d}Schlegel und \\
|
||||
\chord{C}Trommelton.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user