extract meta data from lilypond compilation

* write that as yaml file next to the other outputs
* extract lyrics
This commit is contained in:
tux
2026-07-12 02:05:00 +02:00
parent 7de31cf0dd
commit a19013964c
6 changed files with 867 additions and 138 deletions
+7
View File
@@ -72,6 +72,13 @@ TEXT = \markuplist {
(if paper (set! $defaultpaper paper))
)
;; Meta-Daten des Liedes als YAML neben die Ausgabedatei schreiben
;; (<ly:parser-output-name>.yml, landet wie das PDF relativ zum Arbeitsverzeichnis)
(when (and (defined? 'yaml-export-enabled) yaml-export-enabled)
(scm->yml-file
(string-append (ly:parser-output-name) ".yml")
(extract-song-data HEADER MUSIC TEXT_PAGES)))
;; ChordPro export: Store filename and extract metadata from basicSongInfo FIRST
(when (and (defined? 'chordpro-export-enabled) chordpro-export-enabled)
;; Use ly:parser-output-name which returns the output basename