From 1d89cacb150ea09206f320b1b91b1d0f5c0a145f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Mar 2012 22:58:56 +0530 Subject: [PATCH] Add iPad3 Output Profile --- src/calibre/customize/profiles.py | 11 ++++++++++- src/calibre/gui2/wizard/__init__.py | 9 ++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index cf35fe93b3..9a8ded1244 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -432,6 +432,15 @@ class iPadOutput(OutputProfile): ''' # }}} +class iPad3Output(iPadOutput): + + screen_size = comic_screen_size = (2048, 1536) + dpi = 264.0 + name = 'iPad 3' + short_name = 'ipad3' + description = _('Intended for the iPad 3 and similar devices with a ' + 'resolution of 1536x2048') + class TabletOutput(iPadOutput): name = 'Tablet' short_name = 'tablet' @@ -755,7 +764,7 @@ class PocketBook900Output(OutputProfile): output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, - iPadOutput, KoboReaderOutput, TabletOutput, SamsungGalaxy, + iPadOutput, iPad3Output, KoboReaderOutput, TabletOutput, SamsungGalaxy, SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput, BambookOutput, NookColorOutput, PocketBook900Output, GenericEink, diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index 097bf0707f..382296f48b 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -242,11 +242,18 @@ class PocketBook900(PocketBook): class iPhone(Device): - name = 'iPad or iPhone/iTouch + Stanza' + name = 'iPhone/iTouch' output_format = 'EPUB' manufacturer = 'Apple' id = 'iphone' supports_color = True + output_profile = 'ipad' + +class iPad(iPhone): + + name = 'iPad' + id = 'ipad' + output_profile = 'ipad3' class Android(Device):