mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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)
This commit is contained in:
parent
0e2108e74a
commit
9f202c1e9a
@ -228,6 +228,7 @@ class NookInput(InputProfile):
|
|||||||
fbase = 16
|
fbase = 16
|
||||||
fsizes = [12, 12, 14, 16, 18, 20, 22, 24]
|
fsizes = [12, 12, 14, 16, 18, 20, 22, 24]
|
||||||
|
|
||||||
|
|
||||||
input_profiles = [InputProfile, SonyReaderInput, SonyReader300Input,
|
input_profiles = [InputProfile, SonyReaderInput, SonyReader300Input,
|
||||||
SonyReader900Input, MSReaderInput, MobipocketInput, HanlinV3Input,
|
SonyReader900Input, MSReaderInput, MobipocketInput, HanlinV3Input,
|
||||||
HanlinV5Input, CybookG3Input, CybookOpusInput, KindleInput, IlliadInput,
|
HanlinV5Input, CybookG3Input, CybookOpusInput, KindleInput, IlliadInput,
|
||||||
@ -741,6 +742,18 @@ class KindlePaperWhite3Output(KindleVoyageOutput):
|
|||||||
comic_screen_size = screen_size
|
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):
|
class KindleFireOutput(KindleDXOutput):
|
||||||
|
|
||||||
name = 'Kindle Fire'
|
name = 'Kindle Fire'
|
||||||
@ -844,6 +857,7 @@ class PocketBookPro912Output(OutputProfile):
|
|||||||
dpi = 155.0
|
dpi = 155.0
|
||||||
comic_screen_size = screen_size
|
comic_screen_size = screen_size
|
||||||
|
|
||||||
|
|
||||||
output_profiles = [
|
output_profiles = [
|
||||||
OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output,
|
OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output,
|
||||||
SonyReaderT3Output, MSReaderOutput, MobipocketOutput, HanlinV3Output,
|
SonyReaderT3Output, MSReaderOutput, MobipocketOutput, HanlinV3Output,
|
||||||
@ -854,7 +868,7 @@ output_profiles = [
|
|||||||
NookColorOutput, PocketBook900Output,
|
NookColorOutput, PocketBook900Output,
|
||||||
PocketBookPro912Output, GenericEink, GenericEinkLarge, GenericEinkHD,
|
PocketBookPro912Output, GenericEink, GenericEinkLarge, GenericEinkHD,
|
||||||
KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput,
|
KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput,
|
||||||
KindlePaperWhite3Output
|
KindlePaperWhite3Output, KindleOasisOutput
|
||||||
]
|
]
|
||||||
|
|
||||||
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()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user