example data for authors and songs

This commit is contained in:
tux 2023-08-20 12:16:18 +02:00
parent 16fd849b04
commit 7ab91abb3b
8 changed files with 30 additions and 25 deletions

14
data/authors.json Normal file
View File

@ -0,0 +1,14 @@
{
"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"
}
}

7
data/songs.json Normal file
View File

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

View File

@ -16,8 +16,8 @@ HEADER = \bookpart {
alttitle = "Alternativtitel" alttitle = "Alternativtitel"
titlesize = 11 titlesize = 11
titletopspace = 2 titletopspace = 2
poetId = #'dude poetId = "dude"
composerId = #'dude composerId = "dude"
copyright = "Fumpeverlag" copyright = "Fumpeverlag"
categories = "see" categories = "see"
songinfo = "Hintergrund songinfo = "Hintergrund

View File

@ -5,8 +5,7 @@
HEADER = \bookpart { HEADER = \bookpart {
\header { \header {
title = "Titel" title = "Titel"
poetId = #'dude songId = "a-song-id"
composerId = #'kumpel
categories = "" categories = ""
songinfo = "wasauchimmer" songinfo = "wasauchimmer"
} }

View File

@ -6,8 +6,8 @@ HEADER = \bookpart {
\header { \header {
title = "Chorsatz" title = "Chorsatz"
alttitle = "" alttitle = ""
poetId = #'dude composerId = "dude"
composerId = #'dude songId = "a-song-id"
categories = "" categories = ""
songinfo = "" songinfo = ""
} }

@ -1 +1 @@
Subproject commit c20d0327e792d04666ee163eb9b2a730853a3d5a Subproject commit 7a0dd880677296b69e80c350f7be451ed2e37a91

View File

@ -1,16 +0,0 @@
AUTHORS = #'(
(dude . (
(name . "Krasser Dude")
(trail_name . "dud")
(birth_year . "1950")
;(death_year . "2050")
(organization . "Bund der krassen Dudes")
))
(kumpel . (
(name . "Krasser Kumpel")
(trail_name . "dudekumpel")
;(birth_year . "1960")
(death_year . "2050")
(organization . "Bund der krassen Kumpels")
))
)

View File

@ -3,6 +3,7 @@
defaultSongStyle = #'börnel defaultSongStyle = #'börnel
customStyleOverridesFile = "../lilypond-custom-includes/custom_style_overrides.ly" customStyleOverridesFile = "../lilypond-custom-includes/custom_style_overrides.ly"
\include "authors.ly"
\include "categories.ly" \include "categories.ly"
\include "../lilypond-common-includes/general_include.ly" \include "../lilypond-common-includes/general_include.ly"
AUTHOR_DATA = #(call-with-input-file "../../data/authors.json" json->scm)
SONG_DATA = #(call-with-input-file "../../data/songs.json" json->scm)