From 9d27668bf91921133f1fded9f546704c0cb41fc4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Feb 2010 12:32:17 -0700 Subject: [PATCH] Fix Boox main mem and SD card swapped on windows --- resources/recipes/nytimes_sub.recipe | 2 +- src/calibre/devices/hanlin/driver.py | 12 ++++++++++++ src/calibre/gui2/dialogs/config/config.ui | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/resources/recipes/nytimes_sub.recipe b/resources/recipes/nytimes_sub.recipe index e3942469a4..d389ca4eea 100644 --- a/resources/recipes/nytimes_sub.recipe +++ b/resources/recipes/nytimes_sub.recipe @@ -37,7 +37,7 @@ class NYTimes(BasicNewsRecipe): dict(name=['script', 'noscript', 'style'])] encoding = decode no_stylesheets = True - extra_css = 'h1 {font: sans-serif large;}\n.byline {font:monospace;}' + extra_css = 'h1 {font-face:sans-serif; font-size:2em; font-weight:bold;}\n.byline {font:monospace;}\n.bold {font-weight:bold;}' def get_browser(self): br = BasicNewsRecipe.get_browser() diff --git a/src/calibre/devices/hanlin/driver.py b/src/calibre/devices/hanlin/driver.py index aee2a70fd5..e887b331aa 100644 --- a/src/calibre/devices/hanlin/driver.py +++ b/src/calibre/devices/hanlin/driver.py @@ -126,3 +126,15 @@ class BOOX(HANLINV3): EBOOK_DIR_MAIN = 'MyBooks' EBOOK_DIR_CARD_A = 'MyBooks' + + + def windows_sort_drives(self, drives): + main = drives.get('main', None) + card = drives.get('carda', None) + if card and main and card < main: + drives['main'] = card + drives['carda'] = main + + return drives + + diff --git a/src/calibre/gui2/dialogs/config/config.ui b/src/calibre/gui2/dialogs/config/config.ui index c12b864993..aff157bb08 100644 --- a/src/calibre/gui2/dialogs/config/config.ui +++ b/src/calibre/gui2/dialogs/config/config.ui @@ -612,7 +612,7 @@ - calibre can send your books to you (or your reader) by email + calibre can send your books to you (or your reader) by email. Emails will be automatically sent for downloaded news to all email addresses that have Auto-send checked. true