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,11 +9,11 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Was hel \chord{D}fen mir tau \chord{A}send Dukate \chord{D}n \chord{G}, / wenn sie \\
|
||||
verso \chord{A}ffen si \chord{D}nd? / Der König hat bra \chord{A}ve Soldate \chord{D}n \chord{G}, \\
|
||||
wenn si \chord{D}e montier \chord{A}et si \chord{D}nd. /:Er g \chord{A}ibt ihnen schönes \\
|
||||
Ge \chord{D}ld, /er ma \chord{A}cht es, wie`s ihm gef \chord{D}ällt: /er lässt sie \\
|
||||
freil \chord{A}ustig marschi \chord{D}e \chord{G}ren,/ wohl d \chord{D}urch die g \chord{A}anze Welt \chord{D}.:/
|
||||
Was \chord{D}helfen mir \chord{A}tausend \chord{G}Dukaten, / wenn sie \\
|
||||
\chord{A}versoffen \chord{D}sind? / Der König hat \chord{A}brave \chord{G}Soldaten, \\
|
||||
wenn \chord{D}sie \chord{A}montieret \chord{D}sind. /:Er \chord{A}gibt ihnen schönes \\
|
||||
\chord{D}Geld, /er \chord{A}macht es, wie`s ihm \chord{D}gefällt: /er lässt sie \\
|
||||
\chord{A}freilustig \chord{G}marschieren,/ wohl \chord{D}durch die \chord{A}ganze \chord{D}Welt.:/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user