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,13 +9,13 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die Str \chord{d}aße glei \chord{C}tet f \chord{a}ort und f \chord{d}ort, / w \chord{F}eg \\
|
||||
von der Tür \chord{C}, wo sie begann \chord{A}, / weit \chord{d}über Land, \\
|
||||
von Or \chord{a}t zu Or \chord{d}t, / ich f \chord{g}olge i \chord{d}hr, so g \chord{g}ut ich k \chord{A}ann. / \\
|
||||
\chord{D}Ihr lauf ich r \chord{A}aschen Fußes nac \chord{D}h, / bis sie \\
|
||||
sich gr \chord{D}oß und brei \chord{A}t verpfli \chord{D}cht, / mi \chord{d}t \chord{g}Weg und \\
|
||||
Wa \chord{d}gnis taus \chord{A}endfach \chord{d}. / Un \chord{C}d wohin \chord{F}da \chord{C}nn \chord{F}? \\
|
||||
I \chord{g}ch \chord{d} w \chord{A}ei \chord{d}ß es nicht.
|
||||
Die \chord{d}Straße \chord{C}gleitet \chord{a}fort und \chord{d}fort, / \chord{F}weg \\
|
||||
von der \chord{C}Tür, wo sie \chord{A}begann, / weit \chord{d}über Land, \\
|
||||
von \chord{a}Ort zu \chord{d}Ort, / ich \chord{g}folge \chord{d}ihr, so \chord{g}gut ich \chord{A}kann. / \\
|
||||
\chord{D}Ihr lauf ich \chord{A}raschen Fußes \chord{D}nach, / bis sie \\
|
||||
sich \chord{D}groß und \chord{A}breit \chord{D}verpflicht, / \chord{d}mit \chord{g}Weg und \\
|
||||
\chord{d}Wagnis \chord{d}tausendfach. / \chord{C}Und wohin \chord{F}dann? \\
|
||||
\chord{g}Ich \chord{d}weiß es nicht.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user