| 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 |
# nhyj <[email protected]>, 2015 |
| 7 |
# RERBIN MA, 2024-2026 |
| 8 |
# tony shen <[email protected]>, 2020,2024 |
| 9 |
# 贵宏 张, 2023 |
| 10 |
msgid "" |
| 11 |
msgstr "" |
| 12 |
"Project-Id-Version: calibre\n" |
| 13 |
"Report-Msgid-Bugs-To: \n" |
| 14 |
"POT-Creation-Date: 2026-05-24 03:34+0000\n" |
| 15 |
"PO-Revision-Date: 2014-07-05 16:49+0000\n" |
| 16 |
"Last-Translator: RERBIN MA, 2024-2026\n" |
| 17 |
"Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n" |
| 18 |
"MIME-Version: 1.0\n" |
| 19 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 20 |
"Content-Transfer-Encoding: 8bit\n" |
| 21 |
"Language: zh_CN\n" |
| 22 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 23 |
|
| 24 |
#: ../../../__w/calibre/calibre/manual/db_api.rst:4 |
| 25 |
msgid "API documentation for the database interface" |
| 26 |
msgstr "API文档之数据库接口" |
| 27 |
|
| 28 |
#: ../../../__w/calibre/calibre/manual/db_api.rst:9 |
| 29 |
msgid "" |
| 30 |
"This API is thread safe (it uses a multiple reader, single writer locking " |
| 31 |
"scheme). You can access this API like this::" |
| 32 |
msgstr "此API是线程安全的(它使用多个读取器、单个写入器锁定方案)。您可以通过如下方式访问该API接口:" |
| 33 |
|
| 34 |
#: ../../../__w/calibre/calibre/manual/db_api.rst:14 |
| 35 |
msgid "" |
| 36 |
"If you are in a calibre plugin that is part of the main calibre GUI, you get" |
| 37 |
" access to it like this instead::" |
| 38 |
msgstr "如果您使用的Calibre插件是主Calibre图形用户界面的一部分,则可以通过以下方式访问该插件:" |
| 39 |
|
| 40 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 41 |
#: calibre.db.cache.Cache:1 |
| 42 |
msgid "" |
| 43 |
"An in-memory cache of the metadata.db file from a calibre library. This " |
| 44 |
"class also serves as a threadsafe API for accessing the database. The in-" |
| 45 |
"memory cache is maintained in normal form for maximum performance." |
| 46 |
msgstr "来自 calibre 库的metadata.db 文件的内存缓存。 该类还充当用于访问数据库的线程安全 API。 内存中的缓存以正常形式维护,以获得最佳性能。" |
| 47 |
|
| 48 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 49 |
#: calibre.db.cache.Cache:5 |
| 50 |
msgid "" |
| 51 |
"SQLITE is simply used as a way to read and write from metadata.db robustly. " |
| 52 |
"All table reading/sorting/searching/caching logic is re-implemented. This " |
| 53 |
"was necessary for maximum performance and flexibility." |
| 54 |
msgstr "SQLITE 只是用作从metadata.db 稳健地读取和写入的一种方式。 所有表读取/排序/搜索/缓存逻辑都被重新实现。 这是获得最大性能和灵活性所必需的。" |
| 55 |
|
| 56 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 57 |
#: calibre.db.cache.Cache.EventType.book_created:1 |
| 58 |
msgid "" |
| 59 |
"When a new book record is created in the database, with the book id as the " |
| 60 |
"only argument" |
| 61 |
msgstr "当数据库中创建新的图书记录时,图书 id 作为唯一参数" |
| 62 |
|
| 63 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 64 |
#: calibre.db.cache.Cache.EventType.book_edited:1 |
| 65 |
msgid "When a book format is edited, with arguments: (book_id, fmt)" |
| 66 |
msgstr "编辑书籍格式时, 使用参数: (book_id, fmt)" |
| 67 |
|
| 68 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 69 |
#: calibre.db.cache.Cache.EventType.books_removed:1 |
| 70 |
msgid "" |
| 71 |
"When books are removed from the database with the list of book ids as the " |
| 72 |
"only argument" |
| 73 |
msgstr "当书籍从数据库中删除时,书籍 ID 列表作为唯一参数" |
| 74 |
|
| 75 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 76 |
#: calibre.db.cache.Cache.EventType.format_added:1 |
| 77 |
msgid "When a format is added to a book, with arguments: (book_id, format)" |
| 78 |
msgstr "当为书籍添加一种格式时, 使用参数: (book_id, fmt)" |
| 79 |
|
| 80 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 81 |
#: calibre.db.cache.Cache.EventType.formats_removed:1 |
| 82 |
msgid "" |
| 83 |
"When formats are removed from a book, with arguments: (mapping of book id to" |
| 84 |
" set of formats removed from the book)" |
| 85 |
msgstr "当从书中删除格式时,带有参数:(将图书 ID 映射到从书中删除的格式集)" |
| 86 |
|
| 87 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 88 |
#: calibre.db.cache.Cache.EventType.indexing_progress_changed:1 |
| 89 |
msgid "When the indexing progress changes" |
| 90 |
msgstr "当索引进度发生变化时" |
| 91 |
|
| 92 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 93 |
#: calibre.db.cache.Cache.EventType.items_removed:1 |
| 94 |
msgid "" |
| 95 |
"When items such as tags or authors are removed from some books. Arguments: " |
| 96 |
"(field_name, affected book ids, ids of removed items)" |
| 97 |
msgstr "当标签或作者等项目从某些书籍中删除时。 参数:(字段名称、受影响的图书 ID、已删除项目的 ID)" |
| 98 |
|
| 99 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 100 |
#: calibre.db.cache.Cache.EventType.items_renamed:1 |
| 101 |
msgid "" |
| 102 |
"When items such as tags or authors are renamed in some or all books. " |
| 103 |
"Arguments: (field_name, affected book ids, map of old item id to new item " |
| 104 |
"id)" |
| 105 |
msgstr "当某些或所有书籍中的标签或作者等项目被重命名时。 参数:(字段名称、受影响的图书 ID、旧项目 ID 到新项目 ID 的映射)" |
| 106 |
|
| 107 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 108 |
#: calibre.db.cache.Cache.EventType.links_changed:1 |
| 109 |
msgid "" |
| 110 |
"When the links associated with items(s) are changed, with arguments: " |
| 111 |
"(field_name, item_ids)" |
| 112 |
msgstr "当与项目关联的链接发生更改时,使用的参数为:(field_name,item_ids)" |
| 113 |
|
| 114 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 115 |
#: calibre.db.cache.Cache.EventType.metadata_changed:1 |
| 116 |
msgid "" |
| 117 |
"When some metadata is changed for some books, with arguments: (name of " |
| 118 |
"changed field, set of affected book ids)" |
| 119 |
msgstr "当某些书籍的某些元数据发生更改时,带有参数:(更改字段的名称,受影响的书籍 ID 集)" |
| 120 |
|
| 121 |
#: ../../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of |
| 122 |
#: calibre.db.cache.Cache.EventType.notes_changed:1 |
| 123 |
msgid "" |
| 124 |
"When the notes associated with item(s) are changed, with arguments: " |
| 125 |
"(field_name, item_ids)" |
| 126 |
msgstr "当与项目相关的注释发生更改时,使用的参数为:(field_name,item_ids)" |
| 127 |
|
| 128 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 129 |
#: calibre.db.cache.Cache.add_books:1 |
| 130 |
msgid "" |
| 131 |
"Add the specified books to the library. Books should be an iterable of " |
| 132 |
"2-tuples, each 2-tuple of the form :code:`(mi, format_map)` where mi is a " |
| 133 |
"Metadata object and format_map is a dictionary of the form :code:`{fmt: " |
| 134 |
"path_or_stream}`, for example: :code:`{'EPUB': '/path/to/file.epub'}`." |
| 135 |
msgstr "将指定的书籍添加到图书馆。 Books 应该是一个可迭代的 2 元组,每个 2 元组的形式为“(mi, format_map)”,其中 mi 是元数据对象,format_map 是“{fmt: path_or_stream}”形式的字典,例如: {'EPUB': '/path/to/file.epub'}`。" |
| 136 |
|
| 137 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 138 |
#: calibre.db.cache.Cache.add_books:6 |
| 139 |
msgid "" |
| 140 |
"Returns a pair of lists: :code:`ids, duplicates`. ``ids`` contains the book " |
| 141 |
"ids for all newly created books in the database. ``duplicates`` contains the" |
| 142 |
" :code:`(mi, format_map)` for all books that already exist in the database " |
| 143 |
"as per the simple duplicate detection heuristic used by :meth:`has_book`." |
| 144 |
msgstr "返回一对列表:“ids,duplicates”。 ``ids`` 包含数据库中所有新创建的图书的图书 ID。 根据“has_book”使用的简单重复检测启发式,“duplicates”包含数据库中已存在的所有书籍的“(mi, format_map)”。" |
| 145 |
|
| 146 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 147 |
#: calibre.db.cache.Cache.add_custom_book_data:1 |
| 148 |
msgid "" |
| 149 |
"Add data for name where val_map is a map of book_ids to values. If " |
| 150 |
"delete_first is True, all previously stored data for name will be removed." |
| 151 |
msgstr "添加 name 数据,其中 val_map 是 book_ids 到值的映射。 如果delete_first为True,则所有先前存储的name数据将被删除。" |
| 152 |
|
| 153 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 154 |
#: calibre.db.cache.Cache.add_extra_files:1 |
| 155 |
msgid "Add extra data files" |
| 156 |
msgstr "添加额外的数据文件" |
| 157 |
|
| 158 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 159 |
#: calibre.db.cache.Cache.add_format:1 |
| 160 |
msgid "" |
| 161 |
"Add a format to the specified book. Return True if the format was added " |
| 162 |
"successfully." |
| 163 |
msgstr "为指定的书籍添加格式。 如果格式添加成功,则返回 True。" |
| 164 |
|
| 165 |
#: ../../../__w/calibre/calibre/manual/db_api.rst:0 |
| 166 |
msgid "Parameters" |
| 167 |
msgstr "参数" |
| 168 |
|
| 169 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 170 |
#: calibre.db.cache.Cache.add_format:3 |
| 171 |
msgid "" |
| 172 |
"If True replace existing format, otherwise if the format already exists, " |
| 173 |
"return False." |
| 174 |
msgstr "如果为 True 则替换现有格式,否则如果该格式已存在,则返回 False。" |
| 175 |
|
| 176 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 177 |
#: calibre.db.cache.Cache.add_format:4 |
| 178 |
msgid "" |
| 179 |
"If True, file type plugins are run on the format before and after being " |
| 180 |
"added." |
| 181 |
msgstr "如果为 True,则文件类型插件将在添加之前和之后的格式上运行。" |
| 182 |
|
| 183 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 184 |
#: calibre.db.cache.Cache.add_format:5 |
| 185 |
msgid "Internal use only." |
| 186 |
msgstr "仅内部使用。" |
| 187 |
|
| 188 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 189 |
#: calibre.db.cache.Cache.add_listener:1 |
| 190 |
msgid "" |
| 191 |
"Register a callback function that will be called after certain actions are " |
| 192 |
"taken on this database. The function must take three arguments: " |
| 193 |
"(:class:`EventType`, library_id, event_type_specific_data)" |
| 194 |
msgstr "注册一个回调函数,该函数将在对此数据库执行某些操作后调用。 该函数必须采用三个参数:(`EventType`、library_id、event_type_specific_data)" |
| 195 |
|
| 196 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 197 |
#: calibre.db.cache.Cache.add_notes_resource:1 |
| 198 |
msgid "" |
| 199 |
"Add the specified resource so it can be referenced by notes and return its " |
| 200 |
"content hash" |
| 201 |
msgstr "添加指定的资源,以便它可以被注释引用并返回其内容哈希" |
| 202 |
|
| 203 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 204 |
#: calibre.db.cache.Cache.all_annotation_styles:1 |
| 205 |
msgid "Return a tuple of all built-in annotation styles." |
| 206 |
msgstr "以元组 (Tuple) 形式返回所有内置标注样式" |
| 207 |
|
| 208 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 209 |
#: calibre.db.cache.Cache.all_annotation_types:1 |
| 210 |
msgid "Return a tuple of all annotation types in the database." |
| 211 |
msgstr "返回数据库中所有注释类型的数组。" |
| 212 |
|
| 213 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 214 |
#: calibre.db.cache.Cache.all_annotation_users:1 |
| 215 |
msgid "Return a tuple of all (user_type, user name) that have annotations." |
| 216 |
msgstr "返回所有具有注释的二元组 (user_type, user name)。" |
| 217 |
|
| 218 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 219 |
#: calibre.db.cache.Cache.all_annotations:1 |
| 220 |
msgid "" |
| 221 |
"Return a tuple of all annotations matching the specified criteria. " |
| 222 |
"`ignore_removed` controls whether removed (deleted) annotations are also " |
| 223 |
"returned. Removed annotations are just a skeleton used for merging of " |
| 224 |
"annotations." |
| 225 |
msgstr "返回与指定条件匹配的所有注释的多元组。' ignore_removed '控制是否也返回已删除(删除)的注释。删除的注释只是用于合并注释的骨架。" |
| 226 |
|
| 227 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 228 |
#: calibre.db.cache.Cache.all_annotations_for_book:1 |
| 229 |
msgid "" |
| 230 |
"Return a tuple containing all annotations for the specified book_id as a " |
| 231 |
"dict with keys: `format`, `user_type`, `user`, `annotation`. Here, " |
| 232 |
"annotation is the annotation data." |
| 233 |
msgstr "将包含指定book_id的所有注释的二元组作为带有键的dict返回:`format`, `user_type`, `user`, `annotation`。这里,注释是注释数据。" |
| 234 |
|
| 235 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 236 |
#: calibre.db.cache.Cache.all_book_ids:1 |
| 237 |
msgid "Frozen set of all known book ids." |
| 238 |
msgstr "所有已知图书 ID 的冻结集。" |
| 239 |
|
| 240 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 241 |
#: calibre.db.cache.Cache.all_field_for:1 |
| 242 |
msgid "Same as field_for, except that it operates on multiple books at once" |
| 243 |
msgstr "与 field_for 相同,只不过它同时对多本书进行操作" |
| 244 |
|
| 245 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 246 |
#: calibre.db.cache.Cache.all_field_ids:1 |
| 247 |
msgid "Frozen set of ids for all values in the field ``name``." |
| 248 |
msgstr "字段“name”中所有值的冻结 ID 集。" |
| 249 |
|
| 250 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 251 |
#: calibre.db.cache.Cache.all_field_names:1 |
| 252 |
msgid "" |
| 253 |
"Frozen set of all fields names (should only be used for many-one and many-" |
| 254 |
"many fields)" |
| 255 |
msgstr "所有字段名称的冻结集(仅应用于多一和多对多字段)" |
| 256 |
|
| 257 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 258 |
#: calibre.db.cache.Cache.annotation_count_for_book:1 |
| 259 |
msgid "" |
| 260 |
"Return the number of annotations for the specified book available in the " |
| 261 |
"database." |
| 262 |
msgstr "返回数据库中可用的指定书籍的注释数量。" |
| 263 |
|
| 264 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 265 |
#: calibre.db.cache.Cache.annotations_map_for_book:1 |
| 266 |
msgid "" |
| 267 |
"Return a map of annotation type -> annotation data for the specified " |
| 268 |
"book_id, format, user and user_type." |
| 269 |
msgstr "返回注释类型->指定book_id、格式、用户和用户_类型的注释数据的映射。" |
| 270 |
|
| 271 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 272 |
#: calibre.db.cache.Cache.author_data:1 |
| 273 |
msgid "Return author data as a dictionary with keys: name, sort, link" |
| 274 |
msgstr "将作者数据作为带有键的字典返回:名称、排序、链接" |
| 275 |
|
| 276 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 277 |
#: calibre.db.cache.Cache.author_data:3 |
| 278 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 279 |
#: calibre.db.cache.Cache.author_sorts:3 |
| 280 |
msgid "" |
| 281 |
"If no authors with the specified ids are found an empty dictionary is " |
| 282 |
"returned. If author_ids is None, data for all authors is returned." |
| 283 |
msgstr "如果没有找到具有指定 ID 的作者,则返回空字典。 如果author_ids为None,则返回所有作者的数据。" |
| 284 |
|
| 285 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 286 |
#: calibre.db.cache.Cache.author_sort_from_authors:1 |
| 287 |
msgid "" |
| 288 |
"Given a list of authors, return the author_sort string for the authors, " |
| 289 |
"preferring the author sort associated with the author over the computed " |
| 290 |
"string." |
| 291 |
msgstr "给定一个作者列表,返回作者的author_sort字符串,优先选择与作者关联的作者排序而不是计算出的字符串。" |
| 292 |
|
| 293 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 294 |
#: calibre.db.cache.Cache.author_sorts:1 |
| 295 |
msgid "Return author sorts for specified authors." |
| 296 |
msgstr "返回指定作者的作者排序名称。" |
| 297 |
|
| 298 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 299 |
#: calibre.db.cache.Cache.books_for_field:1 |
| 300 |
msgid "" |
| 301 |
"Return all the books associated with the item identified by ``item_id``, " |
| 302 |
"where the item belongs to the field ``name``." |
| 303 |
msgstr "返回与由“item_id”标识的项目关联的所有书籍,其中该项目属于字段“name”。" |
| 304 |
|
| 305 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 306 |
#: calibre.db.cache.Cache.books_for_field:4 |
| 307 |
msgid "" |
| 308 |
"Returned value is a set of book ids, or the empty set if the item or the " |
| 309 |
"field does not exist." |
| 310 |
msgstr "返回值是一组图书 ID,如果该项目或字段不存在,则返回空集。" |
| 311 |
|
| 312 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 313 |
#: calibre.db.cache.Cache.books_in_virtual_library:1 |
| 314 |
msgid "Return the set of books in the specified virtual library" |
| 315 |
msgstr "返回指定虚拟书库的图书" |
| 316 |
|
| 317 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 318 |
#: calibre.db.cache.Cache.compress_covers:1 |
| 319 |
msgid "" |
| 320 |
"Compress the cover images for the specified books. A compression quality of " |
| 321 |
"100 will perform lossless compression, otherwise lossy compression." |
| 322 |
msgstr "压缩指定书籍的封面图像。 压缩质量为 100 将执行无损压缩,否则将执行有损压缩。" |
| 323 |
|
| 324 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 325 |
#: calibre.db.cache.Cache.compress_covers:4 |
| 326 |
msgid "" |
| 327 |
"The progress callback will be called with the book_id and the old and new " |
| 328 |
"sizes for each book that has been processed. If an error occurs, the new " |
| 329 |
"size will be a string with the error details." |
| 330 |
msgstr "将使用 book_id 以及已处理的每本书的旧尺寸和新尺寸来调用进度回调。 如果发生错误,新的大小将是包含错误详细信息的字符串。" |
| 331 |
|
| 332 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 333 |
#: calibre.db.cache.Cache.copy_cover_to:1 |
| 334 |
msgid "" |
| 335 |
"Copy the cover to the file like object ``dest``. Returns False if no cover " |
| 336 |
"exists or dest is the same file as the current cover. dest can also be a " |
| 337 |
"path in which case the cover is copied to it if and only if the path is " |
| 338 |
"different from the current path (taking case sensitivity into account)." |
| 339 |
msgstr "将封面复制到文件中,如对象“dest”。 如果不存在封面或 dest 与当前封面是同一文件,则返回 False。 dest 也可以是路径,在这种情况下,当且仅当该路径与当前路径不同时(考虑区分大小写),封面才会被复制到该路径。" |
| 340 |
|
| 341 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 342 |
#: calibre.db.cache.Cache.copy_format_to:1 |
| 343 |
msgid "" |
| 344 |
"Copy the format ``fmt`` to the file like object ``dest``. If the specified " |
| 345 |
"format does not exist, raises :class:`NoSuchFormat` error. dest can also be " |
| 346 |
"a path (to a file), in which case the format is copied to it, iff the path " |
| 347 |
"is different from the current path (taking case sensitivity into account)." |
| 348 |
msgstr "将格式“fmt”复制到文件中,如对象“dest”。 如果指定的格式不存在,则会引发“NoSuchFormat”错误。 dest 也可以是路径(到文件),在这种情况下,格式将复制到其中,前提是该路径与当前路径不同(考虑区分大小写)。" |
| 349 |
|
| 350 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 351 |
#: calibre.db.cache.Cache.cover:1 |
| 352 |
msgid "" |
| 353 |
"Return the cover image or None. By default, returns the cover as a " |
| 354 |
"bytestring." |
| 355 |
msgstr "返回封面图像或无。 默认情况下,以字节字符串形式返回封面。" |
| 356 |
|
| 357 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 358 |
#: calibre.db.cache.Cache.cover:4 |
| 359 |
msgid "" |
| 360 |
"WARNING: Using as_path will copy the cover to a temp file and return the " |
| 361 |
"path to the temp file. You should delete the temp file when you are done " |
| 362 |
"with it." |
| 363 |
msgstr "警告:使用 as_path 会将封面复制到临时文件并返回临时文件的路径。 使用完临时文件后,您应该将其删除。" |
| 364 |
|
| 365 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 366 |
#: calibre.db.cache.Cache.cover:8 |
| 367 |
msgid "" |
| 368 |
"If True return the image as an open file object (a SpooledTemporaryFile)" |
| 369 |
msgstr "如果为 True,则将图像作为打开的文件对象(SpooledTemporaryFile)返回" |
| 370 |
|
| 371 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 372 |
#: calibre.db.cache.Cache.cover:9 |
| 373 |
msgid "If True return the image as a QImage object" |
| 374 |
msgstr "如果 True 将图像返回为 QImage 对象" |
| 375 |
|
| 376 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 377 |
#: calibre.db.cache.Cache.cover:10 |
| 378 |
msgid "If True return the image as a QPixmap object" |
| 379 |
msgstr "如果 True 返回图像作为 QPixmap 对象" |
| 380 |
|
| 381 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 382 |
#: calibre.db.cache.Cache.cover:11 |
| 383 |
msgid "If True return the image as a path pointing to a temporary file" |
| 384 |
msgstr "如果为 True,则将图像作为指向临时文件的路径返回" |
| 385 |
|
| 386 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 387 |
#: calibre.db.cache.Cache.data_for_find_identical_books:1 |
| 388 |
msgid "" |
| 389 |
"Return data that can be used to implement :meth:`find_identical_books` in a " |
| 390 |
"worker process without access to the db. See db.utils for an implementation." |
| 391 |
msgstr "返回可用于在工作进程中实现“find_identical_books”的数据,而无需访问数据库。 有关执行,请参阅 db.utils。" |
| 392 |
|
| 393 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 394 |
#: calibre.db.cache.Cache.data_for_has_book:1 |
| 395 |
msgid "" |
| 396 |
"Return data suitable for use in :meth:`has_book`. This can be used for an " |
| 397 |
"implementation of :meth:`has_book` in a worker process without access to the" |
| 398 |
" db." |
| 399 |
msgstr "返回适合在“has_book”中使用的数据。 这可用于在工作进程中实现“has_book”,而无需访问数据库。" |
| 400 |
|
| 401 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 402 |
#: calibre.db.cache.Cache.delete_annotations:1 |
| 403 |
msgid "Delete annotations with the specified ids." |
| 404 |
msgstr "删除具有指定id的注释。" |
| 405 |
|
| 406 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 407 |
#: calibre.db.cache.Cache.delete_custom_book_data:1 |
| 408 |
msgid "" |
| 409 |
"Delete data for name. By default deletes all data, if you only want to " |
| 410 |
"delete data for some book ids, pass in a list of book ids." |
| 411 |
msgstr "删除名称数据。 默认情况下删除所有数据,如果只想删除某些图书 ID 的数据,请传入图书 ID 列表。" |
| 412 |
|
| 413 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 414 |
#: calibre.db.cache.Cache.delete_trash_entry:1 |
| 415 |
msgid "" |
| 416 |
"Delete an entry from the trash. Here category is 'b' for books and 'f' for " |
| 417 |
"formats." |
| 418 |
msgstr "从垃圾箱中删除条目。 这里的类别是“b”代表书籍,“f”代表格式。" |
| 419 |
|
| 420 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 421 |
#: calibre.db.cache.Cache.embed_metadata:1 |
| 422 |
msgid "" |
| 423 |
"Update metadata in all formats of the specified book_ids to current metadata" |
| 424 |
" in the database." |
| 425 |
msgstr "将指定book_ids的所有格式的元数据更新为数据库中的当前元数据。" |
| 426 |
|
| 427 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 428 |
#: calibre.db.cache.Cache.expire_old_trash:1 |
| 429 |
msgid "Expire entries from the trash that are too old" |
| 430 |
msgstr "使垃圾箱中太旧的条目过期" |
| 431 |
|
| 432 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 433 |
#: calibre.db.cache.Cache.export_note:1 |
| 434 |
msgid "" |
| 435 |
"Export the note as a single HTML document with embedded images as data: URLs" |
| 436 |
msgstr "将注释导出为单个 HTML 文档,并嵌入图像作为数据:URL" |
| 437 |
|
| 438 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 439 |
#: calibre.db.cache.Cache.fast_field_for:1 |
| 440 |
msgid "" |
| 441 |
"Same as field_for, except that it avoids the extra lookup to get the field " |
| 442 |
"object" |
| 443 |
msgstr "与 field_for 相同,只不过它避免了获取字段对象的额外查找" |
| 444 |
|
| 445 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 446 |
#: calibre.db.cache.Cache.field_for:1 |
| 447 |
msgid "" |
| 448 |
"Return the value of the field ``name`` for the book identified by " |
| 449 |
"``book_id``. If no such book exists or it has no defined value for the field" |
| 450 |
" ``name`` or no such field exists, then ``default_value`` is returned." |
| 451 |
msgstr "返回由“book_id”标识的书籍的字段“name”的值。 如果不存在这样的书,或者没有为字段“name”定义值,或者不存在这样的字段,则返回“default_value”。" |
| 452 |
|
| 453 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 454 |
#: calibre.db.cache.Cache.field_for:6 |
| 455 |
msgid "" |
| 456 |
"``default_value`` is not used for title, title_sort, authors, author_sort " |
| 457 |
"and series_index. This is because these always have values in the db. " |
| 458 |
"``default_value`` is used for all custom columns." |
| 459 |
msgstr "“default_value” 不用于标题、title_sort、作者、author_sort 和 series_index。 这是因为这些在数据库中总是有值。 “default_value” 用于所有自定义列。" |
| 460 |
|
| 461 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 462 |
#: calibre.db.cache.Cache.field_for:10 |
| 463 |
msgid "" |
| 464 |
"The returned value for is_multiple fields are always tuples, even when no " |
| 465 |
"values are found (in other words, default_value is ignored). The exception " |
| 466 |
"is identifiers for which the returned value is always a dictionary. The " |
| 467 |
"returned tuples are always in link order, that is, the order in which they " |
| 468 |
"were created." |
| 469 |
msgstr "is_multiple 字段的返回值始终是元组,即使未找到任何值(换句话说,default_value 被忽略)。 例外情况是返回值始终是字典的标识符。 返回的元组始终按链接顺序排列,即它们的创建顺序。" |
| 470 |
|
| 471 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 472 |
#: calibre.db.cache.Cache.field_ids_for:1 |
| 473 |
msgid "" |
| 474 |
"Return the ids (as a tuple) for the values that the field ``name`` has on " |
| 475 |
"the book identified by ``book_id``. If there are no values, or no such book," |
| 476 |
" or no such field, an empty tuple is returned." |
| 477 |
msgstr "返回由“book_id”标识的书籍上“name”字段的值的 ids(作为元组)。 如果没有值,或者没有这样的书,或者没有这样的字段,则返回一个空元组。" |
| 478 |
|
| 479 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 480 |
#: calibre.db.cache.Cache.field_supports_notes:1 |
| 481 |
msgid "" |
| 482 |
"Return True iff the specified field supports notes. If field is None return " |
| 483 |
"frozenset of all fields that support notes." |
| 484 |
msgstr "当且仅当指定字段支持注释时返回 True。 如果字段为“无”,则返回支持注释的所有字段的冻结集。" |
| 485 |
|
| 486 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 487 |
#: calibre.db.cache.Cache.find_identical_books:1 |
| 488 |
msgid "" |
| 489 |
"Finds books that have a superset of the authors in mi and the same title " |
| 490 |
"(title is fuzzy matched). See also :meth:`data_for_find_identical_books`." |
| 491 |
msgstr "查找mi中具有作者超集且标题相同的图书(标题是模糊匹配的)。另请参阅`data_for_find_aligant_books`。" |
| 492 |
|
| 493 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 494 |
#: calibre.db.cache.Cache.format:1 |
| 495 |
msgid "" |
| 496 |
"Return the e-book format as a bytestring or `None` if the format doesn't " |
| 497 |
"exist, or we don't have permission to write to the e-book file." |
| 498 |
msgstr "以字节串形式返回电子书格式,如果格式不存在,或者我们没有写入电子书文件的权限,则返回“None”。" |
| 499 |
|
| 500 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 501 |
#: calibre.db.cache.Cache.format:4 |
| 502 |
msgid "" |
| 503 |
"If True the e-book format is returned as a file object. Note that the file " |
| 504 |
"object is a SpooledTemporaryFile, so if what you want to do is copy the " |
| 505 |
"format to another file, use :meth:`copy_format_to` instead for performance." |
| 506 |
msgstr "如果为 True,则电子书格式作为文件对象返回。 请注意,文件对象是 SpooledTemporaryFile,因此如果您想要将格式复制到另一个文件,请使用“copy_format_to”代替以提高性能。" |
| 507 |
|
| 508 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 509 |
#: calibre.db.cache.Cache.format:8 |
| 510 |
msgid "" |
| 511 |
"Copies the format file to a temp file and returns the path to the temp file" |
| 512 |
msgstr "将格式文件复制到临时文件并返回临时文件的路径" |
| 513 |
|
| 514 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 515 |
#: calibre.db.cache.Cache.format:10 |
| 516 |
msgid "" |
| 517 |
"If True and returning a path the filename is the same as that used in the " |
| 518 |
"library. Note that using this means that repeated calls yield the same temp " |
| 519 |
"file (which is re-created each time)" |
| 520 |
msgstr "如果为 True 并返回路径,则文件名与库中使用的文件名相同。 请注意,使用此方法意味着重复调用会产生相同的临时文件(每次都会重新创建)" |
| 521 |
|
| 522 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 523 |
#: calibre.db.cache.Cache.format_abspath:1 |
| 524 |
msgid "" |
| 525 |
"Return absolute path to the e-book file of format `format`. You should " |
| 526 |
"almost never use this, as it breaks the threadsafe promise of this API. " |
| 527 |
"Instead use, :meth:`copy_format_to`." |
| 528 |
msgstr "返回格式为“format”的电子书文件的绝对路径。 您几乎不应该使用它,因为它破坏了此 API 的线程安全承诺。 而是使用“copy_format_to”。" |
| 529 |
|
| 530 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 531 |
#: calibre.db.cache.Cache.format_abspath:5 |
| 532 |
msgid "" |
| 533 |
"Currently used only in calibredb list, the viewer, edit book, compare_format" |
| 534 |
" to original format, open with, bulk metadata edit and the catalogs (via " |
| 535 |
"get_data_as_dict())." |
| 536 |
msgstr "目前仅在 calibredb 列表、查看器、编辑书籍、将格式与原始格式进行比较、打开方式、批量元数据编辑和目录(通过 get_data_as_dict())中使用。" |
| 537 |
|
| 538 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 539 |
#: calibre.db.cache.Cache.format_abspath:9 |
| 540 |
msgid "" |
| 541 |
"Apart from the viewer, open with and edit book, I don't believe any of the " |
| 542 |
"others do any file write I/O with the results of this call." |
| 543 |
msgstr "除了查看器、打开方式和编辑书籍之外,我不相信其他任何人会使用此调用的结果执行任何文件写入 I/O。" |
| 544 |
|
| 545 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 546 |
#: calibre.db.cache.Cache.format_hash:1 |
| 547 |
msgid "" |
| 548 |
"Return the hash of the specified format for the specified book. The kind of " |
| 549 |
"hash is backend dependent, but is usually SHA-256." |
| 550 |
msgstr "返回指定书籍的指定格式的哈希值。 哈希类型取决于后端,但通常是 SHA-256。" |
| 551 |
|
| 552 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 553 |
#: calibre.db.cache.Cache.format_metadata:1 |
| 554 |
msgid "" |
| 555 |
"Return the path, size and mtime for the specified format for the specified " |
| 556 |
"book. You should not use path unless you absolutely have to, since accessing" |
| 557 |
" it directly breaks the threadsafe guarantees of this API. Instead use the " |
| 558 |
":meth:`copy_format_to` method." |
| 559 |
msgstr "返回指定书籍的指定格式的路径、大小和运行时间。 除非绝对必要,否则不应使用路径,因为直接访问它会破坏此 API 的线程安全保证。 而是使用“copy_format_to”方法。" |
| 560 |
|
| 561 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 562 |
#: calibre.db.cache.Cache.format_metadata:6 |
| 563 |
msgid "" |
| 564 |
"If ``True`` cached values are used, otherwise a slow filesystem access is " |
| 565 |
"done. The cache values could be out of date if access was performed to the " |
| 566 |
"filesystem outside of this API." |
| 567 |
msgstr "如果使用“True”缓存值,否则文件系统访问速度会很慢。 如果在此 API 之外对文件系统执行访问,则缓存值可能会过期。" |
| 568 |
|
| 569 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 570 |
#: calibre.db.cache.Cache.format_metadata:10 |
| 571 |
msgid "" |
| 572 |
"If ``True`` The max_size field of the database is updated for this book." |
| 573 |
msgstr "如果为“True”,则数据库的 max_size 字段将针对本书进行更新。" |
| 574 |
|
| 575 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 576 |
#: calibre.db.cache.Cache.formats:1 |
| 577 |
msgid "" |
| 578 |
"Return tuple of all formats for the specified book. If verify_formats is " |
| 579 |
"True, verifies that the files exist on disk." |
| 580 |
msgstr "返回指定书籍的所有格式的元组。 如果 verify_formats 为 True,则验证文件是否存在于磁盘上。" |
| 581 |
|
| 582 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 583 |
#: calibre.db.cache.Cache.get_all_items_that_have_notes:1 |
| 584 |
msgid "" |
| 585 |
"Return all item_ids for items that have notes in the specified field or all " |
| 586 |
"fields if field_name is None" |
| 587 |
msgstr "如果 field_name 为 None,则返回在指定字段或所有字段中具有注释的项目的所有 item_id" |
| 588 |
|
| 589 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 590 |
#: calibre.db.cache.Cache.get_all_link_maps_for_book:1 |
| 591 |
msgid "" |
| 592 |
"Returns all links for all fields referenced by book identified by book_id. " |
| 593 |
"If book_id doesn't exist then the method returns {}." |
| 594 |
msgstr "返回由 book_id 标识的书籍引用的所有字段的所有链接。 如果 book_id 不存在,则该方法返回 {}。" |
| 595 |
|
| 596 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 597 |
#: calibre.db.cache.Cache.get_all_link_maps_for_book:4 |
| 598 |
msgid "" |
| 599 |
"Example: Assume author A has link X, author B has link Y, tag S has link F, " |
| 600 |
"and tag T has link G. If book 1 has author A and tag T, this method returns " |
| 601 |
"{'authors':{'A':'X'}, 'tags':{'T', 'G'}}. If book 2's author is neither A " |
| 602 |
"nor B and has no tags, this method returns {}." |
| 603 |
msgstr "示例:假设作者 A 有链接 X,作者 B 有链接 Y,标签 S 有链接 F,标签 T 有链接 G。如果图书 1 有作者 A 和标签 T,则此方法返回 {'authors':{'A' :'X'},'标签':{'T','G'}}。 如果图书 2 的作者既不是 A 也不是 B,并且没有标签,则此方法返回 {}。" |
| 604 |
|
| 605 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 606 |
#: calibre.db.cache.Cache.get_all_link_maps_for_book:9 |
| 607 |
msgid "the book id in question." |
| 608 |
msgstr "这本书id有问题。" |
| 609 |
|
| 610 |
#: ../../../__w/calibre/calibre/manual/db_api.rst:0 |
| 611 |
msgid "Returns" |
| 612 |
msgstr "返回" |
| 613 |
|
| 614 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 615 |
#: calibre.db.cache.Cache.get_all_link_maps_for_book:11 |
| 616 |
msgid "" |
| 617 |
"{field: {field_value, link_value}, ... for all fields with a field_value " |
| 618 |
"having a non-empty link value for that book" |
| 619 |
msgstr "{字段: {field_value, link_value}, ... 对于field_value具有该书的非空链接值的所有字段" |
| 620 |
|
| 621 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 622 |
#: calibre.db.cache.Cache.get_book_path:1 |
| 623 |
msgid "" |
| 624 |
"Return the relative book path for the given id. Prefer this because you can " |
| 625 |
"choose the directory separator, default use the OS one. If unsafe is True, " |
| 626 |
"allow to return None if the book_id is not in the library." |
| 627 |
msgstr "根据指定ID返回书籍的相对路径。建议优先使用此方法,因为可以自定义目录分隔符(默认使用操作系统默认分隔符)。若unsafe参数设为True,当书籍ID不在库中时允许返回None。" |
| 628 |
|
| 629 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 630 |
#: calibre.db.cache.Cache.get_categories:1 |
| 631 |
msgid "Used internally to implement the Tag Browser" |
| 632 |
msgstr "在内部使用以实现标签浏览器" |
| 633 |
|
| 634 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 635 |
#: calibre.db.cache.Cache.get_custom_book_data:1 |
| 636 |
msgid "" |
| 637 |
"Get data for name. By default returns data for all book_ids, pass in a list " |
| 638 |
"of book ids if you only want some data. Returns a map of book_id to values. " |
| 639 |
"If a particular value could not be decoded, uses default for it." |
| 640 |
msgstr "获取名称数据。默认情况下,会返回所有book_ids的数据,如果您只需要一些数据,请传入书籍 ID 列表。返回book_id到值的映射。如果无法解码特定值,则对其使用 default。" |
| 641 |
|
| 642 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 643 |
#: calibre.db.cache.Cache.get_id_map:1 |
| 644 |
msgid "" |
| 645 |
"Return a mapping of id numbers to values for the specified field. The field " |
| 646 |
"must be a many-one or many-many field, otherwise a ValueError is raised." |
| 647 |
msgstr "返回id号到指定字段值的映射。字段必须是多-一或多-多字段,否则会引发ValueError。" |
| 648 |
|
| 649 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 650 |
#: calibre.db.cache.Cache.get_ids_for_custom_book_data:1 |
| 651 |
msgid "Return the set of book ids for which name has data." |
| 652 |
msgstr "返回名称包含数据的书籍 ID 集。 " |
| 653 |
|
| 654 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 655 |
#: calibre.db.cache.Cache.get_item_id:1 |
| 656 |
msgid "" |
| 657 |
"Return the item id for item_name or None if not found. This function is very" |
| 658 |
" slow if doing lookups for multiple names use either get_item_ids() or " |
| 659 |
"get_item_name_map(). Similarly, case sensitive lookups are faster than case " |
| 660 |
"insensitive ones." |
| 661 |
msgstr "返回 item_name 对应的项目 ID,如果未找到则返回 None。如果使用 get_item_ids() 或 get_item_name_map() 查找多个名称,此函数会非常慢。同样,区分大小写的查找比不区分大小写的查找更快。" |
| 662 |
|
| 663 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 664 |
#: calibre.db.cache.Cache.get_item_ids:1 |
| 665 |
msgid "Return a dict mapping item_name to the item id or None" |
| 666 |
msgstr "返回一个将 item_name 映射到 item id 的字典,或者 None" |
| 667 |
|
| 668 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 669 |
#: calibre.db.cache.Cache.get_item_name:1 |
| 670 |
msgid "" |
| 671 |
"Return the item name for the item specified by item_id in the specified " |
| 672 |
"field. See also :meth:`get_id_map`." |
| 673 |
msgstr "返回指定字段中由 item_id 指定的项目的项目名称。 另请参阅“get_id_map”。" |
| 674 |
|
| 675 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 676 |
#: calibre.db.cache.Cache.get_item_name_map:1 |
| 677 |
msgid "Return mapping of item values to ids" |
| 678 |
msgstr "返回条目值到 id 的映射" |
| 679 |
|
| 680 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 681 |
#: calibre.db.cache.Cache.get_link_map:1 |
| 682 |
msgid "Return a dictionary of links for the supplied field." |
| 683 |
msgstr "返回所提供字段的链接字典。" |
| 684 |
|
| 685 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 686 |
#: calibre.db.cache.Cache.get_link_map:3 |
| 687 |
msgid "the lookup name of the field for which the link map is desired" |
| 688 |
msgstr "需要链接映射的字段的查找名称" |
| 689 |
|
| 690 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 691 |
#: calibre.db.cache.Cache.get_link_map:5 |
| 692 |
msgid "{field_value:link_value, ...} for non-empty links" |
| 693 |
msgstr "{field_value:link_value, ...} 用于非空链接" |
| 694 |
|
| 695 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 696 |
#: calibre.db.cache.Cache.get_metadata:1 |
| 697 |
msgid "" |
| 698 |
"Return metadata for the book identified by book_id as a " |
| 699 |
":class:`calibre.ebooks.metadata.book.base.Metadata` object. Note that the " |
| 700 |
"list of formats is not verified. If get_cover is True, the cover is " |
| 701 |
"returned, either a path to temp file as mi.cover or if cover_as_data is True" |
| 702 |
" then as mi.cover_data." |
| 703 |
msgstr "将 book_id 标识的书籍的元数据返回为 `calibre.ebooks.metadata.book.base.Metadata` 对象。 请注意,格式列表未经验证。 如果 get_cover 为 True,则返回封面,作为 mi.cover 的临时文件的路径,或者如果 cover_as_data 为 True,则返回 mi.cover_data。" |
| 704 |
|
| 705 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 706 |
#: calibre.db.cache.Cache.get_next_series_num_for:1 |
| 707 |
msgid "" |
| 708 |
"Return the next series index for the specified series, taking into account " |
| 709 |
"the various preferences that control next series number generation." |
| 710 |
msgstr "返回指定系列的下一个系列索引,同时考虑控制下一个系列号生成的各种首选项。" |
| 711 |
|
| 712 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 713 |
#: calibre.db.cache.Cache.get_next_series_num_for:4 |
| 714 |
msgid "The series-like field (defaults to the builtin series column)" |
| 715 |
msgstr "类似系列的字段(默认为内置系列列)" |
| 716 |
|
| 717 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 718 |
#: calibre.db.cache.Cache.get_next_series_num_for:5 |
| 719 |
msgid "" |
| 720 |
"If True, returns a mapping of book_id to current series_index value instead." |
| 721 |
msgstr "如果为 True,则返回 book_id 到当前 series_index 值的映射。" |
| 722 |
|
| 723 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 724 |
#: calibre.db.cache.Cache.get_notes_resource:1 |
| 725 |
msgid "" |
| 726 |
"Return a dict containing the resource data and name or None if no resource " |
| 727 |
"with the specified hash is found" |
| 728 |
msgstr "返回包含资源数据和名称的字典,如果未找到具有指定哈希的资源,则返回 None" |
| 729 |
|
| 730 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 731 |
#: calibre.db.cache.Cache.get_pages:1 |
| 732 |
msgid "Return page count information for the specified book" |
| 733 |
msgstr "返回指定书籍的页数统计信息" |
| 734 |
|
| 735 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 736 |
#: calibre.db.cache.Cache.get_proxy_metadata:1 |
| 737 |
msgid "" |
| 738 |
"Like :meth:`get_metadata` except that it returns a ProxyMetadata object that" |
| 739 |
" only reads values from the database on demand. This is much faster than " |
| 740 |
"get_metadata when only a small number of fields need to be accessed from the" |
| 741 |
" returned metadata object." |
| 742 |
msgstr "与“get_metadata”类似,不同之处在于它返回一个仅按需从数据库读取值的 ProxyMetadata 对象。 当只需要从返回的元数据对象访问少量字段时,这比 get_metadata 快得多。" |
| 743 |
|
| 744 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 745 |
#: calibre.db.cache.Cache.get_usage_count_by_id:1 |
| 746 |
msgid "" |
| 747 |
"Return a mapping of id to usage count for all values of the specified field," |
| 748 |
" which must be a many-one or many-many field." |
| 749 |
msgstr "返回指定字段的所有值的 id 到使用计数的映射,该字段必须是多一或多对字段。" |
| 750 |
|
| 751 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 752 |
#: calibre.db.cache.Cache.has_book:1 |
| 753 |
msgid "" |
| 754 |
"Return True iff the database contains an entry with the same title as the " |
| 755 |
"passed in Metadata object. The comparison is case-insensitive. See also " |
| 756 |
":meth:`data_for_has_book`." |
| 757 |
msgstr "当且仅当数据库包含与传入的 Metadata 对象具有相同标题的条目时返回 True。 比较不区分大小写。 另请参阅“有书的数据”。" |
| 758 |
|
| 759 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 760 |
#: calibre.db.cache.Cache.has_format:1 |
| 761 |
msgid "Return True iff the format exists on disk" |
| 762 |
msgstr "当且仅当磁盘上存在该格式时返回 True" |
| 763 |
|
| 764 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 765 |
#: calibre.db.cache.Cache.has_id:1 |
| 766 |
msgid "Return True iff the specified book_id exists in the db" |
| 767 |
msgstr "如果指定的book_id在数据库中存在就返回真" |
| 768 |
|
| 769 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 770 |
#: calibre.db.cache.Cache.import_note:1 |
| 771 |
msgid "" |
| 772 |
"Import a previously exported note or an arbitrary HTML file as the note for " |
| 773 |
"the specified item" |
| 774 |
msgstr "导入先前导出的注释或任意 HTML 文件作为指定项目的注释" |
| 775 |
|
| 776 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 777 |
#: calibre.db.cache.Cache.init:1 |
| 778 |
msgid "Initialize this cache with data from the backend." |
| 779 |
msgstr "使用来自后端的数据初始化此缓存。" |
| 780 |
|
| 781 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 782 |
#: calibre.db.cache.Cache.items_with_notes_in_book:1 |
| 783 |
msgid "" |
| 784 |
"Return a dict of field to items that have associated notes for that field " |
| 785 |
"for the specified book" |
| 786 |
msgstr "将字段字典返回到具有指定书籍的该字段的关联注释的项目" |
| 787 |
|
| 788 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 789 |
#: calibre.db.cache.Cache.link_for:1 |
| 790 |
msgid "" |
| 791 |
"Return the link, if any, for the specified item or None if no link is found" |
| 792 |
msgstr "返回指定项目的链接,如果有;如果未找到链接,则返回“无”" |
| 793 |
|
| 794 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 795 |
#: calibre.db.cache.Cache.list_extra_files:1 |
| 796 |
msgid "Get information about extra files in the book's directory." |
| 797 |
msgstr "获取有关书籍目录中额外文件的信息。" |
| 798 |
|
| 799 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 800 |
#: calibre.db.cache.Cache.list_extra_files:3 |
| 801 |
msgid "the database book id for the book" |
| 802 |
msgstr "书籍的数据库书籍 ID" |
| 803 |
|
| 804 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 805 |
#: calibre.db.cache.Cache.list_extra_files:4 |
| 806 |
msgid "" |
| 807 |
"the pattern of filenames to search for. Empty pattern matches all extra " |
| 808 |
"files. Patterns must use / as separator. Use the DATA_FILE_PATTERN constant " |
| 809 |
"to match files inside the data directory." |
| 810 |
msgstr "要搜索的文件名模式。 空模式匹配所有额外文件。 模式必须使用 / 作为分隔符。 使用 DATA_FILE_PATTERN 常量来匹配数据目录内的文件。" |
| 811 |
|
| 812 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 813 |
#: calibre.db.cache.Cache.list_extra_files:7 |
| 814 |
msgid "" |
| 815 |
"A tuple of all extra files matching the specified pattern. Each element of " |
| 816 |
"the tuple is ExtraFile(relpath, file_path, stat_result). Where relpath is " |
| 817 |
"the relative path of the file to the book directory using / as a separator. " |
| 818 |
"stat_result is the result of calling os.stat() on the file." |
| 819 |
msgstr "与指定模式匹配的所有额外文件的元组。 元组的每个元素都是 ExtraFile(relpath, file_path, stat_result)。 其中 relpath 是文件到图书目录的相对路径,使用 / 作为分隔符。 stat_result 是对文件调用 os.stat() 的结果。" |
| 820 |
|
| 821 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 822 |
#: calibre.db.cache.Cache.mark_for_pages_recount:1 |
| 823 |
msgid "Mark all books for recount of pages" |
| 824 |
msgstr "将所有书籍标记为重新计算页数" |
| 825 |
|
| 826 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 827 |
#: calibre.db.cache.Cache.merge_annotations_for_book:1 |
| 828 |
msgid "" |
| 829 |
"Merge the specified annotations into the existing annotations for book_id, " |
| 830 |
"fm, user_type, and user." |
| 831 |
msgstr "将指定的注释合并到book_id、fm、user_ype和user的现有注释中。" |
| 832 |
|
| 833 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 834 |
#: calibre.db.cache.Cache.merge_extra_files:1 |
| 835 |
msgid "" |
| 836 |
"Merge the extra files from src_ids into dest_id. Conflicting files are auto-" |
| 837 |
"renamed unless replace=True in which case they are replaced." |
| 838 |
msgstr "将 src_ids 中的额外文件合并到 dest_id 中。 冲突的文件会自动重命名,除非replace=True,在这种情况下它们会被替换。" |
| 839 |
|
| 840 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 841 |
#: calibre.db.cache.Cache.move_book_from_trash:1 |
| 842 |
msgid "Undelete a book from the trash directory" |
| 843 |
msgstr "从垃圾目录中取消删除书籍" |
| 844 |
|
| 845 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 846 |
#: calibre.db.cache.Cache.move_format_from_trash:1 |
| 847 |
msgid "Undelete a format from the trash directory" |
| 848 |
msgstr "从垃圾目录中取消删除格式" |
| 849 |
|
| 850 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 851 |
#: calibre.db.cache.Cache.multisort:1 |
| 852 |
msgid "" |
| 853 |
"Return a list of sorted book ids. If ids_to_sort is None, all book ids are " |
| 854 |
"returned." |
| 855 |
msgstr "返回已排序图书 ID 的列表。 如果 ids_to_sort 为 None,则返回所有图书 ID。" |
| 856 |
|
| 857 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 858 |
#: calibre.db.cache.Cache.multisort:4 |
| 859 |
msgid "" |
| 860 |
"fields must be a list of 2-tuples of the form (field_name, ascending=True or" |
| 861 |
" False). The most significant field is the first 2-tuple." |
| 862 |
msgstr "fields 必须是形式为 (field_name, ascending=True 或 False) 的二元组列表。 最重要的字段是第一个 2 元组。" |
| 863 |
|
| 864 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 865 |
#: calibre.db.cache.Cache.notes_data_for:1 |
| 866 |
msgid "Return all notes data as a dict or None if note does not exist" |
| 867 |
msgstr "将所有笔记数据作为字典返回,如果笔记不存在则返回 None" |
| 868 |
|
| 869 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 870 |
#: calibre.db.cache.Cache.notes_for:1 |
| 871 |
msgid "Return the notes document or an empty string if not found" |
| 872 |
msgstr "返回注释文档,如果找不到则返回空字符串" |
| 873 |
|
| 874 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 875 |
#: calibre.db.cache.Cache.notes_resources_used_by:1 |
| 876 |
msgid "" |
| 877 |
"Return the set of resource hashes of all resources used by the note for the " |
| 878 |
"specified item" |
| 879 |
msgstr "返回指定项目的注释所使用的所有资源的资源哈希集" |
| 880 |
|
| 881 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 882 |
#: calibre.db.cache.Cache.pages_needs_scan:1 |
| 883 |
msgid "" |
| 884 |
"Return the subset of books (or all books if empty) that are marked as " |
| 885 |
"needing a scan to update page count" |
| 886 |
msgstr "返回被标记为需要扫描以更新页数的书籍子集(如果为空则返回所有书籍)" |
| 887 |
|
| 888 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 889 |
#: calibre.db.cache.Cache.pref:1 |
| 890 |
msgid "" |
| 891 |
"Return the value for the specified preference or the value specified as " |
| 892 |
"``default`` if the preference is not set." |
| 893 |
msgstr "返回指定首选项的值,如果未设置首选项,则返回指定为“default”的值。" |
| 894 |
|
| 895 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 896 |
#: calibre.db.cache.Cache.queue_pages_scan:1 |
| 897 |
msgid "" |
| 898 |
"Start a scan updating page counts for all books that need a scan. If book_id" |
| 899 |
" is specified, then only that book is scanned and it is always scanned. When" |
| 900 |
" `force` is True, the existing pages value, if any, is discarded so that the" |
| 901 |
" book is forcibly rescanned even if the existing value was up-to-date." |
| 902 |
msgstr "开始对所有标记为“需要扫描”的书籍进行页数更新扫描。如果指定了 book_id,则仅对该书籍进行扫描(无论其状态如何)。当 force 为 True 时,将舍弃现有的页数值(如果有),即使现有值已是最新,也会强制重新扫描该书籍。" |
| 903 |
|
| 904 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 905 |
#: calibre.db.cache.Cache.read_backup:1 |
| 906 |
msgid "" |
| 907 |
"Return the OPF metadata backup for the book as a bytestring or None if no " |
| 908 |
"such backup exists." |
| 909 |
msgstr "以字节串形式返回书籍的 OPF 元数据备份,如果不存在此类备份,则返回 None。" |
| 910 |
|
| 911 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 912 |
#: calibre.db.cache.Cache.remove_books:1 |
| 913 |
msgid "" |
| 914 |
"Remove the books specified by the book_ids from the database and delete " |
| 915 |
"their format files. If ``permanent`` is False, then the format files are " |
| 916 |
"placed in the per-library trash directory." |
| 917 |
msgstr "从数据库中删除 book_ids 指定的书籍并删除其格式文件。 如果“permanent”为 False,则格式文件将放置在每个库的垃圾目录中。" |
| 918 |
|
| 919 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 920 |
#: calibre.db.cache.Cache.remove_extra_files:1 |
| 921 |
msgid "" |
| 922 |
"Delete the specified extra files, either to Recycle Bin or permanently." |
| 923 |
msgstr "删除指定的附加文件,删除至回收站或永久删除。" |
| 924 |
|
| 925 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 926 |
#: calibre.db.cache.Cache.remove_formats:1 |
| 927 |
msgid "Remove the specified formats from the specified books." |
| 928 |
msgstr "从指定书籍中删除指定格式。" |
| 929 |
|
| 930 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 931 |
#: calibre.db.cache.Cache.remove_formats:3 |
| 932 |
msgid "A mapping of book_id to a list of formats to be removed from the book." |
| 933 |
msgstr "book_id 到要从书中删除的格式列表的映射。" |
| 934 |
|
| 935 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 936 |
#: calibre.db.cache.Cache.remove_formats:4 |
| 937 |
msgid "" |
| 938 |
"If True, only remove the record for the format from the db, do not delete " |
| 939 |
"the actual format file from the filesystem." |
| 940 |
msgstr "如果为 True,则仅从数据库中删除该格式的记录,而不从文件系统中删除实际的格式文件。" |
| 941 |
|
| 942 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 943 |
#: calibre.db.cache.Cache.remove_formats:5 |
| 944 |
msgid "" |
| 945 |
"A map of book id to set of formats actually deleted from the filesystem for " |
| 946 |
"that book" |
| 947 |
msgstr "书籍 ID 到实际从该书的文件系统中删除的格式集的映射" |
| 948 |
|
| 949 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 950 |
#: calibre.db.cache.Cache.remove_items:1 |
| 951 |
msgid "" |
| 952 |
"Delete all items in the specified field with the specified ids. Returns the " |
| 953 |
"set of affected book ids. ``restrict_to_book_ids`` is an optional set of " |
| 954 |
"books ids. If specified the items will only be removed from those books." |
| 955 |
msgstr "删除指定字段中具有指定 ID 的所有项目。 返回受影响的图书 ID 集。 ``restrict_to_book_ids`` 是一组可选的书籍 ID。 如果指定,这些项目只会从这些书中删除。" |
| 956 |
|
| 957 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 958 |
#: calibre.db.cache.Cache.rename_extra_files:1 |
| 959 |
msgid "Rename extra data files" |
| 960 |
msgstr "重命名附加的数据文件" |
| 961 |
|
| 962 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 963 |
#: calibre.db.cache.Cache.rename_items:1 |
| 964 |
msgid "" |
| 965 |
"Rename items from a many-one or many-many field such as tags or series." |
| 966 |
msgstr "重命名多-一或多-多对字段中的项目,例如标签或系列。" |
| 967 |
|
| 968 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 969 |
#: calibre.db.cache.Cache.rename_items:3 |
| 970 |
msgid "" |
| 971 |
"When renaming in a series-like field also change the series_index values." |
| 972 |
msgstr "在类似系列的字段中重命名时,还要更改 series_index 值。" |
| 973 |
|
| 974 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 975 |
#: calibre.db.cache.Cache.rename_items:4 |
| 976 |
msgid "" |
| 977 |
"An optional set of book ids for which the rename is to be performed, " |
| 978 |
"defaults to all books." |
| 979 |
msgstr "要执行重命名的一组可选书籍 ID,默认为所有书籍。" |
| 980 |
|
| 981 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 982 |
#: calibre.db.cache.Cache.restore_book:1 |
| 983 |
msgid "" |
| 984 |
"Restore the book entry in the database for a book that already exists on the" |
| 985 |
" filesystem" |
| 986 |
msgstr "恢复数据库中已存在于文件系统上的书籍的书籍条目" |
| 987 |
|
| 988 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 989 |
#: calibre.db.cache.Cache.restore_original_format:1 |
| 990 |
msgid "" |
| 991 |
"Restore the specified format from the previously saved ORIGINAL_FORMAT, if " |
| 992 |
"any. Return True on success. The ORIGINAL_FORMAT is deleted after a " |
| 993 |
"successful restore." |
| 994 |
msgstr "从之前保存的 ORIGINAL_FORMAT 中恢复指定的格式,如果有。 成功则返回 True。 成功恢复后,ORIGINAL_FORMAT 将被删除。" |
| 995 |
|
| 996 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 997 |
#: calibre.db.cache.Cache.safe_read_lock:1 |
| 998 |
msgid "" |
| 999 |
"A safe read lock is a lock that does nothing if the thread already has a " |
| 1000 |
"write lock, otherwise it acquires a read lock. This is necessary to prevent " |
| 1001 |
"DowngradeLockErrors, which can happen when updating the search cache in the " |
| 1002 |
"presence of composite columns. Updating the search cache holds an exclusive " |
| 1003 |
"lock, but searching a composite column involves reading field values via " |
| 1004 |
"ProxyMetadata which tries to get a shared lock. There may be other scenarios" |
| 1005 |
" that trigger this as well." |
| 1006 |
msgstr "安全读锁是一种如果线程已经拥有写锁则不执行任何操作的锁,否则它会获取读锁。 这对于防止 DowngradeLockErrors 是必要的,在存在复合列的情况下更新搜索缓存时可能会发生 DowngradeLockErrors。 更新搜索缓存持有独占锁,但搜索复合列涉及通过尝试获取共享锁的 ProxyMetadata 读取字段值。 可能还有其他情况会触发此情况。" |
| 1007 |
|
| 1008 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1009 |
#: calibre.db.cache.Cache.safe_read_lock:9 |
| 1010 |
msgid "" |
| 1011 |
"This property returns a new lock object on every access. This lock object is" |
| 1012 |
" not recursive (for performance) and must only be used in a with statement " |
| 1013 |
"as ``with cache.safe_read_lock:`` otherwise bad things will happen." |
| 1014 |
msgstr "此属性在每次访问时返回一个新的锁定对象。 该锁对象不是递归的(为了性能),并且只能在 with 语句中使用“with cache.safe_read_lock:”,否则会发生不好的事情。" |
| 1015 |
|
| 1016 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1017 |
#: calibre.db.cache.Cache.save_original_format:1 |
| 1018 |
msgid "" |
| 1019 |
"Save a copy of the specified format as ORIGINAL_FORMAT, overwriting any " |
| 1020 |
"existing ORIGINAL_FORMAT." |
| 1021 |
msgstr "将指定格式的副本保存为 ORIGINAL_FORMAT,覆盖任何现有的 ORIGINAL_FORMAT。" |
| 1022 |
|
| 1023 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1024 |
#: calibre.db.cache.Cache.search:1 |
| 1025 |
msgid "" |
| 1026 |
"Search the database for the specified query, returning a set of matched book" |
| 1027 |
" ids." |
| 1028 |
msgstr "在数据库中搜索指定的查询,返回一组匹配的图书 ID。" |
| 1029 |
|
| 1030 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1031 |
#: calibre.db.cache.Cache.search:3 |
| 1032 |
msgid "" |
| 1033 |
"A restriction that is ANDed to the specified query. Note that restrictions " |
| 1034 |
"are cached, therefore the search for a AND b will be slower than a with " |
| 1035 |
"restriction b." |
| 1036 |
msgstr "与指定查询进行 AND 运算的限制。 请注意,限制已被缓存,因此搜索 a AND b 将比搜索带有限制 b 的 a 慢。" |
| 1037 |
|
| 1038 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1039 |
#: calibre.db.cache.Cache.search:6 |
| 1040 |
msgid "Used internally (virtual fields such as on_device to search over)." |
| 1041 |
msgstr "内部使用(虚拟字段,例如用于搜索的 on_device)。" |
| 1042 |
|
| 1043 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1044 |
#: calibre.db.cache.Cache.search:8 |
| 1045 |
msgid "" |
| 1046 |
"If not None, a set of book ids for which books will be searched instead of " |
| 1047 |
"searching all books." |
| 1048 |
msgstr "如果不是“无”,则将搜索一组图书 ID,而不是搜索所有图书。" |
| 1049 |
|
| 1050 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1051 |
#: calibre.db.cache.Cache.search_annotations:1 |
| 1052 |
msgid "" |
| 1053 |
"Return of a tuple of annotations matching the specified Full-text query." |
| 1054 |
msgstr "返回与指定全文查询匹配的注释二元组。" |
| 1055 |
|
| 1056 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1057 |
#: calibre.db.cache.Cache.search_notes:1 |
| 1058 |
msgid "" |
| 1059 |
"Search the text of notes using an FTS index. If the query is empty return " |
| 1060 |
"all notes." |
| 1061 |
msgstr "使用 FTS 索引搜索笔记文本。 如果查询为空,则返回所有注释。" |
| 1062 |
|
| 1063 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1064 |
#: calibre.db.cache.Cache.set_annotations_for_book:1 |
| 1065 |
msgid "" |
| 1066 |
"Set all annotations for the specified book_id, fmt, user_type and user." |
| 1067 |
msgstr "为指定的book_id、fdt、user_ype和user设置所有注释。" |
| 1068 |
|
| 1069 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1070 |
#: calibre.db.cache.Cache.set_conversion_options:1 |
| 1071 |
msgid "options must be a map of the form {book_id:conversion_options}" |
| 1072 |
msgstr "options 必须是 {book_id:conversion_options} 形式的映射" |
| 1073 |
|
| 1074 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1075 |
#: calibre.db.cache.Cache.set_cover:1 |
| 1076 |
msgid "" |
| 1077 |
"Set the cover for this book. The data can be either a QImage, QPixmap, file " |
| 1078 |
"object or bytestring. It can also be None, in which case any existing cover " |
| 1079 |
"is removed." |
| 1080 |
msgstr "设置这本书的封面。 数据可以是 QImage、QPixmap、文件对象或字节串。 它也可以是“无”,在这种情况下,任何现有的覆盖物都会被删除。" |
| 1081 |
|
| 1082 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1083 |
#: calibre.db.cache.Cache.set_field:1 |
| 1084 |
msgid "" |
| 1085 |
"Set the values of the field specified by ``name``. Returns the set of all " |
| 1086 |
"book ids that were affected by the change." |
| 1087 |
msgstr "设置“name”指定的字段的值。 返回受更改影响的所有图书 ID 的集合。" |
| 1088 |
|
| 1089 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1090 |
#: calibre.db.cache.Cache.set_field:3 |
| 1091 |
msgid "Mapping of book_ids to values that should be applied." |
| 1092 |
msgstr "将 book_ids 映射到应应用的值。" |
| 1093 |
|
| 1094 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1095 |
#: calibre.db.cache.Cache.set_field:4 |
| 1096 |
msgid "" |
| 1097 |
"If True, the case of many-one or many-many fields will be changed. For " |
| 1098 |
"example, if a book has the tag ``tag1`` and you set the tag for another " |
| 1099 |
"book to ``Tag1`` then the both books will have the tag ``Tag1`` if " |
| 1100 |
"allow_case_change is True, otherwise they will both have the tag ``tag1``." |
| 1101 |
msgstr "如果为 True,多对一或多对多字段的大小写将会改变。 例如,如果一本书有标签“tag1”,而您将另一本书的标签设置为“Tag1”,那么如果allow_case_change为True,这两本书都将有标签“Tag1”,否则它们都会有标签“Tag1”。 有标签``tag1``。" |
| 1102 |
|
| 1103 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1104 |
#: calibre.db.cache.Cache.set_field:8 |
| 1105 |
msgid "Used internally, you should never change it." |
| 1106 |
msgstr "内部使用,你不应该改变它。" |
| 1107 |
|
| 1108 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1109 |
#: calibre.db.cache.Cache.set_link_map:1 |
| 1110 |
msgid "" |
| 1111 |
"Sets links for item values in field. Note: this method doesn't change values" |
| 1112 |
" not in the value_to_link_map" |
| 1113 |
msgstr "设置字段中项目值的链接。 注意:此方法不会更改不在 value_to_link_map 中的值" |
| 1114 |
|
| 1115 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1116 |
#: calibre.db.cache.Cache.set_link_map:4 |
| 1117 |
msgid "the lookup name" |
| 1118 |
msgstr "查找名称" |
| 1119 |
|
| 1120 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1121 |
#: calibre.db.cache.Cache.set_link_map:5 |
| 1122 |
msgid "" |
| 1123 |
"dict(field_value:link, ...). Note that these are values, not field ids." |
| 1124 |
msgstr "字典(字段值:链接,...)。 请注意,这些是值,而不是字段 ID。" |
| 1125 |
|
| 1126 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1127 |
#: calibre.db.cache.Cache.set_link_map:7 |
| 1128 |
msgid "books changed by setting the link" |
| 1129 |
msgstr "通过设置链接更改书籍" |
| 1130 |
|
| 1131 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1132 |
#: calibre.db.cache.Cache.set_metadata:1 |
| 1133 |
msgid "Set metadata for the book `id` from the `Metadata` object `mi`" |
| 1134 |
msgstr "从“Metadata”对象“mi”设置书籍“id”的元数据" |
| 1135 |
|
| 1136 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1137 |
#: calibre.db.cache.Cache.set_metadata:3 |
| 1138 |
msgid "" |
| 1139 |
"Setting force_changes=True will force set_metadata to update fields even if " |
| 1140 |
"mi contains empty values. In this case, 'None' is distinguished from " |
| 1141 |
"'empty'. If mi.XXX is None, the XXX is not replaced, otherwise it is. The " |
| 1142 |
"tags, identifiers, and cover attributes are special cases. Tags and " |
| 1143 |
"identifiers cannot be set to None so they will always be replaced if " |
| 1144 |
"force_changes is true. You must ensure that mi contains the values you want " |
| 1145 |
"the book to have. Covers are always changed if a new cover is provided, but " |
| 1146 |
"are never deleted. Also note that force_changes has no effect on setting " |
| 1147 |
"title or authors." |
| 1148 |
msgstr "设置force_changes=True将强制set_metadata更新字段,即使mi包含空值。 在这种情况下,“无”与“空”不同。 如果 mi.XXX 为 None,则不替换 XXX,否则替换。 标签、标识符和封面属性是特殊情况。 标签和标识符不能设置为 None,因此如果 force_changes 为 true,它们将始终被替换。 您必须确保 mi 包含您希望本书具有的值。 如果提供新封面,封面总是会更改,但永远不会被删除。 另请注意,force_changes 对设置标题或作者没有影响。" |
| 1149 |
|
| 1150 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1151 |
#: calibre.db.cache.Cache.set_notes_for:1 |
| 1152 |
msgid "" |
| 1153 |
"Set the notes document. If the searchable text is different from the " |
| 1154 |
"document, specify it as searchable_text. If the document references " |
| 1155 |
"resources their hashes must be present in resource_hashes. Set " |
| 1156 |
"remove_unused_resources to True to cleanup unused resources, note that " |
| 1157 |
"updating a note automatically cleans up resources pertaining to that note " |
| 1158 |
"anyway." |
| 1159 |
msgstr "设置注释文档。 如果可搜索文本与文档不同,请将其指定为 searchable_text。 如果文档引用资源,则它们的哈希值必须存在于 resource_hashes 中。 将remove_unused_resources设置为True以清理未使用的资源,请注意,更新注释会自动清理与该注释相关的资源。" |
| 1160 |
|
| 1161 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1162 |
#: calibre.db.cache.Cache.set_pages:1 |
| 1163 |
msgid "Set page count information for the specified book" |
| 1164 |
msgstr "设置指定书籍的页数统计信息" |
| 1165 |
|
| 1166 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1167 |
#: calibre.db.cache.Cache.set_pref:1 |
| 1168 |
msgid "" |
| 1169 |
"Set the specified preference to the specified value. See also :meth:`pref`." |
| 1170 |
msgstr "将指定首选项设置为指定值。 另请参阅“pref”。" |
| 1171 |
|
| 1172 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1173 |
#: calibre.db.cache.Cache.split_if_is_multiple_composite:1 |
| 1174 |
msgid "" |
| 1175 |
"If f is a composite column lookup key and the column is is_multiple then " |
| 1176 |
"split v into unique non-empty values. The comparison is case sensitive. " |
| 1177 |
"Order is not preserved. Return a list() for compatibility with proxy " |
| 1178 |
"metadata field getters, for example tags." |
| 1179 |
msgstr "如果 f 是复合列查找键并且列是 is_multiple,则将 v 拆分为唯一的非空值。 比较区分大小写。 订单不保留。 返回一个 list() 以与代理元数据字段 getter 兼容,例如标签。" |
| 1180 |
|
| 1181 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1182 |
#: calibre.db.cache.Cache.tags_older_than:1 |
| 1183 |
msgid "" |
| 1184 |
"Return the ids of all books having the tag ``tag`` that are older than the " |
| 1185 |
"specified time. tag comparison is case insensitive." |
| 1186 |
msgstr "返回所有具有早于指定时间的标签“tag”的书籍的 ID。 标签比较不区分大小写。" |
| 1187 |
|
| 1188 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1189 |
#: calibre.db.cache.Cache.tags_older_than:4 |
| 1190 |
msgid "" |
| 1191 |
"A timedelta object or None. If None, then all ids with the tag are returned." |
| 1192 |
msgstr "timedelta 对象或 None。 如果没有,则返回带有该标签的所有 id。" |
| 1193 |
|
| 1194 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1195 |
#: calibre.db.cache.Cache.tags_older_than:7 |
| 1196 |
msgid "" |
| 1197 |
"If not None the list of matches will be restricted to books that have this " |
| 1198 |
"tag" |
| 1199 |
msgstr "如果不是“无”,则匹配列表将仅限于具有此标签的书籍" |
| 1200 |
|
| 1201 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1202 |
#: calibre.db.cache.Cache.tags_older_than:10 |
| 1203 |
msgid "" |
| 1204 |
"A list of authors. If not None the list of matches will be restricted to " |
| 1205 |
"books that have these authors (case insensitive)." |
| 1206 |
msgstr "作者名单。 如果不是“无”,则匹配列表将仅限于具有这些作者的书籍(不区分大小写)。" |
| 1207 |
|
| 1208 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1209 |
#: calibre.db.cache.Cache.unretire_note_for:1 |
| 1210 |
msgid "" |
| 1211 |
"Unretire a previously retired note for the specified item. Notes are retired" |
| 1212 |
" when an item is removed from the database" |
| 1213 |
msgstr "取消指定项目之前已停用的注释。 当从数据库中删除项目时,注释将被停用" |
| 1214 |
|
| 1215 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1216 |
#: calibre.db.cache.Cache.update_annotations:1 |
| 1217 |
msgid "Update annotations." |
| 1218 |
msgstr "更新注释。" |
| 1219 |
|
| 1220 |
#: ../../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of |
| 1221 |
#: calibre.db.cache.Cache.user_categories_for_books:1 |
| 1222 |
msgid "" |
| 1223 |
"Return the user categories for the specified books. proxy_metadata_map is " |
| 1224 |
"optional and is useful for a performance boost, in contexts where a " |
| 1225 |
"ProxyMetadata object for the books already exists. It should be a mapping of" |
| 1226 |
" book_ids to their corresponding ProxyMetadata objects." |
| 1227 |
msgstr "返回指定书籍的用户类别。 proxy_metadata_map 是可选的,在书籍的 ProxyMetadata 对象已存在的情况下,对于提高性能很有用。 它应该是 book_ids 到其对应的 ProxyMetadata 对象的映射。" |