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,10 +10,10 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Es li \chord{d}egt etwas auf den Straßen im Land umh \chord{a}er, \\
|
||||
in W \chord{d}elschland und in Britannien und am M \chord{A}eer, \\
|
||||
am R \chord{g}hein und wo die Scholle der Newa sp \chord{d}littert wie G \chord{A}las, \\
|
||||
es li \chord{d}egt etwas auf den Str \chord{A}aßen, ich weiß nicht w \chord{d}as.
|
||||
Es \chord{d}liegt etwas auf den Straßen im Land \chord{a}umher, \\
|
||||
in \chord{d}Welschland und in Britannien und am \chord{A}Meer, \\
|
||||
am \chord{g}Rhein und wo die Scholle der Newa \chord{d}splittert wie \chord{A}Glas, \\
|
||||
es \chord{d}liegt etwas auf den \chord{A}Straßen, ich weiß nicht \chord{d}was.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user