use yml as data format
This commit is contained in:
parent
1da344a401
commit
4baf72b6e5
@ -1 +1 @@
|
||||
Subproject commit 88f0dc9f8fee1cd3f7152cd7e56798bb97699ee0
|
||||
Subproject commit f0ffd3f6305f61ab47cdae342e749c44d1f9b78f
|
@ -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")
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
17
lilypond-song-includes/data/authors.yml
Normal file
17
lilypond-song-includes/data/authors.yml
Normal 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
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"a-song-id": {
|
||||
"title": "Krasse Vorlage",
|
||||
"composer": "kumpel",
|
||||
"poet": "dude"
|
||||
}
|
||||
}
|
5
lilypond-song-includes/data/songs.yml
Normal file
5
lilypond-song-includes/data/songs.yml
Normal file
@ -0,0 +1,5 @@
|
||||
a-song-id:
|
||||
composer: kumpel
|
||||
poet: dude
|
||||
title: Krasse Vorlage
|
||||
|
Loading…
Reference in New Issue
Block a user