about summary refs log tree commit diff
path: root/kindlecomicconverter
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2019-01-04 10:09:25 +0100
committerGitHub <noreply@github.com>2019-01-04 10:09:25 +0100
commit5a8deb4623b126559070bd0633210699c9850709 (patch)
tree2391632cde6a475ac791bd5b0f07ce4059bde0c0 /kindlecomicconverter
parentCode cleanup (diff)
parentsupport kobo forma. (diff)
downloadkcc-5a8deb4623b126559070bd0633210699c9850709.tar.gz
kcc-5a8deb4623b126559070bd0633210699c9850709.tar.bz2
kcc-5a8deb4623b126559070bd0633210699c9850709.zip
Merge pull request #295 from murphytsai/feature/support-kobo-forma
Support Kobo Forma (close #294)
Diffstat (limited to 'kindlecomicconverter')
-rw-r--r--kindlecomicconverter/KCC_gui.py3
-rwxr-xr-xkindlecomicconverter/comic2ebook.py2
-rwxr-xr-xkindlecomicconverter/image.py1
3 files changed, 5 insertions, 1 deletions
diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py
index d46353c..635d628 100644
--- a/kindlecomicconverter/KCC_gui.py
+++ b/kindlecomicconverter/KCC_gui.py
@@ -934,6 +934,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
                               'DefaultUpscale': True, 'Label': 'KoAH2O'},
             "Kobo Aura ONE": {'PVOptions': False, 'ForceExpert': False, 'DefaultFormat': 1,
                               'DefaultUpscale': True, 'Label': 'KoAO'},
+            "Kobo Forma": {'PVOptions': False, 'ForceExpert': False, 'DefaultFormat': 1,
+                              'DefaultUpscale': True, 'Label': 'KoF'},
             "Other": {'PVOptions': False, 'ForceExpert': True, 'DefaultFormat': 1,
                       'DefaultUpscale': False, 'Label': 'OTHER'},
             "Kindle 1": {'PVOptions': False, 'ForceExpert': False, 'DefaultFormat': 0,
@@ -954,6 +956,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
             "Kindle",
             "Separator",
             "Kobo Aura ONE",
+            "Kobo Forma",
             "Kobo Aura H2O",
             "Kobo Aura HD",
             "Kobo Aura",
diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py
index 5cabb1f..78342f9 100755
--- a/kindlecomicconverter/comic2ebook.py
+++ b/kindlecomicconverter/comic2ebook.py
@@ -929,7 +929,7 @@ def makeParser():
 
     mainOptions.add_option("-p", "--profile", action="store", dest="profile", default="KV",
                            help="Device profile (Available options: K1, K2, K34, K578, KDX, KPW, KV, KO, KoMT, KoG,"
-                                " KoGHD, KoA, KoAHD, KoAH2O, KoAO) [Default=KV]")
+                                " KoGHD, KoA, KoAHD, KoAH2O, KoAO, KoF) [Default=KV]")
     mainOptions.add_option("-m", "--manga-style", action="store_true", dest="righttoleft", default=False,
                            help="Manga style (right-to-left reading and splitting)")
     mainOptions.add_option("-q", "--hq", action="store_true", dest="hq", default=False,
diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py
index 9608482..09e79f1 100755
--- a/kindlecomicconverter/image.py
+++ b/kindlecomicconverter/image.py
@@ -94,6 +94,7 @@ class ProfileData:
         'KoA': ("Kobo Aura", (758, 1024), Palette16, 1.8),
         'KoAHD': ("Kobo Aura HD", (1080, 1440), Palette16, 1.8),
         'KoAH2O': ("Kobo Aura H2O", (1080, 1430), Palette16, 1.8),
+        'KoF': ("Kobo Forma", (1440, 1920), Palette16, 1.8),
         'KoAO': ("Kobo Aura ONE", (1404, 1872), Palette16, 1.8),
         'OTHER': ("Other", (0, 0), Palette16, 1.8),
     }