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 title | My Song | |
%s |
Song subtitle | Reprise | |
%T |
Song title, with subtitle, if it exists (in parenthesis) | My Song (Reprise) | |
%f |
Song filename | my_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 year | 04 | |
%dY |
Four-digit representation of current year | 2004 | |
%dm |
Numeric representation of current month, with leading zeros | 01 to 12 | |
%dn |
Numeric representation of current month, without leading zeros | 1 to 12 | |
%dM |
Short textual representation of current month, three letters | Jan to Dec (localized) | |
%dF |
Full textual representation of current month | January to December (localized) | |
%dd |
Current day of the month, 2 digits, with leading zeros | 01 to 31 | |
%dj |
Current day of the month, 2 digits, without leading zeros | 1 to 31 | |
%dD |
Short textual representation of the current day of the week | Sun through Sat (localized) | |
%dl(lowercase 'L') | Full textual representation of the current day of the week | Sunday through Saturday (localized) | |
%dr |
RFC 2822 formatted date | Thu, 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 break | Not 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 |