mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add conversion profile for Kindle DX
This commit is contained in:
parent
8adf54c7b4
commit
f05215d88a
@ -235,7 +235,22 @@ class KindleOutput(OutputProfile):
|
|||||||
def tags_to_string(cls, tags):
|
def tags_to_string(cls, tags):
|
||||||
return 'ttt '.join(tags)+'ttt '
|
return 'ttt '.join(tags)+'ttt '
|
||||||
|
|
||||||
|
class KindleDXOutput(OutputProfile):
|
||||||
|
|
||||||
|
name = 'Kindle DX'
|
||||||
|
short_name = 'kindle_dx'
|
||||||
|
description = _('This profile is intended for the Amazon Kindle DX.')
|
||||||
|
|
||||||
|
# Screen size is a best guess
|
||||||
|
screen_size = (1200, 824)
|
||||||
|
dpi = 150.0
|
||||||
|
comic_screen_size = (1180, 800)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def tags_to_string(cls, tags):
|
||||||
|
return 'ttt '.join(tags)+'ttt '
|
||||||
|
|
||||||
|
|
||||||
output_profiles = [OutputProfile, SonyReaderOutput, MSReaderOutput,
|
output_profiles = [OutputProfile, SonyReaderOutput, MSReaderOutput,
|
||||||
MobipocketOutput, HanlinV3Output, CybookG3Output, KindleOutput,
|
MobipocketOutput, HanlinV3Output, CybookG3Output, KindleOutput,
|
||||||
SonyReaderLandscapeOutput]
|
SonyReaderLandscapeOutput, KindleDXOutput]
|
||||||
|
@ -63,6 +63,13 @@ class Kindle(Device):
|
|||||||
manufacturer = 'Amazon'
|
manufacturer = 'Amazon'
|
||||||
id = 'kindle'
|
id = 'kindle'
|
||||||
|
|
||||||
|
class KindleDX(Kindle):
|
||||||
|
|
||||||
|
output_profile = 'kindle_dx'
|
||||||
|
output_format = 'MOBI'
|
||||||
|
name = 'Kindle DX'
|
||||||
|
id = 'kindledx'
|
||||||
|
|
||||||
class Sony500(Device):
|
class Sony500(Device):
|
||||||
|
|
||||||
output_profile = 'sony'
|
output_profile = 'sony'
|
||||||
@ -307,7 +314,7 @@ class DevicePage(QWizardPage, DeviceUI):
|
|||||||
def nextId(self):
|
def nextId(self):
|
||||||
idx = list(self.device_view.selectionModel().selectedIndexes())[0]
|
idx = list(self.device_view.selectionModel().selectedIndexes())[0]
|
||||||
dev = self.dev_model.data(idx, Qt.UserRole)
|
dev = self.dev_model.data(idx, Qt.UserRole)
|
||||||
if dev is Kindle:
|
if dev in (Kindle, KindleDX):
|
||||||
return KindlePage.ID
|
return KindlePage.ID
|
||||||
if dev is iPhone:
|
if dev is iPhone:
|
||||||
return StanzaPage.ID
|
return StanzaPage.ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user