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:
@@ -8,11 +8,11 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Die Ei \chord{e}senfau \chord{D}st am Lan \chord{C}ze \chord{D}nschaft \chord{e}, \\
|
||||
die Z \chord{C}ügel i \chord{D}n der Link \chord{e}en. \\
|
||||
So sprengt des Reic \chord{D}hes Ritt \chord{C}er \chord{D}sc \chord{e}haft, \\
|
||||
und i \chord{C}hre Schwe \chord{D}rter blin \chord{e}ken. \\
|
||||
/: \chord{G}He \chord{D}ja \chord{G}, he hej \chord{D}a, und i \chord{e}hre Sc \chord{D}hwerter b \chord{e}linken. :/
|
||||
Die \chord{D}Eisenfaust am \chord{e}Lanzenschaft, \\
|
||||
die \chord{C}Zügel \chord{D}in der \chord{e}Linken. \\
|
||||
So sprengt des \chord{D}Reiches \chord{e}Ritterschaft, \\
|
||||
und \chord{C}ihre \chord{D}Schwerter \chord{e}blinken. \\
|
||||
/: \chord{G}Heja, he \chord{D}heja, und \chord{e}ihre \chord{D}Schwerter \chord{e}blinken. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user