From 02d1fe308df0ca0b76080153c74d7bf0cbcb612d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 21 Jun 2013 18:30:11 +0200 Subject: [PATCH] Small cleanup --- kcc/KCC_gui.py | 1 - kcc/KCC_rc.py | 2 +- kcc/KCC_ui.py | 2 +- kcc/KCC_ui_osx.py | 2 +- kcc/comic2ebook.py | 8 +++----- kcc/image.py | 1 + 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 4d8159f..5f91198 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -33,7 +33,6 @@ from image import ProfileData from subprocess import call, Popen, STDOUT, PIPE from PyQt4 import QtGui, QtCore from xml.dom.minidom import parse -from string import split class Icons: diff --git a/kcc/KCC_rc.py b/kcc/KCC_rc.py index 0fa5393..c25c54d 100644 --- a/kcc/KCC_rc.py +++ b/kcc/KCC_rc.py @@ -2,7 +2,7 @@ # Resource object code # -# Created: Śr 19. cze 10:35:51 2013 +# Created: Pt 21. cze 18:23:49 2013 # by: The Resource Compiler for PyQt (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! diff --git a/kcc/KCC_ui.py b/kcc/KCC_ui.py index d89fea3..7d3baba 100644 --- a/kcc/KCC_ui.py +++ b/kcc/KCC_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'KCC.ui' # -# Created: Wed Jun 19 11:39:49 2013 +# Created: Fri Jun 21 18:23:19 2013 # by: PyQt4 UI code generator 4.10.1 # # WARNING! All changes made in this file will be lost! diff --git a/kcc/KCC_ui_osx.py b/kcc/KCC_ui_osx.py index 14fa220..8f218c1 100644 --- a/kcc/KCC_ui_osx.py +++ b/kcc/KCC_ui_osx.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'KCC-OSX.ui' # -# Created: Wed Jun 19 13:56:35 2013 +# Created: Fri Jun 21 18:23:35 2013 # by: PyQt4 UI code generator 4.10.1 # # WARNING! All changes made in this file will be lost! diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index a822df4..e8ba199 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -627,10 +627,8 @@ def getWorkFolder(afile): def slugify(value): - """ - Normalizes string, converts to lowercase, removes non-alpha characters, - and converts spaces to hyphens. - """ + # Normalizes string, converts to lowercase, removes non-alpha characters, + # and converts spaces to hyphens. import unicodedata value = unicodedata.normalize('NFKD', unicode(value, 'latin1')).encode('ascii', 'ignore') value = re.sub('[^\w\s\.-]', '', value).strip().lower() @@ -794,7 +792,7 @@ def checkOptions(): options.panelview = True options.landscapemode = False else: - # Virtual Panel View + # Virtual Panel View or Panel View disabled options.panelview = False # Older Kindle don't need higher resolution files due lack of Panel View. # Kindle Fire family have very high resolution. Bigger images are not needed. diff --git a/kcc/image.py b/kcc/image.py index 7b39f29..2874c1c 100755 --- a/kcc/image.py +++ b/kcc/image.py @@ -181,6 +181,7 @@ class ComicPage: size = (self.size[0], self.size[1]) else: size = (self.panelviewsize[0], self.panelviewsize[1]) + # Kindle Paperwhite - Force upscale of splited pages to increase readability if isSplit and landscapeMode: upscale = True if self.image.size[0] <= self.size[0] and self.image.size[1] <= self.size[1]: