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,15 +9,15 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Du \chord{C} machst Kle \chord{G}inholz, ic \chord{a}h such Ri \chord{E}nde, / s \chord{F}oll ein \\
|
||||
Feu \chord{C}er hie \chord{G7}r entst \chord{C}ehn, / dass ich H \chord{G}arz und Spä \chord{a}ne \\
|
||||
f \chord{E}inde, / m \chord{F}öge b \chord{C}ald und schn \chord{G7}ell gesche \chord{C}hn.
|
||||
Du \chord{C}machst \chord{G}Kleinholz, \chord{a}ich such \chord{E}Rinde, / \chord{F}soll ein \\
|
||||
\chord{C}Feuer \chord{G7}hier \chord{C}entstehn, / dass ich \chord{G}Harz und \chord{a}Späne \\
|
||||
\chord{E}finde, / \chord{F}möge \chord{C}bald und \chord{G7}schnell \chord{C}geschehn.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
/: Ist die H \chord{C}orte sc \chord{G7}hon im K \chord{C}ommen, / ei \chord{F}lt \\
|
||||
daher \chord{C} auf steilem Pfad \chord{G7}, / wird ihr w \chord{a}ohl ein \chord{G}Essen \\
|
||||
fr \chord{C}ommen, / nach \chord{F} dem lange \chord{C}n, voll \chord{G7}en Tag. : \chord{C}/
|
||||
/: Ist die \chord{C}Horte \chord{G7}schon im \chord{C}Kommen, / \chord{F}eilt \\
|
||||
daher \chord{C}auf steilem \chord{G7}Pfad, / wird ihr \chord{a}wohl ein \chord{G}Essen \\
|
||||
\chord{C}frommen, / nach \chord{F}dem \chord{C}langen, \chord{G7}vollen Tag. \chord{C}:/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user