The following control codes can be used to format the title, subtitle, and footer in Songsheet Generator. With a few restrictions, they can also be used in comments.

Song
Information
Description Notes Sample Output
%t Song titleMy Song
%s Song subtitleReprise
%T Song title, with subtitle, if it exists (in parenthesis)My Song (Reprise)
%f Song filenamemy_song.txt
%F Song filename (complete path)C:\songs\my_song.txt
%x Song transpose in half steps If the value is zero, nothing will be printed +3
%k Song key (transposition will apply)
%A Song artist
%G Song copyright
%N Total number of pages of song
%P Current page number of song
%C Capo value (if the value is zero: nothing, not even a blank, will print).

Dates Description Notes Sample Output
%dy Two-digit representation of current year04
%dY Four-digit representation of current year2004
%dm Numeric representation of current month, with leading zeros01 to 12
%dn Numeric representation of current month, without leading zeros1 to 12
%dM Short textual representation of current month, three lettersJan to Dec (localized)
%dF Full textual representation of current monthJanuary to December (localized)
%dd Current day of the month, 2 digits, with leading zeros01 to 31
%dj Current day of the month, 2 digits, without leading zeros1 to 31
%dD Short textual representation of the current day of the weekSun through Sat (localized)
%dl
(lowercase 'L')
Full textual representation of the current day of the weekSunday through Saturday (localized)
%dr RFC 2822 formatted dateThu, 21 Dec 2000 16:01:07 +0200

Data
Values
Description Notes Sample Output
%’abc Data key value (abc is a key; xyz, its value, will be printed). Quotes are required as shown
%?jkl"xyz" Value query jkl is a format code; if the value of jkl is not empty, then xyz will be evaluated and printed; xyz may contain nested format codes). Quotes are required as shown. For example, to print copyright in parenthesis but only if copyright is set:
%?G"(%G)"
%?!jkl"xyz" Value query (negative) jkl is a format code; if the value of jkl is empty, then xyz will be evaluated and printed; xyz may contain nested format codes). Quotes are required as shown. For example, to print "Artist Unknown" if artist is not set:
%?!A"Artist Unknown"

Special
Formatting
Description Notes Sample Output
%% Percent sign ('%')
\n
(backslash followed by 'n')
Manual line breakNot supported in comments
%l
(lowercase 'L')
Left-justify text following Not supported in comments
%c Center-justify text following Not supported in comments
%r Right-justify text following Not supported in comments