use yml as data format

This commit is contained in:
tux 2024-11-24 15:27:43 +01:00
parent 1da344a401
commit 4baf72b6e5
6 changed files with 27 additions and 33 deletions

@ -1 +1 @@
Subproject commit 88f0dc9f8fee1cd3f7152cd7e56798bb97699ee0
Subproject commit f0ffd3f6305f61ab47cdae342e749c44d1f9b78f

View File

@ -3,6 +3,7 @@
customStyleOverridesFile = "../lilypond-custom-includes/custom_style_overrides.ly"
\include "categories.ly"
\include "../lilypond-common-includes/general_include.ly"
AUTHOR_DATA = #(resolve-inherits (call-with-input-file "../../lilypond-song-includes/data/authors.json" json->scm))
SONG_DATA = #(resolve-inherits (call-with-input-file "../../lilypond-song-includes/data/songs.json" json->scm))
#(ly:parser-append-to-include-path (dirname (dirname (current-filename))))
\include "lilypond-common-includes/general_include.ly"
AUTHOR_DATA = #(parse-yml-file "../../lilypond-song-includes/data/authors.yml")
SONG_DATA = #(parse-yml-file "../../lilypond-song-includes/data/songs.yml")

View File

@ -1,22 +0,0 @@
{
"dude": {
"name": "Krasser Dude",
"trail_name": "dud",
"birth_year": "1950",
"organization": "Bund der krassen Dudes"
},
"kumpel": {
"name": "Krasser Kumpel",
"trail_name": "dudekumpel",
"death_year": "2050",
"organization": "Bund der krassen Kumpels"
},
"nocheiner": {
"name": "Jemand anderes",
"death_year": "2050"
},
"kumpelerbe": {
"inherits": "kumpel",
"organization": "Bund der crazy Kumpels"
}
}

View File

@ -0,0 +1,17 @@
dude:
birth_year: '1950'
name: Krasser Dude
organization: Bund der krassen Dudes
trail_name: dud
kumpel:
death_year: '2050'
name: Krasser Kumpel
organization: Bund der krassen Kumpels
trail_name: dudekumpel
kumpelerbe:
inherits: kumpel
organization: Bund der crazy Kumpels
nocheiner:
death_year: '2050'
name: Jemand anderes

View File

@ -1,7 +0,0 @@
{
"a-song-id": {
"title": "Krasse Vorlage",
"composer": "kumpel",
"poet": "dude"
}
}

View File

@ -0,0 +1,5 @@
a-song-id:
composer: kumpel
poet: dude
title: Krasse Vorlage