Skip to content

Instantly share code, notes, and snippets.

@rajasankar
Created June 10, 2015 07:09
Show Gist options
  • Save rajasankar/32d2fb652508d6895c7f to your computer and use it in GitHub Desktop.
Save rajasankar/32d2fb652508d6895c7f to your computer and use it in GitHub Desktop.
Convert back the extracted text into songs
co=[]
for e in range(0,len(E)):
if E[e].find('\t')!=-1 and E[e].find('(')==-1:
if E[e].find('.')!=-1:
print ' '
print E[e]
print ''
print ' '
print E[e+2]
print ''
cc=''+E[e].strip()+''
co.append(cc)
continue
else:
print ' '
print E[e]
print ''
cc=''+E[e].strip()+''
co.append(cc)
continue
else:
p = re.compile(r'\d')
if p.match(E[e].replace('.','')) and E[e].replace('.','').find(str(startcount))!=-1:# :
#print '-----------'
print ' '
print ''
print ''
print ' '
print ''
print ''
print E[e]
print ''
print ''
print ''
for i in range(1,20):
if E[e+i]!='\n':
print E[e+i]+''
else:
break
print ''
print ''
print ''
print ''
print ''
print ''
print ' '
print ''
print ''
if E[e+i+1].find('\t')==-1 and len(E[e+i+1])<250:
print len(E[e+i+1])
break
print E[e+i+1]+''
i=0
print ''
print ''
print ''
startcount=startcount+1
for cc in co:
if len(cc)>28:
if cc.find('padalam_sub_')!=-1:
print ' ',cc,''
else:
print '',cc,'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment