Add conversion profile for Kindle DX

This commit is contained in:
Kovid Goyal 2009-06-01 21:42:03 -07:00
parent 8adf54c7b4
commit f05215d88a
2 changed files with 24 additions and 2 deletions

View File

@ -235,7 +235,22 @@ class KindleOutput(OutputProfile):
def tags_to_string(cls, tags):
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,
MobipocketOutput, HanlinV3Output, CybookG3Output, KindleOutput,
SonyReaderLandscapeOutput]
SonyReaderLandscapeOutput, KindleDXOutput]

View File

@ -63,6 +63,13 @@ class Kindle(Device):
manufacturer = 'Amazon'
id = 'kindle'
class KindleDX(Kindle):
output_profile = 'kindle_dx'
output_format = 'MOBI'
name = 'Kindle DX'
id = 'kindledx'
class Sony500(Device):
output_profile = 'sony'
@ -307,7 +314,7 @@ class DevicePage(QWizardPage, DeviceUI):
def nextId(self):
idx = list(self.device_view.selectionModel().selectedIndexes())[0]
dev = self.dev_model.data(idx, Qt.UserRole)
if dev is Kindle:
if dev in (Kindle, KindleDX):
return KindlePage.ID
if dev is iPhone:
return StanzaPage.ID