1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-20 21:40:54 +00:00

Fixed an issue in OPF generation for device resolution (fixes #4)

Reworked options system (call with -h option to get the inline help) (fixes #3)
This commit is contained in:
Ciro Mattia Gonano
2013-01-10 13:03:13 +01:00
parent d24c88d3c2
commit 988a357555
11 changed files with 139 additions and 89 deletions
@@ -24,7 +24,7 @@ class ImageFlags:
Stretch = 1 << 4
class KindleData:
class ProfileData:
Palette4 = [
0x00, 0x00, 0x00,
0x55, 0x55, 0x55,
@@ -80,7 +80,7 @@ class KindleData:
class ComicPage:
def __init__(self,source,device):
try:
self.size, self.palette = KindleData.Profiles[device]
self.size, self.palette = ProfileData.Profiles[device]
except KeyError:
raise RuntimeError('Unexpected output device %s' % device)
try: