Document-level tag that specifies the song's title.
Requirement
Requires text
Supports both long and short forms: {title: Song Title} == {t: Song Title}
Recognized anywhere in the document
Saved as an attribute of the song
In output, prints at the top of the page
Example
Sample input:
{title: Wild Rover}
{subtitle: trad.}
I've [1]been a wild rover for many a [4]year
And I [5]spent all my money on whiskey and [1]beer,
And [1]now I'm returning with gold in great [4]store
And I [5]never will play the wild rover no [1]more.
Sample output:
>> song.title
'Wild Rover'
>> song.subtitle
'trad.'
>> str(song)
Wild Rover
trad.
1 4
I've been a wild rover for many a year
5 1
And I spent all my money on whiskey and beer,
1 4
And now I'm returning with gold in great store
5 1
And I never will play the wild rover no more.
Overview
Document-level tag that specifies the song's title.
Requirement
{title: Song Title}
=={t: Song Title}
Example
Sample input:
Sample output: