Manual de Calibre | Page 39

Manual de usuario de calibre, Publicación 2.73.0
. cap,. caption { display: block; font-size: 80 %; font-style: italic;
˓→ } \. cap,. caption,. caption img,. caption span { display: block; text-
˓→align: center; margin: 5px auto; } \. byl,. byd,. byline img,. byline-name,. byline-title,. author-name,.
˓→author-position, \. correspondent-portrait img,. byline-lead-in,. name,. bbc-role {
˓→display: block; \ text-align: center; font-size: 80 %; font-style: italic; margin:
˓→1px auto; } \. story-date,. published { font-size: 80 %; } \ table { width: 100 %; } \ td img { display: block; margin: 5px auto; } \ ul { padding-top: 10px; } \ ol { padding-top: 10px; } \ li { padding-top: 5px; padding-bottom: 5px; } \ h1 { text-align: center; font-size: 175 %; font-weight: bold; } \ h2 { text-align: center; font-size: 150 %; font-weight: bold; } \ h3 { text-align: center; font-size: 125 %; font-weight: bold; } \ h4, h5, h6 { text-align: center; font-size: 100 %; font-weight: bold;
˓→ }'
# Remove various tag attributes to improve the look of the ebook pages. remove _ attributes = [' border ', ' cellspacing ', ' align ', ' cellpadding ', ' colspan ',
' valign ', ' vspace ', ' hspace ', ' alt ', ' width ', ' height ']
# Remove the( admittedly rarely used) line breaks, "< br />", which sometimes # cause a section of the ebook to start in an unsightly fashion or, more # frequently, a "< br />" will muck up the formatting of a correspondant ' s byline. # "< br />" and "< br clear />" are far more frequently used on the table formatted # style of pages, and really spoil the look of the ebook pages. preprocess _ regexps = [( re. compile( r '< br [ ]*/>', re. IGNORECASE), lambda m: ''),
( re. compile( r '< br [ ]* clear.*/>', re. IGNORECASE), lambda m: '
˓→ ')]
# Create regular expressions for tag keeping and removal to make the matches more # robust against minor changes and errors in the HTML, Eg. double spaces, leading # and trailing spaces, missing hyphens, and such like. # Python regular expression(' re ' class) page: # http:// docs. python. org / library / re. html
# *************************************** # Regular expressions for keep _ only _ tags: # ***************************************
# The BBC News HTML pages use variants of ' storybody ' to denote the section of a ˓→HTML
# page which contains the main text of the article. Match storybody variants:
˓→ ' storybody ', # ' story-body ', ' story body ',' storybody ', etc. storybody _ reg _ exp = ' ^.* story [_- ]* body.*$'
# The BBC sport and ' newsbeat '( features) HTML pages use ' blq _ content ' to hold ˓→the title
# and published date. This is one level above the usual news pages which have the ˓→title
# and date within ' story-body '. This is annoying since ' blq _ content ' must also be ˓→kept,
1.2. Añadir su sitio de noticias favorito 35