Add a new output profile for the Kindle PW 3

Also add a generic HD eink profile that does no image resizing, so it
can be used with modern e-ink devices.
This commit is contained in:
Kovid Goyal 2015-08-31 08:47:54 +05:30
parent 37349f1e56
commit e8cc67b5c2

View File

@ -531,6 +531,16 @@ class GenericEinkLarge(GenericEink):
screen_size = (600, 999) screen_size = (600, 999)
comic_screen_size = screen_size comic_screen_size = screen_size
class GenericEinkHD(GenericEink):
name = 'Generic e-ink HD'
short_name = 'generic_eink_hd'
description = _('Suitable for use with any modern high resolution e-ink device')
screen_size = (10000, 10000)
comic_screen_size = (10000, 10000)
class JetBook5Output(OutputProfile): class JetBook5Output(OutputProfile):
name = 'JetBook 5-inch' name = 'JetBook 5-inch'
@ -662,7 +672,7 @@ class KindlePaperWhiteOutput(KindleOutput):
name = 'Kindle PaperWhite' name = 'Kindle PaperWhite'
short_name = 'kindle_pw' short_name = 'kindle_pw'
description = _('This profile is intended for the Amazon Kindle PaperWhite') description = _('This profile is intended for the Amazon Kindle PaperWhite 1 and 2')
# Screen size is a best guess # Screen size is a best guess
screen_size = (658, 940) screen_size = (658, 940)
@ -681,6 +691,12 @@ class KindleVoyageOutput(KindleOutput):
dpi = 300.0 dpi = 300.0
comic_screen_size = screen_size comic_screen_size = screen_size
class KindlePaperWhite3Output(KindleVoyageOutput):
name = 'Kindle PaperWhite 3'
short_name = 'kindle_pw3'
description = _('This profile is intended for the Amazon Kindle PaperWhite 3 and above')
class KindleFireOutput(KindleDXOutput): class KindleFireOutput(KindleDXOutput):
@ -793,13 +809,17 @@ class PocketBookPro912Output(OutputProfile):
dpi = 155.0 dpi = 155.0
comic_screen_size = screen_size comic_screen_size = screen_size
output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output, output_profiles = [
SonyReader900Output, SonyReaderT3Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output,
HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, SonyReaderT3Output, MSReaderOutput, MobipocketOutput, HanlinV3Output,
iPadOutput, iPad3Output, KoboReaderOutput, TabletOutput, SamsungGalaxy, HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, iPadOutput,
SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, NookHD, iPad3Output, KoboReaderOutput, TabletOutput, SamsungGalaxy,
IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput, SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, NookHD,
BambookOutput, NookColorOutput, PocketBook900Output, PocketBookPro912Output, IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput,
GenericEink, GenericEinkLarge, KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput] BambookOutput, NookColorOutput, PocketBook900Output,
PocketBookPro912Output, GenericEink, GenericEinkLarge, GenericEinkHD,
KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput,
KindlePaperWhite3Output
]
output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower())) output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower()))