expoweb/noinfo/make-folklist.py

152 lines
5.7 KiB
Python
Raw Normal View History

#!/usr/bin/python
import sys, string, re
total = 0
pics = 0
allyears = 0
output = ""
lines = sys.stdin.readlines()
allyears = len(lines[0].split(','))-7
for r in lines[1:-1]:
cells = r.split(",")
(name, didntcave, guest, vfho, mug) = cells[:5]
years = cells[5:-1]
expos = cells[-1]
if(didntcave!='1' and name != 'Rover Richardson'): total +=1
if mug: pics +=1
output += '<tr><td style="border: 1px solid black">'
if didntcave: output += '<span class="didntcave">'
output += name[1:-1].replace('""', '"')
if didntcave: output += '</span>'
output += '</td><td style="border: 1px solid black">'
if guest: output += '&sect;'
output += '</td><td style="border: 1px solid black">'
if vfho: output += '&curren;'
output += '</td><td style="border: 1px solid black">'
if mug: output += '<a href=%s><img alt=":-)" src="../../icons/mug.png" /></a>' % mug
output += '&nbsp;</td>'
for y in xrange(len(years)):
if(years[y]):
m = str(76 + y)[-2:]
if(years[y]=='-1'):
m = '<span class="didntcave">'+ m + '</span>'
output += '<td class="nonempty">' + m + '</td>'
else:
output += '<td></td>'
output += '</tr>\n'
def collapse(m):
n = (m.span()[1]-m.span()[0]) / 9
if(n == 1): return m.group()
else: return '<td colspan="%d"></td>' % n
output = re.sub(r'(<td></td>)+',collapse, output)
print """
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CUCC's Austria expeditions: Members</title>
<link rel="stylesheet" type="text/css" href="../css/main2.css" />
<style type="text/css">
<!--
.didntcave { font-color: #cc0000 }
table.fancy { border-collapse: collapse; border: 2px solid #000 }
table.fancy td { border-top: 1px solid #000; border-bottom: 1px solid #000;
padding: 2pt; }
table.fancy td.nonempty { background: #eee; border-left: 1px solid #888; border-right: 1px solid #888 }
-->
</style>
</head>
<body>
<!-- DO NOT EDIT THIS DOCUMENT BY HAND! It is automatically generated. -->
<h1>CUCC members and guests in Austria 1976 to present</h1>
<p>Being a pretty much complete list of all the personnel on %d CUCC
expeditions (there was no expo in 1986). Names for the current year (as updated
before departure) are always subject to revision in the light of reality !
People sometimes get missed out because no-one has told me their surnames :-(
<!-- Sharon in 2000 --></p>
<p>Qualification for inclusion involves some active contribution to the
expedition such as going underground, surface surveying or sherpa-ing, or
diving for resurgences. Years marked in <span style="didntcave">red</span>
indicate some certainty that the person didn't go underground that year.
Persons marked in <span class="didntcave">red</span> are thought to have never
been underground on expo and are therefore likely to vanish from future
editions. Note that diving in <span lang="de-at">Altausseer See</span> for the
resurgence has been counted as underground:- it certainly counts as effort
expended in the pursuit of speleology!</p>
<p>In the table, a section mark (&sect;) indicates someone who was an
individual guest of CUCC or of a CUCC member, or who was a member of UBSS when
they were present as a guest club in 1981 and 1982. I don't guarantee to have
got all such people correctly marked. Similarly, the currency symbol (&curren;)
marks those who are (or were) individual members of the local Austrian group
<span lang="de-at">Verein f&uuml;r H&ouml;hlenkunde im Obersteier</span>. A
smiley or face icon indicates a link to a mugshot (and brief notes) in our
Rogues' Gallery - at present a few of these are still just raw jpegs with no
html (and therefore no links), so we recommend opening them in a new window to
save using the back button. Just one of the listed members is a vehicle - no
prizes for guessing which one without looking at the photos :-)</p>
<p>The table doesn't include the local cavers who have caved with us at various
times. These include particularly Karl Gaisberger, Gunter Graf, Sepp
Steinberger and Robert Seebacher <a href="i/robert.jpg"><img alt=":-)"
src="../../icons/mug.png" /></a>.</p>
<hr /><table class="fancy">
""" % allyears
print output
print """
</table><hr />
<p>%d people have
taken part in expo altogether (not counting non-combatants or vehicles(!)),
of whom %d have their pictures on the site so far.</p>
<p>Outside-expo caving has started, with Becka Lawson, Julian Todd and Wookey
joining various Arge trips in recent years. However, the much talked-about
winter expedition/holiday has still not happened, though there is still a lot
to be said for it. With draughts reversed in the cold, top entrances should
be more obvious and skiing would make a nice change from sitting watching the
rain. Some entrances would inevitably be blocked by snow but others seem to
remain open all winter.</p>
<hr />
<!-- LINKS -->
<ul id="links">
<li>Back to <a href="../../index.htm">CUCC Home page</a></li>
<li><b>Main Indices:</b>
<ul>
<li><a href="../infodx.htm"><b>Index</b> to Expo</a> information pages</li>
<li><a href="../areas.htm">Description of CUCC's area</a> and split to subareas</li>
<li>Full <a href="../indxal.htm">Index to cave descriptions</a> in area 1623</li>
<li>Adjacent area <a href="../1626/index.htm">1626</a></li>
<li>List of (links to) <a href="../pubs.htm">published reports and logbooks</a></li>
</ul></li>
<li><b>Pictures:</b>
<ul>
<li><a href="../gall0.htm">Text only Index</a></li>
<li><a href="../gallery/0.htm">Index pages (with thumbnails)</a></li>
</ul></li>
<li>Other info:
<ul>
<li>Table of <a href="../folk/index.htm">members of CUCC expeditions</a> 1976-present</li>
<li><a href="../others/index.htm">Other groups</a> who have worked in the area.</li>
</ul></li></ul>
</body>
</html>""" % (total, pics)