From 9f202c1e9a0d21baf905c3adb225fb5aa8a2a56b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Mar 2018 07:56:08 +0530 Subject: [PATCH] Add an output profile for the Kindle Oasis 2017 Fixes #1759434 [no output profile for Kindle Oasis 2017 7" (display res. 1680x1264)](https://bugs.launchpad.net/calibre/+bug/1759434) --- src/calibre/customize/profiles.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index f3707c2a9a..d4cc312b8b 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -228,6 +228,7 @@ class NookInput(InputProfile): fbase = 16 fsizes = [12, 12, 14, 16, 18, 20, 22, 24] + input_profiles = [InputProfile, SonyReaderInput, SonyReader300Input, SonyReader900Input, MSReaderInput, MobipocketInput, HanlinV3Input, HanlinV5Input, CybookG3Input, CybookOpusInput, KindleInput, IlliadInput, @@ -741,6 +742,18 @@ class KindlePaperWhite3Output(KindleVoyageOutput): comic_screen_size = screen_size +class KindleOasisOutput(KindlePaperWhite3Output): + + name = 'Kindle Oasis' + short_name = 'kindle_oasis' + description = _('This profile is intended for the Amazon Kindle Oasis 2017 and above') + # Screen size is currently just the spec size, actual renderable area will + # depend on someone with the device doing tests. + screen_size = (1264, 1680) + dpi = 300.0 + comic_screen_size = screen_size + + class KindleFireOutput(KindleDXOutput): name = 'Kindle Fire' @@ -844,6 +857,7 @@ class PocketBookPro912Output(OutputProfile): dpi = 155.0 comic_screen_size = screen_size + output_profiles = [ OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output, SonyReaderT3Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, @@ -854,7 +868,7 @@ output_profiles = [ NookColorOutput, PocketBook900Output, PocketBookPro912Output, GenericEink, GenericEinkLarge, GenericEinkHD, KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput, - KindlePaperWhite3Output + KindlePaperWhite3Output, KindleOasisOutput ] output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower()))