From d35dd536c78071069e9831944e30f2a4a555a594 Mon Sep 17 00:00:00 2001 From: some_updates Date: Wed, 6 Jan 2010 10:35:15 +0000 Subject: [PATCH] erdr2pml 0.12 --- eReader_Tools/lib/erdr2pml.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eReader_Tools/lib/erdr2pml.py b/eReader_Tools/lib/erdr2pml.py index ee061ba..6bae3f5 100644 --- a/eReader_Tools/lib/erdr2pml.py +++ b/eReader_Tools/lib/erdr2pml.py @@ -50,8 +50,9 @@ # 0.09 - fixed typos in first_pages to first_page to again support older formats # 0.10 - minor cleanups # 0.11 - fixups for using correct xml for footnotes and sidebars for use with Dropbook +# 0.12 - fixup for file name cleaning - no longer converts to lower case -__version__='0.11' +__version__='0.12' # Import Psyco if available try: @@ -324,8 +325,8 @@ class Sectionizer(object): def sanitizeFileName(s): r = '' - for c in s.lower(): - if c in "abcdefghijklmnopqrstuvwxyz0123456789_.-": + for c in s: + if c in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-": r += c return r