include and update CUV
This commit is contained in:
parent
fd7bcc2fd5
commit
8771df86ea
File diff suppressed because it is too large
Load Diff
|
@ -63,7 +63,7 @@ for ol in Lines:
|
||||||
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
|
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
f.write("\n\n\nlang=grc\nnotags=1\nshort.title=OGNTa-Ruby\nversion.major="+str(todays_date.year)+"\nversion.minor="+str(todays_date.month)+str(todays_date.day)+"\nversion.date="+str(todays_date)+"\ndescription=OGNTa (https://github.com/Andley/OGNTa)")
|
f.write("\n\n\nlang=grc\nnotags=1\nshort.title=OGNTa-Ruby\nversion.major="+str(todays_date.year)+"\nversion.minor="+str(todays_date.month)+str(todays_date.day)+"\nversion.date="+str(todays_date)+"\ndescription=OGNTa-Ruby (https://github.com/Andley/OGNTa)")
|
||||||
|
|
||||||
#
|
#
|
||||||
f.close()
|
f.close()
|
||||||
|
@ -128,7 +128,7 @@ for ol in Lines:
|
||||||
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
|
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
f.write("\n\n\nlang=grc\nnotags=1\nshort.title=OGNTa-TC-Ruby\nversion.major="+str(todays_date.year)+"\nversion.minor="+str(todays_date.month)+str(todays_date.day)+"\nversion.date="+str(todays_date)+"\ndescription=OGNTa (https://github.com/Andley/OGNTa)")
|
f.write("\n\n\nlang=grc\nnotags=1\nshort.title=OGNTa-TC-Ruby\nversion.major="+str(todays_date.year)+"\nversion.minor="+str(todays_date.month)+str(todays_date.day)+"\nversion.date="+str(todays_date)+"\ndescription=OGNTa-TC-Ruby (https://github.com/Andley/OGNTa)")
|
||||||
|
|
||||||
#
|
#
|
||||||
f.close()
|
f.close()
|
|
@ -0,0 +1,33 @@
|
||||||
|
import re
|
||||||
|
|
||||||
|
from datetime import date
|
||||||
|
todays_date = date.today()
|
||||||
|
|
||||||
|
|
||||||
|
inputFile = "./tmp/OGNTa-TC-Ruby.nt"
|
||||||
|
cuvFile = "./CUV.txt"
|
||||||
|
outputFile = "./tmp/OGNTa-TC.nt"
|
||||||
|
|
||||||
|
f = open(inputFile,'r',encoding="utf-8")
|
||||||
|
Lines = f.readlines()
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
f = open(cuvFile,'r',encoding="utf-8")
|
||||||
|
cuvLines = f.readlines()
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
f = open(outputFile,'w',encoding='utf-8')
|
||||||
|
# make file encoded "utf-8 with BOM"
|
||||||
|
f.write('\ufeff')
|
||||||
|
|
||||||
|
|
||||||
|
for i in range(len(cuvLines)):
|
||||||
|
Lines[i] = re.sub('<RUBY><ruby><ruby>(.*?)<rt>(.*?)</rt></ruby><rt>(.*?)</rt></ruby><rt>(.*?)</rt></RUBY>', r'\1', Lines[i])
|
||||||
|
Lines[i] = re.sub('<rt>(.*?)</rt>', r'\1', Lines[i])
|
||||||
|
ol = Lines[i].strip()+cuvLines[i]
|
||||||
|
f.write(ol)
|
||||||
|
#print (ol)
|
||||||
|
|
||||||
|
f.write("\n\n\nlang=grc\nnotags=1\nshort.title=OGNTa-TC\nversion.major="+str(todays_date.year)+"\nversion.minor="+str(todays_date.month)+str(todays_date.day)+"\nversion.date="+str(todays_date)+"\ndescription=OGNTa-TC (https://github.com/Andley/OGNTa)")
|
||||||
|
|
||||||
|
f.close()
|
|
@ -7961,6 +7961,6 @@ lang=grc
|
||||||
notags=1
|
notags=1
|
||||||
short.title=OGNTa-Ruby
|
short.title=OGNTa-Ruby
|
||||||
version.major=2021
|
version.major=2021
|
||||||
version.minor=1124
|
version.minor=1126
|
||||||
version.date=2021-11-24
|
version.date=2021-11-26
|
||||||
description=OGNTa (https://github.com/Andley/OGNTa)
|
description=OGNTa-Ruby (https://github.com/Andley/OGNTa)
|
|
@ -7961,6 +7961,6 @@ lang=grc
|
||||||
notags=1
|
notags=1
|
||||||
short.title=OGNTa-TC-Ruby
|
short.title=OGNTa-TC-Ruby
|
||||||
version.major=2021
|
version.major=2021
|
||||||
version.minor=1124
|
version.minor=1126
|
||||||
version.date=2021-11-24
|
version.date=2021-11-26
|
||||||
description=OGNTa (https://github.com/Andley/OGNTa)
|
description=OGNTa-TC-Ruby (https://github.com/Andley/OGNTa)
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue