Debian Codegraph @

translations/manual/zh_TW/db_api.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: calibre\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2022-06-17 02:39+0000\n"
11 "PO-Revision-Date: 2014-07-05 16:49+0000\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: Chinese (Taiwan) (http://www.transifex.com/calibre/calibre/language/zh_TW/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: zh_TW\n"
18 "Plural-Forms: nplurals=1; plural=0;\n"
19
20 #: ../../__w/calibre/calibre/manual/db_api.rst:4
21 msgid "API documentation for the database interface"
22 msgstr "API文档之数据库接口"
23
24 #: ../../__w/calibre/calibre/manual/db_api.rst:9
25 msgid ""
26 "This API is thread safe (it uses a multiple reader, single writer locking "
27 "scheme). You can access this API like this::"
28 msgstr "本API是线程安全的(它使用多读者,单写者锁方法)。你可以用this::来引用"
29
30 #: ../../__w/calibre/calibre/manual/db_api.rst:14
31 msgid ""
32 "If you are in a calibre plugin that is part of the main calibre GUI, you get"
33 " access to it like this instead::"
34 msgstr "在calibre主程序的插件中使用本API,可以用instead::来引用本API"
35
36 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
37 #: calibre.db.cache.Cache:1
38 msgid ""
39 "An in-memory cache of the metadata.db file from a calibre library. This "
40 "class also serves as a threadsafe API for accessing the database. The in-"
41 "memory cache is maintained in normal form for maximum performance."
42 msgstr ""
43
44 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
45 #: calibre.db.cache.Cache:5
46 msgid ""
47 "SQLITE is simply used as a way to read and write from metadata.db robustly. "
48 "All table reading/sorting/searching/caching logic is re-implemented. This "
49 "was necessary for maximum performance and flexibility."
50 msgstr ""
51
52 #: ../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of
53 #: calibre.db.listeners.EventType:1
54 msgid "An enumeration."
55 msgstr ""
56
57 #: ../../__w/calibre/calibre/manual/docstring of
58 #: calibre.db.cache.Cache.EventType.book_created:1
59 msgid ""
60 "When a new book record is created in the database, with the book id as the "
61 "only argument"
62 msgstr ""
63
64 #: ../../__w/calibre/calibre/manual/docstring of
65 #: calibre.db.cache.Cache.EventType.book_edited:1
66 msgid "When a book format is edited, with arguments: (book_id, fmt)"
67 msgstr ""
68
69 #: ../../__w/calibre/calibre/manual/docstring of
70 #: calibre.db.cache.Cache.EventType.books_removed:1
71 msgid ""
72 "When books are removed from the database with the list of book ids as the "
73 "only argument"
74 msgstr ""
75
76 #: ../../__w/calibre/calibre/manual/docstring of
77 #: calibre.db.cache.Cache.EventType.format_added:1
78 msgid "When a format is added to a book, with arguments: (book_id, format)"
79 msgstr ""
80
81 #: ../../__w/calibre/calibre/manual/docstring of
82 #: calibre.db.cache.Cache.EventType.formats_removed:1
83 msgid ""
84 "When formats are removed from a book, with arguments: (mapping of book id to"
85 " set of formats removed from the book)"
86 msgstr ""
87
88 #: ../../__w/calibre/calibre/manual/docstring of
89 #: calibre.db.cache.Cache.EventType.items_removed:1
90 msgid ""
91 "When items such as tags or authors are removed from some books. Arguments: "
92 "(field_name, affected book ids, ids of removed items)"
93 msgstr ""
94
95 #: ../../__w/calibre/calibre/manual/docstring of
96 #: calibre.db.cache.Cache.EventType.items_renamed:1
97 msgid ""
98 "When items such as tags or authors are renamed in some or all books. "
99 "Arguments: (field_name, affected book ids, map of old item id to new item "
100 "id)"
101 msgstr ""
102
103 #: ../../__w/calibre/calibre/manual/docstring of
104 #: calibre.db.cache.Cache.EventType.metadata_changed:1
105 msgid ""
106 "When some metadata is changed for some books, with arguments: (name of "
107 "changed field, set of affected book ids)"
108 msgstr ""
109
110 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
111 #: calibre.db.cache.Cache.add_books:1
112 msgid ""
113 "Add the specified books to the library. Books should be an iterable of "
114 "2-tuples, each 2-tuple of the form :code:`(mi, format_map)` where mi is a "
115 "Metadata object and format_map is a dictionary of the form :code:`{fmt: "
116 "path_or_stream}`, for example: :code:`{'EPUB': '/path/to/file.epub'}`."
117 msgstr ""
118
119 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
120 #: calibre.db.cache.Cache.add_books:6
121 msgid ""
122 "Returns a pair of lists: :code:`ids, duplicates`. ``ids`` contains the book "
123 "ids for all newly created books in the database. ``duplicates`` contains the"
124 " :code:`(mi, format_map)` for all books that already exist in the database "
125 "as per the simple duplicate detection heuristic used by :meth:`has_book`."
126 msgstr ""
127
128 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
129 #: calibre.db.cache.Cache.add_custom_book_data:1
130 msgid ""
131 "Add data for name where val_map is a map of book_ids to values. If "
132 "delete_first is True, all previously stored data for name will be removed."
133 msgstr ""
134
135 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
136 #: calibre.db.cache.Cache.add_format:1
137 msgid ""
138 "Add a format to the specified book. Return True if the format was added "
139 "successfully."
140 msgstr ""
141
142 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
143 #: calibre.db.cache.Cache.add_format:0
144 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
145 #: calibre.db.cache.Cache.cover:0
146 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
147 #: calibre.db.cache.Cache.format:0
148 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
149 #: calibre.db.cache.Cache.format_metadata:0
150 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
151 #: calibre.db.cache.Cache.get_next_series_num_for:0
152 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
153 #: calibre.db.cache.Cache.remove_formats:0
154 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
155 #: calibre.db.cache.Cache.rename_items:0
156 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
157 #: calibre.db.cache.Cache.search:0
158 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
159 #: calibre.db.cache.Cache.set_field:0
160 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
161 #: calibre.db.cache.Cache.tags_older_than:0
162 msgid "Parameters"
163 msgstr "参数"
164
165 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
166 #: calibre.db.cache.Cache.add_format:3
167 msgid ""
168 "If True replace existing format, otherwise if the format already exists, "
169 "return False."
170 msgstr ""
171
172 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
173 #: calibre.db.cache.Cache.add_format:4
174 msgid ""
175 "If True, file type plugins are run on the format before and after being "
176 "added."
177 msgstr ""
178
179 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
180 #: calibre.db.cache.Cache.add_format:5
181 msgid "Internal use only."
182 msgstr "仅内部使用。"
183
184 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
185 #: calibre.db.cache.Cache.add_listener:1
186 msgid ""
187 "Register a callback function that will be called after certain actions are "
188 "taken on this database. The function must take three arguments: "
189 "(:class:`EventType`, library_id, event_type_specific_data)"
190 msgstr ""
191
192 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
193 #: calibre.db.cache.Cache.all_book_ids:1
194 msgid "Frozen set of all known book ids."
195 msgstr ""
196
197 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
198 #: calibre.db.cache.Cache.all_field_for:1
199 msgid "Same as field_for, except that it operates on multiple books at once"
200 msgstr ""
201
202 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
203 #: calibre.db.cache.Cache.all_field_ids:1
204 msgid "Frozen set of ids for all values in the field ``name``."
205 msgstr ""
206
207 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
208 #: calibre.db.cache.Cache.all_field_names:1
209 msgid ""
210 "Frozen set of all fields names (should only be used for many-one and many-"
211 "many fields)"
212 msgstr ""
213
214 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
215 #: calibre.db.cache.Cache.author_data:1
216 msgid "Return author data as a dictionary with keys: name, sort, link"
217 msgstr ""
218
219 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
220 #: calibre.db.cache.Cache.author_data:3
221 msgid ""
222 "If no authors with the specified ids are found an empty dictionary is "
223 "returned. If author_ids is None, data for all authors is returned."
224 msgstr ""
225
226 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
227 #: calibre.db.cache.Cache.author_sort_from_authors:1
228 msgid ""
229 "Given a list of authors, return the author_sort string for the authors, "
230 "preferring the author sort associated with the author over the computed "
231 "string."
232 msgstr ""
233
234 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
235 #: calibre.db.cache.Cache.books_for_field:1
236 msgid ""
237 "Return all the books associated with the item identified by ``item_id``, "
238 "where the item belongs to the field ``name``."
239 msgstr ""
240
241 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
242 #: calibre.db.cache.Cache.books_for_field:4
243 msgid ""
244 "Returned value is a set of book ids, or the empty set if the item or the "
245 "field does not exist."
246 msgstr ""
247
248 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
249 #: calibre.db.cache.Cache.books_in_virtual_library:1
250 msgid "Return the set of books in the specified virtual library"
251 msgstr ""
252
253 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
254 #: calibre.db.cache.Cache.compress_covers:1
255 msgid ""
256 "Compress the cover images for the specified books. A compression quality of "
257 "100 will perform lossless compression, otherwise lossy compression."
258 msgstr ""
259
260 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
261 #: calibre.db.cache.Cache.compress_covers:4
262 msgid ""
263 "The progress callback will be called with the book_id and the old and new "
264 "sizes for each book that has been processed. If an error occurs, the new "
265 "size will be a string with the error details."
266 msgstr ""
267
268 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
269 #: calibre.db.cache.Cache.copy_cover_to:1
270 msgid ""
271 "Copy the cover to the file like object ``dest``. Returns False if no cover "
272 "exists or dest is the same file as the current cover. dest can also be a "
273 "path in which case the cover is copied to it if and only if the path is "
274 "different from the current path (taking case sensitivity into account)."
275 msgstr ""
276
277 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
278 #: calibre.db.cache.Cache.copy_format_to:1
279 msgid ""
280 "Copy the format ``fmt`` to the file like object ``dest``. If the specified "
281 "format does not exist, raises :class:`NoSuchFormat` error. dest can also be "
282 "a path (to a file), in which case the format is copied to it, iff the path "
283 "is different from the current path (taking case sensitivity into account)."
284 msgstr ""
285
286 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
287 #: calibre.db.cache.Cache.cover:1
288 msgid ""
289 "Return the cover image or None. By default, returns the cover as a "
290 "bytestring."
291 msgstr ""
292
293 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
294 #: calibre.db.cache.Cache.cover:4
295 msgid ""
296 "WARNING: Using as_path will copy the cover to a temp file and return the "
297 "path to the temp file. You should delete the temp file when you are done "
298 "with it."
299 msgstr ""
300
301 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
302 #: calibre.db.cache.Cache.cover:8
303 msgid ""
304 "If True return the image as an open file object (a SpooledTemporaryFile)"
305 msgstr ""
306
307 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
308 #: calibre.db.cache.Cache.cover:9
309 msgid "If True return the image as a QImage object"
310 msgstr ""
311
312 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
313 #: calibre.db.cache.Cache.cover:10
314 msgid "If True return the image as a path pointing to a temporary file"
315 msgstr ""
316
317 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
318 #: calibre.db.cache.Cache.data_for_find_identical_books:1
319 msgid ""
320 "Return data that can be used to implement :meth:`find_identical_books` in a "
321 "worker process without access to the db. See db.utils for an implementation."
322 msgstr ""
323
324 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
325 #: calibre.db.cache.Cache.data_for_has_book:1
326 msgid ""
327 "Return data suitable for use in :meth:`has_book`. This can be used for an "
328 "implementation of :meth:`has_book` in a worker process without access to the"
329 " db."
330 msgstr ""
331
332 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
333 #: calibre.db.cache.Cache.delete_custom_book_data:1
334 msgid ""
335 "Delete data for name. By default deletes all data, if you only want to "
336 "delete data for some book ids, pass in a list of book ids."
337 msgstr ""
338
339 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
340 #: calibre.db.cache.Cache.embed_metadata:1
341 msgid ""
342 "Update metadata in all formats of the specified book_ids to current metadata"
343 " in the database."
344 msgstr ""
345
346 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
347 #: calibre.db.cache.Cache.fast_field_for:1
348 msgid ""
349 "Same as field_for, except that it avoids the extra lookup to get the field "
350 "object"
351 msgstr ""
352
353 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
354 #: calibre.db.cache.Cache.field_for:1
355 msgid ""
356 "Return the value of the field ``name`` for the book identified by "
357 "``book_id``. If no such book exists or it has no defined value for the field"
358 " ``name`` or no such field exists, then ``default_value`` is returned."
359 msgstr ""
360
361 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
362 #: calibre.db.cache.Cache.field_for:6
363 msgid ""
364 "``default_value`` is not used for title, title_sort, authors, author_sort "
365 "and series_index. This is because these always have values in the db. "
366 "``default_value`` is used for all custom columns."
367 msgstr ""
368
369 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
370 #: calibre.db.cache.Cache.field_for:10
371 msgid ""
372 "The returned value for is_multiple fields are always tuples, even when no "
373 "values are found (in other words, default_value is ignored). The exception "
374 "is identifiers for which the returned value is always a dict. The returned "
375 "tuples are always in link order, that is, the order in which they were "
376 "created."
377 msgstr ""
378
379 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
380 #: calibre.db.cache.Cache.field_ids_for:1
381 msgid ""
382 "Return the ids (as a tuple) for the values that the field ``name`` has on "
383 "the book identified by ``book_id``. If there are no values, or no such book,"
384 " or no such field, an empty tuple is returned."
385 msgstr ""
386
387 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
388 #: calibre.db.cache.Cache.find_identical_books:1
389 msgid ""
390 "Finds books that have a superset of the authors in mi and the same title "
391 "(title is fuzzy matched). See also :meth:`data_for_find_identical_books`."
392 msgstr ""
393
394 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
395 #: calibre.db.cache.Cache.format:1
396 msgid ""
397 "Return the e-book format as a bytestring or `None` if the format doesn't "
398 "exist, or we don't have permission to write to the e-book file."
399 msgstr ""
400
401 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
402 #: calibre.db.cache.Cache.format:4
403 msgid ""
404 "If True the e-book format is returned as a file object. Note that the file "
405 "object is a SpooledTemporaryFile, so if what you want to do is copy the "
406 "format to another file, use :meth:`copy_format_to` instead for performance."
407 msgstr ""
408
409 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
410 #: calibre.db.cache.Cache.format:8
411 msgid ""
412 "Copies the format file to a temp file and returns the path to the temp file"
413 msgstr ""
414
415 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
416 #: calibre.db.cache.Cache.format:10
417 msgid ""
418 "If True and returning a path the filename is the same as that used in the "
419 "library. Note that using this means that repeated calls yield the same temp "
420 "file (which is re-created each time)"
421 msgstr ""
422
423 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
424 #: calibre.db.cache.Cache.format_abspath:1
425 msgid ""
426 "Return absolute path to the e-book file of format `format`. You should "
427 "almost never use this, as it breaks the threadsafe promise of this API. "
428 "Instead use, :meth:`copy_format_to`."
429 msgstr ""
430
431 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
432 #: calibre.db.cache.Cache.format_abspath:5
433 msgid ""
434 "Currently used only in calibredb list, the viewer, edit book, compare_format"
435 " to original format, open with, bulk metadata edit and the catalogs (via "
436 "get_data_as_dict())."
437 msgstr ""
438
439 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
440 #: calibre.db.cache.Cache.format_abspath:9
441 msgid ""
442 "Apart from the viewer, open with and edit book, I don't believe any of the "
443 "others do any file write I/O with the results of this call."
444 msgstr ""
445
446 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
447 #: calibre.db.cache.Cache.format_hash:1
448 msgid ""
449 "Return the hash of the specified format for the specified book. The kind of "
450 "hash is backend dependent, but is usually SHA-256."
451 msgstr ""
452
453 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
454 #: calibre.db.cache.Cache.format_metadata:1
455 msgid ""
456 "Return the path, size and mtime for the specified format for the specified "
457 "book. You should not use path unless you absolutely have to, since accessing"
458 " it directly breaks the threadsafe guarantees of this API. Instead use the "
459 ":meth:`copy_format_to` method."
460 msgstr ""
461
462 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
463 #: calibre.db.cache.Cache.format_metadata:6
464 msgid ""
465 "If ``True`` cached values are used, otherwise a slow filesystem access is "
466 "done. The cache values could be out of date if access was performed to the "
467 "filesystem outside of this API."
468 msgstr ""
469
470 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
471 #: calibre.db.cache.Cache.format_metadata:10
472 msgid ""
473 "If ``True`` The max_size field of the database is updated for this book."
474 msgstr ""
475
476 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
477 #: calibre.db.cache.Cache.formats:1
478 msgid ""
479 "Return tuple of all formats for the specified book. If verify_formats is "
480 "True, verifies that the files exist on disk."
481 msgstr ""
482
483 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
484 #: calibre.db.cache.Cache.get_categories:1
485 msgid "Used internally to implement the Tag Browser"
486 msgstr ""
487
488 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
489 #: calibre.db.cache.Cache.get_custom_book_data:1
490 msgid ""
491 "Get data for name. By default returns data for all book_ids, pass in a list "
492 "of book ids if you only want some data. Returns a map of book_id to values. "
493 "If a particular value could not be decoded, uses default for it."
494 msgstr ""
495
496 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
497 #: calibre.db.cache.Cache.get_id_map:1
498 msgid ""
499 "Return a mapping of id numbers to values for the specified field. The field "
500 "must be a many-one or many-many field, otherwise a ValueError is raised."
501 msgstr ""
502
503 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
504 #: calibre.db.cache.Cache.get_ids_for_custom_book_data:1
505 msgid "Return the set of book ids for which name has data."
506 msgstr ""
507
508 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
509 #: calibre.db.cache.Cache.get_item_id:1
510 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
511 #: calibre.db.cache.Cache.get_item_ids:1
512 msgid "Return the item id for item_name (case-insensitive)"
513 msgstr ""
514
515 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
516 #: calibre.db.cache.Cache.get_item_name:1
517 msgid ""
518 "Return the item name for the item specified by item_id in the specified "
519 "field. See also :meth:`get_id_map`."
520 msgstr ""
521
522 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
523 #: calibre.db.cache.Cache.get_metadata:1
524 msgid ""
525 "Return metadata for the book identified by book_id as a "
526 ":class:`calibre.ebooks.metadata.book.base.Metadata` object. Note that the "
527 "list of formats is not verified. If get_cover is True, the cover is "
528 "returned, either a path to temp file as mi.cover or if cover_as_data is True"
529 " then as mi.cover_data."
530 msgstr ""
531
532 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
533 #: calibre.db.cache.Cache.get_next_series_num_for:1
534 msgid ""
535 "Return the next series index for the specified series, taking into account "
536 "the various preferences that control next series number generation."
537 msgstr ""
538
539 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
540 #: calibre.db.cache.Cache.get_next_series_num_for:4
541 msgid "The series-like field (defaults to the builtin series column)"
542 msgstr ""
543
544 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
545 #: calibre.db.cache.Cache.get_next_series_num_for:5
546 msgid ""
547 "If True, returns a mapping of book_id to current series_index value instead."
548 msgstr ""
549
550 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
551 #: calibre.db.cache.Cache.get_proxy_metadata:1
552 msgid ""
553 "Like :meth:`get_metadata` except that it returns a ProxyMetadata object that"
554 " only reads values from the database on demand. This is much faster than "
555 "get_metadata when only a small number of fields need to be accessed from the"
556 " returned metadata object."
557 msgstr ""
558
559 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
560 #: calibre.db.cache.Cache.get_usage_count_by_id:1
561 msgid ""
562 "Return a mapping of id to usage count for all values of the specified field,"
563 " which must be a many-one or many-many field."
564 msgstr ""
565
566 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
567 #: calibre.db.cache.Cache.has_book:1
568 msgid ""
569 "Return True iff the database contains an entry with the same title as the "
570 "passed in Metadata object. The comparison is case-insensitive. See also "
571 ":meth:`data_for_has_book`."
572 msgstr ""
573
574 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
575 #: calibre.db.cache.Cache.has_format:1
576 msgid "Return True iff the format exists on disk"
577 msgstr ""
578
579 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
580 #: calibre.db.cache.Cache.has_id:1
581 msgid "Return True iff the specified book_id exists in the db"
582 msgstr ""
583
584 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
585 #: calibre.db.cache.Cache.init:1
586 msgid "Initialize this cache with data from the backend."
587 msgstr ""
588
589 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
590 #: calibre.db.cache.Cache.multisort:1
591 msgid ""
592 "Return a list of sorted book ids. If ids_to_sort is None, all book ids are "
593 "returned."
594 msgstr ""
595
596 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
597 #: calibre.db.cache.Cache.multisort:4
598 msgid ""
599 "fields must be a list of 2-tuples of the form (field_name, ascending=True or"
600 " False). The most significant field is the first 2-tuple."
601 msgstr ""
602
603 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
604 #: calibre.db.cache.Cache.pref:1
605 msgid ""
606 "Return the value for the specified preference or the value specified as "
607 "``default`` if the preference is not set."
608 msgstr ""
609
610 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
611 #: calibre.db.cache.Cache.read_backup:1
612 msgid ""
613 "Return the OPF metadata backup for the book as a bytestring or None if no "
614 "such backup exists."
615 msgstr ""
616
617 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
618 #: calibre.db.cache.Cache.remove_books:1
619 msgid ""
620 "Remove the books specified by the book_ids from the database and delete "
621 "their format files. If ``permanent`` is False, then the format files are "
622 "placed in the recycle bin."
623 msgstr ""
624
625 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
626 #: calibre.db.cache.Cache.remove_formats:1
627 msgid "Remove the specified formats from the specified books."
628 msgstr ""
629
630 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
631 #: calibre.db.cache.Cache.remove_formats:3
632 msgid "A mapping of book_id to a list of formats to be removed from the book."
633 msgstr ""
634
635 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
636 #: calibre.db.cache.Cache.remove_formats:4
637 msgid ""
638 "If True, only remove the record for the format from the db, do not delete "
639 "the actual format file from the filesystem."
640 msgstr ""
641
642 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
643 #: calibre.db.cache.Cache.remove_items:1
644 msgid ""
645 "Delete all items in the specified field with the specified ids. Returns the "
646 "set of affected book ids. ``restrict_to_book_ids`` is an optional set of "
647 "books ids. If specified the items will only be removed from those books."
648 msgstr ""
649
650 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
651 #: calibre.db.cache.Cache.rename_items:1
652 msgid ""
653 "Rename items from a many-one or many-many field such as tags or series."
654 msgstr ""
655
656 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
657 #: calibre.db.cache.Cache.rename_items:3
658 msgid ""
659 "When renaming in a series-like field also change the series_index values."
660 msgstr ""
661
662 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
663 #: calibre.db.cache.Cache.rename_items:4
664 msgid ""
665 "An optional set of book ids for which the rename is to be performed, "
666 "defaults to all books."
667 msgstr ""
668
669 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
670 #: calibre.db.cache.Cache.restore_book:1
671 msgid ""
672 "Restore the book entry in the database for a book that already exists on the"
673 " filesystem"
674 msgstr ""
675
676 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
677 #: calibre.db.cache.Cache.restore_original_format:1
678 msgid ""
679 "Restore the specified format from the previously saved ORIGINAL_FORMAT, if "
680 "any. Return True on success. The ORIGINAL_FORMAT is deleted after a "
681 "successful restore."
682 msgstr ""
683
684 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
685 #: calibre.db.cache.Cache.safe_read_lock:1
686 msgid ""
687 "A safe read lock is a lock that does nothing if the thread already has a "
688 "write lock, otherwise it acquires a read lock. This is necessary to prevent "
689 "DowngradeLockErrors, which can happen when updating the search cache in the "
690 "presence of composite columns. Updating the search cache holds an exclusive "
691 "lock, but searching a composite column involves reading field values via "
692 "ProxyMetadata which tries to get a shared lock. There may be other scenarios"
693 " that trigger this as well."
694 msgstr ""
695
696 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
697 #: calibre.db.cache.Cache.safe_read_lock:9
698 msgid ""
699 "This property returns a new lock object on every access. This lock object is"
700 " not recursive (for performance) and must only be used in a with statement "
701 "as ``with cache.safe_read_lock:`` otherwise bad things will happen."
702 msgstr ""
703
704 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
705 #: calibre.db.cache.Cache.save_original_format:1
706 msgid ""
707 "Save a copy of the specified format as ORIGINAL_FORMAT, overwriting any "
708 "existing ORIGINAL_FORMAT."
709 msgstr ""
710
711 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
712 #: calibre.db.cache.Cache.search:1
713 msgid ""
714 "Search the database for the specified query, returning a set of matched book"
715 " ids."
716 msgstr ""
717
718 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
719 #: calibre.db.cache.Cache.search:3
720 msgid ""
721 "A restriction that is ANDed to the specified query. Note that restrictions "
722 "are cached, therefore the search for a AND b will be slower than a with "
723 "restriction b."
724 msgstr ""
725
726 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
727 #: calibre.db.cache.Cache.search:6
728 msgid "Used internally (virtual fields such as on_device to search over)."
729 msgstr ""
730
731 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
732 #: calibre.db.cache.Cache.search:8
733 msgid ""
734 "If not None, a set of book ids for which books will be searched instead of "
735 "searching all books."
736 msgstr ""
737
738 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
739 #: calibre.db.cache.Cache.set_conversion_options:1
740 msgid "options must be a map of the form {book_id:conversion_options}"
741 msgstr ""
742
743 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
744 #: calibre.db.cache.Cache.set_cover:1
745 msgid ""
746 "Set the cover for this book. The data can be either a QImage, QPixmap, file "
747 "object or bytestring. It can also be None, in which case any existing cover "
748 "is removed."
749 msgstr ""
750
751 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
752 #: calibre.db.cache.Cache.set_field:1
753 msgid ""
754 "Set the values of the field specified by ``name``. Returns the set of all "
755 "book ids that were affected by the change."
756 msgstr ""
757
758 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
759 #: calibre.db.cache.Cache.set_field:3
760 msgid "Mapping of book_ids to values that should be applied."
761 msgstr ""
762
763 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
764 #: calibre.db.cache.Cache.set_field:4
765 msgid ""
766 "If True, the case of many-one or many-many fields will be changed. For "
767 "example, if a book has the tag ``tag1`` and you set the tag for another "
768 "book to ``Tag1`` then the both books will have the tag ``Tag1`` if "
769 "allow_case_change is True, otherwise they will both have the tag ``tag1``."
770 msgstr ""
771
772 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
773 #: calibre.db.cache.Cache.set_field:8
774 msgid "Used internally, you should never change it."
775 msgstr ""
776
777 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
778 #: calibre.db.cache.Cache.set_metadata:1
779 msgid "Set metadata for the book `id` from the `Metadata` object `mi`"
780 msgstr ""
781
782 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
783 #: calibre.db.cache.Cache.set_metadata:3
784 msgid ""
785 "Setting force_changes=True will force set_metadata to update fields even if "
786 "mi contains empty values. In this case, 'None' is distinguished from "
787 "'empty'. If mi.XXX is None, the XXX is not replaced, otherwise it is. The "
788 "tags, identifiers, and cover attributes are special cases. Tags and "
789 "identifiers cannot be set to None so they will always be replaced if "
790 "force_changes is true. You must ensure that mi contains the values you want "
791 "the book to have. Covers are always changed if a new cover is provided, but "
792 "are never deleted. Also note that force_changes has no effect on setting "
793 "title or authors."
794 msgstr ""
795
796 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
797 #: calibre.db.cache.Cache.set_pref:1
798 msgid ""
799 "Set the specified preference to the specified value. See also :meth:`pref`."
800 msgstr ""
801
802 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
803 #: calibre.db.cache.Cache.tags_older_than:1
804 msgid ""
805 "Return the ids of all books having the tag ``tag`` that are older than the "
806 "specified time. tag comparison is case insensitive."
807 msgstr ""
808
809 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
810 #: calibre.db.cache.Cache.tags_older_than:4
811 msgid ""
812 "A timedelta object or None. If None, then all ids with the tag are returned."
813 msgstr ""
814
815 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
816 #: calibre.db.cache.Cache.tags_older_than:7
817 msgid ""
818 "If not None the list of matches will be restricted to books that have this "
819 "tag"
820 msgstr ""
821
822 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
823 #: calibre.db.cache.Cache.tags_older_than:10
824 msgid ""
825 "A list of authors. If not None the list of matches will be restricted to "
826 "books that have these authors (case insensitive)."
827 msgstr ""
828
829 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
830 #: calibre.db.cache.Cache.user_categories_for_books:1
831 msgid ""
832 "Return the user categories for the specified books. proxy_metadata_map is "
833 "optional and is useful for a performance boost, in contexts where a "
834 "ProxyMetadata object for the books already exists. It should be a mapping of"
835 " book_ids to their corresponding ProxyMetadata objects."
836 msgstr ""