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:
shahondin1624
2026-04-02 16:36:06 +02:00
parent d875fd225b
commit 7b99778f67
295 changed files with 1804 additions and 1782 deletions

View File

@@ -23,10 +23,10 @@
% te das Boot doch die schnelle Flucht vor HJ-Streifen.
\begin{verse}
In die S \chord{E}onne, die F \chord{H7}erne hina \chord{E}us, \\
lasst die Sorgen, den \chord{H7}Alltag zu H \chord{E}au \chord{E7}s. \\
/: Von Be \chord{A}rgen über grüne Auen \\
l \chord{E}ohnt es sich, zu schauen \chord{H7}in die weite W \chord{E}elt. :/
In die \chord{E}Sonne, die \chord{H7}Ferne \chord{E}hinaus, \\
lasst die Sorgen, den \chord{H7}Alltag zu \chord{E7}Haus. \\
/: Von \chord{A}Bergen über grüne Auen \\
\chord{E}lohnt es sich, zu schauen \chord{H7}in die weite \chord{E}Welt. :/
\end{verse}
\begin{verse}