Ejemplo n.º 1
0
#!/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
Ejemplo n.º 2
0
	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
Ejemplo n.º 3
0
#!/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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
    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")
Ejemplo n.º 6
0
#!/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
Ejemplo n.º 7
0
	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")