aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-05-23 02:38:55 +0000
committerNick Mathewson <nickm@torproject.org>2003-05-23 02:38:55 +0000
commita5d4c56336ec216006fe830f630b7de5dde5c67a (patch)
tree4fe39099c345876d29d8aeb4afca07101c2a6d5d /config.py
parent4c84657cc6a6cffab2e322c70423e4d3b7977ea9 (diff)
downloadanonbib-a5d4c56336ec216006fe830f630b7de5dde5c67a.tar.gz
Collapse authors with similar names; make output pass XHTML/CSS validators.
Also some author refactoring. svn:r30
Diffstat (limited to 'config.py')
-rw-r--r--config.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.py b/config.py
index 8de6c96..e6eacda 100644
--- a/config.py
+++ b/config.py
@@ -29,6 +29,13 @@ AUTHOR_URLS = {
}
+# List of paterns for author names _not_ to do an initial-tolerant
+# match on when building section list. E.g., if "J\\. Smith" is in
+# this list, he won't be folded into "John Smith".
+NO_COLLAPSE_AUTHORS = [
+
+]
+
INITIAL_STRINGS = {
# MONTHS
'jan' : 'January', 'feb' : 'February',
@@ -55,3 +62,7 @@ OMIT_ENTRIES = ("proceedings", "journal")
AUTHOR_RE_LIST = [
(re.compile(k, re.I), v,) for k, v in AUTHOR_URLS.items()
]
+
+NO_COLLAPSE_AUTHORS_RE_LIST = [
+ re.compile(pat, re.I) for pat in NO_COLLAPSE_AUTHORS
+ ]