mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a special output profile for the PocketBook 900 as it does not resize images correctly by itself
This commit is contained in:
commit
c1e1a8e340
@ -653,6 +653,7 @@ class KindleDXOutput(OutputProfile):
|
||||
return u'%s <br/><span style="color: white">%s</span>' % (', '.join(tags),
|
||||
'ttt '.join(tags)+'ttt ')
|
||||
|
||||
|
||||
class IlliadOutput(OutputProfile):
|
||||
|
||||
name = 'Illiad'
|
||||
@ -731,12 +732,23 @@ class BambookOutput(OutputProfile):
|
||||
fbase = 12
|
||||
fsizes = [10, 12, 14, 16]
|
||||
|
||||
class PocketBook900Output(OutputProfile):
|
||||
|
||||
author = 'Chris Lockfort'
|
||||
name = 'PocketBook Pro 900'
|
||||
short_name = 'pocketbook_900'
|
||||
description = _('This profile is intended for the PocketBook Pro 900 series of devices.')
|
||||
|
||||
screen_size = (810, 1180)
|
||||
dpi = 150.0
|
||||
comic_screen_size = screen_size
|
||||
|
||||
output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output,
|
||||
SonyReader900Output, MSReaderOutput, MobipocketOutput, HanlinV3Output,
|
||||
HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput,
|
||||
iPadOutput, KoboReaderOutput, TabletOutput, SamsungGalaxy,
|
||||
SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput,
|
||||
IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput,
|
||||
BambookOutput, NookColorOutput, GenericEink, GenericEinkLarge]
|
||||
BambookOutput, NookColorOutput, PocketBook900Output, GenericEink, GenericEinkLarge]
|
||||
|
||||
output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower()))
|
||||
|
@ -208,6 +208,12 @@ class PocketBook(CybookG3):
|
||||
id = 'pocketbook'
|
||||
output_profile = 'cybookg3'
|
||||
|
||||
class PocketBook900(PocketBook):
|
||||
|
||||
name = 'PocketBook 900'
|
||||
id = 'pocketbook900'
|
||||
output_profile = 'pocketbook_900'
|
||||
|
||||
class iPhone(Device):
|
||||
|
||||
name = 'iPad or iPhone/iTouch + Stanza'
|
||||
|
Loading…
x
Reference in New Issue
Block a user