From 9302b1e11cb7d94cec9e7dba79d0142c565f90ed Mon Sep 17 00:00:00 2001 From: Eric Cronin Date: Sat, 6 Mar 2010 19:12:37 -0500 Subject: [PATCH] Updated iRex DR800 support --- src/calibre/customize/profiles.py | 29 ++++++++++++++++++++++++++-- src/calibre/devices/irexdr/driver.py | 3 ++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index f260b54fa0..52223eeadf 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -185,6 +185,17 @@ class IRexDR1000Input(InputProfile): fbase = 16 fsizes = [12, 14, 16, 18, 20, 22, 24] +class IRexDR800Input(InputProfile): + + author = 'Eric Cronin' + name = 'IRex Digital Reader 800' + short_name = 'irexdr800' + description = _('This profile is intended for the IRex Digital Reader 800.') + + screen_size = (768, 1024) + dpi = 160 + fbase = 16 + fsizes = [12, 14, 16, 18, 20, 22, 24] class NookInput(InputProfile): @@ -202,7 +213,7 @@ class NookInput(InputProfile): input_profiles = [InputProfile, SonyReaderInput, SonyReader300Input, SonyReader900Input, MSReaderInput, MobipocketInput, HanlinV3Input, HanlinV5Input, CybookG3Input, CybookOpusInput, KindleInput, IlliadInput, - IRexDR1000Input, NookInput] + IRexDR1000Input, IRexDR800Input, NookInput] class OutputProfile(Plugin): @@ -407,6 +418,20 @@ class IRexDR1000Output(OutputProfile): fbase = 16 fsizes = [12, 14, 16, 18, 20, 22, 24] +class IRexDR800Output(OutputProfile): + + author = 'Eric Cronin' + name = 'IRex Digital Reader 800' + short_name = 'irexdr800' + description = _('This profile is intended for the IRex Digital Reader 800.') + + # Screen size is a best guess + screen_size = (768, 1024) + comic_screen_size = (768, 1024) + dpi = 160 + fbase = 16 + fsizes = [12, 14, 16, 18, 20, 22, 24] + class NookOutput(OutputProfile): author = 'John Schember' @@ -425,4 +450,4 @@ output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output, SonyReader900Output, MSReaderOutput, MobipocketOutput, HanlinV3Output, HanlinV5Output, CybookG3Output, CybookOpusOutput, KindleOutput, SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, - IRexDR1000Output, JetBook5Output, NookOutput] + IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput] diff --git a/src/calibre/devices/irexdr/driver.py b/src/calibre/devices/irexdr/driver.py index 63295432f5..bd2a91740b 100644 --- a/src/calibre/devices/irexdr/driver.py +++ b/src/calibre/devices/irexdr/driver.py @@ -42,8 +42,9 @@ class IREXDR800(IREXDR1000): description = _('Communicate with the IRex Digital Reader 800') PRODUCT_ID = [0x002] WINDOWS_MAIN_MEM = 'DR800' - FORMATS = ['epub', 'html', 'pdf', 'txt'] + FORMATS = ['epub', 'pdb', 'html', 'pdf', 'txt'] EBOOK_DIR_MAIN = 'Books' DELETE_EXTS = [] + SUPPORTS_SUB_DIRS = True