From c54008869b60e6bdf39a4db7ea88b81e1f6db7ca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 May 2010 18:48:57 -0600 Subject: [PATCH] Add entries to the welcome wizard for the Kobo and PocketBook readers --- src/calibre/customize/profiles.py | 14 +++++++++++++- src/calibre/gui2/wizard/__init__.py | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index f253b17c6e..242c7d8a91 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -261,6 +261,18 @@ class SonyReaderOutput(OutputProfile): fbase = 12 fsizes = [7.5, 9, 10, 12, 15.5, 20, 22, 24] +class KoboReaderOutput(OutputProfile): + + name = 'Kobo Reader' + short_name = 'kobo' + + description = _('This profile is intended for the Kobo Reader.') + + screen_size = (590, 775) + dpi = 168.451 + fbase = 12 + fsizes = [7.5, 9, 10, 12, 15.5, 20, 22, 24] + class SonyReader300Output(SonyReaderOutput): author = 'John Schember' @@ -461,7 +473,7 @@ class NookOutput(OutputProfile): output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, - iPadOutput, + iPadOutput, KoboReaderOutput, SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput,] diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index 6141494bbf..30127b7266 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -92,6 +92,14 @@ class Sony505(Sony500): name = 'SONY Reader 6" and Touch Edition' id = 'prs505' +class Kobo(Device): + name = 'Kobo Reader' + manufacturer = 'Kobo' + output_profile = 'kobo' + output_format = 'EPUB' + name = 'Kobo Reader' + id = 'kobo' + class Sony300(Sony505): name = 'SONY Reader Pocket Edition' @@ -125,6 +133,20 @@ class CybookOpus(CybookG3): output_profile = 'cybook_opus' id = 'cybook_opus' +class PocketBook360(CybookOpus): + + manufacturer = 'PocketBook' + name = 'PocketBook 360' + id = 'pocketbook360' + output_profile = 'cybook_opus' + +class PocketBook(CybookG3): + + manufacturer = 'PocketBook' + name = 'PocketBook 301/302' + id = 'pocketbook' + output_profile = 'cybookg3' + class iPhone(Device): name = 'iPad or iPhone/iTouch + Stanza'