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:
@@ -14,16 +14,16 @@
|
||||
% nahtegal" (Nhd.: Tandaradei, schön sang die Nachtigall).
|
||||
|
||||
\begin{verse}
|
||||
Mä \chord{e}dchen, Männer, Meister wert, \\
|
||||
k \chord{D}ommt in diese R \chord{e}unde!
|
||||
\chord{e}Mädchen, Männer, Meister wert, \\
|
||||
\chord{D}kommt in diese \chord{e}Runde!
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Keinem sei ein Platz verwehrt, \\
|
||||
w \chord{D}ie es Brauch im Bu \chord{e}nde. \\
|
||||
\chord{D}wie es Brauch im \chord{e}Bunde. \\
|
||||
Ref.: \\
|
||||
/: T \chord{e}anderadei, \chord{G}tanderadei, \\
|
||||
schön singt die Na \chord{D}chtig \chord{e}all. :/
|
||||
/: \chord{e}Tanderadei, \chord{G}tanderadei, \\
|
||||
schön singt die \chord{e}Nachtigall. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user