Debian Codegraph @

lib/ChordPro/res/config/chordpro.rjson

raw
1 // Configuration for ChordPro
2 // See the ChordPro website for more details: https://www.chordpro.org/chordpro/chordpro-configuration-file/.
3 // This is a really relaxed JSON document, see https://metacpan.org/pod/JSON::Relaxed#REALLY-RELAXED-EXTENSIONS
4
5 // For GUI.
6 config {
7
8 // The type of this config
9 // One or more of `"config"`, `"style"`, `"style_mod"`, `"instrument"`, `"task"` ...
10 type : config
11
12 // Title for menus, choices, if applicable.
13 title : ChordPro
14
15 // Helpful descriptive text.
16 description : "Main ChordPro config."
17
18 // Exclusive control.
19 // If multiple configs have the same exclude_id, only one will be used.
20 exclude_id : false
21
22 // True if this is the default config for a specific type.
23 // Do not use unless you know what you are doing!
24 default : true
25 }
26
27 // A config file can specify a list of other config files that are to be processed **before** the contents of the current file. This makes it straightforward to create config files that extend existing config files.
28 // `"include"` takes a list of either filenames or preset names.
29 // If a file name is not absolute, it is taken relative to the location of the including config file.
30 include : [ guitar ]
31
32 // General settings control global behaviour of the ChordPro program and can be changed by configs and command line.
33 settings {
34
35 // Stricter checks and more warnings.
36 strict : false
37
38 // Obsolete.
39 lineinfo : true
40
41 // Titles flush.
42 // Obsolete, use page headings/footers instead.
43 titles : center
44
45 // Columns.
46 // Either the number of columns, default: 1, or an array with column widths.
47 columns : 1
48
49 // Suppress empty chord lines.
50 suppress-empty-chords : true
51
52 // Suppress blank lyrics lines.
53 suppress-empty-lyrics : true
54
55 // Suppress chords, only outputs lyrics.
56 lyrics-only : false
57
58 // Deprecated, Do not use.
59 memorize : false
60
61 // Chords inline instead of above.
62 // May be a string containing `pretext %s posttext`.
63 // Defaults to `"[%s]"` if set to a value that doesn't contain `"%s"`.
64 inline-chords : false
65
66 // Annotations inline instead of above. Ignored unless `inline-chords` is set.
67 // Must be a string containing pretext `%s` posttext.
68 // Default is `"%s"`.
69 inline-annotations : %s
70
71 // Chords under the lyrics.
72 chords-under : false
73
74 // Transpose the song by a number of semitones.
75 // A positive number transposes up, a negative number transposes down.
76 // An optional postfix of `"s"` or `"f"` can be used to enforce the use of sharps resp. flats when a transposed chord requires accidentals.
77 // A postfix of `"k"` will use the key signature to determine whether flats or sharps are needed.
78 transpose : 0
79
80 // Always apply `"k"` semantics if no other postfix was specified.
81 transpose-sf-key : false
82
83 // Force enharmonic when transposing (experimental).
84 enharmonic-transpose : true
85
86 // Transcode chords.
87 transcode : ""
88
89 // Eliminate capo by transposing chords.
90 decapo : false
91
92 // Strictness of parsing chord names.
93 // Values are `"strict"` (only known chord forms) or `"relaxed"` (anything that looks sane).
94 chordnames : strict
95
96 // Allow parsing of note names in `[]`.
97 notenames : false
98
99 // Always replace chords by their canonical form.
100 chords-canonical : false
101
102 // If `false`, chorus labels are used as tags.
103 choruslabels : true
104
105 // Substitute Unicode sharp/flats in chord names.
106 // This will fallback to the ChordProSymbols the selected chord font doesn't have the glyphs.
107 truesf : false
108
109 // Substitute delta for maj7 in chord names.
110 // This will fallback to the ChordProSymbols the selected chord font doesn't have the glyphs.
111 maj7delta : false
112
113 // Wrap long lines. This may trigger issue #355.
114 wraplines : true
115
116 // Indent for wrapped lines.
117 // Actual indent is the width of the provided string value.
118 wrapindent : x
119
120 // Consider text flowed.
121 flowtext : false
122 }
123
124 // Metadata.
125 metadata {
126
127 // The list of known metadata keys.
128 // For these keys you can use `{meta key …}` as well as `{key …}`.
129 // Important: `"title"` and `"subtitle"` must always be in this list.
130 keys : [
131 title
132 subtitle
133 album
134 arranger
135 artist
136 capo
137 composer
138 copyright
139 duration
140 key
141 lyricist
142 sortartist
143 sorttitle
144 tag
145 tempo
146 time
147 year
148 ]
149
150 // If `true`, `{meta …}` will only accept the keys named here in the `keys` field.
151 // Otherwise, any key will be accepted.
152 strict : true
153
154 // The separator is used to concatenate multiple values when metadata are used in title fields.
155 // If `autosplit` is `true`, the separator is also used to split values upon input.
156 separator : "; "
157
158 // Split data on separator.
159 // If enabled, metadata will be split on the separator to provide multiple values.
160 autosplit : true
161 }
162
163 // Globally defined (added) meta data,
164 // This is explicitly NOT intended for the metadata items above.
165 // Do NOT remove or change `_configversion`!
166 meta._configversion : 6.081
167
168 // Assets (placeholder).
169 assets {}
170
171 // Date formats.
172 // Defines the date format used by the metadata value `today`.
173 // Format is a `strftime` template, so the format string can use anything that `strftime` understands.
174 dates.today.format : "%A, %B %e, %Y"
175
176 // User settings.
177 // These (optional) settings can be used to add user information.
178 user {
179
180 // Short user name.
181 name : ""
182
183 // Full user name.
184 fullname : ""
185 }
186
187 // Description of the instrument.
188 // Actual values are set from an included instrument config.
189 instrument {
190
191 // Instrument type.
192 type : ""
193
194 // Descriptive instrument name.
195 description : ""
196 }
197
198 // Definition of the strings for this instrument in scientific pitch notation.
199 // This is usually set from an included instrument config.
200 // Note that string 1 is the highest sounding string.
201 // If tuning is not relevant to the instrument, setting the tuning to `[ 0 ]` flushes all existing definitions.
202 tuning : [ E2 A2 D3 G3 B3 E4 ]
203
204 // Note (chord root) names.
205 // In case of alternatives, the first one is used for output.
206 // Note that it is tempting to always use real sharps and flats for output, but many fonts don't have the glyphs.
207 notes {
208
209 // The note system used.
210 system : common
211
212 // Note names, using sharps. `\u266f` is MUSICAL SYMBOL SHARP.
213 sharp : [
214 C
215 [ C# Cis "C\u266f" ]
216 D
217 [ D# Dis "D\u266f" ]
218 E
219 F
220 [ F# Fis "F\u266f" ]
221 G
222 [ G# Gis "G\u266f" ]
223 A
224 [ A# Ais "A\u266f" ]
225 B
226 ]
227
228 // Note names, using flats. `\u266d` is MUSICAL SYMBOL FLAT.
229 flat : [
230 C
231 [ Db Des "D\u266d" ]
232 D
233 [ Eb Es Ees "E\u266d" ]
234 E
235 F
236 [ Gb Ges "G\u266d" ]
237 G
238 [ Ab As Aes "A\u266d" ]
239 A
240 [ Bb Bes "B\u266d" ]
241 B
242 ]
243
244 // Movable means position independent (e.g. `nashville`).
245 movable : false
246 }
247
248 // Key strategies.
249 // ChordPro tries to follow ABC (abc2svg) as much as possible.
250 keys {
251
252 // Replace keys with an excessive number of sharps by their more common enharmonic equivalents.
253 // See also `settings.transpose-sf-key`.
254 force-common : true
255
256 // The key `F#` is often used as is and not represented as an enharmonic equivalent. Set this to true if you want `Gb` instead of `F#`.
257 flats : false
258 }
259
260 // User-defined chords.
261 // This is an array of hashes, one for each chord.
262 // See the docs for details.
263 chords : []
264
265 // Format to show chord names. May contain markup
266 chord-formats {
267
268 // Format string for rendering common chord names.
269 common : "%{root|%{}%{qual|%{}}%{ext|%{}}%{bass|/%{}}|%{name}}"
270
271 // Format string for rendering roman chord names.
272 roman : "%{root|%{}%{qual|<sup>%{}</sup>}%{ext|<sup>%{}</sup>}%{bass|/<sub>%{}</sub>}|%{name}}"
273
274 // Format string for rendering nashville chord names.
275 nashville : "%{root|%{}%{qual|<sup>%{}</sup>}%{ext|<sup>%{}</sup>}%{bass|/<sub>%{}</sub>}|%{name}}"
276 }
277
278 // Showing chord diagrams. Selects which chords to show at the end of the song.
279 // By default, ChordPro will include diagrams for all known chords that have been used in a song.
280 // The `suppress` list can be used to filter chords from showing diagrams, for example for chords that you consider trivial.
281 // Note: The type of diagram (string or keyboard) is determined by the value of `instrument.type`.
282 diagrams {
283
284 // Selection of chords to show.
285 // Shows selected or all chord diagrams at end.
286 // `"all"`: shows all chords
287 // `"user"`: shows user defined chords only
288 // `"none"`: suppresses chords from being printed.
289 show : all
290
291 // Sorts the diagrams by key. Default is order of appearance.
292 sorted : false
293
294 // Chords (names) that will not generate diagrams, e.g. if they are considered trivial.
295 suppress : []
296 }
297
298 // When ChordPro detects errors while analyzing a song, it will use this format description to show diagnostic messages.
299 // In the format, `"%f"` will be replaced by the song file name, `"%n"` by the line number in the file where the error was detected, %m by the diagnostig message, and `"%l"` will be replaced by the original content of the line.
300 // Note you cannot use song metadata here.
301 diagnostics.format : '"%f", line %n, %m\n' \
302 '\t%l'
303
304 // Tables of contents.
305 // An array of hashes each describing one table of contents.
306 contents : [
307 {
308
309 // An identifying name for this table of contents.
310 name : table_of_contents
311
312 // The metadata for this table of contents. One or two items.
313 // To change the ordering of the table, prefix the sort key with `+` to force numeric sorting, or use a `-` prefix to reverse the sort order.
314 // When you specify a metadata item that has multiple values they are split out in the table.
315 // `songindex` is a built-in metadata item that yields the sequence number of the song in the songbook. Sorting on `songindex` will therefore produce the songs in songbook order.
316 fields : [ songindex ]
317
318 // The label (title) for this table.
319 label : "Table of Contents"
320
321 // The format of the table's lines.
322 // You can use all song metadata.
323 line : "%{title}"
324
325 // The format for the page number in the table.
326 // You can use all song metadata.
327 pageno : "%{page}"
328
329 // For future use.
330 fold : false
331
332 // If `true`, this table is omitted.
333 omit : false
334
335 // The template for this table.
336 template : stdtoc
337 }
338 {
339
340 // An identifying name for this table of contents.
341 name : contents_by_title
342
343 // The metadata for this table of contents. One or two items.
344 // To change the ordering of the table, prefix the sort key with `+` to force numeric sorting, or use a `-` prefix to reverse the sort order.
345 // When you specify a metadata item that has multiple values they are split out in the table.
346 // `songindex` is a built-in metadata item that yields the sequence number of the song in the songbook. Sorting on `songindex` will therefore produce the songs in songbook order.
347 fields : [ title artist ]
348
349 // The label (title) for this table.
350 label : "Contents by Title"
351
352 // The format of the table's lines.
353 // You can use all song metadata.
354 line : "%{title}%{artist| - %{}}"
355
356 // The format for the page number in the table.
357 // You can use all song metadata.
358 pageno : "%{page}"
359
360 // For future use.
361 fold : false
362
363 // If `true`, this table is omitted.
364 omit : false
365
366 // The template for this table.
367 template : stdtoc
368 }
369 {
370
371 // An identifying name for this table of contents.
372 name : contents_by_artist
373
374 // The metadata for this table of contents. One or two items.
375 // To change the ordering of the table, prefix the sort key with `+` to force numeric sorting, or use a `-` prefix to reverse the sort order.
376 // When you specify a metadata item that has multiple values they are split out in the table.
377 // `songindex` is a built-in metadata item that yields the sequence number of the song in the songbook. Sorting on `songindex` will therefore produce the songs in songbook order.
378 fields : [ artist title ]
379
380 // The label (title) for this table.
381 label : "Contents by Artist"
382
383 // A break value to group toc entries with.
384 break : "%{sortartist|%{}|%{artist}}"
385
386 // The format of the table's lines.
387 // You can use all song metadata.
388 line : " %{title}"
389
390 // The format for the page number in the table.
391 // You can use all song metadata.
392 pageno : "%{page}"
393
394 // For future use.
395 fold : false
396
397 // If `true`, this table is omitted.
398 omit : true
399
400 // The template for this table.
401 template : stdtoc
402 }
403 ]
404
405 // Deprecated. Table of Contents (obsolete, do not use).
406 toc {
407 title : "Table of Contents"
408 line : "%{title}"
409 order : page
410 }
411
412 // Grid strum overrides.
413 gridstrum.symbols {}
414
415 // Delegates.
416 // Basically a delegate is a section `{start_of_XXX}` which content is collected and handled later by the delegate module.
417 delegates {
418
419 // Embedding ABC.
420 abc {
421
422 // The result produced by the delegate handler.
423 type : image
424
425 // The name of the (perl) module that implements the delegate.
426 module : ABC
427
428 // The module's method to call.
429 // Default handler uses `program` (if set), othewise embedded QuickJS or external QuickJS.
430 handler : abc2svg
431
432 // The program/command to execute.
433 program : ""
434
435 // Obsolete.
436 config : default
437
438 // Specific settings for the PDF backend.
439 pdf.preamble : [
440 "%%textfont pdf.fonts.text"
441 "%%vocalfont pdf.fonts.text"
442 "%%gchordfont pdf.fonts.chord"
443 ]
444
445 // Obsolete. Please use `parser.preprocess.env-...` instead.
446 preprocess.abc : []
447 }
448
449 // Embedding Lilypond.
450 ly {
451
452 // The result produced by the delegate handler.
453 type : image
454
455 // The name of the (perl) module that implements the delegate.
456 module : Lilypond
457
458 // The module's method to call.
459 handler : ly2svg
460
461 // The program/command to execute.
462 program : ""
463 config : default
464
465 // Input lines to prepend to the user data.
466 preamble : [
467 '\\version "2.21.0"'
468 "\\header { tagline = ##f }"
469 ]
470
471 // Obsolete. Please use `parser.preprocess.env-...` instead.
472 preprocess.ly : []
473 }
474
475 // Embedding Strums. EXPERIMENTAL
476 strum {
477
478 // The result produced by the delegate handler.
479 type : none
480
481 // The module's method to call.
482 handler : none
483
484 // Specific settings for the PDF backend.
485 pdf {
486 handler : strum2xo
487 type : image
488 }
489
490 // The name of the (perl) module that implements the delegate.
491 module : Strum
492 }
493
494 // Embedding SVG.
495 svg {
496
497 // The result produced by the delegate handler.
498 type : image
499
500 // The name of the (perl) module that implements the delegate.
501 module : SVG
502
503 // The module's method to call.
504 handler : svg2svg
505 }
506
507 // Embedding textblock.
508 textblock {
509
510 // The result produced by the delegate handler.
511 type : none
512
513 // The module's method to call.
514 handler : none
515
516 // The name of the (perl) module that implements the delegate.
517 module : TextBlock
518
519 // Specific settings for the PDF backend.
520 pdf {
521 handler : txt2xform
522 type : image
523 }
524
525 // Specific settings for the HTML backend.
526 html {
527 handler : txt2html
528 type : html
529 }
530 }
531 }
532
533 // Settings for PDF output.
534 pdf {
535
536 // Choose a `PDF::API2` compatible library, or leave empty to have ChordPro choose one for you.
537 library : ""
538
539 // PDF Properties.
540 // Arbitrary key/values may be added.
541 // Note that the context for substitutions is the first song.
542 info {
543
544 // Document title.
545 title : "%{title}"
546
547 // Name of the author.
548 author : ""
549
550 // Document subject.
551 subject : ""
552
553 // Document keywords.
554 keywords : ""
555 }
556
557 // Output paper size.
558 // The size can be specified either as the name of a known page size, e.g. `"a4`", or as a 2-element list containing the width and height of the page in PDF units (DTP points, pt, 1/72 inch).
559 papersize : a4
560
561 // For future use.
562 page_layout : false
563
564 // Theme
565 // These settings can be used to control the foreground and background colours of the PDF output.
566 // Valid values include colour names, full hex strings (`"#555555"`), or `"none"`.
567 // Background `"none"` or `"white"` means there will be no background colour added to the output.
568 // It may be useful to put your theme settings in a separate config file, together with additional settings that make up the theme.
569 // Other configuration settings that use colours can use `foreground`, `foreground-light`, `foreground-medium`, and `background` to refer to the colours defined in the theme.
570 theme {
571
572 // Foreground colour. Usually black.
573 foreground : black
574
575 // Light foreground colour
576 foreground-medium : grey70
577
578 // Very light foreground colour
579 foreground-light : grey90
580
581 // Background colour. Usually white.
582 background : none
583 }
584
585 // Distance between columns in multi-column mode.
586 // When output is produced in multiple columns, this is the space between the columns, in pt.
587 columnspace : 20
588
589 // Page top margin, excluding `headspace`.
590 margintop : 80
591
592 // Page bottom margin, excluding `footspace`.
593 marginbottom : 40
594
595 // Page left margin.
596 marginleft : 40
597
598 // Page right margin.
599 marginright : 40
600
601 // Space for page titles.
602 headspace : 60
603
604 // Space for page footers.
605 footspace : 20
606
607 // Heading on first page only; the headspace is added to the other pages so they become larger.
608 head-first-only : false
609
610 // Baseline distances as a factor of the font size.
611 spacing {
612
613 // Spacing for page titles.
614 title : 1.2
615
616 // Spacing between songlines (grouped chords + lyrics).
617 lyrics : 1.2
618
619 // Spacing between chords and lyrics in songlines.
620 chords : 1.2
621
622 // Spacing between the chord name and the diagram in chord diagrams.
623 diagramchords : 1.2
624
625 // Spacing after each grid line.
626 grid : 1.2
627
628 // Spacing for tab lines.
629 tab : 1
630
631 // Spacing for table of contents lines.
632 toc : 1.4
633
634 // Spacing for empty (blank) lines.
635 // By setting this to a small value you get fine-grained control over the distance between song elements by adding empty lines.
636 empty : 1
637 }
638
639 // Appearance of chorus.
640 chorus {
641
642 // Indentation of the chorus, not including bar.
643 indent : 0
644
645 // Appearance of chorus side bar.
646 // Suppress by setting offset and/or width to zero (`0`).
647 bar {
648
649 // Bar offset to the left of the text. Suppresses bar when zero (`0`).
650 offset : 8
651
652 // Bar width. Suppress when zero (`0`).
653 width : 1
654
655 // Bar colour.
656 color : foreground
657 }
658
659 // Label for Chorus.
660 tag : Chorus
661
662 // Appearance of chorus recall.
663 recall {
664
665 // Quote the chorus like a chorus.
666 choruslike : false
667
668 // Label for recalled chorus.
669 tag : Chorus
670
671 // Font for tag text.
672 // Possible values come from keys of `pdf.fonts`.
673 type : comment
674
675 // Quote the chorus.
676 quote : false
677 }
678 }
679
680 // This opens a margin for margin labels.
681 labels {
682
683 // Margin width.
684 // `0` hides margin labels entirely. `"auto"` will automatically reserve a margin if labels are used.
685 width : auto
686
687 // How the labels are aligned in the margin.
688 align : left
689
690 // When `comment` is set to one of the suported comment types, the label will be printed as a comment before the section contents. The settings of `width` and `align` are ignored and no margin is opened.
691 comment : ""
692 }
693
694 // This is an alternative style where the chords are placed in a separate column at the right of the lyrics. Chord changes are marked by underlining the lyrics.
695 // This style is enabled by setting to a nonzero value.
696 // Value is the column position.
697 chordscolumn : 0
698
699 // Value for Capo heading when using `chordscolumn`.
700 // When a capo is set a heading indicating the current capo setting is added.
701 capoheading : "%{capo|Capo: %{}}"
702
703 // A `{titles: left}` directive may conflict with customized page heading/footer formats. Set this to `true` to have the directive ignores.
704 titles-directive-ignore : false
705
706 // Appearance of chord diagrams for string instruments.
707 // A chord diagram consists of a number of cells.
708 // The horizontal number of cells depends on the number of strings.
709 // The vertical number of cells is `"vcells"`, which should be 4 or larger to accommodate most chords.
710 diagrams {
711
712 // Diagrams for the chords of the song can be shown at the `"top"`, `"bottom"` or `"right"` side of the first page, or `"below"` the last song line. Set to `false` to not show any diagrams.
713 show : bottom
714
715 // Alignment for when `show` is set to `"top"`, `"bottom"` or `"below"`.
716 align : left
717
718 // Width of each diagram cell.
719 width : 6
720
721 // Height of each diagram cell.
722 height : 6
723
724 // The number of frets shown.
725 vcells : 4
726
727 // Thickness of the diagram lines as a fraction of `width`.
728 linewidth : 0.1
729
730 // Thickness of the top nut, in relation to `linewidth`.
731 nutwidth : 5
732
733 // Horizontal space between diagrams.
734 hspace : 3.95
735
736 // Vertical space between diagrams
737 vspace : 3
738
739 // Size of the fret dot, as a fraction of cell width.
740 dotsize : 0.8
741
742 // Style of bars, line or arc.
743 barstyle : line
744
745 // Thickness of bars, as a fraction of dot width.
746 barwidth : 0.8
747
748 // Show finger settings, if available.
749 // `"below"` displays finger settings below the diagram, rather than in the finger dot.
750 fingers : true
751
752 // Text to show the fret base, if greater than one.
753 // `"%s"` will be replaced by the actual fret base number.
754 fretbasetext : %s
755
756 // Position for the fret base, left (default) or right.
757 fretbaseposition : left
758 }
759
760 // Appearance of chord diagrams for keyboards.
761 // A keyboard diagram consists of a number of keys.
762 // Dimensions are specified by `width` and `height`.
763 // The horizontal distance between diagrams is `hspace * keys * width`.
764 kbdiagrams {
765
766 // Diagrams for the chords of the song can be shown at the `"top"`, `"bottom"` or `"right"` side of the first page, or `"below"` the last song line. Set to `false` to not show any diagrams.
767 show : bottom
768
769 // Alignment for when `show` is set to `"top"`, `"bottom"` or `"below"`.
770 align : left
771
772 // Width of a single (white) key.
773 width : 4
774
775 // Height of the diagram.
776 height : 20
777
778 // The number of white keys shown.
779 keys : 14
780
781 // The leftmost white key. Must be `"C"` or `"F"`.
782 base : C
783
784 // Thickness of the diagram lines as a fraction of `width`.
785 linewidth : 0.1
786
787 // Color of the "pressed" keys.
788 pressed : foreground-medium
789
790 // Horizontal space between diagrams.
791 hspace : 3.95
792
793 // Vertical space between diagrams.
794 vspace : 0.3
795 }
796
797 // Grid section lines.
798 // Suppress when `show` is `false`, e.g. for singers.
799 // Enable by setting the width to the desired width.
800 grids {
801
802 // The `width` and `color` of the cell bar lines.
803 cellbar {
804
805 // Width of the cell bar.
806 width : 0
807
808 // Colour of the cell bar.
809 color : foreground-medium
810 }
811
812 // Show grid context in output.
813 show : true
814
815 // Stretch grid lines vertically.
816 stretch : 0.825
817
818 // Properties of special symbols.
819 symbols.color : blue
820
821 // Properties of the volta.
822 volta {
823
824 // Volta span (fraction of measure).
825 span : 0.7
826
827 // Colour of the volta.
828 color : blue
829 }
830 }
831
832 // New style page control.
833 songbook {
834
835 // Dual (odd/even) pages when set to true.
836 // False means all pages will be the same (odd, right).
837 // With dual pages, all the parts of the songbook (covers,
838 // tables of contents, etc.) are always aligned to a right page.
839 dual-pages : true
840
841 // With dual pages, align individual tables of content
842 // to right pages by inserting a blank filler page.
843 // Values are true, false, or "song". In the latter case the
844 // pagealign settings for songs are used for the tables of contents.
845 align-tocs : true
846
847 // With dual pages, a true value aligns songs to right pages
848 // by inserting a blank filler page if necessary.
849 // If false, no alignment takes place, all pages follow
850 // each other.
851 align-songs : true
852
853 // If true, all songs will start on left pages instead of right pages.
854 align-songs-spread : false
855
856 // If true, the fill pages will have headings and footers
857 // as if they were part of the song.
858 align-songs-extend : false
859
860 // Sort songs by `"title"` or `"subtitle"`.
861 // title : sort pages alphabetically by title.
862 // subtitle : sort pages alphabetically by subtitle. If this is used together with title, only title is used.
863 // Put a minus sign before title and/or subtitle to obtain descending order.
864 sort-songs : false
865
866 // If true, the order of the songs is adjusted to make the
867 // songbook as compact as possible, while each of the songs
868 // require minimal page turns.
869 // Note: this option requires extra processing time since
870 // the songbook has to be processed twice.
871 compact-songs : false
872
873 // PDF file to add as cover page(s).
874 cover : false
875
876 // PDF file to add as front matter.
877 front-matter : false
878
879 // PDF file to add as back matter.
880 back-matter : false
881 }
882
883 // Page formats.
884 // Each of these page classes can have settings for a page title, subtitle, footer, and background. The settings inherit from `default` to `title` to `first`. So a `title` page has everything a `default` page has, and a `first` page has everything a `title` page has. `filler` pages are empty by default.
885 // All heading strings may contain references to metadata in the form %{name}, for example %{title}. The current page number can be obtained with %{page}, and the song index in the songbook with %{songindex}. For a complete description on how to use metadata in heading strings, see [here](https://chordpro.org/chordpro/chordpro-configuration-format-strings/).
886 // When even/odd page printing is selected, the left and right parts are swapped on even pages.
887 // By default, the "title" element shows the value of metadata item "title", centered on the page. Likewise "subtitle".
888 // NOTE: The "title" and "subtitle" page elements have the same names as the default metadata values which may be confusing. To show metadata item, e.g. "artist", add its value to one of the title/subtitle fields. Don't try to add an artist page element.
889 formats {
890
891 // Headers/footers/background for all pages that aren't first page of the output, of a song, or alignment pages.
892 default {
893
894 // Topmost title element.
895 // It uses the `fonts.title` font.
896 title : [ "" "" "" ]
897
898 // Second title element.
899 // It uses the `fonts.subtitle` font.
900 subtitle : [ "" "" "" ]
901
902 // It uses the `fonts.footer` font.
903 footer : [ "%{title}" "" "%{page}" ]
904
905 // Page background.
906 // This can be used to designate an existing PDF document to be used as the background of the output page. It has the form `filename` or `filename:page`. Page numbers count from one.
907 // If odd/even printing is in effect, the designated page number is used for left pages, and the next page (if it exists) for right pages.
908 background : ""
909 }
910
911 // Headers/footers/background for the first page of a song.
912 title {
913
914 // Topmost title element.
915 // It uses the `fonts.title` font.
916 title : [ "" "%{title}" "" ]
917
918 // Second title element.
919 // It uses the `fonts.subtitle` font.
920 subtitle : [ "" "%{subtitle}" "" ]
921
922 // It uses the `fonts.footer` font.
923 footer : [ "" "" "%{page}" ]
924
925 // Page background.
926 // This can be used to designate an existing PDF document to be used as the background of the output page. It has the form `filename` or `filename:page`. Page numbers count from one.
927 // If odd/even printing is in effect, the designated page number is used for left pages, and the next page (if it exists) for right pages.
928 background : ""
929 }
930
931 // Headers/footers/background for the vefy first page of the output.
932 first {
933
934 // It uses the `fonts.footer` font.
935 footer : [ "" "" "" ]
936
937 // Page background.
938 // This can be used to designate an existing PDF document to be used as the background of the output page. It has the form `filename` or `filename:page`. Page numbers count from one.
939 // If odd/even printing is in effect, the designated page number is used for left pages, and the next page (if it exists) for right pages.
940 background : ""
941 }
942
943 // Headers/footers/background for all pages for alignment.
944 filler.background : ""
945 }
946
947 // Split marker for syllables that are smaller than chord width.
948 // `split-marker` is a 3-part array: `start`, `repeat`, and `final`, or can be a single string representing `start`.
949 // `final` is always printed, last.
950 // `start` is printed if there is enough room.
951 // `repeat` is printed repeatedly to fill the rest.
952 // If `split-marker` is a single string, this is `start`.
953 // All elements may be left empty strings.
954 split-marker : [ "" "" "" ]
955
956 // The `fontdir` setting can be used to add one or more private font directories to the font libraries. The private directories will be searched first.
957 fontdir : []
958
959 // Experimental: Remap corefonts to real truetype fonts.
960 // This requires a set of truetype fonts to be available in the `fontdir` under a well-defined name. See the docs.
961 // Fontsets currenly supported are `"free"` for the GNU Free Fonts, and `"tex"` for the Tex Gyre fonts.
962 // Value `false` inhibits remapping.
963 // Value `null` will have ChordPro look for the fonts itself.
964 corefonts.remap : null
965
966 // Font families and properties.
967 // `fontconfig` maps members of font families to physical fonts.
968 // Optionally, additional properties of the fonts can be specified.
969 // Physical fonts can be the names of TrueType/OpenType fonts, or names of built-in fonts (`corefonts`).
970 // Relative filenames are looked up in the `fontdir`.
971 fontconfig {
972 serif {
973 "" : Times-Roman
974 bold : Times-Bold
975 italic : Times-Italic
976 bolditalic : Times-BoldItalic
977 }
978 times {
979 "" : Times-Roman
980 bold : Times-Bold
981 italic : Times-Italic
982 bolditalic : Times-BoldItalic
983 }
984 helvetica {
985 "" : Helvetica
986 bold : Helvetica-Bold
987 oblique : Helvetica-Oblique
988 boldoblique : Helvetica-BoldOblique
989 }
990 "sans, sans-serif" {
991 "" : Helvetica
992 bold : Helvetica-Bold
993 italic : Helvetica-Oblique
994 bolditalic : Helvetica-BoldOblique
995 }
996 courier {
997 "" : Courier
998 bold : Courier-Bold
999 italic : Courier-Oblique
1000 bolditalic : Courier-BoldOblique
1001 }
1002 "mono, monospace" {
1003 "" : Courier
1004 bold : Courier-Bold
1005 italic : Courier-Oblique
1006 bolditalic : Courier-BoldOblique
1007 }
1008 "muse, musejazztext" {
1009 "" : MuseJazzText.otf
1010 bold : MuseJazzText.otf
1011 italic : MuseJazzText.otf
1012 bolditalic : MuseJazzText.otf
1013 }
1014 dingbats. : ZapfDingbats
1015 }
1016
1017 // `fonts` maps output elements to fonts as defined in `fontconfig`.
1018 //
1019 // Some element mappings can be specified, but it's not needed for all since they default to other elements:
1020 // subtitle --> text
1021 // chorus --> text
1022 // comment --> text
1023 // comment_italic --> chord
1024 // comment_box --> chord
1025 // annotation --> chord
1026 // toc --> text
1027 // grid --> chord
1028 // grid_margin --> comment
1029 // footer --> subtitle @ 60%
1030 // empty --> text
1031 // diagram --> comment
1032 // diagram_base --> text (but at a small size)
1033 fonts {
1034
1035 // The font used for page titles.
1036 title : "Times-Bold 14"
1037
1038 // The font used for lyrics texts.
1039 text : "Times-Roman 12"
1040
1041 // The font used for chords above the lyrics.
1042 chord : "Helvetica-Oblique 10"
1043
1044 // Font for numbers in chord diagram dots.
1045 // `color` is for the numbers.
1046 // `numbercolor` is for the dots.
1047 // `size` doesn't matter unless `diagrams.fingers` = `"below"`.
1048 chordfingers : "sans; numbercolor=background"
1049
1050 // The font used for comments. If not set, falls back on the `text` font.
1051 comment : "Helvetica 12; background=foreground-light"
1052
1053 // The font used for `comment_italic` directives. If not set, falls back on the `chord` font.
1054 comment_italic : "Helvetica-Oblique 12"
1055
1056 // The font used for `comment_box` directives. If not set, falls back on the `chord` font.
1057 comment_box : "Helvetica 12; frame=1"
1058
1059 // The font used for the contents of tab environments.
1060 tab : "Courier 10"
1061
1062 // The font used for the table of contents. If not set, falls back on the `text` font.
1063 toc : "Times-Roman 11"
1064
1065 // The font used for grid elements. If not set, falls back on the `chord` font.
1066 grid : "Helvetica 10"
1067
1068 // Font for typesetting gridstrum symbols.
1069 // You can set size and colours, but you cannot change the font.
1070 gridstrum : "ChordProSymbols 13"
1071
1072 // Font for typesetting grilles.
1073 grille : "Helvetica 10"
1074 }
1075
1076 // PDF outlines (index) can be used in most PDF viewers for quick navigation.
1077 outlines : [
1078 {
1079
1080 // An identifying name for this outline.
1081 name : by_title
1082
1083 // Primary and (optional) secondary fields.
1084 fields : [ sorttitle artist ]
1085
1086 // Title, omitted if there's only one outline.
1087 label : "By Title"
1088
1089 // The format for the outline entries.
1090 line : "%{title}%{artist| - %{}}"
1091
1092 // Initial display is collapsed.
1093 collapse : false
1094
1095 // If there are at least as many outline items with differing first letters than the amount specified here, an extra level of outlines (letter index) is created for easy navigation. A value of zero (`0`) disables this.
1096 letter : 5
1097
1098 // For future use.
1099 fold : false
1100 }
1101 {
1102
1103 // An identifying name for this outline.
1104 name : by_artist
1105
1106 // Primary and (optional) secondary fields.
1107 fields : [ artist sorttitle ]
1108
1109 // Title, omitted if there's only one outline.
1110 label : "By Artist"
1111
1112 // The format for the outline entries.
1113 line : "%{artist|%{} - }%{title}"
1114
1115 // Initial display is collapsed.
1116 collapse : false
1117
1118 // If there are at least as many outline items with differing first letters than the amount specified here, an extra level of outlines (letter index) is created for easy navigation. A value of zero (`0`) disables this.
1119 letter : 5
1120
1121 // For future use.
1122 fold : false
1123 }
1124 {
1125
1126 // An identifying name for this outline.
1127 name : bookmarks
1128
1129 // Primary and (optional) secondary fields.
1130 fields : [ bookmark ]
1131
1132 // Omit this outline.
1133 omit : true
1134
1135 // Title, omitted if there's only one outline.
1136 label : Bookmarks
1137
1138 // The format for the outline entries.
1139 line : "%{bookmark}"
1140
1141 // Initial display is collapsed.
1142 collapse : true
1143
1144 // If there are at least as many outline items with differing first letters than the amount specified here, an extra level of outlines (letter index) is created for easy navigation. A value of zero (`0`) disables this.
1145 letter : 0
1146
1147 // For future use.
1148 fold : false
1149 }
1150 ]
1151
1152 // Show the page layout structure.
1153 // This is mainly for design and debugging.
1154 showlayout : false
1155
1156 // CSV generation for MobileSheetsPro. May need adaptation for other tools.
1157 // Note that the resultant file will conform to RFC 4180 (standardized CSV file format).
1158 // To add fields with fixed values, use `"value"`. See the example with name `"my_field"`.
1159 csv {
1160
1161 // The fields for the CSV.
1162 fields : [
1163 {
1164
1165 // The field name in the exported CSV.
1166 name : title
1167
1168 // The metadata key to use as the value in the exported CSV.
1169 meta : title
1170 }
1171 {
1172
1173 // The field name in the exported CSV.
1174 name : pages
1175
1176 // The metadata key to use as the value in the exported CSV.
1177 meta : pagerange
1178 }
1179 {
1180
1181 // The field name in the exported CSV.
1182 name : "sort title"
1183
1184 // The metadata key to use as the value in the exported CSV.
1185 meta : sorttitle
1186 }
1187 {
1188
1189 // The field name in the exported CSV.
1190 name : artists
1191
1192 // The metadata key to use as the value in the exported CSV.
1193 meta : artist
1194 }
1195 {
1196
1197 // The field name in the exported CSV.
1198 name : composers
1199
1200 // The metadata key to use as the value in the exported CSV.
1201 meta : composer
1202 }
1203 {
1204
1205 // The field name in the exported CSV.
1206 name : collections
1207
1208 // The metadata key to use as the value in the exported CSV.
1209 meta : collection
1210 }
1211 {
1212
1213 // The field name in the exported CSV.
1214 name : keys
1215
1216 // The metadata key to use as the value in the exported CSV.
1217 meta : key_actual
1218 }
1219 {
1220
1221 // The field name in the exported CSV.
1222 name : years
1223
1224 // The metadata key to use as the value in the exported CSV.
1225 meta : year
1226 }
1227 {
1228
1229 // The field name in the exported CSV.
1230 name : my_field
1231
1232 // A static value in the exported CSV. If provided, overrides the value of the provided `meta` key.
1233 value : text
1234
1235 // `true` to omit a field.
1236 omit : true
1237 }
1238 ]
1239
1240 // Separator to join field values.
1241 separator : ;
1242
1243 // Separator to join meta values.
1244 vseparator : |
1245
1246 // Restrict CSV to song pages only (do not include matter pages).
1247 songsonly : true
1248 }
1249 }
1250
1251 // Settings for ChordPro (output) backend.
1252 chordpro {
1253
1254 // Appearance of chorus recall.
1255 // Default: print the tag using the type.
1256 // Alternatively quote the lines of the preceding chorus.
1257 // If no tag+type or quote: use `{chorus}`.
1258 // Note: Variant 'msp' always uses `{chorus}`.
1259 chorus.recall {
1260 tag : ""
1261 type : ""
1262 quote : false
1263 }
1264
1265 // Retain comments in the output.
1266 comments : retain
1267 }
1268
1269 // Settings for HTML output.
1270 html {
1271
1272 // The actual backend module.
1273 module : HTML
1274
1275 // Stylesheets for display and printing.
1276 styles {
1277
1278 // Relative path to a CSS file to use for styling HTML output.
1279 default : chordpro.css
1280
1281 // Relative path to a CSS file to use for styling displayed HTML output on screen media.
1282 screen : ""
1283
1284 // Relative path to a CSS file to use for styling printed HTML output.
1285 print : chordpro_print.css
1286
1287 // Embed the styles instead of linking to them.
1288 embed : false
1289
1290 // Legacy style for `"screen"`.
1291 display : ""
1292 }
1293 }
1294
1295 // Settings for LaTeX backend.
1296 latex {
1297
1298 // Include paths for templates.
1299 template_include_path : []
1300
1301 // Templates for LaTeX generation.
1302 templates {
1303
1304 // Master template to render the songbook.
1305 songbook : songbook.tt
1306
1307 // Helper template to render comments.
1308 comment : comment.tt
1309
1310 // Helper template to render images.
1311 image : image.tt
1312 }
1313 }
1314
1315 // Settings for Text (output) backend.
1316 // See the ChordPro backend for details.
1317 text.chorus.recall {
1318 tag : ""
1319 type : ""
1320 quote : false
1321 }
1322
1323 // Settings for A2Crd (input) frontend.
1324 a2crd {
1325
1326 // Treat leading lyrics lines as title/subtitle lines.
1327 // The first non-empty, non-chord, non-directive lines are taken to be the song title and subtitle.
1328 infer-titles : true
1329
1330 // Strategies to recognize chords and lyrics lines are implemented by classifiers.
1331 // The default classifier is `"pct_chords"` and is based on the percentage of chords recognized.
1332 classifier : pct_chords
1333
1334 // Tab stop width for tab expansion. Set to `0` to disable.
1335 // Tabs in the input source are replaced by an appropriate amount of spaces.
1336 tabstop : 8
1337 }
1338
1339 // Settings for the markup processor.
1340 // Shortcodes allow user defined markup, e.g. <foo>...</foo>.
1341 // ```
1342 // markup.shortcode {
1343 // heavy : "weight='bold' size='large'"
1344 // }
1345 // Each occurrence of <heavy>...</heavy> will be replaced by
1346 // <span weight='bold' size='large'>...</span>.
1347 // ```
1348 markup.shortcodes {}
1349
1350 // Settings for the parser/preprocessor
1351 parser {
1352
1353 // For the exceptional case you need brackets [] in your lyrics or annotations.
1354 // These characters are replaced by normal brackets **after** chord analysis.
1355 // E.g. `parser.altbrackets: "«»"`
1356 // Use wisely. Better still, don't use this.
1357 altbrackets : null
1358
1359 // Settings for the parser/preprocessor.
1360 // For selected lines, you can specify a series of
1361 // { "target" : "xxx", "replace" : "yyy" }
1362 // Every occurrence of "xxx" will be replaced by "yyy".
1363 // Use "pattern" instead of "target" for regular expression replacement.
1364 // Use wisely.
1365 preprocess {
1366 all : []
1367 directive : []
1368 songline : []
1369 }
1370 }
1371
1372 // Miscellaneous debug settings.
1373 // A boolean value or an integer. `0` means `false` and nozero means `true`.
1374 debug {
1375
1376 // Insert extra debugging info into the generated PDF document.
1377 runtimeinfo : 1
1378
1379 // All debug settings are intended for development and debugging and are not useful for ChordPro users.
1380 a2crd : 0
1381 abc : 0
1382 assets : 0
1383 chords : 0
1384 config : 0
1385 csv : 0
1386 echo : 0
1387 fit : 0
1388 fonts : 0
1389 images : 0
1390 layout : 0
1391 ly : 0
1392 meta : 0
1393 mma : 0
1394 ops : 0
1395 pages : 0
1396 pagectrl : 0
1397 paths : 0
1398 pgm : 0
1399 pp : 0
1400 song : 0
1401 songfull : 0
1402 spacing : 0
1403 svg : 0
1404 txtblk : 0
1405 xpose : 0
1406 x1 : 0
1407 x2 : 0
1408 x3 : 0
1409 }
1410
1411 // The schema for this config file.
1412 $schema : "https://chordpro.org/beta/resources/config.schema"