Revision: 6188
Author: wikipedian
Date: 2008-12-23 10:59:09 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
more typical ISBN format mistakes
Modified Paths:
--------------
trunk/pywikipedia/fixes.py
Modified: trunk/pywikipedia/fixes.py
===================================================================
--- trunk/pywikipedia/fixes.py 2008-12-22 17:08:18 UTC (rev 6187)
+++ trunk/pywikipedia/fixes.py 2008-12-23 10:59:09 UTC (rev 6188)
@@ -386,6 +386,8 @@
'replacements': [
# colon
(r'ISBN: (\d+)', r'ISBN \1'),
+ # superfluous word "number"
+ (r'ISBN( number| no\.?| No\.?|-Nummer|-Nr\.):? (\d+)', r'ISBN
\2'),
# Spaces, dashes, or dots instead of hyphens as separators,
# or spaces between digits and separators.
# Note that these regular expressions also match valid ISBNs, but