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,11 +5,11 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die H \chord{F}erren waren bei La \chord{C}une, / der R \chord{F}otwein schmeckte \\
|
||||
wie nie, / ob a \chord{B}uch der Schweden Karta \chord{F}une / kn \chord{C}app vor´s \\
|
||||
Gezelte sp \chord{F}ie. / Ansti \chord{d}eß mit den hohen Kump \chord{A}anen / der \\
|
||||
F \chord{d}el \chord{C}dherr und l \chord{B}äc \chord{g}he \chord{F}lte fein /: Es können n \chord{B}it \chord{F} z \chord{C}wei Hahnen \\
|
||||
auf \chord{C7}einem Miste s \chord{F}ein. :/
|
||||
Die \chord{F}Herren waren bei \chord{C}Laune, / der \chord{F}Rotwein schmeckte \\
|
||||
wie nie, / ob \chord{B}auch der Schweden \chord{F}Kartaune / \chord{C}knapp vor´s \\
|
||||
Gezelte \chord{F}spie. / \chord{d}Anstieß mit den hohen \chord{A}Kumpanen / der \\
|
||||
\chord{C}Feldherr und \chord{F}lächelte fein /: Es können \chord{B}nit \chord{C}zwei Hahnen \\
|
||||
auf \chord{C7}einem Miste \chord{F}sein. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user