Use new ChordPro RRJSON configuration format

Requires ChordPro version 6.060.
This commit is contained in:
Emil Miler 2024-09-04 10:28:52 +02:00
parent d97d0cc0f6
commit 7c074457c9

View File

@ -1,85 +1,58 @@
{ pdf {
"pdf" : { papersize : a4
"papersize" : "a4", columnspace : 20
"columnspace" : 20, margintop : 60
"margintop" : 60, marginbottom : 40
"marginbottom" : 40, marginleft : 40
"marginleft" : 40, marginright : 40
"marginright" : 40, headspace : 40
"headspace" : 40, footspace : 20
"footspace" : 20,
"formats" : { formats.title {
"title" : { title : [ "" "%{title}" "%{artist}" ]
"title" : [ "", "%{title}", "%{artist}" ], subtitle : [ "" "" "" ]
"subtitle" : [ "", "", "" ], }
},
},
"fontdir" : [ "static/fonts/liberation-fonts-ttf-2.1.5/" ], fontdir : [ static/fonts/liberation-fonts-ttf-2.1.5/ ]
"fontconfig" : { fontconfig {
"serif" : { serif {
"" : "LiberationSerif-Regular.ttf", "" : LiberationSerif-Regular.ttf
"bold" : "LiberationSerif-Bold.ttf", bold : LiberationSerif-Bold.ttf
"italic" : "LiberationSerif-Italic.ttf", italic : LiberationSerif-Italic.ttf
"bolditalic" : "LiberationSerif-BoldItalic.ttf" bolditalic : LiberationSerif-BoldItalic.ttf
}, }
"sans" : { sans {
"" : "LiberationSans-Regular.ttf", "" : LiberationSans-Regular.ttf
"bold" : "LiberationSans-Bold.ttf", bold : LiberationSans-Bold.ttf
"italic" : "LiberationSans-Italic.ttf", italic : LiberationSans-Italic.ttf
"bolditalic" : "LiberationSans-BoldItalic.ttf" bolditalic : LiberationSans-BoldItalic.ttf
}, }
"monospace" : { monospace {
"" : "LiberationMono-Regular.ttf", "" : LiberationMono-Regular.ttf
"bold" : "LiberationMono-Bold.ttf", bold : LiberationMono-Bold.ttf
"italic" : "LiberationMono-Italic.ttf", italic : LiberationMono-Italic.ttf
"bolditalic" : "LiberationMono-BoldItalic.ttf" bolditalic : LiberationMono-BoldItalic.ttf
}, }
}, }
"fonts" : { fonts {
"title" : { title.description : "serif bold 14"
"description" : "serif bold 14" subtitle.description : "serif 11"
}, text.description : "serif 12"
"subtitle" : { chord.description : "sans italic 10"
"description" : "serif 11" comment {
}, description : "sans 12"
"text" : { background : #E5E5E5
"description" : "serif 12" }
}, comment_italic.description : "sans italic 12"
"chord" : { comment_box {
"description" : "sans italic 10" description : "sans 12"
}, frame : 1
"comment" : { }
"description" : "sans 12", tab.description : "monospace 10"
"background" : "#E5E5E5" toc.description : "serif 11"
}, grid.description : "sans 10"
"comment_italic" : { }
"description" : "sans italic 12"
},
"comment_box" : {
"description" : "sans 12",
"frame" : 1
},
"tab" : {
"description" : "monospace 10"
},
"toc" : {
"description" : "serif 11"
},
"grid" : {
"description" : "sans 10"
},
"chordfingers" : {
"description" : "dingbats 10"
}
}
},
"html" : {
"styles" : {
"display" : "/chordpro.css"
}
}
} }
html.styles.display : /chordpro.css