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:
@@ -19,13 +19,13 @@
|
||||
% Sprache sprechen.
|
||||
|
||||
\begin{verse}
|
||||
Es tr \chord{C}opft von Helm und Säbel, / die \chord{G7}Erde ruht \\
|
||||
so b \chord{C}ang. / Wir traben durch den Nebel, / mit \\
|
||||
T \chord{G7}rommel und Gesang \chord{C}. \\
|
||||
Es \chord{C}tropft von Helm und Säbel, / die \chord{G7}Erde ruht \\
|
||||
so \chord{C}bang. / Wir traben durch den Nebel, / mit \\
|
||||
\chord{G7}Trommel und \chord{C}Gesang. \\
|
||||
Ref:. \\
|
||||
/: Nun schl \chord{F}ag die Trommel fes \chord{C}ter, / für \\
|
||||
\chord{F}alles Glück und Gu \chord{C}t, / und schl \chord{G7}ag sie \\
|
||||
auch mal l \chord{C}eise / für \chord{F}unser j \chord{G7}unges B \chord{C}lut. :/
|
||||
/: Nun \chord{F}schlag die Trommel \chord{C}fester, / für \\
|
||||
\chord{F}alles Glück und \chord{C}Gut, / und \chord{G7}schlag sie \\
|
||||
auch mal \chord{C}leise / für \chord{F}unser \chord{G7}junges \chord{C}Blut. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user