mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add device driver for the Airis dBook
This commit is contained in:
commit
21494167fb
@ -133,7 +133,7 @@ class ITALICA(EB600):
|
||||
|
||||
class ECLICTO(EB600):
|
||||
|
||||
name = 'eClicto device interface'
|
||||
name = 'eClicto Device Interface'
|
||||
gui_name = 'eClicto'
|
||||
|
||||
FORMATS = ['epub', 'pdf', 'txt']
|
||||
@ -145,4 +145,13 @@ class ECLICTO(EB600):
|
||||
EBOOK_DIR_MAIN = 'Text'
|
||||
EBOOK_DIR_CARD_A = ''
|
||||
|
||||
class Dbook(EB600):
|
||||
|
||||
name = 'Airis Dbook Device Interface'
|
||||
gui_name = 'Airis Dbook'
|
||||
|
||||
FORMATS = ['epub', 'mobi', 'prc', 'fb2', 'html', 'pdf', 'rtf', 'txt']
|
||||
|
||||
VENDOR_NAME = 'INFINITY'
|
||||
WINDOWS_MAIN_MEM = 'AIRIS_DBOOK'
|
||||
WINDOWS_CARD_A_MEM = 'AIRIS_DBOOK'
|
||||
|
@ -41,6 +41,8 @@ class NOOK(USBMS):
|
||||
STORAGE_CARD_VOLUME_LABEL = 'Nook Storage Card'
|
||||
|
||||
EBOOK_DIR_MAIN = 'my documents'
|
||||
THUMBNAIL_HEIGHT = 144
|
||||
DELETE_EXTS = ['.jpg']
|
||||
SUPPORTS_SUB_DIRS = True
|
||||
|
||||
def upload_cover(self, path, filename, metadata):
|
||||
@ -54,7 +56,6 @@ class NOOK(USBMS):
|
||||
coverdata = metadata.get('cover', None)
|
||||
if coverdata:
|
||||
cover = Image.open(cStringIO.StringIO(coverdata[2]))
|
||||
cover.thumbnail((96, 144), Image.ANTIALIAS)
|
||||
else:
|
||||
coverdata = open(I('library.png'), 'rb').read()
|
||||
|
||||
@ -66,8 +67,8 @@ class NOOK(USBMS):
|
||||
cover.paste(im, ((96-x)/2, (144-y)/2))
|
||||
|
||||
draw = ImageDraw.Draw(cover)
|
||||
draw.text((1, 15), metadata.title)
|
||||
draw.text((1, 115), ', '.join(metadata.authors))
|
||||
draw.text((1, 15), metadata.get('title', _('Unknown')).encode('ascii', 'ignore'))
|
||||
draw.text((1, 115), metadata.get('authors', _('Unknown')).encode('ascii', 'ignore'))
|
||||
|
||||
data = cStringIO.StringIO()
|
||||
cover.save(data, 'JPEG')
|
||||
|
@ -81,7 +81,7 @@ Device Integration
|
||||
|
||||
What devices does |app| support?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
At the moment |app| has full support for the SONY PRS 300/500/505/600/700, Barnes & Noble Nook, Cybook Gen 3/Opus, Amazon Kindle 1/2/DX, Netronix EB600, Ectaco Jetbook, BeBook/BeBook Mini, Irex Illiad/DR1000, Foxit eSlick, PocketBook 360, Italica, various Android phones and the iPhone. In addition, using the :guilabel:`Save to disk` function you can use it with any ebook reader that exports itself as a USB disk.
|
||||
At the moment |app| has full support for the SONY PRS 300/500/505/600/700/900, Barnes & Noble Nook, Cybook Gen 3/Opus, Amazon Kindle 1/2/DX, Netronix EB600, Ectaco Jetbook, BeBook/BeBook Mini, Irex Illiad/DR1000, Foxit eSlick, PocketBook 360, Italica, eClicto, Iriver Story, Airis dBook, various Android phones and the iPhone. In addition, using the :guilabel:`Save to disk` function you can use it with any ebook reader that exports itself as a USB disk.
|
||||
|
||||
How can I help get my device supported in |app|?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
Loading…
x
Reference in New Issue
Block a user