mirror of
https://github.com/ciromattia/kcc
synced 2025-12-28 09:01:52 +00:00
Small cleanup
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user