#!/usr/local/bin/python import sys,string sys.path.append('../internal') import otros curep = string.atoi(sys.argv[1]) if len(sys.argv) == 3: output = otros.pageheader(curep, 'other') else: output = otros.pageheader(curep, 'guide') if len(sys.argv) != 3: output = output + """ <p> <b>Contents:</b> <a href="#OV">Overview</a> - <a href="#BP">Backplot</a> - <a href="#UQ">Questions</a> - <a href="#AN">Analysis</a> - <a href="#NO">Notes</a> - <a href="#JS">JMS</a> <p> <hr> """ print output
pix = open('../internal/epnames', 'r') for i in range(0, curep + 1): epname = pix.readline()[:-1] pix.close() if epname == '': epname = 'XXX' curep = `curep` input = open('story.html', 'r') output = open(cureplong + '.shtml', 'w') page_name = 'Background: "' + epname + '"' output.write(otros.head(page_name)) output.write("<body>\n") output.write(otros.pageheader(curepno, 'background', 1)) output.write("\n<pre>\n\n</pre>\n") printing = 1 # # We have concise outlines of some swaths of the story. # max_summary = 0 if curepno > 24: max_summary = 24 if curepno > 44: max_summary = 44 if curepno > 66: max_summary = 66
#!/usr/local/bin/python import sys, string sys.path.append('../internal') import otros curep = string.atoi(sys.argv[1]) output = otros.pageheader(curep, 'synopsis') output = output + """<pre> </pre>""" print output
pix = open('../internal/epnames', 'r') for i in range(0, curep + 1): epname = pix.readline()[:-1] pix.close() if epname == '': epname = 'XXX' curep = ` curep ` input = open('story.html', 'r') output = open(cureplong + '.shtml', 'w') page_name = 'Background: "' + epname + '"' output.write(otros.head(page_name)) output.write("<body>\n") output.write(otros.pageheader(curepno, 'background', 1)) output.write("\n<pre>\n\n</pre>\n") printing = 1 # # We have concise outlines of some swaths of the story. # max_summary = 0 if curepno > 24: max_summary = 24 if curepno > 44: max_summary = 44 if curepno > 66: max_summary = 66
page_name = perdir.get_page_name_prefix() + ': "' + epname + '"' if which == 'extra': page_name = page_name + ' (scene in detail)' output.write(otros.head(page_name)) output.write("<body>\n") try: special = open(epnum + '-head', 'r') output.write(special.read()) special.close() except: pass output.write(otros.pageheader(curep, which, do_jpeg)) if which == 'extra': output.write(""" <pre> </pre> """) elif perdir.get_type() == 'credits': output.write("\n<pre>\n") else: toc = perdir.get_table_of_contents() if len(toc) > 0: output.write(toc) output.write("\n<p>\n<hr>\n")
#!/usr/local/bin/python import sys,string sys.path.append('../internal') import otros curep = string.atoi(sys.argv[1]) output = otros.pageheader(curep, 'synopsis') output = output + """<pre> </pre>""" print output