From 08d0cfee131efc661a7466798abd0d8e31c57ffd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Oct 2010 16:25:51 -0600 Subject: [PATCH] =?UTF-8?q?Add=20an=20output=20profile=20for=20generic=20t?= =?UTF-8?q?ablet=20devices.=20Fixes=20#7289=20(Wetab=20output=20profile=20?= =?UTF-8?q?(Display=20screen:=2011,6=E2=80=9C,=201366=20x=20768=20Pixels,?= =?UTF-8?q?=20Color.))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/calibre/customize/profiles.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index 27f0805f86..1df2e65f1e 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -4,6 +4,7 @@ __license__ = 'GPL 3' __copyright__ = '2009, Kovid Goyal ' __docformat__ = 'restructuredtext en' +import sys from itertools import izip from xml.sax.saxutils import escape @@ -417,6 +418,13 @@ class iPadOutput(OutputProfile): ''' # }}} +class TabletOutput(iPadOutput): + name = 'Tablet' + short_name = 'tablet' + description = _('Intended for generic tablet devices, does no resizing of images') + + screen_size = (sys.maxint, sys.maxint) + comic_screen_size = (sys.maxint, sys.maxint) class SonyReaderOutput(OutputProfile): @@ -664,7 +672,7 @@ class BambookOutput(OutputProfile): output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, - iPadOutput, KoboReaderOutput, + iPadOutput, KoboReaderOutput, TabletOutput, SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput, BambookOutput, ]