jm-welch / PyChord

Lyric/Chord sheet parser written in Python
0 stars 0 forks source link

Paragraph recognition #2

Open jm-welch opened 11 years ago

jm-welch commented 11 years ago

Overview

Only double-space paragraphs containing chord tags.

Requirement

Sample input:

And it's [5]no, nay, never,
[1]No nay never no [4]more,
Will I [1]play the wild [4]rover
No [5]never no [1]more

I went in to an ale-house I used to frequent
And I told the landlord that my money was spent.
I asked him for credit, he answered me "Neigh!
Such a custom as yours I could have any day."

Sample output:

         5
And it's no, nay, never,
1               4
No nay never no more,
       1             6m
Will I play the wild rover
   5        1
No never no more

I went in to an ale-house I used to frequent
And I told the landlord that my money was spent.
I asked him for credit, he answered me "Neigh!
Such a custom as yours I could have any day."