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,16 +6,16 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Wie ein \chord{e}Fest nach langer T \chord{h}rauer, wie ein F \chord{C}euer in d \chord{D}er \\
|
||||
N \chord{e}acht, ein offenes Tor in einer M \chord{h}auer, nur die S \chord{C}onne \\
|
||||
aufg \chord{D}em \chord{G}acht. Wie ein B \chord{a}rief nach langem S \chord{D}chweigen, wie \\
|
||||
ein u \chord{G}nverhoffter G \chord{C}ruß, wie ein B \chord{a}latt an toten Zw \chord{h}eigen, \\
|
||||
ein „Ich-m \chord{C}ag-dich-trotz \chord{D}dem-K \chord{e}uss“.
|
||||
Wie ein \chord{e}Fest nach langer \chord{h}Trauer, wie ein \chord{C}Feuer in \chord{D}der \\
|
||||
\chord{e}Nacht, ein offenes Tor in einer \chord{h}Mauer, nur die \chord{C}Sonne \\
|
||||
\chord{G}aufgemacht. Wie ein \chord{a}Brief nach langem \chord{D}Schweigen, wie \\
|
||||
ein \chord{G}unverhoffter \chord{C}Gruß, wie ein \chord{a}Blatt an toten \chord{h}Zweigen, \\
|
||||
ein \chord{e}„Ich-mag-dich-trotzdem-Kuss“.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
/: So ist Vers \chord{D}öh \chord{G}nung, so muss der \chord{D}wahre Frieden s \chord{G}ein. \\
|
||||
So ist Vers \chord{D}öhnu \chord{e}ng, so ist Verg \chord{C}eben u \chord{D}nd Verz \chord{e}eih‘n. :/
|
||||
/: So ist \chord{G}Versöhnung, so muss der \chord{D}wahre Frieden \chord{G}sein. \\
|
||||
So ist \chord{e}Versöhnung, so ist \chord{C}Vergeben \chord{D}und \chord{e}Verzeih‘n. :/
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user