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"
titlesize = 11
titletopspace = 2
poetId = #'dude
composerId = #'dude
poetId = "dude"
composerId = "dude"
copyright = "Fumpeverlag"
categories = "see"
songinfo = "Hintergrund

View File

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

View File

@ -6,8 +6,8 @@ HEADER = \bookpart {
\header {
title = "Chorsatz"
alttitle = ""
poetId = #'dude
composerId = #'dude
composerId = "dude"
songId = "a-song-id"
categories = ""
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
customStyleOverridesFile = "../lilypond-custom-includes/custom_style_overrides.ly"
\include "authors.ly"
\include "categories.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)