update <br>

This commit is contained in:
Andley 2021-12-17 09:56:31 +08:00
parent 743dba5775
commit ae810b5b57
3 changed files with 3624 additions and 3620 deletions

View File

@ -40,9 +40,9 @@ for ol in Lines:
if x[0] == "090276": f.write("\n<rt>羅16:24</rt> <rt>城內管銀庫的以拉都,和兄弟括土問你們安。</rt>")
if x[0] == "101636": f.write("\n<rt>林後13:14</rt> <rt>願主耶穌基督的恩惠、神的慈愛、聖靈的感動,常與你們眾人同在!</rt>")
# -------------- insert section break
if (re.match("¬.*",x[2])): f.write("</br>")
if (re.match("<strong>¬.*",x[2])): f.write("</br>")
if (re.match("<em>¬.*",x[2])): f.write("</br>")
if (re.match("¬.*",x[2])): f.write("<br>")
if (re.match("<strong>¬.*",x[2])): f.write("<br>")
if (re.match("<em>¬.*",x[2])): f.write("<br>")
# -------------- align 3Jo 1:15 & Rev 12:18 to meet TheWord Bible requirements.
if (x[1] == "Rev 12:18") or (x[1] == "3Jo 1:15") or (x[1]== bcv):
f.write(" ")
@ -56,10 +56,12 @@ for ol in Lines:
# --------------
x[6] = re.sub("\n","",x[6])
f.write("<RUBY><ruby><ruby>"+x[2]+"<rt>"+x[6]+"</rt></ruby><rt>"+x[3]+"</rt></ruby><rt>"+x[4]+"</rt></RUBY>")
# following format does not work for web browser
#f.write("<ruby>"+x[2]+"<rt>"+x[6]+"</rt><rt>"+x[3]+"</rt><rt>"+x[4]+"</rt></ruby>")
# ------------- insert paragraph break
if (re.match(".*¶",x[2])): f.write("</br></br></br>")
if (re.match(".*¶<strong>",x[2])): f.write("</br></br></br>")
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
if (re.match(".*¶",x[2])): f.write("<br><br><br>")
if (re.match(".*¶<strong>",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-Ruby (https://github.com/Andley/OGNTa)")
@ -104,9 +106,9 @@ for ol in Lines:
if x[0] == "090276": f.write("\n<rt>羅16:24</rt> <rt>城內管銀庫的以拉都,和兄弟括土問你們安。</rt>")
if x[0] == "101636": f.write("\n<rt>林後13:14</rt> <rt>願主耶穌基督的恩惠、神的慈愛、聖靈的感動,常與你們眾人同在!</rt>")
# -------------- insert section break
if (re.match("¬.*",x[2])): f.write("</br>")
if (re.match("<strong>¬.*",x[2])): f.write("</br>")
if (re.match("<em>¬.*",x[2])): f.write("</br>")
if (re.match("¬.*",x[2])): f.write("<br>")
if (re.match("<strong>¬.*",x[2])): f.write("<br>")
if (re.match("<em>¬.*",x[2])): f.write("<br>")
# -------------- align 3Jo 1:15 & Rev 12:18 to meet TheWord Bible requirements.
if (x[1] == "啟 12:18") or (x[1] == "約三 1:15") or (x[1]== bcv):
f.write(" ")
@ -120,10 +122,12 @@ for ol in Lines:
# --------------
x[6] = re.sub("\n","",x[6])
f.write("<RUBY><ruby><ruby>"+x[2]+"<rt>"+x[6]+"</rt></ruby><rt>"+x[3]+"</rt></ruby><rt>"+x[4]+"</rt></RUBY>")
# following format does not work for web browser
# f.write("<ruby>"+x[2]+"<rt>"+x[6]+"</rt><rt>"+x[3]+"</rt><rt>"+x[4]+"</rt></ruby>")
# ------------- insert paragraph break
if (re.match(".*¶",x[2])): f.write("</br></br></br>")
if (re.match(".*¶<strong>",x[2])): f.write("</br></br></br>")
if (re.match(".*¶<em>",x[2])): f.write("</br></br></br>")
if (re.match(".*¶",x[2])): f.write("<br><br><br>")
if (re.match(".*¶<strong>",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-TC-Ruby (https://github.com/Andley/OGNTa)")

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long