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:
@@ -6,13 +6,13 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
\chord{d}Rot und Gelb sind u \chord{A}nsre Farben. S \chord{g}tolz ist unser S \chord{d}tamm. \\
|
||||
G \chord{d}oldner Löwe z \chord{A}iert die Fahne. Sc \chord{d}hau wie \chord{A}sie dort \chord{d}weht.
|
||||
\chord{d}Rot und Gelb sind \chord{A}unsre Farben. \chord{g}Stolz ist unser \chord{d}Stamm. \\
|
||||
\chord{d}Goldner Löwe \chord{A}ziert die Fahne. \chord{d}Schau wie \chord{A}sie dort \chord{d}weht.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
Ref: /: A \chord{d}lle Löwen zei \chord{g}gen Zähne. Kl \chord{d}auen sind gereckt. \\
|
||||
Er \chord{A}haben schreiten wir von dannen. L \chord{d}öwen s \chord{A}ind jetzt l \chord{d}os.:/
|
||||
Ref: /: \chord{d}Alle Löwen \chord{g}zeigen Zähne. \chord{d}Klauen sind gereckt. \\
|
||||
\chord{A}Erhaben schreiten wir von dannen. \chord{d}Löwen \chord{A}sind jetzt \chord{d}los.:/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user