From a0e4043dd71ddae51a65c21aeabc8125e48ef8fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?tr=C3=A9meur?= " + transread.summary)
+ filewrite.write(" Summary: " + transread.summary)
try:
filewrite.write(" " + fileread.summary + "" + character + " ")
# write statistics
if len(povcount) > 0:
- filewrite.write("" + str(len(povcount)) + "")
+ filewrite.write("POV: " + str(len(povcount)) + "")
if len(maincount) > 0:
- filewrite.write("" + str(len(maincount)) + "")
+ filewrite.write("main: " + str(len(maincount)) + "")
if len(secondarycount) > 0:
- filewrite.write("" + str(len(secondarycount)) + "")
+ filewrite.write("secondary: " + str(len(secondarycount)) + "")
if len(mentioncount) > 0:
- filewrite.write("" + str(len(mentioncount)) + "")
+ filewrite.write("mentioned: " + str(len(mentioncount)) + "")
filewrite.write("
\n")
filewrite.close()
# write fic headers in each category
diff --git a/makeheader.py b/makeheader.py
index 910fe0e..5d4519a 100644
--- a/makeheader.py
+++ b/makeheader.py
@@ -50,7 +50,7 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
# give the div an id if requested
if unique:
filewrite.write(" id=\"fic" + ficnostring + "\"")
- filewrite.write(">\n" + ficnostring)
+ filewrite.write(">\n
\n \n")
@@ -187,26 +196,26 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
try:
if transread.language == "en":
try:
- filewrite.write("no. " + ficnostring)
# write ficno including translation if there is one
try:
filewrite.write("/" + translationstring)
@@ -73,8 +73,8 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
except:
pass
if fileread.status == "abandoned":
- filewrite.write(" ")
- filewrite.write("
\n
" + fileread.summary + "
\n") + filewrite.write("Summary: " + fileread.summary + "
\n") except: pass elif transread.language == "fr": try: - filewrite.write("" + fileread.summary) + filewrite.write("
Summary: " + fileread.summary) try: filewrite.write(" " + transread.summary + "
\n") except: filewrite.write("\n") except: try: - filewrite.write("" + transread.summary + "
\n") + filewrite.write("Summary: " + transread.summary + "
\n") except: pass except: @@ -221,14 +230,14 @@ def ficgen(ficno,unique=False,output="output.html",local=False): juvenilia = False try: if fileread.notes: - filewrite.write("") + filewrite.write("
Notes: ") except: try: if fileread.event: - filewrite.write("
") + filewrite.write("
Notes: ") except: if juvenilia: - filewrite.write("
") + filewrite.write("
Notes: ") # if juvenilia, add age if juvenilia: age = relativedelta((fileread.datewords[0])["date"], datetime.datetime(1993,6,28)).years