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