diff --git a/Changelog.yaml b/Changelog.yaml index 30c847aac8..e8914f6f4e 100644 --- a/Changelog.yaml +++ b/Changelog.yaml @@ -19,6 +19,62 @@ # new recipes: # - title: +- version: 0.8.33 + date: 2011-12-30 + + new features: + - title: "LIT Input: Switch to non-recursive algorithm, to allow conversion of files with deeply nested markup." + tickets: [909535] + + - title: "Content server: Do not show the original_* formats in the mobile interface. Also upgrade to the latest CherryPy release." + + - title: "E-book viewer: Add option in viewer preferences to control how much the font size is changed when you click the make fonts bigger/smaller buttons." + tickets: [908980] + + - title: "E-book viewer: Allow changing font size via Ctrl+Mouse wheel" + tickets: [908975] + + - title: "Kobo driver: Hide previews and recommendations from the book list. You can customize the Kobo plugin if you would like to see them via Preferences->Plugins" + + bug fixes: + - title: "Copy to library: Fix title sort not being copied" + + - title: "PDF Output: Add custom size conversion option to the GUI (it was only present on the command line before)" + + - title: "Add missing --keep-ligatures option to the ebook-convert command line" + tickets: [909182] + + - title: "Fix rendering of non ascii characters in generated masthead images when downloading news for the Kindle" + + - title: "Linux binary: Disable qt-sp-api as it causes crashes/performance issues on various distros" + + - title: "E-book viewer: Ensure that reference mode highlighting is removed from the book when reference mode is closed." + tickets: [908982] + + - title: "Fix unable to load plugins from files on GNOME/XFCE desktops" + + - title: "Fix regression that broke customizing toolbars on non English calibre installs" + + - title: "Conversion pipeline: Disable HTML 5 parsing if it results in deeply nested trees." + tickets: [908818] + + - title: "Do not loose position in book list on device connection/sync, if a search is active." + tickets: [908553] + + - title: "Fix regression in 0.8.32 that broke deleting books if the path to the library contained non-ascii characters on linux" + tickets: [908068] + + improved recipes: + - Echo Online + - La Razon + + new recipes: + - title: NYTimes Global + author: Krittika Goyal + + - title: Grantland + author: Barty + - version: 0.8.32 date: 2011-12-23 diff --git a/recipes/daily_mirror.recipe b/recipes/daily_mirror.recipe index f0d28c72e7..800eaf10e9 100644 --- a/recipes/daily_mirror.recipe +++ b/recipes/daily_mirror.recipe @@ -5,7 +5,7 @@ class AdvancedUserRecipe1306061239(BasicNewsRecipe): description = 'News as provide by The Daily Mirror -UK' __author__ = 'Dave Asbury' - # last updated 30/10/11 + # last updated 26/12/11 language = 'en_GB' cover_url = 'http://yookeo.com/screens/m/i/mirror.co.uk.jpg' @@ -13,30 +13,22 @@ class AdvancedUserRecipe1306061239(BasicNewsRecipe): masthead_url = 'http://www.nmauk.co.uk/nma/images/daily_mirror.gif' - oldest_article = 2 - max_articles_per_feed = 30 + oldest_article = 1 + max_articles_per_feed = 20 remove_empty_feeds = True remove_javascript = True no_stylesheets = True - extra_css = ''' - body{ text-align: justify; font-family:Arial,Helvetica,sans-serif; font-size:11px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal;} - ''' - - keep_only_tags = [ - dict(name='div',attrs={'id' : 'body-content'}) - ] - - remove_tags_after = [dict (name='div',attrs={'class' : 'related'})] - + auto_cleanup = True remove_tags = [ - dict(name='div',attrs={'id' : ['sidebar','menu','search-box','roffers-top']}), - dict(name='div',attrs={'class' :['inline-ad span-16 last','article-resize','related','list teasers']}), - dict(attrs={'class' : ['channellink','article-tags','replace','append-html']}), - dict(name='div',attrs={'class' : 'span-12 last sl-others addthis_toolbox addthis_default_style'}) + dict(name='title'), + dict(name='div',attrs={'class' : ['inline-ad span-16 last','caption']}), ] preprocess_regexps = [ - (re.compile(r'', re.IGNORECASE | re.DOTALL), lambda match: '')] + (re.compile(r'- mirror.co.uk', re.IGNORECASE | re.DOTALL), lambda match: '')] + + preprocess_regexps = [ + (re.compile(r'Advertisement >>', re.IGNORECASE | re.DOTALL), lambda match: '')] feeds = [ @@ -53,5 +45,10 @@ class AdvancedUserRecipe1306061239(BasicNewsRecipe): ,(u'Travel','http://www.mirror.co.uk/advice/travel/rss.xml') # example of commented out feed not needed ,(u'Travel','http://www.mirror.co.uk/advice/travel/rss.xml') - ] + extra_css = ''' + body{ text-align: justify; font-family:Arial,Helvetica,sans-serif; font-size:11px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal;} + h1{ font-size:18px;} + img { display:block} + ''' + diff --git a/recipes/echo_online.recipe b/recipes/echo_online.recipe index 6b4b964b8f..b2b7428b40 100644 --- a/recipes/echo_online.recipe +++ b/recipes/echo_online.recipe @@ -6,18 +6,18 @@ Fetch echo-online.de from calibre.web.feeds.recipes import BasicNewsRecipe class Echo_Online(BasicNewsRecipe): - title = u' Echo Online' + title = u'Echo Online' # 2011-12-28 AGe description = '-Echo Online-' publisher = 'Echo Online GmbH' category = 'News, Germany' - __author__ = 'Armin Geller' # 2011-12-17 + __author__ = 'Armin Geller' # 2011-12-28 AGe language = 'de' lang = 'de-DE' encoding = 'iso-8859-1' timefmt = ' [%a, %d %b %Y]' oldest_article = 7 - max_articles_per_feed = 2 + max_articles_per_feed = 50 # 2011-12-28 AGe no_stylesheets = True auto_cleanup = True remove_javascript = True @@ -42,6 +42,5 @@ class Echo_Online(BasicNewsRecipe): remove_tags = [dict(name='div', attrs={'class':["header", "name"]}),] auto_cleanup_keep = '//div[@class="bild_gross w270"]' -# cover_url = 'http://profile.ak.fbcdn.net/hprofile-ak-ash2/41801_145340745513489_893927_n.jpg' # 2011-12-16 AGe - cover_url = 'http://adcounter.darmstaedter-echo.de/webdav/files/config/gui/images/Zeitungsfaecher.gif' # 2011-12-16 AGe + cover_url = 'http://adcounter.darmstaedter-echo.de/webdav/files/config/gui/images/Zeitungsfaecher.gif' diff --git a/recipes/iht.recipe b/recipes/iht.recipe index 85a87ccba4..bc13a99249 100644 --- a/recipes/iht.recipe +++ b/recipes/iht.recipe @@ -1,63 +1,30 @@ -__license__ = 'GPL v3' -__copyright__ = '2008, Derry FitzGerald' -''' -iht.com -''' -import re - from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ptempfile import PersistentTemporaryFile +class NYTimesGlobal(BasicNewsRecipe): + title = u'NY Times Global' + language = 'en' + __author__ = 'Krittika Goyal' + oldest_article = 1 #days + max_articles_per_feed = 25 + use_embedded_content = False -class InternationalHeraldTribune(BasicNewsRecipe): - title = u'The International Herald Tribune' - __author__ = 'Derry FitzGerald' - language = 'en' - - oldest_article = 1 - max_articles_per_feed = 30 no_stylesheets = True + auto_cleanup = True - remove_tags = [dict(name='div', attrs={'class':['footer','header']}), - dict(name=['form'])] - preprocess_regexps = [ - (re.compile(r'