Debian Codegraph @

lib/ChordPro/res/pod/Config.pod

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