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,12 +10,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Nun gre \chord{G}ift in die Saiten und s \chord{C}ingt u \chord{D}ns ein L \chord{G}ied, \\
|
||||
vom Wec \chord{C}hsel der Zeit \chord{G}en, dem keine \chord{D}r entflie \chord{G}ht. \\
|
||||
Lasst dröhnen die Bäs \chord{C}se, lasst ju \chord{G}beln den Tenor \chord{C}, \\
|
||||
aus Nebel und Näss \chord{G}e bricht Sonn \chord{D}e hervor! \\
|
||||
Nun \chord{G}greift in die Saiten und \chord{C}singt \chord{D}uns ein \chord{G}Lied, \\
|
||||
vom \chord{C}Wechsel der \chord{G}Zeiten, dem \chord{D}keiner \chord{G}entflieht. \\
|
||||
Lasst dröhnen die \chord{C}Bässe, lasst \chord{G}jubeln den \chord{C}Tenor, \\
|
||||
aus Nebel und \chord{G}Nässe bricht \chord{D}Sonne hervor! \\
|
||||
Ref.: \\
|
||||
/: U \chord{D}nd ein s \chord{G}tr \chord{D}ahlender \chord{G}Tag geht w \chord{C}ie \chord{D}der ins \chord{G}Land.:/
|
||||
/: \chord{D}Und ein \chord{D}strahlender \chord{G}Tag geht \chord{D}wieder ins \chord{G}Land.:/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user