From 55cb29e150d85ce618a9db7ad6d3ed72e5d30c1d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Oct 2011 18:06:10 +0530 Subject: [PATCH] T1 driver. Add support for Japanese formats --- src/calibre/devices/prst1/driver.py | 3 ++- src/calibre/ebooks/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index 7d27b4657a..d062a2ccfe 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -39,7 +39,8 @@ class PRST1(USBMS): path_sep = '/' booklist_class = CollectionsBookList - FORMATS = ['epub', 'pdf', 'txt'] + FORMATS = ['epub', 'pdf', 'txt', 'book', 'zbf'] # The last two are + # used in japan CAN_SET_METADATA = ['collections'] CAN_DO_DEVICE_DB_PLUGBOARD = True diff --git a/src/calibre/ebooks/__init__.py b/src/calibre/ebooks/__init__.py index bf1cb955bb..ebb30df8ab 100644 --- a/src/calibre/ebooks/__init__.py +++ b/src/calibre/ebooks/__init__.py @@ -30,7 +30,7 @@ BOOK_EXTENSIONS = ['lrf', 'rar', 'zip', 'rtf', 'lit', 'txt', 'txtz', 'text', 'ht 'html', 'htmlz', 'xhtml', 'pdf', 'pdb', 'pdr', 'prc', 'mobi', 'azw', 'doc', 'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip', 'rb', 'imp', 'odt', 'chm', 'tpz', 'azw1', 'pml', 'pmlz', 'mbp', 'tan', 'snb', - 'xps', 'oxps', 'azw4'] + 'xps', 'oxps', 'azw4', 'book', 'zbf'] class HTMLRenderer(object):