| 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 |
# RERBIN MA, 2025 |
| 7 |
# tony shen <[email protected]>, 2020,2024 |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: calibre\n" |
| 11 |
"Report-Msgid-Bugs-To: \n" |
| 12 |
"POT-Creation-Date: 2025-07-17 08:29+0000\n" |
| 13 |
"PO-Revision-Date: 2014-06-17 08:36+0000\n" |
| 14 |
"Last-Translator: RERBIN MA, 2025\n" |
| 15 |
"Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Language: zh_CN\n" |
| 20 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 21 |
|
| 22 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:4 |
| 23 |
msgid "API documentation for recipes" |
| 24 |
msgstr "清单的API文档" |
| 25 |
|
| 26 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:9 |
| 27 |
msgid "The API for writing recipes is defined by the :class:`BasicNewsRecipe`" |
| 28 |
msgstr "编写清单的API由\"BasicNewsRecipe\"定义" |
| 29 |
|
| 30 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 31 |
#: calibre.web.feeds.news.BasicNewsRecipe:1 |
| 32 |
msgid "" |
| 33 |
"Base class that contains logic needed in all recipes. By overriding " |
| 34 |
"progressively more of the functionality in this class, you can make " |
| 35 |
"progressively more customized/powerful recipes. For a tutorial introduction " |
| 36 |
"to creating recipes, see :doc:`news`." |
| 37 |
msgstr "包含所有新闻源所需逻辑的基类。 通过逐渐覆盖此类中的更多功能,您可以逐渐制作更加定制/强大的新闻源。 有关创建新闻源的教程介绍,请参阅“新闻”。" |
| 38 |
|
| 39 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 40 |
#: calibre.web.feeds.news.BasicNewsRecipe.adeify_images:1 |
| 41 |
msgid "" |
| 42 |
"If your recipe when converted to EPUB has problems with images when viewed " |
| 43 |
"in Adobe Digital Editions, call this method from within " |
| 44 |
":meth:`postprocess_html`." |
| 45 |
msgstr "如果您的新闻在转换为 EPUB 后在 Adobe Digital Editions 中查看时出现图像问题,请从“postprocess_html”中调用此方法。" |
| 46 |
|
| 47 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 48 |
#: calibre.web.feeds.news.BasicNewsRecipe.image_url_processor:1 |
| 49 |
msgid "" |
| 50 |
"Perform some processing on image urls (perhaps removing size restrictions " |
| 51 |
"for dynamically generated images, etc.) and return the processed URL. Return" |
| 52 |
" None or an empty string to skip fetching the image." |
| 53 |
msgstr "对图像 url 执行一些处理(可能消除动态生成的图像的大小限制等)并返回处理后的 URL。 返回 None 或空字符串以跳过获取图像。" |
| 54 |
|
| 55 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 56 |
#: calibre.web.feeds.news.BasicNewsRecipe.print_version:1 |
| 57 |
msgid "" |
| 58 |
"Take a `url` pointing to the webpage with article content and return the " |
| 59 |
":term:`URL` pointing to the print version of the article. By default does " |
| 60 |
"nothing. For example::" |
| 61 |
msgstr "获取指向包含文章内容的网页的“url”,并返回指向文章打印版本的“URL”。 默认情况下不执行任何操作。 例如:" |
| 62 |
|
| 63 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 64 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:1 |
| 65 |
msgid "" |
| 66 |
"Convenience method to take a `BeautifulSoup " |
| 67 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ :code:`Tag` and " |
| 68 |
"extract the text from it recursively, including any CDATA sections and alt " |
| 69 |
"tag attributes. Return a possibly empty Unicode string." |
| 70 |
msgstr "获取 `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ `Tag` 并从中递归提取文本的便捷方法,包括任何 CDATA 部分和 alt 标签属性。 返回一个可能为空的 Unicode 字符串。" |
| 71 |
|
| 72 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 73 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:6 |
| 74 |
msgid "" |
| 75 |
"`use_alt`: If `True` try to use the alt attribute for tags that don't have " |
| 76 |
"any textual content" |
| 77 |
msgstr "`use_alt`:如果为`True`,则尝试对没有任何文本内容的标签使用 alt 属性" |
| 78 |
|
| 79 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 80 |
#: calibre.web.feeds.news.BasicNewsRecipe.tag_to_string:9 |
| 81 |
msgid "" |
| 82 |
"`tag`: `BeautifulSoup " |
| 83 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ :code:`Tag`" |
| 84 |
msgstr "`tag`: `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ `标签`" |
| 85 |
|
| 86 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 87 |
#: calibre.web.feeds.news.BasicNewsRecipe.abort_article:1 |
| 88 |
msgid "" |
| 89 |
"Call this method inside any of the preprocess methods to abort the download " |
| 90 |
"for the current article. Useful to skip articles that contain inappropriate " |
| 91 |
"content, such as pure video articles." |
| 92 |
msgstr "在任何预处理方法中调用此方法可中止当前文章的下载。 有助于跳过包含不当内容的文章,例如纯视频文章。" |
| 93 |
|
| 94 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 95 |
#: calibre.web.feeds.news.BasicNewsRecipe.abort_recipe_processing:1 |
| 96 |
msgid "" |
| 97 |
"Causes the recipe download system to abort the download of this recipe, " |
| 98 |
"displaying a simple feedback message to the user." |
| 99 |
msgstr "导致新闻源下载系统中止此新闻源的下载,并向用户显示一条简单的反馈消息。" |
| 100 |
|
| 101 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 102 |
#: calibre.web.feeds.news.BasicNewsRecipe.add_toc_thumbnail:1 |
| 103 |
msgid "" |
| 104 |
"Call this from populate_article_metadata with the src attribute of an <img> " |
| 105 |
"tag from the article that is appropriate for use as the thumbnail " |
| 106 |
"representing the article in the Table of Contents. Whether the thumbnail is " |
| 107 |
"actually used is device dependent (currently only used by the Kindles). Note" |
| 108 |
" that the referenced image must be one that was successfully downloaded, " |
| 109 |
"otherwise it will be ignored." |
| 110 |
msgstr "从 populate_article_metadata 调用此方法,并使用文章中 <img>标记的 src 属性,该标记适合用作代表目录中文章的缩略图。 缩略图是否实际使用取决于设备(目前仅由 Kindle 使用)。 注意,引用的图片必须是已成功下载的图片,否则会被忽略。" |
| 111 |
|
| 112 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 113 |
#: calibre.web.feeds.news.BasicNewsRecipe.canonicalize_internal_url:1 |
| 114 |
msgid "" |
| 115 |
"Return a set of canonical representations of ``url``. The default " |
| 116 |
"implementation uses just the server hostname and path of the URL, ignoring " |
| 117 |
"any query parameters, fragments, etc. The canonical representations must be " |
| 118 |
"unique across all URLs for this news source. If they are not, then internal " |
| 119 |
"links may be resolved incorrectly." |
| 120 |
msgstr "返回一组“url”的规范表示。 默认实现仅使用服务器主机名和 URL 路径,忽略任何查询参数、片段等。规范表示在该新闻源的所有 URL 中必须是唯一的。 如果不是,则内部链接可能无法正确解析。" |
| 121 |
|
| 122 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:0 |
| 123 |
msgid "Parameters" |
| 124 |
msgstr "参数" |
| 125 |
|
| 126 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 127 |
#: calibre.web.feeds.news.BasicNewsRecipe.canonicalize_internal_url:7 |
| 128 |
msgid "" |
| 129 |
"Is True if the URL is coming from an internal link in an HTML file. False if" |
| 130 |
" the URL is the URL used to download an article." |
| 131 |
msgstr "如果 URL 来自 HTML 文件中的内部链接,则为 True。 如果 URL 是用于下载文章的 URL,则为 False。" |
| 132 |
|
| 133 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 134 |
#: calibre.web.feeds.news.BasicNewsRecipe.cleanup:1 |
| 135 |
msgid "" |
| 136 |
"Called after all articles have been download. Use it to do any cleanup like " |
| 137 |
"logging out of subscription sites, etc." |
| 138 |
msgstr "下载完所有文章后调用。 用它来进行任何清理,例如注销订阅网站等。" |
| 139 |
|
| 140 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 141 |
#: calibre.web.feeds.news.BasicNewsRecipe.clone_browser:1 |
| 142 |
msgid "" |
| 143 |
"Clone the browser br. Cloned browsers are used for multi-threaded downloads," |
| 144 |
" since mechanize is not thread safe. The default cloning routines should " |
| 145 |
"capture most browser customization, but if you do something exotic in your " |
| 146 |
"recipe, you should override this method in your recipe and clone manually." |
| 147 |
msgstr "克隆浏览器br。 克隆浏览器用于多线程下载,因为 mechanize 不是线程安全的。 默认克隆例程应该捕获大多数浏览器自定义,但如果您在新闻源中做了一些奇怪的事情,则应该在新闻源中覆盖此方法并手动克隆。" |
| 148 |
|
| 149 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 150 |
#: calibre.web.feeds.news.BasicNewsRecipe.clone_browser:7 |
| 151 |
msgid "" |
| 152 |
"Cloned browser instances use the same, thread-safe CookieJar by default, " |
| 153 |
"unless you have customized cookie handling." |
| 154 |
msgstr "默认情况下,克隆的浏览器实例使用相同的线程安全 CookieJar,除非您自定义了 cookie 处理。" |
| 155 |
|
| 156 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 157 |
#: calibre.web.feeds.news.BasicNewsRecipe.default_cover:1 |
| 158 |
msgid "Create a generic cover for recipes that don't have a cover" |
| 159 |
msgstr "为没有封面的新闻源创建通用封面" |
| 160 |
|
| 161 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 162 |
#: calibre.web.feeds.news.BasicNewsRecipe.download:1 |
| 163 |
msgid "" |
| 164 |
"Download and pre-process all articles from the feeds in this recipe. This " |
| 165 |
"method should be called only once on a particular Recipe instance. Calling " |
| 166 |
"it more than once will lead to undefined behavior. :return: Path to " |
| 167 |
"index.html" |
| 168 |
msgstr "下载并预处理本新闻源中提要中的所有文章。 该方法只能在特定的 Recipe 实例上调用一次。 多次调用它会导致未定义的行为。 index.html 的路径" |
| 169 |
|
| 170 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 171 |
#: calibre.web.feeds.news.BasicNewsRecipe.extract_readable_article:1 |
| 172 |
msgid "" |
| 173 |
"Extracts main article content from 'html', cleans up and returns as a " |
| 174 |
"(article_html, extracted_title) tuple. Based on the original readability " |
| 175 |
"algorithm by Arc90." |
| 176 |
msgstr "从“html”中提取主要文章内容,进行清理并以(article_html,extracted_title)元组形式返回。 基于Arc90原创的可读性算法。" |
| 177 |
|
| 178 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 179 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_article_url:1 |
| 180 |
msgid "" |
| 181 |
"Override in a subclass to customize extraction of the :term:`URL` that " |
| 182 |
"points to the content for each article. Return the article URL. It is called" |
| 183 |
" with `article`, an object representing a parsed article from a feed. See " |
| 184 |
"`feedparser <https://pythonhosted.org/feedparser/>`_. By default it looks " |
| 185 |
"for the original link (for feeds syndicated via a service like FeedBurner or" |
| 186 |
" Pheedo) and if found, returns that or else returns `article.link " |
| 187 |
"<https://pythonhosted.org/feedparser/reference-entry-link.html>`_." |
| 188 |
msgstr "在子类中重写以自定义指向每篇文章内容的“URL”的提取。 返回文章网址。 它通过“article”来调用,“article”是一个表示来自提要的已解析文章的对象。 请参阅“feedparser <https://pythonhosted.org/feedparser/>”_。 默认情况下,它会查找原始链接(通过 FeedBurner 或 Pheedo 等服务联合供稿),如果找到,则返回该链接,否则返回“https://pythonhosted.org/feedparser/reference-entry-link.html>`_。" |
| 189 |
|
| 190 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 191 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_browser:1 |
| 192 |
msgid "" |
| 193 |
"Return a browser instance used to fetch documents from the web. By default " |
| 194 |
"it returns a `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ " |
| 195 |
"browser instance that supports cookies, ignores robots.txt, handles " |
| 196 |
"refreshes and has a random common user agent." |
| 197 |
msgstr "返回用于从Web获取文档的浏览器实例。默认情况下,它返回一个'机械化<https://mechanize.readthedocs.io/en/latest/>'_浏览器实例,该实例支持cookie、忽略robots. text、处理刷新并具有随机的公共用户代理。" |
| 198 |
|
| 199 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 200 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_browser:6 |
| 201 |
msgid "To customize the browser override this method in your sub-class as::" |
| 202 |
msgstr "要自定义浏览器,请在您的子类别中重写此方法:" |
| 203 |
|
| 204 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 205 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_cover_url:1 |
| 206 |
msgid "" |
| 207 |
"Return a :term:`URL` to the cover image for this issue or `None`. By default" |
| 208 |
" it returns the value of the member `self.cover_url` which is normally " |
| 209 |
"`None`. If you want your recipe to download a cover for the e-book override " |
| 210 |
"this method in your subclass, or set the member variable `self.cover_url` " |
| 211 |
"before this method is called." |
| 212 |
msgstr "返回此问题封面图片的“URL”或“None”。 默认情况下,它返回成员“self.cover_url”的值,通常为“None”。 如果您希望您的新闻源下载电子书的封面,请在子类中重写此方法,或者在调用此方法之前设置成员变量“self.cover_url”。" |
| 213 |
|
| 214 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 215 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_extra_css:1 |
| 216 |
msgid "" |
| 217 |
"By default returns `self.extra_css`. Override if you want to " |
| 218 |
"programmatically generate the extra_css." |
| 219 |
msgstr "默认情况下返回“self.extra_css”。 如果您想以编程方式生成 extra_css,请覆盖。" |
| 220 |
|
| 221 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 222 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_feeds:1 |
| 223 |
msgid "" |
| 224 |
"Return a list of :term:`RSS` feeds to fetch for this profile. Each element " |
| 225 |
"of the list must be a 2-element tuple of the form (title, url). If title is " |
| 226 |
"None or an empty string, the title from the feed is used. This method is " |
| 227 |
"useful if your recipe needs to do some processing to figure out the list of " |
| 228 |
"feeds to download. If so, override in your subclass." |
| 229 |
msgstr "返回要为此配置文件获取的“RSS”提要列表。 列表中的每个元素必须是 (title, url) 形式的 2 元素元组。 如果 title 为 None 或空字符串,则使用提要中的标题。 如果您的新闻源需要进行一些处理来找出要下载的提要列表,则此方法非常有用。 如果是这样,请在您的子类中重写。" |
| 230 |
|
| 231 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 232 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_masthead_title:1 |
| 233 |
msgid "Override in subclass to use something other than the recipe title" |
| 234 |
msgstr "在子类中重写以使用新闻源标题以外的内容" |
| 235 |
|
| 236 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 237 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_masthead_url:1 |
| 238 |
msgid "" |
| 239 |
"Return a :term:`URL` to the masthead image for this issue or `None`. By " |
| 240 |
"default it returns the value of the member `self.masthead_url` which is " |
| 241 |
"normally `None`. If you want your recipe to download a masthead for the " |
| 242 |
"e-book override this method in your subclass, or set the member variable " |
| 243 |
"`self.masthead_url` before this method is called. Masthead images are used " |
| 244 |
"in Kindle MOBI files." |
| 245 |
msgstr "返回此问题的标头图片的“URL”或“无”。 默认情况下,它返回成员“self.masthead_url”的值,通常为“None”。 如果您希望您的新闻源下载电子书的标头,请在子类中重写此方法,或者在调用此方法之前设置成员变量 self.masthead_url 。 标头图像用于 Kindle MOBI 文件中。" |
| 246 |
|
| 247 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 248 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_obfuscated_article:1 |
| 249 |
msgid "" |
| 250 |
"If you set `articles_are_obfuscated` this method is called with every " |
| 251 |
"article URL. It should return the path to a file on the filesystem that " |
| 252 |
"contains the article HTML. That file is processed by the recursive HTML " |
| 253 |
"fetching engine, so it can contain links to pages/images on the web. " |
| 254 |
"Alternately, you can return a dictionary of the form: {'data': <HTML data>, " |
| 255 |
"'url': <the resolved URL of the article>}. This avoids needing to create " |
| 256 |
"temporary files. The `url` key in the dictionary is useful if the effective " |
| 257 |
"URL of the article is different from the URL passed into this method, for " |
| 258 |
"example, because of redirects. It can be omitted if the URL is unchanged." |
| 259 |
msgstr "如果您设置了“articles_are_obfuscated”,则每个文章 URL 都会调用此方法。 它应该返回文件系统上包含文章 HTML 的文件的路径。 该文件由递归 HTML 获取引擎处理,因此它可以包含指向 Web 上的页面/图像的链接。 或者,您可以返回以下形式的字典:{'data': 1, 'url': 2}。 这避免了需要创建临时文件。 如果文章的有效 URL 与传递到此方法的 URL 不同,例如由于重定向,则字典中的“url”键很有用。 如果 URL 不变,则可以省略。" |
| 260 |
|
| 261 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 262 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_obfuscated_article:11 |
| 263 |
msgid "" |
| 264 |
"This method is typically useful for sites that try to make it difficult to " |
| 265 |
"access article content automatically." |
| 266 |
msgstr "此方法通常适用于试图阻止自动访问文章内容的网站。" |
| 267 |
|
| 268 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 269 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_url_specific_delay:1 |
| 270 |
msgid "" |
| 271 |
"Return the delay in seconds before downloading this URL. If you want to " |
| 272 |
"programmatically determine the delay for the specified URL, override this " |
| 273 |
"method in your subclass, returning self.delay by default for URLs you do not" |
| 274 |
" want to affect." |
| 275 |
msgstr "返回下载此 URL 之前的延迟,以秒为单位。 如果您想以编程方式确定指定 URL 的延迟,请在子类中重写此方法,默认情况下为您不想影响的 URL 返回 self.delay。" |
| 276 |
|
| 277 |
#: ../../../__w/calibre/calibre/manual/news_recipe.rst:0 |
| 278 |
msgid "Returns" |
| 279 |
msgstr "返回" |
| 280 |
|
| 281 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 282 |
#: calibre.web.feeds.news.BasicNewsRecipe.get_url_specific_delay:5 |
| 283 |
msgid "A floating point number, the delay in seconds." |
| 284 |
msgstr "浮点数,以秒为单位的延迟。" |
| 285 |
|
| 286 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 287 |
#: calibre.web.feeds.news.BasicNewsRecipe.index_to_soup:1 |
| 288 |
msgid "" |
| 289 |
"Convenience method that takes an URL to the index page and returns a " |
| 290 |
"`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc>`__ of" |
| 291 |
" it." |
| 292 |
msgstr "便捷方法,获取索引页面的 URL 并返回它的 `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc>`__。" |
| 293 |
|
| 294 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 295 |
#: calibre.web.feeds.news.BasicNewsRecipe.index_to_soup:5 |
| 296 |
msgid "`url_or_raw`: Either a URL or the downloaded index page as a string" |
| 297 |
msgstr "`url_or_raw`:URL 或下载的索引页作为字符串" |
| 298 |
|
| 299 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 300 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:1 |
| 301 |
msgid "" |
| 302 |
"Return True if the link should be followed or False otherwise. By default, " |
| 303 |
"raises NotImplementedError which causes the downloader to ignore it." |
| 304 |
msgstr "如果应遵循链接,则返回 True,否则返回 False。 默认情况下,引发 NotImplementedError ,导致下载器忽略它。" |
| 305 |
|
| 306 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 307 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:5 |
| 308 |
msgid "The URL to be followed" |
| 309 |
msgstr "要关注的 URL" |
| 310 |
|
| 311 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 312 |
#: calibre.web.feeds.news.BasicNewsRecipe.is_link_wanted:6 |
| 313 |
msgid "The tag from which the URL was derived" |
| 314 |
msgstr "派生 URL 的标签" |
| 315 |
|
| 316 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 317 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_feeds:1 |
| 318 |
msgid "" |
| 319 |
"Create a list of articles from the list of feeds returned by " |
| 320 |
":meth:`BasicNewsRecipe.get_feeds`. Return a list of :class:`Feed` objects." |
| 321 |
msgstr "从“BasicNewsRecipe.get_feeds”返回的提要列表中创建文章列表。 返回“Feed”对象的列表。" |
| 322 |
|
| 323 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 324 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:1 |
| 325 |
msgid "" |
| 326 |
"This method should be implemented in recipes that parse a website instead of" |
| 327 |
" feeds to generate a list of articles. Typical uses are for news sources " |
| 328 |
"that have a \"Print Edition\" webpage that lists all the articles in the " |
| 329 |
"current print edition. If this function is implemented, it will be used in " |
| 330 |
"preference to :meth:`BasicNewsRecipe.parse_feeds`." |
| 331 |
msgstr "此方法应该在解析网站而不是提要来生成文章列表的新闻源中实现。 典型用途是具有“印刷版”网页的新闻源,其中列出了当前印刷版的所有文章。 如果实现此功能,它将优先于“BasicNewsRecipe.parse_feeds”使用。" |
| 332 |
|
| 333 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 334 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:7 |
| 335 |
msgid "" |
| 336 |
"It must return a list. Each element of the list must be a 2-element tuple of" |
| 337 |
" the form ``('feed title', list of articles)``." |
| 338 |
msgstr "它必须返回一个列表。 列表中的每个元素必须是形式为``('提要标题',文章列表)`` 的 2 元素元组。" |
| 339 |
|
| 340 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 341 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:10 |
| 342 |
msgid "Each list of articles must contain dictionaries of the form::" |
| 343 |
msgstr "每个文章列表必须包含以下形式的字典:" |
| 344 |
|
| 345 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 346 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:23 |
| 347 |
msgid "" |
| 348 |
"For an example, see the recipe for downloading `The Atlantic`. In addition, " |
| 349 |
"you can add 'author' for the author of the article." |
| 350 |
msgstr "例如,请参阅下载“The Atlantic”的方法。 此外,您可以为文章的作者添加“作者”。" |
| 351 |
|
| 352 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 353 |
#: calibre.web.feeds.news.BasicNewsRecipe.parse_index:26 |
| 354 |
msgid "" |
| 355 |
"If you want to abort processing for some reason and have calibre show the " |
| 356 |
"user a simple message instead of an error, call " |
| 357 |
":meth:`abort_recipe_processing`." |
| 358 |
msgstr "如果您想出于某种原因中止处理并让 calibre 向用户显示一条简单的消息而不是错误,请调用“abort_recipe_processing”。" |
| 359 |
|
| 360 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 361 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:1 |
| 362 |
msgid "" |
| 363 |
"Called when each HTML page belonging to article is downloaded. Intended to " |
| 364 |
"be used to get article metadata like author/summary/etc. from the parsed " |
| 365 |
"HTML (soup)." |
| 366 |
msgstr "下载属于文章的每个 HTML 页面时调用。 旨在用于获取文章元数据,如作者/摘要/等。 来自解析的 HTML(汤)。" |
| 367 |
|
| 368 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 369 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:5 |
| 370 |
msgid "" |
| 371 |
"A object of class :class:`calibre.web.feeds.Article`. If you change the " |
| 372 |
"summary, remember to also change the text_summary" |
| 373 |
msgstr "`calibre.web.feeds.Article` 类的对象。 如果更改摘要,请记住同时更改 text_summary" |
| 374 |
|
| 375 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 376 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:7 |
| 377 |
msgid "Parsed HTML belonging to this article" |
| 378 |
msgstr "属于本文的已解析 HTML" |
| 379 |
|
| 380 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 381 |
#: calibre.web.feeds.news.BasicNewsRecipe.populate_article_metadata:8 |
| 382 |
msgid "True iff the parsed HTML is the first page of the article." |
| 383 |
msgstr "当且仅当解析的 HTML 是文章的第一页时为 true。" |
| 384 |
|
| 385 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 386 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:1 |
| 387 |
msgid "Run any needed post processing on the parsed downloaded e-book." |
| 388 |
msgstr "对已解析的下载电子书运行任何所需的后处理。" |
| 389 |
|
| 390 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 391 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:3 |
| 392 |
msgid "An OEBBook object" |
| 393 |
msgstr "一个 OEBBook 对象" |
| 394 |
|
| 395 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 396 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_book:4 |
| 397 |
msgid "Conversion options" |
| 398 |
msgstr "转换选项" |
| 399 |
|
| 400 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 401 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:1 |
| 402 |
msgid "" |
| 403 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 404 |
"after it is parsed for links and images. It can be used to do arbitrarily " |
| 405 |
"powerful post-processing on the :term:`HTML`. It should return `soup` after " |
| 406 |
"processing it." |
| 407 |
msgstr "在解析链接和图像后,使用每个下载的 HTML 文件的源调用此方法。 它可用于对 HTML 进行任意强大的后处理。 处理后它应该返回`soup`。" |
| 408 |
|
| 409 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 410 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:6 |
| 411 |
msgid "" |
| 412 |
"A `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__" |
| 413 |
" instance containing the downloaded :term:`HTML`." |
| 414 |
msgstr "一个 `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__ 实例,包含下载的 `HTML`。" |
| 415 |
|
| 416 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 417 |
#: calibre.web.feeds.news.BasicNewsRecipe.postprocess_html:7 |
| 418 |
msgid "True if this is the first page of an article." |
| 419 |
msgstr "如果这是文章的第一页,则为 true。" |
| 420 |
|
| 421 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 422 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_html:1 |
| 423 |
msgid "" |
| 424 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 425 |
"before it is parsed for links and images. It is called after the cleanup as " |
| 426 |
"specified by remove_tags etc. It can be used to do arbitrarily powerful pre-" |
| 427 |
"processing on the :term:`HTML`. It should return `soup` after processing it." |
| 428 |
msgstr "在解析链接和图像之前,使用每个下载的“HTML”文件的源调用此方法。 它在remove_tags等指定的清理之后被调用。它可以用来对“HTML”进行任意强大的预处理。 处理后它应该返回`soup`。" |
| 429 |
|
| 430 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 431 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_html:7 |
| 432 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 433 |
#: calibre.web.feeds.news.BasicNewsRecipe.skip_ad_pages:8 |
| 434 |
msgid "" |
| 435 |
"`soup`: A `BeautifulSoup " |
| 436 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__ instance " |
| 437 |
"containing the downloaded :term:`HTML`." |
| 438 |
msgstr "`soup`:一个 `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__ 实例,包含下载的 :term:`HTML`。" |
| 439 |
|
| 440 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 441 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_image:1 |
| 442 |
msgid "" |
| 443 |
"Perform some processing on downloaded image data. This is called on the raw " |
| 444 |
"data before any resizing is done. Must return the processed raw data. Return" |
| 445 |
" None to skip the image." |
| 446 |
msgstr "对下载的图像数据进行一些处理。 在完成任何大小调整之前,会对原始数据调用此方法。 必须返回处理后的原始数据。 返回 None 以跳过图像。" |
| 447 |
|
| 448 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 449 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:1 |
| 450 |
msgid "" |
| 451 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 452 |
"before it is parsed into an object tree. raw_html is a unicode string " |
| 453 |
"representing the raw HTML downloaded from the web. url is the URL from which" |
| 454 |
" the HTML was downloaded." |
| 455 |
msgstr "在将每个下载的 HTML 文件解析为对象树之前,会调用此方法。 raw_html 是一个 unicode 字符串,表示从网络下载的原始 HTML。 url 是下载 HTML 的 URL。" |
| 456 |
|
| 457 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 458 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:6 |
| 459 |
msgid "Note that this method acts *before* preprocess_regexps." |
| 460 |
msgstr "请注意,此方法在 preprocess_regexps *之前*起作用。" |
| 461 |
|
| 462 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 463 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_raw_html:8 |
| 464 |
msgid "This method must return the processed raw_html as a unicode object." |
| 465 |
msgstr "此方法必须将处理后的 raw_html 作为 unicode 对象返回。" |
| 466 |
|
| 467 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 468 |
#: calibre.web.feeds.news.BasicNewsRecipe.publication_date:1 |
| 469 |
msgid "" |
| 470 |
"Use this method to set the date when this issue was published. Defaults to " |
| 471 |
"the moment of download. Must return a :class:`datetime.datetime` object." |
| 472 |
msgstr "使用此方法设置此问题的发布日期。 默认为下载时刻。 必须返回一个“datetime.datetime”对象。" |
| 473 |
|
| 474 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 475 |
#: calibre.web.feeds.news.BasicNewsRecipe.skip_ad_pages:1 |
| 476 |
msgid "" |
| 477 |
"This method is called with the source of each downloaded :term:`HTML` file, " |
| 478 |
"before any of the cleanup attributes like remove_tags, keep_only_tags are " |
| 479 |
"applied. Note that preprocess_regexps will have already been applied. It is " |
| 480 |
"meant to allow the recipe to skip ad pages. If the soup represents an ad " |
| 481 |
"page, return the HTML of the real page. Otherwise return None." |
| 482 |
msgstr "在应用任何清理属性(如remove_tags、keep_only_tags)之前,使用每个下载的 HTML 文件的源调用此方法。 请注意,preprocess_regexps 已被应用。 它的目的是允许菜谱跳过广告页面。 如果汤代表广告页面,则返回真实页面的 HTML。 否则返回 None。" |
| 483 |
|
| 484 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 485 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:1 |
| 486 |
msgid "" |
| 487 |
"Convenience method to sort the titles in `index` according to `weights`. " |
| 488 |
"`index` is sorted in place. Returns `index`." |
| 489 |
msgstr "根据“权重”对“索引”中的标题进行排序的便捷方法。 `index` 已就地排序。 返回“索引”。" |
| 490 |
|
| 491 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 492 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:4 |
| 493 |
msgid "`index`: A list of titles." |
| 494 |
msgstr "`index`: 标题列表。" |
| 495 |
|
| 496 |
#: ../../../__w/calibre/calibre/src/calibre/web/feeds/news.pydocstring of |
| 497 |
#: calibre.web.feeds.news.BasicNewsRecipe.sort_index_by:6 |
| 498 |
msgid "" |
| 499 |
"`weights`: A dictionary that maps weights to titles. If any titles in index " |
| 500 |
"are not in weights, they are assumed to have a weight of 0." |
| 501 |
msgstr "`weights`:将权重映射到标题的字典。 如果索引中的任何标题不在权重中,则假定它们的权重为 0。" |
| 502 |
|
| 503 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 504 |
#: calibre.web.feeds.news.BasicNewsRecipe.articles_are_obfuscated:1 |
| 505 |
msgid "" |
| 506 |
"Set to True and implement :meth:`get_obfuscated_article` to handle websites " |
| 507 |
"that try to make it difficult to scrape content." |
| 508 |
msgstr "设置为 True 并实施 `get_obfuscated_article` 来处理那些试图让抓取内容变得困难的网站。" |
| 509 |
|
| 510 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 511 |
#: calibre.web.feeds.news.BasicNewsRecipe.auto_cleanup:1 |
| 512 |
msgid "" |
| 513 |
"Automatically extract all the text from downloaded article pages. Uses the " |
| 514 |
"algorithms from the readability project. Setting this to True, means that " |
| 515 |
"you do not have to worry about cleaning up the downloaded HTML manually " |
| 516 |
"(though manual cleanup will always be superior)." |
| 517 |
msgstr "自动从下载的文章页面中提取所有文本。 使用可读性项目中的算法。 将其设置为 True 意味着您不必担心手动清理下载的 HTML(尽管手动清理总是更好)。" |
| 518 |
|
| 519 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 520 |
#: calibre.web.feeds.news.BasicNewsRecipe.auto_cleanup_keep:1 |
| 521 |
msgid "" |
| 522 |
"Specify elements that the auto cleanup algorithm should never remove. The " |
| 523 |
"syntax is a XPath expression. For example::" |
| 524 |
msgstr "指定自动清理算法永远不应删除的元素。 语法是 XPath 表达式。 例如:" |
| 525 |
|
| 526 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 527 |
#: calibre.web.feeds.news.BasicNewsRecipe.browser_type:1 |
| 528 |
msgid "" |
| 529 |
"The simulated browser engine to use when downloading from servers. The " |
| 530 |
"default is to use the Python mechanize browser engine, which supports " |
| 531 |
"logging in. However, if you don't need logging in, consider changing this to" |
| 532 |
" either 'webengine' which uses an actual Chromium browser to do the network " |
| 533 |
"requests or 'qt' which uses the Qt Networking backend. Both 'webengine' and " |
| 534 |
"'qt' support HTTP/2, which mechanize does not and are thus harder to " |
| 535 |
"fingerprint for bot protection services." |
| 536 |
msgstr "从服务器下载时使用的模拟浏览器引擎。默认使用Python机械化浏览器引擎,支持登录。但是,如果您不需要登录,请考虑将其更改为“webengine”(使用实际Chromium浏览器执行网络请求)或“qt”(使用Qt Networks后台)。“webengine”和“qt”都支持HTTP/2,但机制不支持,因此更难为机器人保护服务进行指纹识别。" |
| 537 |
|
| 538 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 539 |
#: calibre.web.feeds.news.BasicNewsRecipe.center_navbar:1 |
| 540 |
msgid "" |
| 541 |
"If True the navigation bar is center aligned, otherwise it is left aligned" |
| 542 |
msgstr "如果 True 则导航栏居中对齐,否则左对齐" |
| 543 |
|
| 544 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 545 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images:1 |
| 546 |
msgid "" |
| 547 |
"Set this to False to ignore all scaling and compression parameters and pass " |
| 548 |
"images through unmodified. If True and the other compression parameters are " |
| 549 |
"left at their default values, images will be scaled to fit in the screen " |
| 550 |
"dimensions set by the output profile and compressed to size at most (w * " |
| 551 |
"h)/16 where w x h are the scaled image dimensions." |
| 552 |
msgstr "将此项设置为 False 时,所有缩放和压缩参数都会被忽略,图片将不作任何修改直接传输。\n如果设置为 True,且其他压缩参数保持默认值,则图片会根据输出配置文件中设定的屏幕尺寸进行缩放,并被压缩至最大尺寸为 (w × h)/16,其中 w 和 h 是缩放后的图片宽高。" |
| 553 |
|
| 554 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 555 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images_auto_size:1 |
| 556 |
msgid "" |
| 557 |
"The factor used when auto compressing JPEG images. If set to None, auto " |
| 558 |
"compression is disabled. Otherwise, the images will be reduced in size to (w" |
| 559 |
" * h)/compress_news_images_auto_size bytes if possible by reducing the " |
| 560 |
"quality level, where w x h are the image dimensions in pixels. The minimum " |
| 561 |
"JPEG quality will be 5/100 so it is possible this constraint will not be " |
| 562 |
"met. This parameter can be overridden by the parameter " |
| 563 |
"compress_news_images_max_size which provides a fixed maximum size for " |
| 564 |
"images. Note that if you enable scale_news_images_to_device then the image " |
| 565 |
"will first be scaled and then its quality lowered until its size is less " |
| 566 |
"than (w * h)/factor where w and h are now the *scaled* image dimensions. In " |
| 567 |
"other words, this compression happens after scaling." |
| 568 |
msgstr "自动压缩 JPEG 图像时使用的系数。 如果设置为 None,则禁用自动压缩。 否则,如果可能的话,通过降低质量级别,图像的大小将减小到 (w * h)/compress_news_images_auto_size 字节,其中 w x h 是图像尺寸,以像素为单位。 最低 JPEG 质量将为 5/100,因此可能无法满足此限制。 该参数可以被参数 compress_news_images_max_size 覆盖,该参数提供图像的固定最大大小。 请注意,如果启用scale_news_images_to_device,则图像将首先缩放,然后降低其质量,直到其大小小于 (w * h)/factor,其中 w 和 h 现在是*缩放*图像尺寸。 换句话说,这种压缩发生在缩放之后。" |
| 569 |
|
| 570 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 571 |
#: calibre.web.feeds.news.BasicNewsRecipe.compress_news_images_max_size:1 |
| 572 |
msgid "" |
| 573 |
"Set JPEG quality so images do not exceed the size given (in KBytes). If set," |
| 574 |
" this parameter overrides auto compression via " |
| 575 |
"compress_news_images_auto_size. The minimum JPEG quality will be 5/100 so it" |
| 576 |
" is possible this constraint will not be met." |
| 577 |
msgstr "设置 JPEG 质量,使图像不超过给定的大小(以千字节为单位)。 如果设置,此参数将覆盖通过 compress_news_images_auto_size 自动压缩。 最低 JPEG 质量将为 5/100,因此可能无法满足此限制。" |
| 578 |
|
| 579 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 580 |
#: calibre.web.feeds.news.BasicNewsRecipe.conversion_options:1 |
| 581 |
msgid "" |
| 582 |
"Recipe specific options to control the conversion of the downloaded content " |
| 583 |
"into an e-book. These will override any user or plugin specified values, so " |
| 584 |
"only use if absolutely necessary. For example::" |
| 585 |
msgstr "用于控制将下载的内容转换为电子书的特定于新闻源的选项。 这些将覆盖任何用户或插件指定的值,因此仅在绝对必要时使用。 例如:" |
| 586 |
|
| 587 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 588 |
#: calibre.web.feeds.news.BasicNewsRecipe.cover_margins:1 |
| 589 |
msgid "" |
| 590 |
"By default, the cover image returned by get_cover_url() will be used as the " |
| 591 |
"cover for the periodical. Overriding this in your recipe instructs calibre " |
| 592 |
"to render the downloaded cover into a frame whose width and height are " |
| 593 |
"expressed as a percentage of the downloaded cover. cover_margins = (10, 15, " |
| 594 |
"'#ffffff') pads the cover with a white margin 10px on the left and right, " |
| 595 |
"15px on the top and bottom. Color names are defined `here " |
| 596 |
"<https://www.imagemagick.org/script/color.php>`_. Note that for some reason," |
| 597 |
" white does not always work in Windows. Use #ffffff instead" |
| 598 |
msgstr "默认情况下, get_cover_url() 返回的封面图像将用作期刊的封面。 在您的配方中覆盖此选项会指示 calibre 将下载的封面渲染到一个框架中,该框架的宽度和高度以下载封面的百分比表示。 cover_margins = (10, 15, '#ffffff') 在封面上填充左侧和右侧 10 像素的白边距,顶部和底部 15 像素的白边距。 颜色名称在“此处 <https://www.imagemagick.org/script/color.php>”定义。 请注意,由于某种原因,白色并不总是在 Windows 中起作用。 使用#ffffff代替" |
| 599 |
|
| 600 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 601 |
#: calibre.web.feeds.news.BasicNewsRecipe.delay:1 |
| 602 |
msgid "" |
| 603 |
"The default delay between consecutive downloads in seconds. The argument may" |
| 604 |
" be a floating point number to indicate a more precise time. See " |
| 605 |
":meth:`get_url_specific_delay` to implement per URL delays." |
| 606 |
msgstr "连续下载之间的默认延迟,以秒为单位。 该参数可以是浮点数以指示更精确的时间。 请参阅“get_url_specific_delay”来实现每个 URL 的延迟。" |
| 607 |
|
| 608 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 609 |
#: calibre.web.feeds.news.BasicNewsRecipe.description:1 |
| 610 |
msgid "" |
| 611 |
"A couple of lines that describe the content this recipe downloads. This will" |
| 612 |
" be used primarily in a GUI that presents a list of recipes." |
| 613 |
msgstr "几行描述了此新闻源下载的内容。 这将主要用在显示新闻源列表的 GUI 中。" |
| 614 |
|
| 615 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 616 |
#: calibre.web.feeds.news.BasicNewsRecipe.encoding:1 |
| 617 |
msgid "" |
| 618 |
"Specify an override encoding for sites that have an incorrect charset " |
| 619 |
"specification. The most common being specifying ``latin1`` and using " |
| 620 |
"``cp1252``. If None, try to detect the encoding. If it is a callable, the " |
| 621 |
"callable is called with two arguments: The recipe object and the source to " |
| 622 |
"be decoded. It must return the decoded source." |
| 623 |
msgstr "为字符集规范不正确的站点指定覆盖编码。 最常见的是指定“latin1”并使用“cp1252”。 如果没有,请尝试检测编码。 如果它是可调用的,则使用两个参数调用可调用的:新闻源对象和要解码的源。 它必须返回解码后的源。" |
| 624 |
|
| 625 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 626 |
#: calibre.web.feeds.news.BasicNewsRecipe.extra_css:1 |
| 627 |
msgid "" |
| 628 |
"Specify any extra :term:`CSS` that should be added to downloaded " |
| 629 |
":term:`HTML` files. It will be inserted into `<style>` tags, just before the" |
| 630 |
" closing `</head>` tag thereby overriding all :term:`CSS` except that which " |
| 631 |
"is declared using the style attribute on individual :term:`HTML` tags. Note " |
| 632 |
"that if you want to programmatically generate the extra_css override the " |
| 633 |
":meth:`get_extra_css()` method instead. For example::" |
| 634 |
msgstr "指定应添加到下载的“HTML”文件中的任何额外“CSS”。 它将被插入到“<style>”标签中,就在结束“</head>”标签之前,从而覆盖所有“CSS”,除了在各个“HTML”标签上使用 style 属性声明的内容之外。 请注意,如果您想以编程方式生成 extra_css,请重写“get_extra_css()”方法。 例如:" |
| 635 |
|
| 636 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 637 |
#: calibre.web.feeds.news.BasicNewsRecipe.feeds:1 |
| 638 |
msgid "" |
| 639 |
"List of feeds to download. Can be either ``[url1, url2, ...]`` or " |
| 640 |
"``[('title1', url1), ('title2', url2),...]``" |
| 641 |
msgstr "要下载的提要列表。 可以是 ``[url1, url2, ...]`` 或 ``[('title1', url1), ('title2', url2),...]``" |
| 642 |
|
| 643 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 644 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:1 |
| 645 |
msgid "" |
| 646 |
"List of regular expressions that determines which links to ignore. If empty " |
| 647 |
"it is ignored. Used only if is_link_wanted is not implemented. For example::" |
| 648 |
msgstr "确定要忽略哪些链接的正则表达式列表。 如果为空则被忽略。 仅当未实现 is_link_wanted 时使用。 例如:" |
| 649 |
|
| 650 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 651 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:7 |
| 652 |
msgid "will remove all URLs that have `ads.doubleclick.net` in them." |
| 653 |
msgstr "将删除其中包含“ads.doubleclick.net”的所有网址。" |
| 654 |
|
| 655 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 656 |
#: calibre.web.feeds.news.BasicNewsRecipe.filter_regexps:9 |
| 657 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 658 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:9 |
| 659 |
msgid "" |
| 660 |
"Only one of :attr:`BasicNewsRecipe.match_regexps` or " |
| 661 |
":attr:`BasicNewsRecipe.filter_regexps` should be defined." |
| 662 |
msgstr "仅应定义“BasicNewsRecipe.match_regexps”或“BasicNewsRecipe.filter_regexps”之一。" |
| 663 |
|
| 664 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 665 |
#: calibre.web.feeds.news.BasicNewsRecipe.handle_gzip:1 |
| 666 |
msgid "" |
| 667 |
"Set to False if you do not want to use gzipped transfers with the mechanize " |
| 668 |
"browser. Note that some old servers flake out with gzip." |
| 669 |
msgstr "如果您不想在机械化浏览器中使用gzipped传输,请设置为False。请注意,一些旧服务器因gZip而崩溃。" |
| 670 |
|
| 671 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 672 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:1 |
| 673 |
msgid "" |
| 674 |
"Ignore duplicates of articles that are present in more than one section. A " |
| 675 |
"duplicate article is an article that has the same title and/or URL. To " |
| 676 |
"ignore articles with the same title, set this to::" |
| 677 |
msgstr "忽略出现在多个部分中的重复文章。 重复文章是指具有相同标题和/或 URL 的文章。 要忽略具有相同标题的文章,请将其设置为:" |
| 678 |
|
| 679 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 680 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:7 |
| 681 |
msgid "To use URLs instead, set it to::" |
| 682 |
msgstr "要改为使用 URL,请将其设置为:" |
| 683 |
|
| 684 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 685 |
#: calibre.web.feeds.news.BasicNewsRecipe.ignore_duplicate_articles:11 |
| 686 |
msgid "To match on title or URL, set it to::" |
| 687 |
msgstr "要匹配标题或 URL,请将其设置为:" |
| 688 |
|
| 689 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 690 |
#: calibre.web.feeds.news.BasicNewsRecipe.keep_only_tags:1 |
| 691 |
msgid "" |
| 692 |
"Keep only the specified tags and their children. For the format for " |
| 693 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. If this list is " |
| 694 |
"not empty, then the `<body>` tag will be emptied and re-filled with the tags" |
| 695 |
" that match the entries in this list. For example::" |
| 696 |
msgstr "仅保留指定的标签及其子标签。 有关指定标签的格式,请参阅“BasicNewsRecipe.remove_tags”。 如果此列表不为空,则“<body>”标签将被清空并用与此列表中的条目匹配的标签重新填充。 例如:" |
| 697 |
|
| 698 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 699 |
#: calibre.web.feeds.news.BasicNewsRecipe.keep_only_tags:8 |
| 700 |
msgid "" |
| 701 |
"will keep only tags that have an `id` attribute of `\"content\"` or " |
| 702 |
"`\"heading\"`." |
| 703 |
msgstr "将仅保留具有“id”属性为“内容”或“标题”的标签。" |
| 704 |
|
| 705 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 706 |
#: calibre.web.feeds.news.BasicNewsRecipe.language:1 |
| 707 |
msgid "" |
| 708 |
"The language that the news is in. Must be an ISO-639 code either two or " |
| 709 |
"three characters long" |
| 710 |
msgstr "新闻所使用的语言。必须是 ISO-639 代码,长度为两个或三个字符" |
| 711 |
|
| 712 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 713 |
#: calibre.web.feeds.news.BasicNewsRecipe.masthead_url:1 |
| 714 |
msgid "" |
| 715 |
"By default, calibre will use a default image for the masthead (Kindle only)." |
| 716 |
" Override this in your recipe to provide a URL to use as a masthead." |
| 717 |
msgstr "默认情况下,calibre 将使用默认图像作为标头(仅限 Kindle)。 在您的配方中覆盖此设置以提供用作标头的 URL。" |
| 718 |
|
| 719 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 720 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:1 |
| 721 |
msgid "" |
| 722 |
"List of regular expressions that determines which links to follow. If empty," |
| 723 |
" it is ignored. Used only if is_link_wanted is not implemented. For " |
| 724 |
"example::" |
| 725 |
msgstr "确定要跟踪哪些链接的正则表达式列表。 如果为空,则被忽略。 仅当未实现 is_link_wanted 时使用。 例如:" |
| 726 |
|
| 727 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 728 |
#: calibre.web.feeds.news.BasicNewsRecipe.match_regexps:7 |
| 729 |
msgid "will match all URLs that have `page=some number` in them." |
| 730 |
msgstr "将匹配所有包含“page=some number”的 URL。" |
| 731 |
|
| 732 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 733 |
#: calibre.web.feeds.news.BasicNewsRecipe.max_articles_per_feed:1 |
| 734 |
msgid "" |
| 735 |
"Maximum number of articles to download from each feed. This is primarily " |
| 736 |
"useful for feeds that don't have article dates. For most feeds, you should " |
| 737 |
"use :attr:`BasicNewsRecipe.oldest_article`" |
| 738 |
msgstr "从每个提要下载的最大文章数。 这主要对于没有文章日期的提要有用。 对于大多数提要,您应该使用“BasicNewsRecipe.oldest_article”" |
| 739 |
|
| 740 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 741 |
#: calibre.web.feeds.news.BasicNewsRecipe.needs_subscription:1 |
| 742 |
msgid "" |
| 743 |
"If True the GUI will ask the user for a username and password to use while " |
| 744 |
"downloading. If set to \"optional\" the use of a username and password " |
| 745 |
"becomes optional" |
| 746 |
msgstr "如果为 True,GUI 将要求用户提供下载时使用的用户名和密码。 如果设置为“可选”,则用户名和密码的使用将变为可选" |
| 747 |
|
| 748 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 749 |
#: calibre.web.feeds.news.BasicNewsRecipe.no_stylesheets:1 |
| 750 |
msgid "" |
| 751 |
"Convenient flag to disable loading of stylesheets for websites that have " |
| 752 |
"overly complex stylesheets unsuitable for conversion to e-book formats. If " |
| 753 |
"True stylesheets are not downloaded and processed" |
| 754 |
msgstr "方便的标志,用于禁用样式表加载的网站,这些网站的样式表过于复杂,不适合转换为电子书格式。 如果未下载和处理 True 样式表" |
| 755 |
|
| 756 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 757 |
#: calibre.web.feeds.news.BasicNewsRecipe.oldest_article:1 |
| 758 |
msgid "Oldest article to download from this news source. In days." |
| 759 |
msgstr "从此新闻源下载最旧的文章。 几天之内。" |
| 760 |
|
| 761 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 762 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_regexps:1 |
| 763 |
msgid "" |
| 764 |
"List of :term:`regexp` substitution rules to run on the downloaded " |
| 765 |
":term:`HTML`. Each element of the list should be a two element tuple. The " |
| 766 |
"first element of the tuple should be a compiled regular expression and the " |
| 767 |
"second a callable that takes a single match object and returns a string to " |
| 768 |
"replace the match. For example::" |
| 769 |
msgstr "要在下载的“HTML”上运行的“regexp”替换规则列表。 列表的每个元素应该是一个二元素元组。 元组的第一个元素应该是已编译的正则表达式,第二个元素应该是可调用的,它接受单个匹配对象并返回一个字符串来替换匹配项。 例如:" |
| 770 |
|
| 771 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 772 |
#: calibre.web.feeds.news.BasicNewsRecipe.preprocess_regexps:12 |
| 773 |
msgid "will remove everything from `<!--Article ends here-->` to `</body>`." |
| 774 |
msgstr "将删除从 `<!--Articleendshere-->` 到 `</body>` 的所有内容。" |
| 775 |
|
| 776 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 777 |
#: calibre.web.feeds.news.BasicNewsRecipe.publication_type:1 |
| 778 |
msgid "" |
| 779 |
"Publication type Set to newspaper, magazine or blog. If set to None, no " |
| 780 |
"publication type metadata will be written to the opf file." |
| 781 |
msgstr "出版物类型 设置为报纸、杂志或博客。 如果设置为 None,则不会将任何发布类型元数据写入 opf 文件。" |
| 782 |
|
| 783 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 784 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_disabled:1 |
| 785 |
msgid "" |
| 786 |
"Set to a non empty string to disable this recipe. The string will be used as" |
| 787 |
" the disabled message" |
| 788 |
msgstr "设置为非空字符串以禁用此新闻源。 该字符串将用作禁用消息" |
| 789 |
|
| 790 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 791 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_specific_options:1 |
| 792 |
msgid "" |
| 793 |
"Specify options specific to this recipe. These will be available for the " |
| 794 |
"user to customize in the Advanced tab of the Fetch News dialog or at the " |
| 795 |
"ebook-convert command line. The options are specified as a dictionary " |
| 796 |
"mapping option name to metadata about the option. For example::" |
| 797 |
msgstr "指定此新闻源特定的选项。这些可供用户在“获取新闻”对话框的“高级”选项卡或电子书转换命令行中自定义。这些选项被指定为将选项名称映射到有关该选项的元数据的字典。例如:" |
| 798 |
|
| 799 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 800 |
#: calibre.web.feeds.news.BasicNewsRecipe.recipe_specific_options:13 |
| 801 |
msgid "" |
| 802 |
"When the recipe is run, self.recipe_specific_options will be a dict mapping " |
| 803 |
"option name to the option value specified by the user. When the option is " |
| 804 |
"unspecified by the user, it will have the value specified by 'default'. If " |
| 805 |
"no default is specified, the option will not be in the dict at all, when " |
| 806 |
"unspecified by the user." |
| 807 |
msgstr "运行配方时,self.recipe_specific_ensions将是将选项名称映射到用户指定的选项值的dict。当用户未指定该选项时,它将具有由“默认”指定的值。如果未指定默认值,则当用户未指定时,该选项根本不会出现在dict中。" |
| 808 |
|
| 809 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 810 |
#: calibre.web.feeds.news.BasicNewsRecipe.recursions:1 |
| 811 |
msgid "Number of levels of links to follow on article webpages" |
| 812 |
msgstr "文章网页上可跟踪的链接级别数" |
| 813 |
|
| 814 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 815 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_attributes:1 |
| 816 |
msgid "List of attributes to remove from all tags. For example::" |
| 817 |
msgstr "要从所有标签中删除的属性列表。 例如:" |
| 818 |
|
| 819 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 820 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_empty_feeds:1 |
| 821 |
msgid "" |
| 822 |
"If True empty feeds are removed from the output. This option has no effect " |
| 823 |
"if parse_index is overridden in the sub class. It is meant only for recipes " |
| 824 |
"that return a list of feeds using `feeds` or :meth:`get_feeds`. It is also " |
| 825 |
"used if you use the ignore_duplicate_articles option." |
| 826 |
msgstr "如果为 True,则从输出中删除空提要。 如果在子类中重写了 parse_index,则此选项无效。 它仅适用于使用“feeds”或“get_feeds”返回提要列表的配方。 如果您使用ignore_duplicate_articles选项,它也会被使用。" |
| 827 |
|
| 828 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 829 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_javascript:1 |
| 830 |
msgid "Convenient flag to strip all JavaScript tags from the downloaded HTML" |
| 831 |
msgstr "方便的标记,用于从下载的 HTML 中去除所有 JavaScript 标签" |
| 832 |
|
| 833 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 834 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:1 |
| 835 |
msgid "" |
| 836 |
"List of tags to be removed. Specified tags are removed from downloaded HTML." |
| 837 |
" A tag is specified as a dictionary of the form::" |
| 838 |
msgstr "要删除的标签列表。 指定的标签将从下载的 HTML 中删除。 标签被指定为以下形式的字典:" |
| 839 |
|
| 840 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 841 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:9 |
| 842 |
msgid "" |
| 843 |
"All keys are optional. For a full explanation of the search criteria, see " |
| 844 |
"`Beautiful Soup " |
| 845 |
"<https://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching-the-" |
| 846 |
"tree>`__ A common example::" |
| 847 |
msgstr "所有键都是可选的。 有关搜索条件的完整说明,请参阅 `Beautiful Soup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching-the-tree>`__ 一个常见示例:" |
| 848 |
|
| 849 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 850 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags:15 |
| 851 |
msgid "" |
| 852 |
"This will remove all `<div class=\"advert\">` tags and all their children " |
| 853 |
"from the downloaded :term:`HTML`." |
| 854 |
msgstr "这将从下载的“HTML”中删除所有“<div class=\"advert\">”标签及其所有子标签。" |
| 855 |
|
| 856 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 857 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after:1 |
| 858 |
msgid "" |
| 859 |
"Remove all tags that occur after the specified tag. For the format for " |
| 860 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. For example::" |
| 861 |
msgstr "删除指定标签之后出现的所有标签。 有关指定标签的格式,请参阅“BasicNewsRecipe.remove_tags”。 例如:" |
| 862 |
|
| 863 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 864 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after:7 |
| 865 |
msgid "will remove all tags after the first element with `id=\"content\"`." |
| 866 |
msgstr "将删除第一个带有 `id=\"content\"` 元素之后的所有标签。" |
| 867 |
|
| 868 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 869 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before:1 |
| 870 |
msgid "" |
| 871 |
"Remove all tags that occur before the specified tag. For the format for " |
| 872 |
"specifying a tag see :attr:`BasicNewsRecipe.remove_tags`. For example::" |
| 873 |
msgstr "删除指定标签之前出现的所有标签。 有关指定标签的格式,请参阅“BasicNewsRecipe.remove_tags”。 例如:" |
| 874 |
|
| 875 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 876 |
#: calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before:7 |
| 877 |
msgid "will remove all tags before the first element with `id=\"content\"`." |
| 878 |
msgstr "将删除第一个带有 `id=\"content\"` 元素之前的所有标签。" |
| 879 |
|
| 880 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 881 |
#: calibre.web.feeds.news.BasicNewsRecipe.requires_version:1 |
| 882 |
msgid "Minimum calibre version needed to use this recipe" |
| 883 |
msgstr "使用此新闻源所需的calibre的最低版本" |
| 884 |
|
| 885 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 886 |
#: calibre.web.feeds.news.BasicNewsRecipe.resolve_internal_links:1 |
| 887 |
msgid "" |
| 888 |
"If set to True then links in downloaded articles that point to other " |
| 889 |
"downloaded articles are changed to point to the downloaded copy of the " |
| 890 |
"article rather than its original web URL. If you set this to True, you might" |
| 891 |
" also need to implement :meth:`canonicalize_internal_url` to work with the " |
| 892 |
"URL scheme of your particular website." |
| 893 |
msgstr "如果设置为 True,则下载文章中指向其他下载文章的链接将更改为指向该文章的下载副本,而不是其原始 Web URL。 如果将此设置为 True,您可能还需要实现“canonicalize_internal_url”以使用特定网站的 URL 方案。" |
| 894 |
|
| 895 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 896 |
#: calibre.web.feeds.news.BasicNewsRecipe.reverse_article_order:1 |
| 897 |
msgid "Reverse the order of articles in each feed" |
| 898 |
msgstr "颠倒每个提要中文章的顺序" |
| 899 |
|
| 900 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 901 |
#: calibre.web.feeds.news.BasicNewsRecipe.scale_news_images:1 |
| 902 |
msgid "" |
| 903 |
"Maximum dimensions (w,h) to scale images to. If scale_news_images_to_device " |
| 904 |
"is True this is set to the device screen dimensions set by the output " |
| 905 |
"profile unless there is no profile set, in which case it is left at whatever" |
| 906 |
" value it has been assigned (default None)." |
| 907 |
msgstr "图像缩放到的最大尺寸(宽,高)。 如果scale_news_images_to_device为True,则设置为由输出配置文件设置的设备屏幕尺寸,除非没有配置文件集,在这种情况下,它将保留为已分配的任何值(默认为“无”)。" |
| 908 |
|
| 909 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 910 |
#: calibre.web.feeds.news.BasicNewsRecipe.scale_news_images_to_device:1 |
| 911 |
msgid "" |
| 912 |
"Rescale images to fit in the device screen dimensions set by the output " |
| 913 |
"profile. Ignored if no output profile is set." |
| 914 |
msgstr "重新缩放图像以适合输出配置文件设置的设备屏幕尺寸。 如果未设置输出配置文件,则忽略。" |
| 915 |
|
| 916 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 917 |
#: calibre.web.feeds.news.BasicNewsRecipe.simultaneous_downloads:1 |
| 918 |
msgid "" |
| 919 |
"Number of simultaneous downloads. Set to 1 if the server is picky. " |
| 920 |
"Automatically reduced to 1 if :attr:`BasicNewsRecipe.delay` > 0" |
| 921 |
msgstr "同时下载的数量。 如果服务器挑剔,则设置为 1。 如果 `BasicNewsRecipe.delay` > 0,则自动减少到 1" |
| 922 |
|
| 923 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 924 |
#: calibre.web.feeds.news.BasicNewsRecipe.summary_length:1 |
| 925 |
msgid "Max number of characters in the short description" |
| 926 |
msgstr "简短描述中的最大字符数" |
| 927 |
|
| 928 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 929 |
#: calibre.web.feeds.news.BasicNewsRecipe.template_css:1 |
| 930 |
msgid "" |
| 931 |
"The CSS that is used to style the templates, i.e., the navigation bars and " |
| 932 |
"the Tables of Contents. Rather than overriding this variable, you should use" |
| 933 |
" `extra_css` in your recipe to customize look and feel." |
| 934 |
msgstr "用于设置模板样式的 CSS,即导航栏和目录。 您应该在新闻源中使用“extra_css”来自定义外观,而不是覆盖此变量。" |
| 935 |
|
| 936 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 937 |
#: calibre.web.feeds.news.BasicNewsRecipe.timefmt:1 |
| 938 |
msgid "" |
| 939 |
"The format string for the date shown on the first page. By default: " |
| 940 |
"Day_Name, Day_Number Month_Name Year" |
| 941 |
msgstr "第一页上显示的日期的格式字符串。 默认情况下:Day_Name、Day_Number Month_Name Year" |
| 942 |
|
| 943 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 944 |
#: calibre.web.feeds.news.BasicNewsRecipe.timeout:1 |
| 945 |
msgid "Timeout for fetching files from server in seconds" |
| 946 |
msgstr "从服务器获取文件的超时时间,以秒为单位" |
| 947 |
|
| 948 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 949 |
#: calibre.web.feeds.news.BasicNewsRecipe.title:1 |
| 950 |
msgid "The title to use for the e-book" |
| 951 |
msgstr "用于电子书的标题" |
| 952 |
|
| 953 |
#: ../../../__w/calibre/calibre/manual/docstring of |
| 954 |
#: calibre.web.feeds.news.BasicNewsRecipe.use_embedded_content:1 |
| 955 |
msgid "" |
| 956 |
"Normally we try to guess if a feed has full articles embedded in it based on" |
| 957 |
" the length of the embedded content. If `None`, then the default guessing is" |
| 958 |
" used. If `True` then the we always assume the feeds has embedded content " |
| 959 |
"and if `False` we always assume the feed does not have embedded content." |
| 960 |
msgstr "通常,我们会尝试根据嵌入内容的长度来猜测提要是否嵌入了完整的文章。 如果“无”,则使用默认猜测。 如果为“True”,则我们始终假设提要具有嵌入内容,如果为“False”,我们始终假设提要没有嵌入内容。" |