diff --git a/resources/recipes/bbc_es.recipe b/resources/recipes/bbc_es.recipe new file mode 100644 index 0000000000..b2b6192620 --- /dev/null +++ b/resources/recipes/bbc_es.recipe @@ -0,0 +1,53 @@ +__license__ = 'GPL v3' +__author__ = 'Luis Hernandez' +__copyright__ = 'Luis Hernandez' +__version__ = 'v1.0' +__date__ = '29 January 2011' + +''' +http://www.bbc.co.uk/mundo/ +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1294946868(BasicNewsRecipe): + + title = u'BBC Mundo' + publisher = u'BBC' + + __author__ = 'Luis Hernandez' + description = 'BBC World for spanish readers' + + cover_url = 'http://1.bp.blogspot.com/_NHiOjk_uZwU/TEYy7IJAdAI/AAAAAAAABP8/coAE-pJ7_5E/s1600/bbcmundo_h.png' + oldest_article = 2 + max_articles_per_feed = 100 + + remove_javascript = True + no_stylesheets = True + use_embedded_content = False + + language = 'es' + remove_empty_feeds = True + encoding = 'UTF-8' + timefmt = '[%a, %d %b, %Y]' + + remove_tags_before = dict(name='div' , attrs={'class':['g-group']}) + remove_tags_after = dict(name='div' , attrs={'class':[' g-w8']}) + + remove_tags = [ + dict(name='ul', attrs={'class':['document-tools blq-clearfix','blq-clearfix']}) + ,dict(name='div', attrs={'class':['box bx-quote-bubble','socialmedia-links','list li-carousel','list li-plain rolling-news','list li-plain','box bx-livestats','li-tab content','list li-relatedlinks','list li-relatedinternetlinks']}) + ] + + feeds = [ + (u'Portada' , u'http://www.bbc.co.uk/mundo/index.xml') + ,(u'Ultimas Noticias' , u'http://www.bbc.co.uk/mundo/ultimas_noticias/index.xml') + ,(u'Internacional' , u'http://www.bbc.co.uk/mundo/temas/internacional/index.xml') + ,(u'Economia' , u'http://www.bbc.co.uk/mundo/temas/economia/index.xml') + ,(u'America Latina' , u'http://www.bbc.co.uk/mundo/temas/america_latina/index.xml') + ,(u'Ciencia' , u'http://www.bbc.co.uk/mundo/temas/ciencia/index.xml') + ,(u'Salud' , u'http://www.bbc.co.uk/mundo/temas/salud/index.xml') + ,(u'Tecnologia' , u'http://www.bbc.co.uk/mundo/temas/tecnologia/index.xml') + ,(u'Cultura' , u'http://www.bbc.co.uk/mundo/temas/cultura/index.xml') + ] + diff --git a/src/calibre/ebooks/rtf/rtfml.py b/src/calibre/ebooks/rtf/rtfml.py index 6b3030256d..f739207018 100644 --- a/src/calibre/ebooks/rtf/rtfml.py +++ b/src/calibre/ebooks/rtf/rtfml.py @@ -131,11 +131,11 @@ class RTFMLizer(object): text = text.replace('\r', ' ') return text - + def remove_tabs(self, text): self.log.debug('\Replace tabs with space for processing...') text = text.replace('\t', ' ') - + return text def header(self): diff --git a/src/calibre/manual/faq.rst b/src/calibre/manual/faq.rst index 15e836940e..849ded82c9 100644 --- a/src/calibre/manual/faq.rst +++ b/src/calibre/manual/faq.rst @@ -295,7 +295,9 @@ e-ink screen :) Note that in the case of the Kindle, there is a way to manipulate collections via USB, but it requires that the Kindle be rebooted *every time* it is disconnected from the computer, for the changes to the collections to be recognized. As such, it is unlikely that -any |app| developers will ever feel motivated enough to support it. +any |app| developers will ever feel motivated enough to support it. There is however, a |app| plugin +that allows you to create collections on your Kindle from the |app| metadata. It is available +`here `_. Library Management ------------------