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" : {
"papersize" : "a4",
"columnspace" : 20,
"margintop" : 60,
"marginbottom" : 40,
"marginleft" : 40,
"marginright" : 40,
"headspace" : 40,
"footspace" : 20,
"formats" : {
"title" : {
"title" : [ "", "%{title}", "%{artist}" ],
"subtitle" : [ "", "", "" ],
},
},
"fontdir" : [ "static/fonts/liberation-fonts-ttf-2.1.5/" ],
"fontconfig" : {
"serif" : {
"" : "LiberationSerif-Regular.ttf",
"bold" : "LiberationSerif-Bold.ttf",
"italic" : "LiberationSerif-Italic.ttf",
"bolditalic" : "LiberationSerif-BoldItalic.ttf"
},
"sans" : {
"" : "LiberationSans-Regular.ttf",
"bold" : "LiberationSans-Bold.ttf",
"italic" : "LiberationSans-Italic.ttf",
"bolditalic" : "LiberationSans-BoldItalic.ttf"
},
"monospace" : {
"" : "LiberationMono-Regular.ttf",
"bold" : "LiberationMono-Bold.ttf",
"italic" : "LiberationMono-Italic.ttf",
"bolditalic" : "LiberationMono-BoldItalic.ttf"
},
},
"fonts" : {
"title" : {
"description" : "serif bold 14"
},
"subtitle" : {
"description" : "serif 11"
},
"text" : {
"description" : "serif 12"
},
"chord" : {
"description" : "sans italic 10"
},
"comment" : {
"description" : "sans 12",
"background" : "#E5E5E5"
},
"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"
}
}
}
pdf {
papersize : a4
columnspace : 20
margintop : 60
marginbottom : 40
marginleft : 40
marginright : 40
headspace : 40
footspace : 20
formats.title {
title : [ "" "%{title}" "%{artist}" ]
subtitle : [ "" "" "" ]
}
fontdir : [ static/fonts/liberation-fonts-ttf-2.1.5/ ]
fontconfig {
serif {
"" : LiberationSerif-Regular.ttf
bold : LiberationSerif-Bold.ttf
italic : LiberationSerif-Italic.ttf
bolditalic : LiberationSerif-BoldItalic.ttf
}
sans {
"" : LiberationSans-Regular.ttf
bold : LiberationSans-Bold.ttf
italic : LiberationSans-Italic.ttf
bolditalic : LiberationSans-BoldItalic.ttf
}
monospace {
"" : LiberationMono-Regular.ttf
bold : LiberationMono-Bold.ttf
italic : LiberationMono-Italic.ttf
bolditalic : LiberationMono-BoldItalic.ttf
}
}
fonts {
title.description : "serif bold 14"
subtitle.description : "serif 11"
text.description : "serif 12"
chord.description : "sans italic 10"
comment {
description : "sans 12"
background : #E5E5E5
}
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"
}
}
html.styles.display : /chordpro.css