App-Music-ChordPro
view release on metacpan or search on metacpan
t/380_roundtrip.t view on Meta::CPAN
# Footer with page number.
footer.0 = ""
footer.1 = ""
footer.2 = "%{page}"
}
# The very first output page is slightly different:
first {
# It has title and subtitle, like normal 'first' pages.
# But no footer.
footer = null
}
}
# Split marker for syllables that are smaller than chord width.
# split-marker is a 3-part array: 'start', 'repeat', and 'final'.
# 'final' is always printed, last.
# 'start' is printed if there is enough room.
# 'repeat' is printed repeatedly to fill the rest.
# If split-marker is a single string, this is 'start'.
# All elements may be left empty strings.
split-marker = [ "" "" "" ]
# Font families and properties.
# "fontconfig" maps members of font families to physical fonts.
# Optionally, additional properties of the fonts can be specified.
# Physical fonts can be the names of TrueType/OpenType fonts
# or names of built-in fonts (corefonts).
# Relative filenames are looked up in the fontdir.
# fontdir = [ "/usr/share/fonts/liberation", "/home/me/fonts" ]
fontdir = null
fontconfig {
# alternatives: regular r normal <empty>
# alternatives: bold b strong
# alternatives: italic i oblique o emphasis
# alternatives: bolditalic bi italicbold ib boldoblique bo obliquebold ob
times {
'' = "Times-Roman"
bold = "Times-Bold"
italic = "Times-Italic"
bolditalic = "Times-BoldItalic"
}
helvetica {
'' = "Helvetica"
bold = "Helvetica-Bold"
oblique = "Helvetica-Oblique"
boldoblique = "Helvetica-BoldOblique"
}
courier {
'' = "Courier"
bold = "Courier-Bold"
italic = "Courier-Italic"
bolditalic = "Courier-BoldItalic"
}
dingbats {
"" = "ZapfDingbats"
}
}
# "fonts" maps output elements to fonts as defined in "fontconfig".
# The elements can have a background colour associated.
# Colours are "#RRGGBB" or predefined names like "black", "white"
# and lots of others.
# NOTE: In the built-in config we use only "name" since that can
# be overruled with user settings.
fonts {
title {
name = "Times-Bold"
size = 14
}
text {
name = "Times-Roman"
size = 12
}
chord {
name = "Helvetica-Oblique"
size = 10
}
chordfingers {
name = "ZapfDingbats"
size = 10
}
comment {
name = "Helvetica"
size = 12
background = "#E5E5E5"
}
comment_italic {
name = "Helvetica-Oblique"
size = 12
}
comment_box {
name = "Helvetica"
size = 12
frame = 1
}
tab {
name = "Courier"
size = 10
}
toc {
name = "Times-Roman"
size = 11
}
grid {
name = "Helvetica"
size = 10
}
}
# Element mappings that can be specified, but need not since
# they default to other elements.
# subtitle --> text
# comment --> text
# comment_italic --> chord
# comment_box --> chord
# annotation --> chord
# toc --> text
# grid --> chord
# grid_margin --> comment
# footer --> subtitle @ 60%
# empty --> text
# diagram --> comment
# diagram_base --> text (but at a small size)
# Bookmarks (PDF outlines).
# fields: primary and (optional) secondary fields.
# label: outline label
# line: text of the outline element
# collapse: initial display is collapsed
# letter: sublevel with first letters if more
# fold: group by primary (NYI)
# omit: ignore this
outlines = [
{
fields = [ "sorttitle" "artist" ]
label = "By Title"
line = "%{title}%{artist| - %{}}"
collapse = false
letter = 5
fold = false
}
{
fields = [ "artist" "sorttitle" ]
label = "By Artist"
line = "%{artist|%{} - }%{title}"
( run in 1.943 second using v1.01-cache-2.11-cpan-aadc1410aed )