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,15 +10,15 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die Lappen ho \chord{E}ch wir w \chord{H7}ollen s \chord{E}ailen, / hol´ \chord{A}an die Sch \chord{E}ot \\
|
||||
o \chord{H7}he! / Sind v \chord{E}iele t \chord{H7}ausend M \chord{E}eilen / zu s \chord{A}egeln \chord{E}über \chord{H7}See.
|
||||
Die Lappen \chord{E}hoch wir \chord{H7}wollen \chord{E}sailen, / hol´ \chord{A}an die \chord{E}Schot \\
|
||||
\chord{H7}ohe! / Sind \chord{E}viele \chord{H7}tausend \chord{E}Meilen / zu \chord{A}segeln \chord{E}über \chord{H7}See.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Die Lappen ho \chord{E}ch, die Anker f \chord{A}ort, heute h \chord{E}ier und \\
|
||||
\chord{H7}morgen d \chord{E}ort. \\
|
||||
Die Lappen \chord{E}hoch, die Anker \chord{A}fort, heute \chord{E}hier und \\
|
||||
\chord{H7}morgen \chord{E}dort. \\
|
||||
Refrain: \\
|
||||
/: Po morjam, po woln \chord{A}am, nyntsche sd \chord{E}jes a s \chord{H7}avtra t \chord{E}am. :/
|
||||
/: Po morjam, po \chord{A}wolnam, nyntsche \chord{E}sdjes a \chord{H7}savtra \chord{E}tam. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user