| 1 | // A configuration file for ChordPro. |
| 2 | |
| 3 | // See ChordPro website for more details: https://www.chordpro.org/chordpro/chordpro-configuration-file/. |
| 4 | // This is a really relaxed JSON document, see https://metacpan.org/pod/JSON::Relaxed#REALLY-RELAXED-EXTENSIONS |
| 5 | |
| 6 | config { |
| 7 | type : style |
| 8 | title : Chordii |
| 9 | description : "Legacy Chordii compatible." |
| 10 | } |
| 11 | |
| 12 | // Note that this config only contains the differences with the |
| 13 | // default ChordPro config. |
| 14 | |
| 15 | settings { |
| 16 | |
| 17 | // Suppress empty chord lines. |
| 18 | suppress-empty-chords : false |
| 19 | |
| 20 | // Suppress blank lyrics lines. |
| 21 | suppress-empty-lyrics : false |
| 22 | } |
| 23 | |
| 24 | contents : [ |
| 25 | { |
| 26 | |
| 27 | // An identifying name for this table of contents. |
| 28 | name : contents_by_title |
| 29 | |
| 30 | // The metadata for this table of contents. One or two items. |
| 31 | fields : [ title artist ] |
| 32 | |
| 33 | // The label (title) for this table. |
| 34 | label : "Contents" |
| 35 | |
| 36 | // The format of the table's lines. |
| 37 | // You can use all song metadata. |
| 38 | line : "%{title}" |
| 39 | |
| 40 | // The format for the page number in the table. |
| 41 | // You can use all song metadata. |
| 42 | pageno : "%{page}" |
| 43 | |
| 44 | // For future use. |
| 45 | fold : false |
| 46 | |
| 47 | // If `true`, this table is omitted. |
| 48 | omit : false |
| 49 | |
| 50 | // The template for this table. |
| 51 | template : stdtoc |
| 52 | } |
| 53 | ] |
| 54 | |
| 55 | // Settings for PDF output. |
| 56 | pdf { |
| 57 | |
| 58 | // Output paper size. |
| 59 | papersize : letter |
| 60 | |
| 61 | // Distance between columns in multi-column mode. |
| 62 | columnspace : 20 |
| 63 | |
| 64 | // Page top margin, excluding `headspace`. |
| 65 | margintop : 88 |
| 66 | |
| 67 | // Page bottom margin, excluding `footspace`. |
| 68 | marginbottom : 40 |
| 69 | |
| 70 | // Page left margin. |
| 71 | marginleft : 72 |
| 72 | |
| 73 | // Page right margin. |
| 74 | marginright : 40 |
| 75 | |
| 76 | // Space for page titles. |
| 77 | headspace : 57 |
| 78 | |
| 79 | // Space for page footers. |
| 80 | footspace : 20 |
| 81 | |
| 82 | // Heading on first page only, add the headspace to the other pages so they become larger. |
| 83 | |
| 84 | head-first-only : true |
| 85 | |
| 86 | // Baseline distances as a factor of the font size. |
| 87 | spacing { |
| 88 | |
| 89 | // Spacing for page titles. |
| 90 | title : 1.5 |
| 91 | |
| 92 | // Spacing between songlines (grouped chords + lyrics). |
| 93 | lyrics : 1 |
| 94 | |
| 95 | // Spacing between chords and lyrics in songlines. |
| 96 | chords : 1 |
| 97 | |
| 98 | // Spacing for empty (blank) lines. |
| 99 | empty : 1.7 |
| 100 | } |
| 101 | |
| 102 | // Appearance of chord diagrams for string instruments. |
| 103 | diagrams { |
| 104 | show : below |
| 105 | linewidth : 0.15 |
| 106 | } |
| 107 | |
| 108 | // Page formats. |
| 109 | formats { |
| 110 | |
| 111 | default.footer : [ "" " %{title}" "Page %{page}" ] |
| 112 | title.footer : [ "" "" "Page %{page}" ] |
| 113 | first.footer : [ "" "" "" ] |
| 114 | } |
| 115 | |
| 116 | // `fonts` maps output elements to fonts as defined in `fontconfig`. |
| 117 | fonts { |
| 118 | |
| 119 | // The font used for page titles. |
| 120 | title : "Times-Roman 17" |
| 121 | |
| 122 | // The font used for chords above the lyrics. |
| 123 | chord : "Helvetica-Oblique 9" |
| 124 | |
| 125 | // The font used for comments. If not set, falls back on the `text` font. |
| 126 | comment: "Times-Roman 12; background=foreground-light" |
| 127 | |
| 128 | // The font used for the table of contents. If not set, falls back on the `text` font. |
| 129 | toc: "Times-Roman 12" |
| 130 | } |
| 131 | } |