mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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):
|
||||
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]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user