| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# |
| 5 |
# Translators: |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: calibre\n" |
| 9 |
"Report-Msgid-Bugs-To: \n" |
| 10 |
"POT-Creation-Date: 2026-08-06 04:29+0000\n" |
| 11 |
"PO-Revision-Date: 2014-06-17 08:36+0000\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: Norwegian Nynorsk (http://app.transifex.com/calibre/calibre/language/nn/)\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Language: nn\n" |
| 18 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 19 |
|
| 20 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:4 |
| 21 |
msgid "API documentation for recipes" |
| 22 |
msgstr "" |
| 23 |
|
| 24 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:9 |
| 25 |
msgid "The API for writing recipes is defined by the :class:`BasicNewsRecipe`" |
| 26 |
msgstr "" |
| 27 |
|
| 28 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 29 |
#: calibre.web.feeds.news.BasicNewsRecipe:1 |
| 30 |
msgid "" |
| 31 |
"Base class that contains logic needed in all recipes. By overriding " |
| 32 |
"progressively more of the functionality in this class, you can make " |
| 33 |
"progressively more customized/powerful recipes. For a tutorial introduction " |
| 34 |
"to creating recipes, see :doc:`news`." |
| 35 |
msgstr "" |
| 36 |
|
| 37 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 38 |
#: calibre.web.feeds.news.BasicNewsRecipe.adeify_images:1 |
| 39 |
msgid "" |
| 40 |
"If your recipe when converted to EPUB has problems with images when viewed " |
| 41 |
"in Adobe Digital Editions, call this method from within " |
| 42 |
":meth:`postprocess_html`." |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 46 |
#: calibre.web.feeds.news.BasicNewsRecipe.image_url_processor:1 |
| 47 |
msgid "" |
| 48 |
"Perform some processing on image urls (perhaps removing size restrictions " |
| 49 |
"for dynamically generated images, etc.) and return the processed URL. Return" |
| 50 |
" None or an empty string to skip fetching the image." |
| 51 |
msgstr "" |
| 52 |
|
| 53 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 54 |
#: calibre.web.feeds.news.BasicNewsRecipe.print_version:1 |
| 55 |
msgid "" |
| 56 |
"Take a `url` pointing to the webpage with article content and return the " |
| 57 |
":term:`URL` pointing to the print version of the article. By default does " |
| 58 |
"nothing. For example::" |
| 59 |
msgstr "" |
| 60 |
|
| 61 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 62 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:1 |
| 63 |
msgid "" |
| 64 |
"Convenience method to take a `BeautifulSoup " |
| 65 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ :code:`Tag` and " |
| 66 |
"extract the text from it recursively, including any CDATA sections and alt " |
| 67 |
"tag attributes. Return a possibly empty Unicode string." |
| 68 |
msgstr "" |
| 69 |
|
| 70 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 71 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:6 |
| 72 |
msgid "" |
| 73 |
"`use_alt`: If `True` try to use the alt attribute for tags that don't have " |
| 74 |
"any textual content" |
| 75 |
msgstr "" |
| 76 |
|
| 77 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 78 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:9 |
| 79 |
msgid "" |
| 80 |
"`tag`: `BeautifulSoup " |
| 81 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ :code:`Tag`" |
| 82 |
msgstr "" |
| 83 |
|
| 84 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 85 |
#: calibre.web.feeds.news.BasicNewsRecipe.abort_article:1 |
| 86 |
msgid "" |
| 87 |
"Call this method inside any of the preprocess methods to abort the download " |
| 88 |
"for the current article. Useful to skip articles that contain inappropriate " |
| 89 |
"content, such as pure video articles." |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 93 |
#: calibre.web.feeds.news.BasicNewsRecipe.abort_recipe_processing:1 |
| 94 |
msgid "" |
| 95 |
"Causes the recipe download system to abort the download of this recipe, " |
| 96 |
"displaying a simple feedback message to the user." |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 100 |
#: calibre.web.feeds.news.BasicNewsRecipe.add_toc_thumbnail:1 |
| 101 |
msgid "" |
| 102 |
"Call this from populate_article_metadata with the src attribute of an <img> " |
| 103 |
"tag from the article that is appropriate for use as the thumbnail " |
| 104 |
"representing the article in the Table of Contents. Whether the thumbnail is " |
| 105 |
"actually used is device dependent (currently only used by the Kindles). Note" |
| 106 |
" that the referenced image must be one that was successfully downloaded, " |
| 107 |
"otherwise it will be ignored." |
| 108 |
msgstr "" |
| 109 |
|
| 110 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 111 |
#: calibre.web.feeds.news.BasicNewsRecipe.canonicalize_internal_url:1 |
| 112 |
msgid "" |
| 113 |
"Return a set of canonical representations of ``url``. The default " |
| 114 |
"implementation uses just the server hostname and path of the URL, ignoring " |
| 115 |
"any query parameters, fragments, etc. The canonical representations must be " |
| 116 |
"unique across all URLs for this news source. If they are not, then internal " |
| 117 |
"links may be resolved incorrectly." |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:0 |
| 121 |
msgid "Parameters" |
| 122 |
msgstr "Parameter" |
| 123 |
|
| 124 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 125 |
#: calibre.web.feeds.news.BasicNewsRecipe.canonicalize_internal_url:7 |
| 126 |
msgid "" |
| 127 |
"Is True if the URL is coming from an internal link in an HTML file. False if" |
| 128 |
" the URL is the URL used to download an article." |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 132 |
#: calibre.web.feeds.news.BasicNewsRecipe.cleanup:1 |
| 133 |
msgid "" |
| 134 |
"Called after all articles have been download. Use it to do any cleanup like " |
| 135 |
"logging out of subscription sites, etc." |
| 136 |
msgstr "" |
| 137 |
|
| 138 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 139 |
#: calibre.web.feeds.news.BasicNewsRecipe.clone_browser:1 |
| 140 |
msgid "" |
| 141 |
"Clone the browser br. Cloned browsers are used for multi-threaded downloads," |
| 142 |
" since mechanize is not thread safe. The default cloning routines should " |
| 143 |
"capture most browser customization, but if you do something exotic in your " |
| 144 |
"recipe, you should override this method in your recipe and clone manually." |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 148 |
#: calibre.web.feeds.news.BasicNewsRecipe.clone_browser:7 |
| 149 |
msgid "" |
| 150 |
"Cloned browser instances use the same, thread-safe CookieJar by default, " |
| 151 |
"unless you have customized cookie handling." |
| 152 |
msgstr "" |
| 153 |
|
| 154 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 155 |
#: calibre.web.feeds.news.BasicNewsRecipe.default_cover:1 |
| 156 |
msgid "Create a generic cover for recipes that don't have a cover" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 160 |
#: calibre.web.feeds.news.BasicNewsRecipe.download:1 |
| 161 |
msgid "" |
| 162 |
"Download and pre-process all articles from the feeds in this recipe. This " |
| 163 |
"method should be called only once on a particular Recipe instance. Calling " |
| 164 |
"it more than once will lead to undefined behavior. :return: Path to " |
| 165 |
"index.html" |
| 166 |
msgstr "" |
| 167 |
|
| 168 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 169 |
#: calibre.web.feeds.news.BasicNewsRecipe.extract_readable_article:1 |
| 170 |
msgid "" |
| 171 |
"Extracts main article content from 'html', cleans up and returns as a " |
| 172 |
"(article_html, extracted_title) tuple. Based on the original readability " |
| 173 |
"algorithm by Arc90." |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 177 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_article_url:1 |
| 178 |
msgid "" |
| 179 |
"Override in a subclass to customize extraction of the :term:`URL` that " |
| 180 |
"points to the content for each article. Return the article URL. It is called" |
| 181 |
" with `article`, an object representing a parsed article from a feed. See " |
| 182 |
"`feedparser <https://pythonhosted.org/feedparser/>`_. By default it looks " |
| 183 |
"for the original link (for feeds syndicated via a service like FeedBurner or" |
| 184 |
" Pheedo) and if found, returns that or else returns `article.link " |
| 185 |
"<https://pythonhosted.org/feedparser/reference-entry-link.html>`_." |
| 186 |
msgstr "" |
| 187 |
|
| 188 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 189 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_browser:1 |
| 190 |
msgid "" |
| 191 |
"Return a browser instance used to fetch documents from the web. By default " |
| 192 |
"it returns a `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ " |
| 193 |
"browser instance that supports cookies, ignores robots.txt, handles " |
| 194 |
"refreshes and has a random common user agent." |
| 195 |
msgstr "" |
| 196 |
|
| 197 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 198 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_browser:6 |
| 199 |
msgid "To customize the browser override this method in your sub-class as::" |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 203 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_cover_url:1 |
| 204 |
msgid "" |
| 205 |
"Return a :term:`URL` to the cover image for this issue or `None`. By default" |
| 206 |
" it returns the value of the member `self.cover_url` which is normally " |
| 207 |
"`None`. If you want your recipe to download a cover for the e-book override " |
| 208 |
"this method in your subclass, or set the member variable `self.cover_url` " |
| 209 |
"before this method is called." |
| 210 |
msgstr "" |
| 211 |
|
| 212 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 213 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_extra_css:1 |
| 214 |
msgid "" |
| 215 |
"By default returns `self.extra_css`. Override if you want to " |
| 216 |
"programmatically generate the extra_css." |
| 217 |
msgstr "" |
| 218 |
|
| 219 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 220 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_feeds:1 |
| 221 |
msgid "" |
| 222 |
"Return a list of :term:`RSS` feeds to fetch for this profile. Each element " |
| 223 |
"of the list must be a 2-element tuple of the form (title, url). If title is " |
| 224 |
"None or an empty string, the title from the feed is used. This method is " |
| 225 |
"useful if your recipe needs to do some processing to figure out the list of " |
| 226 |
"feeds to download. If so, override in your subclass." |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 230 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_masthead_title:1 |
| 231 |
msgid "Override in subclass to use something other than the recipe title" |
| 232 |
msgstr "" |
| 233 |
|
| 234 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 235 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_masthead_url:1 |
| 236 |
msgid "" |
| 237 |
"Return a :term:`URL` to the masthead image for this issue or `None`. By " |
| 238 |
"default it returns the value of the member `self.masthead_url` which is " |
| 239 |
"normally `None`. If you want your recipe to download a masthead for the " |
| 240 |
"e-book override this method in your subclass, or set the member variable " |
| 241 |
"`self.masthead_url` before this method is called. Masthead images are used " |
| 242 |
"in Kindle MOBI files." |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 246 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_obfuscated_article:1 |
| 247 |
msgid "" |
| 248 |
"If you set `articles_are_obfuscated` this method is called with every " |
| 249 |
"article URL. It should return the path to a file on the filesystem that " |
| 250 |
"contains the article HTML. That file is processed by the recursive HTML " |
| 251 |
"fetching engine, so it can contain links to pages/images on the web. " |
| 252 |
"Alternately, you can return a dictionary of the form: {'data': <HTML data>, " |
| 253 |
"'url': <the resolved URL of the article>}. This avoids needing to create " |
| 254 |
"temporary files. The `url` key in the dictionary is useful if the effective " |
| 255 |
"URL of the article is different from the URL passed into this method, for " |
| 256 |
"example, because of redirects. It can be omitted if the URL is unchanged." |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 260 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_obfuscated_article:11 |
| 261 |
msgid "" |
| 262 |
"This method is typically useful for sites that try to make it difficult to " |
| 263 |
"access article content automatically." |
| 264 |
msgstr "" |
| 265 |
|
| 266 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 267 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_url_specific_delay:1 |
| 268 |
msgid "" |
| 269 |
"Return the delay in seconds before downloading this URL. If you want to " |
| 270 |
"programmatically determine the delay for the specified URL, override this " |
| 271 |
"method in your subclass, returning self.delay by default for URLs you do not" |
| 272 |
" want to affect." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:0 |
| 276 |
msgid "Returns" |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 280 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_url_specific_delay:5 |
| 281 |
msgid "A floating point number, the delay in seconds." |
| 282 |
msgstr "" |
| 283 |
|
| 284 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 285 |
#: calibre.web.feeds.news.BasicNewsRecipe.index_to_soup:1 |
| 286 |
msgid "" |
| 287 |
"Convenience method that takes an URL to the index page and returns a " |
| 288 |
"`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc>`__ of" |
| 289 |
" it." |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 293 |
#: calibre.web.feeds.news.BasicNewsRecipe.index_to_soup:5 |
| 294 |
msgid "`url_or_raw`: Either a URL or the downloaded index page as a string" |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 298 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:1 |
| 299 |
msgid "" |
| 300 |
"Return True if the link should be followed or False otherwise. By default, " |
| 301 |
"raises NotImplementedError which causes the downloader to ignore it." |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 305 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:5 |
| 306 |
msgid "The URL to be followed" |
| 307 |
msgstr "" |
| 308 |
|
| 309 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 310 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:6 |
| 311 |
msgid "The tag from which the URL was derived" |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 315 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_feeds:1 |
| 316 |
msgid "" |
| 317 |
"Create a list of articles from the list of feeds returned by " |
| 318 |
":meth:`BasicNewsRecipe.get_feeds`. Return a list of :class:`Feed` objects." |
| 319 |
msgstr "" |
| 320 |
|
| 321 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 322 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:1 |
| 323 |
msgid "" |
| 324 |
"This method should be implemented in recipes that parse a website instead of" |
| 325 |
" feeds to generate a list of articles. Typical uses are for news sources " |
| 326 |
"that have a \"Print Edition\" webpage that lists all the articles in the " |
| 327 |
"current print edition. If this function is implemented, it will be used in " |
| 328 |
"preference to :meth:`BasicNewsRecipe.parse_feeds`." |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 332 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:7 |
| 333 |
msgid "" |
| 334 |
"It must return a list. Each element of the list must be a 2-element tuple of" |
| 335 |
" the form ``('feed title', list of articles)``." |
| 336 |
msgstr "" |
| 337 |
|
| 338 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 339 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:10 |
| 340 |
msgid "Each list of articles must contain dictionaries of the form::" |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 344 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:23 |
| 345 |
msgid "" |
| 346 |
"For an example, see the recipe for downloading `The Atlantic`. In addition, " |
| 347 |
"you can add 'author' for the author of the article." |
| 348 |
msgstr "" |
| 349 |
|
| 350 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 351 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:26 |
| 352 |
msgid "" |
| 353 |
"If you want to abort processing for some reason and have calibre show the " |
| 354 |
"user a simple message instead of an error, call " |
| 355 |
":meth:`abort_recipe_processing`." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 359 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:1 |
| 360 |
msgid "" |
| 361 |
"Called when each HTML page belonging to article is downloaded. Intended to " |
| 362 |
"be used to get article metadata like author/summary/etc. from the parsed " |
| 363 |
"HTML (soup)." |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 367 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:5 |
| 368 |
msgid "" |
| 369 |
"A object of class :class:`calibre.web.feeds.Article`. If you change the " |
| 370 |
"summary, remember to also change the text_summary" |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 374 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:7 |
| 375 |
msgid "Parsed HTML belonging to this article" |
| 376 |
msgstr "" |
| 377 |
|
| 378 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 379 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:8 |
| 380 |
msgid "True iff the parsed HTML is the first page of the article." |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 384 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:1 |
| 385 |
msgid "Run any needed post processing on the parsed downloaded e-book." |
| 386 |
msgstr "" |
| 387 |
|
| 388 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 389 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:3 |
| 390 |
msgid "An OEBBook object" |
| 391 |
msgstr "" |
| 392 |
|
| 393 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 394 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:4 |
| 395 |
msgid "Conversion options" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 399 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:1 |
| 400 |
msgid "" |
| 401 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 402 |
"after it is parsed for links and images. It can be used to do arbitrarily " |
| 403 |
"powerful post-processing on the :term:`HTML`. It should return `soup` after " |
| 404 |
"processing it." |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 408 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:6 |
| 409 |
msgid "" |
| 410 |
"A `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__" |
| 411 |
" instance containing the downloaded :term:`HTML`." |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 415 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:7 |
| 416 |
msgid "True if this is the first page of an article." |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 420 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_html:1 |
| 421 |
msgid "" |
| 422 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 423 |
"before it is parsed for links and images. It is called after the cleanup as " |
| 424 |
"specified by remove_tags etc. It can be used to do arbitrarily powerful pre-" |
| 425 |
"processing on the :term:`HTML`. It should return `soup` after processing it." |
| 426 |
msgstr "" |
| 427 |
|
| 428 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 429 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_html:7 |
| 430 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 431 |
#: calibre.web.feeds.news.BasicNewsRecipe.skip_ad_pages:8 |
| 432 |
msgid "" |
| 433 |
"`soup`: A `BeautifulSoup " |
| 434 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__ instance " |
| 435 |
"containing the downloaded :term:`HTML`." |
| 436 |
msgstr "" |
| 437 |
|
| 438 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 439 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_image:1 |
| 440 |
msgid "" |
| 441 |
"Perform some processing on downloaded image data. This is called on the raw " |
| 442 |
"data before any resizing is done. Must return the processed raw data. Return" |
| 443 |
" None to skip the image." |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 447 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:1 |
| 448 |
msgid "" |
| 449 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 450 |
"before it is parsed into an object tree. raw_html is a unicode string " |
| 451 |
"representing the raw HTML downloaded from the web. url is the URL from which" |
| 452 |
" the HTML was downloaded." |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 456 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:6 |
| 457 |
msgid "Note that this method acts *before* preprocess_regexps." |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 461 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:8 |
| 462 |
msgid "This method must return the processed raw_html as a unicode object." |
| 463 |
msgstr "" |
| 464 |
|
| 465 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 466 |
#: calibre.web.feeds.news.BasicNewsRecipe.publication_date:1 |
| 467 |
msgid "" |
| 468 |
"Use this method to set the date when this issue was published. Defaults to " |
| 469 |
"the moment of download. Must return a :class:`datetime.datetime` object." |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 473 |
#: calibre.web.feeds.news.BasicNewsRecipe.skip_ad_pages:1 |
| 474 |
msgid "" |
| 475 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 476 |
"before any of the cleanup attributes like remove_tags, keep_only_tags are " |
| 477 |
"applied. Note that preprocess_regexps will have already been applied. It is " |
| 478 |
"meant to allow the recipe to skip ad pages. If the soup represents an ad " |
| 479 |
"page, return the HTML of the real page. Otherwise return None." |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 483 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:1 |
| 484 |
msgid "" |
| 485 |
"Convenience method to sort the titles in `index` according to `weights`. " |
| 486 |
"`index` is sorted in place. Returns `index`." |
| 487 |
msgstr "" |
| 488 |
|
| 489 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 490 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:4 |
| 491 |
msgid "`index`: A list of titles." |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 495 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:6 |
| 496 |
msgid "" |
| 497 |
"`weights`: A dictionary that maps weights to titles. If any titles in index " |
| 498 |
"are not in weights, they are assumed to have a weight of 0." |
| 499 |
msgstr "" |
| 500 |
|
| 501 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 502 |
#: calibre.web.feeds.news.BasicNewsRecipe.articles_are_obfuscated:1 |
| 503 |
msgid "" |
| 504 |
"Set to True and implement :meth:`get_obfuscated_article` to handle websites " |
| 505 |
"that try to make it difficult to scrape content." |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 509 |
#: calibre.web.feeds.news.BasicNewsRecipe.auto_cleanup:1 |
| 510 |
msgid "" |
| 511 |
"Automatically extract all the text from downloaded article pages. Uses the " |
| 512 |
"algorithms from the readability project. Setting this to True, means that " |
| 513 |
"you do not have to worry about cleaning up the downloaded HTML manually " |
| 514 |
"(though manual cleanup will always be superior)." |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 518 |
#: calibre.web.feeds.news.BasicNewsRecipe.auto_cleanup_keep:1 |
| 519 |
msgid "" |
| 520 |
"Specify elements that the auto cleanup algorithm should never remove. The " |
| 521 |
"syntax is a XPath expression. For example::" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 525 |
#: calibre.web.feeds.news.BasicNewsRecipe.browser_type:1 |
| 526 |
msgid "" |
| 527 |
"The simulated browser engine to use when downloading from servers. The " |
| 528 |
"default is to use the Python mechanize browser engine, which supports " |
| 529 |
"logging in. However, if you don't need logging in, consider changing this to" |
| 530 |
" either 'webengine' which uses an actual Chromium browser to do the network " |
| 531 |
"requests or 'qt' which uses the Qt Networking backend. Both 'webengine' and " |
| 532 |
"'qt' support HTTP/2, which mechanize does not and are thus harder to " |
| 533 |
"fingerprint for bot protection services." |
| 534 |
msgstr "" |
| 535 |
|
| 536 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 537 |
#: calibre.web.feeds.news.BasicNewsRecipe.center_navbar:1 |
| 538 |
msgid "" |
| 539 |
"If True the navigation bar is center aligned, otherwise it is left aligned" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 543 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images:1 |
| 544 |
msgid "" |
| 545 |
"Set this to False to ignore all scaling and compression parameters and pass " |
| 546 |
"images through unmodified. If True and the other compression parameters are " |
| 547 |
"left at their default values, images will be scaled to fit in the screen " |
| 548 |
"dimensions set by the output profile and compressed to size at most (w * " |
| 549 |
"h)/16 where w x h are the scaled image dimensions." |
| 550 |
msgstr "" |
| 551 |
|
| 552 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 553 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images_auto_size:1 |
| 554 |
msgid "" |
| 555 |
"The factor used when auto compressing JPEG images. If set to None, auto " |
| 556 |
"compression is disabled. Otherwise, the images will be reduced in size to (w" |
| 557 |
" * h)/compress_news_images_auto_size bytes if possible by reducing the " |
| 558 |
"quality level, where w x h are the image dimensions in pixels. The minimum " |
| 559 |
"JPEG quality will be 5/100 so it is possible this constraint will not be " |
| 560 |
"met. This parameter can be overridden by the parameter " |
| 561 |
"compress_news_images_max_size which provides a fixed maximum size for " |
| 562 |
"images. Note that if you enable scale_news_images_to_device then the image " |
| 563 |
"will first be scaled and then its quality lowered until its size is less " |
| 564 |
"than (w * h)/factor where w and h are now the *scaled* image dimensions. In " |
| 565 |
"other words, this compression happens after scaling." |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 569 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images_max_size:1 |
| 570 |
msgid "" |
| 571 |
"Set JPEG quality so images do not exceed the size given (in KBytes). If set," |
| 572 |
" this parameter overrides auto compression via " |
| 573 |
"compress_news_images_auto_size. The minimum JPEG quality will be 5/100 so it" |
| 574 |
" is possible this constraint will not be met." |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 578 |
#: calibre.web.feeds.news.BasicNewsRecipe.conversion_options:1 |
| 579 |
msgid "" |
| 580 |
"Recipe specific options to control the conversion of the downloaded content " |
| 581 |
"into an e-book. These will override any user or plugin specified values, so " |
| 582 |
"only use if absolutely necessary. For example::" |
| 583 |
msgstr "" |
| 584 |
|
| 585 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 586 |
#: calibre.web.feeds.news.BasicNewsRecipe.cover_margins:1 |
| 587 |
msgid "" |
| 588 |
"By default, the cover image returned by get_cover_url() will be used as the " |
| 589 |
"cover for the periodical. Overriding this in your recipe instructs calibre " |
| 590 |
"to render the downloaded cover into a frame whose width and height are " |
| 591 |
"expressed as a percentage of the downloaded cover. cover_margins = (10, 15, " |
| 592 |
"'#ffffff') pads the cover with a white margin 10px on the left and right, " |
| 593 |
"15px on the top and bottom. Color names are defined `here " |
| 594 |
"<https://www.imagemagick.org/script/color.php>`_. Note that for some reason," |
| 595 |
" white does not always work in Windows. Use #ffffff instead" |
| 596 |
msgstr "" |
| 597 |
|
| 598 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 599 |
#: calibre.web.feeds.news.BasicNewsRecipe.delay:1 |
| 600 |
msgid "" |
| 601 |
"The default delay between consecutive downloads in seconds. The argument may" |
| 602 |
" be a floating point number to indicate a more precise time. See " |
| 603 |
":meth:`get_url_specific_delay` to implement per URL delays." |
| 604 |
msgstr "" |
| 605 |
|
| 606 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 607 |
#: calibre.web.feeds.news.BasicNewsRecipe.description:1 |
| 608 |
msgid "" |
| 609 |
"A couple of lines that describe the content this recipe downloads. This will" |
| 610 |
" be used primarily in a GUI that presents a list of recipes." |
| 611 |
msgstr "" |
| 612 |
|
| 613 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 614 |
#: calibre.web.feeds.news.BasicNewsRecipe.encoding:1 |
| 615 |
msgid "" |
| 616 |
"Specify an override encoding for sites that have an incorrect charset " |
| 617 |
"specification. The most common being specifying ``latin1`` and using " |
| 618 |
"``cp1252``. If None, try to detect the encoding. If it is a callable, the " |
| 619 |
"callable is called with two arguments: The recipe object and the source to " |
| 620 |
"be decoded. It must return the decoded source." |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 624 |
#: calibre.web.feeds.news.BasicNewsRecipe.extra_css:1 |
| 625 |
msgid "" |
| 626 |
"Specify any extra :term:`CSS` that should be added to downloaded " |
| 627 |
":term:`HTML` files. It will be inserted into `<style>` tags, just before the" |
| 628 |
" closing `</head>` tag thereby overriding all :term:`CSS` except that which " |
| 629 |
"is declared using the style attribute on individual :term:`HTML` tags. Note " |
| 630 |
"that if you want to programmatically generate the extra_css override the " |
| 631 |
":meth:`get_extra_css()` method instead. For example::" |
| 632 |
msgstr "" |
| 633 |
|
| 634 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 635 |
#: calibre.web.feeds.news.BasicNewsRecipe.feeds:1 |
| 636 |
msgid "" |
| 637 |
"List of feeds to download. Can be either ``[url1, url2, ...]`` or " |
| 638 |
"``[('title1', url1), ('title2', url2),...]``" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 642 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:1 |
| 643 |
msgid "" |
| 644 |
"List of regular expressions that determines which links to ignore. If empty " |
| 645 |
"it is ignored. Used only if is_link_wanted is not implemented. For example::" |
| 646 |
msgstr "" |
| 647 |
|
| 648 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 649 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:7 |
| 650 |
msgid "will remove all URLs that have `ads.doubleclick.net` in them." |
| 651 |
msgstr "" |
| 652 |
|
| 653 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 654 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:9 |
| 655 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 656 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:9 |
| 657 |
msgid "" |
| 658 |
"Only one of :attr:`BasicNewsRecipe.match_regexps` or " |
| 659 |
":attr:`BasicNewsRecipe.filter_regexps` should be defined." |
| 660 |
msgstr "" |
| 661 |
|
| 662 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 663 |
#: calibre.web.feeds.news.BasicNewsRecipe.handle_gzip:1 |
| 664 |
msgid "" |
| 665 |
"Set to False if you do not want to use gzipped transfers with the mechanize " |
| 666 |
"browser. Note that some old servers flake out with gzip." |
| 667 |
msgstr "" |
| 668 |
|
| 669 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 670 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:1 |
| 671 |
msgid "" |
| 672 |
"Ignore duplicates of articles that are present in more than one section. A " |
| 673 |
"duplicate article is an article that has the same title and/or URL. To " |
| 674 |
"ignore articles with the same title, set this to::" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 678 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:7 |
| 679 |
msgid "To use URLs instead, set it to::" |
| 680 |
msgstr "" |
| 681 |
|
| 682 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 683 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:11 |
| 684 |
msgid "To match on title or URL, set it to::" |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 688 |
#: calibre.web.feeds.news.BasicNewsRecipe.keep_only_tags:1 |
| 689 |
msgid "" |
| 690 |
"Keep only the specified tags and their children. For the format for " |
| 691 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. If this list is " |
| 692 |
"not empty, then the `<body>` tag will be emptied and re-filled with the tags" |
| 693 |
" that match the entries in this list. For example::" |
| 694 |
msgstr "" |
| 695 |
|
| 696 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 697 |
#: calibre.web.feeds.news.BasicNewsRecipe.keep_only_tags:8 |
| 698 |
msgid "" |
| 699 |
"will keep only tags that have an `id` attribute of `\"content\"` or " |
| 700 |
"`\"heading\"`." |
| 701 |
msgstr "" |
| 702 |
|
| 703 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 704 |
#: calibre.web.feeds.news.BasicNewsRecipe.language:1 |
| 705 |
msgid "" |
| 706 |
"The language that the news is in. Must be an ISO-639 code either two or " |
| 707 |
"three characters long" |
| 708 |
msgstr "" |
| 709 |
|
| 710 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 711 |
#: calibre.web.feeds.news.BasicNewsRecipe.masthead_url:1 |
| 712 |
msgid "" |
| 713 |
"By default, calibre will use a default image for the masthead (Kindle only)." |
| 714 |
" Override this in your recipe to provide a URL to use as a masthead." |
| 715 |
msgstr "" |
| 716 |
|
| 717 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 718 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:1 |
| 719 |
msgid "" |
| 720 |
"List of regular expressions that determines which links to follow. If empty," |
| 721 |
" it is ignored. Used only if is_link_wanted is not implemented. For " |
| 722 |
"example::" |
| 723 |
msgstr "" |
| 724 |
|
| 725 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 726 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:7 |
| 727 |
msgid "will match all URLs that have `page=some number` in them." |
| 728 |
msgstr "" |
| 729 |
|
| 730 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 731 |
#: calibre.web.feeds.news.BasicNewsRecipe.max_articles_per_feed:1 |
| 732 |
msgid "" |
| 733 |
"Maximum number of articles to download from each feed. This is primarily " |
| 734 |
"useful for feeds that don't have article dates. For most feeds, you should " |
| 735 |
"use :attr:`BasicNewsRecipe.oldest_article`" |
| 736 |
msgstr "" |
| 737 |
|
| 738 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 739 |
#: calibre.web.feeds.news.BasicNewsRecipe.needs_subscription:1 |
| 740 |
msgid "" |
| 741 |
"If True the GUI will ask the user for a username and password to use while " |
| 742 |
"downloading. If set to \"optional\" the use of a username and password " |
| 743 |
"becomes optional" |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 747 |
#: calibre.web.feeds.news.BasicNewsRecipe.no_stylesheets:1 |
| 748 |
msgid "" |
| 749 |
"Convenient flag to disable loading of stylesheets for websites that have " |
| 750 |
"overly complex stylesheets unsuitable for conversion to e-book formats. If " |
| 751 |
"True stylesheets are not downloaded and processed" |
| 752 |
msgstr "" |
| 753 |
|
| 754 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 755 |
#: calibre.web.feeds.news.BasicNewsRecipe.oldest_article:1 |
| 756 |
msgid "Oldest article to download from this news source. In days." |
| 757 |
msgstr "" |
| 758 |
|
| 759 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 760 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_regexps:1 |
| 761 |
msgid "" |
| 762 |
"List of :term:`regexp` substitution rules to run on the downloaded " |
| 763 |
":term:`HTML`. Each element of the list should be a two element tuple. The " |
| 764 |
"first element of the tuple should be a compiled regular expression and the " |
| 765 |
"second a callable that takes a single match object and returns a string to " |
| 766 |
"replace the match. For example::" |
| 767 |
msgstr "" |
| 768 |
|
| 769 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 770 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_regexps:12 |
| 771 |
msgid "will remove everything from `<!--Article ends here-->` to `</body>`." |
| 772 |
msgstr "" |
| 773 |
|
| 774 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 775 |
#: calibre.web.feeds.news.BasicNewsRecipe.publication_type:1 |
| 776 |
msgid "" |
| 777 |
"Publication type Set to newspaper, magazine or blog. If set to None, no " |
| 778 |
"publication type metadata will be written to the opf file." |
| 779 |
msgstr "" |
| 780 |
|
| 781 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 782 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_disabled:1 |
| 783 |
msgid "" |
| 784 |
"Set to a non empty string to disable this recipe. The string will be used as" |
| 785 |
" the disabled message" |
| 786 |
msgstr "" |
| 787 |
|
| 788 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 789 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_specific_options:1 |
| 790 |
msgid "" |
| 791 |
"Specify options specific to this recipe. These will be available for the " |
| 792 |
"user to customize in the Advanced tab of the Fetch News dialog or at the " |
| 793 |
"ebook-convert command line. The options are specified as a dictionary " |
| 794 |
"mapping option name to metadata about the option. For example::" |
| 795 |
msgstr "" |
| 796 |
|
| 797 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 798 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_specific_options:13 |
| 799 |
msgid "" |
| 800 |
"When the recipe is run, self.recipe_specific_options will be a dict mapping " |
| 801 |
"option name to the option value specified by the user. When the option is " |
| 802 |
"unspecified by the user, it will have the value specified by 'default'. If " |
| 803 |
"no default is specified, the option will not be in the dict at all, when " |
| 804 |
"unspecified by the user." |
| 805 |
msgstr "" |
| 806 |
|
| 807 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 808 |
#: calibre.web.feeds.news.BasicNewsRecipe.recursions:1 |
| 809 |
msgid "Number of levels of links to follow on article webpages" |
| 810 |
msgstr "" |
| 811 |
|
| 812 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 813 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_attributes:1 |
| 814 |
msgid "List of attributes to remove from all tags. For example::" |
| 815 |
msgstr "" |
| 816 |
|
| 817 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 818 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_empty_feeds:1 |
| 819 |
msgid "" |
| 820 |
"If True empty feeds are removed from the output. This option has no effect " |
| 821 |
"if parse_index is overridden in the sub class. It is meant only for recipes " |
| 822 |
"that return a list of feeds using `feeds` or :meth:`get_feeds`. It is also " |
| 823 |
"used if you use the ignore_duplicate_articles option." |
| 824 |
msgstr "" |
| 825 |
|
| 826 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 827 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_javascript:1 |
| 828 |
msgid "Convenient flag to strip all JavaScript tags from the downloaded HTML" |
| 829 |
msgstr "" |
| 830 |
|
| 831 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 832 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:1 |
| 833 |
msgid "" |
| 834 |
"List of tags to be removed. Specified tags are removed from downloaded HTML." |
| 835 |
" A tag is specified as a dictionary of the form::" |
| 836 |
msgstr "" |
| 837 |
|
| 838 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 839 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:9 |
| 840 |
msgid "" |
| 841 |
"All keys are optional. For a full explanation of the search criteria, see " |
| 842 |
"`Beautiful Soup " |
| 843 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching-the-" |
| 844 |
"tree>`__ A common example::" |
| 845 |
msgstr "" |
| 846 |
|
| 847 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 848 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:15 |
| 849 |
msgid "" |
| 850 |
"This will remove all `<div class=\"advert\">` tags and all their children " |
| 851 |
"from the downloaded :term:`HTML`." |
| 852 |
msgstr "" |
| 853 |
|
| 854 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 855 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after:1 |
| 856 |
msgid "" |
| 857 |
"Remove all tags that occur after the specified tag. For the format for " |
| 858 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. For example::" |
| 859 |
msgstr "" |
| 860 |
|
| 861 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 862 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after:7 |
| 863 |
msgid "will remove all tags after the first element with `id=\"content\"`." |
| 864 |
msgstr "" |
| 865 |
|
| 866 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 867 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before:1 |
| 868 |
msgid "" |
| 869 |
"Remove all tags that occur before the specified tag. For the format for " |
| 870 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. For example::" |
| 871 |
msgstr "" |
| 872 |
|
| 873 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 874 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before:7 |
| 875 |
msgid "will remove all tags before the first element with `id=\"content\"`." |
| 876 |
msgstr "" |
| 877 |
|
| 878 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 879 |
#: calibre.web.feeds.news.BasicNewsRecipe.requires_version:1 |
| 880 |
msgid "Minimum calibre version needed to use this recipe" |
| 881 |
msgstr "" |
| 882 |
|
| 883 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 884 |
#: calibre.web.feeds.news.BasicNewsRecipe.resolve_internal_links:1 |
| 885 |
msgid "" |
| 886 |
"If set to True then links in downloaded articles that point to other " |
| 887 |
"downloaded articles are changed to point to the downloaded copy of the " |
| 888 |
"article rather than its original web URL. If you set this to True, you might" |
| 889 |
" also need to implement :meth:`canonicalize_internal_url` to work with the " |
| 890 |
"URL scheme of your particular website." |
| 891 |
msgstr "" |
| 892 |
|
| 893 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 894 |
#: calibre.web.feeds.news.BasicNewsRecipe.reverse_article_order:1 |
| 895 |
msgid "Reverse the order of articles in each feed" |
| 896 |
msgstr "" |
| 897 |
|
| 898 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 899 |
#: calibre.web.feeds.news.BasicNewsRecipe.scale_news_images:1 |
| 900 |
msgid "" |
| 901 |
"Maximum dimensions (w,h) to scale images to. If scale_news_images_to_device " |
| 902 |
"is True this is set to the device screen dimensions set by the output " |
| 903 |
"profile unless there is no profile set, in which case it is left at whatever" |
| 904 |
" value it has been assigned (default None)." |
| 905 |
msgstr "" |
| 906 |
|
| 907 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 908 |
#: calibre.web.feeds.news.BasicNewsRecipe.scale_news_images_to_device:1 |
| 909 |
msgid "" |
| 910 |
"Rescale images to fit in the device screen dimensions set by the output " |
| 911 |
"profile. Ignored if no output profile is set." |
| 912 |
msgstr "" |
| 913 |
|
| 914 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 915 |
#: calibre.web.feeds.news.BasicNewsRecipe.simultaneous_downloads:1 |
| 916 |
msgid "" |
| 917 |
"Number of simultaneous downloads. Set to 1 if the server is picky. " |
| 918 |
"Automatically reduced to 1 if :attr:`BasicNewsRecipe.delay` > 0" |
| 919 |
msgstr "" |
| 920 |
|
| 921 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 922 |
#: calibre.web.feeds.news.BasicNewsRecipe.summary_length:1 |
| 923 |
msgid "Max number of characters in the short description" |
| 924 |
msgstr "" |
| 925 |
|
| 926 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 927 |
#: calibre.web.feeds.news.BasicNewsRecipe.template_css:1 |
| 928 |
msgid "" |
| 929 |
"The CSS that is used to style the templates, i.e., the navigation bars and " |
| 930 |
"the Tables of Contents. Rather than overriding this variable, you should use" |
| 931 |
" `extra_css` in your recipe to customize look and feel." |
| 932 |
msgstr "" |
| 933 |
|
| 934 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 935 |
#: calibre.web.feeds.news.BasicNewsRecipe.timefmt:1 |
| 936 |
msgid "" |
| 937 |
"The format string for the date shown on the first page. By default: " |
| 938 |
"Day_Name, Day_Number Month_Name Year" |
| 939 |
msgstr "" |
| 940 |
|
| 941 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 942 |
#: calibre.web.feeds.news.BasicNewsRecipe.timeout:1 |
| 943 |
msgid "Timeout for fetching files from server in seconds" |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 947 |
#: calibre.web.feeds.news.BasicNewsRecipe.title:1 |
| 948 |
msgid "The title to use for the e-book" |
| 949 |
msgstr "" |
| 950 |
|
| 951 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 952 |
#: calibre.web.feeds.news.BasicNewsRecipe.use_embedded_content:1 |
| 953 |
msgid "" |
| 954 |
"Normally we try to guess if a feed has full articles embedded in it based on" |
| 955 |
" the length of the embedded content. If `None`, then the default guessing is" |
| 956 |
" used. If `True` then the we always assume the feeds has embedded content " |
| 957 |
"and if `False` we always assume the feed does not have embedded content." |
| 958 |
msgstr "" |