commit e6aa9b60b03e7cd8e57e2c034a41dfe83b225d1a
parent b54a6f3366e3c7345212fa961354a5a958f6dc03
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 21 May 2003 18:43:36 +0000
Fix a couple of bugs
svn:r24
Diffstat:
5 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/BibTeX.py b/BibTeX.py
@@ -106,6 +106,7 @@ def splitEntriesByAuthor(entries):
for ent in entries:
for a in ent.parsedAuthor:
sortkey = txtize(" ".join(a.von+a.last+a.first+a.jr))
+ url = author_url(" ".join(a.first+a.von+a.last+a.jr))
secname = " ".join(a.last)
more = a.first+a.von
if more:
@@ -113,7 +114,6 @@ def splitEntriesByAuthor(entries):
if a.jr:
secname += ", "+" ".join(a.jr)
secname = htmlize(secname)
- url = author_url(secname)
if url:
url_map[secname] = url
diff --git a/TODO b/TODO
@@ -19,3 +19,7 @@ First usable python version:
o "Important" note.
o Remarks
+Next:
+ - Know about @book
+ - Maybe uncrossref in tmp.bib
+ - Maybe pull important papers to the start of their sections?
diff --git a/anonbib.bib b/anonbib.bib
@@ -28,6 +28,8 @@
month = {February},
www_section = mix,
www_txt_url = "http://www.eskimo.com/~weidai/mix-net.txt",
+ www_important = {1},
+ www_remarks = {Chaum's paper that has all the big ideas.}
}
@Misc{mixminion-spec,
diff --git a/reconcile.py b/reconcile.py
@@ -3,7 +3,7 @@
import sys
import re
-assert sys.version[:3] >= (2,2,0)
+assert sys.version_info[:3] >= (2,2,0)
import BibTeX
import config
@@ -230,7 +230,7 @@ print "========= Scanning new file ========"
try:
fn = sys.argv[1]
input = BibTeX.parseFile(fn)
-except BibTex.ParseError, e:
+except BibTeX.ParseError, e:
print "Error parsing %s: %s"%(fn,e)
sys.exit(1)
diff --git a/writeHTML.py b/writeHTML.py
@@ -4,7 +4,7 @@ import sys
import re
import os
-assert sys.version[:3] >= (2,2,0)
+assert sys.version_info[:3] >= (2,2,0)
import BibTeX
import config
@@ -22,14 +22,14 @@ def writeBody(f, sections, section_urls):
section_urls: map from sectionname to external url'''
for s, entries in sections:
u = section_urls.get(s)
- s = re.sub(r'\s+', ' ', s.strip())
- s = s.replace(" ", " ")
+ sDisp = re.sub(r'\s+', ' ', s.strip())
+ sDisp = sDisp.replace(" ", " ")
if u:
print >>f, ('<h3><a name="%s"><a href="%s">%s</a></a></h3>'%(
- (BibTeX.url_untranslate(s), u, s)))
+ (BibTeX.url_untranslate(s), u, sDisp)))
else:
print >>f, ('<h3><a name="%s">%s</a></h3>'%(
- BibTeX.url_untranslate(s),s))
+ BibTeX.url_untranslate(s),sDisp))
print >>f, "<ul class='expand'>"
for e in entries:
print >>f, e.to_html()