Manual de Calibre | Page 38

Manual de usuario de calibre, Publicación 2.73.0 # Author of this recipe. __author__ = 'mattst' # Specify English as the language of the RSS feeds (ISO-639 code). language = 'en_GB' # Set tags. tags = 'news, sport, blog' # Set publisher and publication type. publisher = 'BBC' publication_type = 'newspaper' # Disable stylesheets from site. no_stylesheets = True # Specifies an override encoding for sites that have an incorrect charset # specified. Default of 'None' says to auto-detect. Some other BBC recipes # use 'utf8', which works fine (so use that if necessary) but auto-detecting # with None is working fine, so stick with that for robustness. encoding = None # Sets whether a feed has full articles embedded in it. The BBC feeds do # not. use_embedded_content = False # Removes empty feeds - why keep them!? remove_empty_feeds = True # # # # # # Create a custom title which fits nicely in the Kindle title list. Requires "import time" above class declaration, and replacing title with custom_title in conversion_options (right column only). Example of string below: "BBC News - 14 Nov 2011" custom_title = "BBC News - " + time.strftime('%d %b %Y') ''' # Conversion options for advanced users, but don't forget to comment out the # current conversion_options below. Avoid setting 'linearize_tables' as that # plays havoc with the 'old style' table based pages. # conversion_options = { 'title' : title, 'comments' : description, 'tags' : tags, 'language' : language, 'publisher' : publisher, 'authors' : publisher, 'smarten_punctuation' : True } ''' conversion_options = {'smarten_punctuation': True} # Specify extra CSS - overrides ALL other CSS (IE. Added last). extra_css = 'body { font-family: verdana, helvetica, sans-serif; } \ .introduction, .first { font-weight: bold; } \ .cross-head { font-weight: bold; font-size: 125%; } \ 34 Capítulo 1. Secciones