Fix bug 2694: run rb though preprocessor when using ebook-viewer. Tweak kindle dx comic size.

This commit is contained in:
John Schember 2009-06-22 20:22:08 -04:00
parent 12bce0197b
commit 5b8ec44fc7
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ class KindleDXOutput(OutputProfile):
# Screen size is a best guess # Screen size is a best guess
screen_size = (824, 1200) screen_size = (824, 1200)
dpi = 150.0 dpi = 150.0
comic_screen_size = (775, 1128) comic_screen_size = (741, 1080)
@classmethod @classmethod
def tags_to_string(cls, tags): def tags_to_string(cls, tags):

View File

@ -135,7 +135,7 @@ class EbookIterator(object):
plumber.opts, plumber.input_fmt, self.log, plumber.opts, plumber.input_fmt, self.log,
{}, self.base) {}, self.base)
if plumber.input_fmt.lower() == 'pdf': if plumber.input_fmt.lower() in ('pdf', 'rb'):
self.pathtoopf = create_oebbook(self.log, self.pathtoopf, plumber.opts, self.pathtoopf = create_oebbook(self.log, self.pathtoopf, plumber.opts,
plumber.input_plugin) plumber.input_plugin)
if hasattr(self.pathtoopf, 'manifest'): if hasattr(self.pathtoopf, 'manifest'):