Created
June 10, 2015 07:09
-
-
Save rajasankar/32d2fb652508d6895c7f to your computer and use it in GitHub Desktop.
Convert back the extracted text into songs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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