# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # Andrei Stepanov, 2026 # ashed , 2020-2021,2025-2026 # Vlad Loktionov, 2015 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-08-26 16:50+0000\n" "PO-Revision-Date: 2015-01-10 01:24+0000\n" "Last-Translator: Andrei Stepanov, 2026\n" "Language-Team: Russian (http://app.transifex.com/calibre/calibre/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ru\n" "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" #: ../../../__w/calibre/calibre/manual/snippets.rst:2 msgid "Snippets" msgstr "Фрагменты" #: ../../../__w/calibre/calibre/manual/snippets.rst:6 msgid "" "The calibre E-book editor supports *snippets*. A snippet is a piece of text " "that is either re-used often or contains a lot of redundant text. The editor" " allows you to insert a snippet with only a few key strokes. For example, " "suppose you often find yourself inserting link tags when editing HTML files," " then you can simply type ```` tags so you can easily type in the text for " "the link." msgstr "Кроме того, будет выбрано слово ``filename`` с курсором, расположенным над ним, чтобы вы могли легко ввести настоящее имя файла, используя отличную функцию редактора :ref:`editor_auto_complete`. И как только вы закончите вводить имя файла, нажмите |ct| снова, и курсор переместится на позицию между тегами ````, чтобы вы могли легко ввести текст для ссылки." #: ../../../__w/calibre/calibre/manual/snippets.rst:21 msgid "" "The snippets system in the editor is very sophisticated, there are a few " "built-in snippets and you can create your own to suit your editing style." msgstr "Система фрагментов в редакторе очень сложна, есть несколько встроенных фрагментов, и вы можете создать свой собственный в соответствии со своим стилем редактирования." #: ../../../__w/calibre/calibre/manual/snippets.rst:24 msgid "" "The following discussion of the built-in snippets should help illustrate the" " power of the snippets system." msgstr "Следующее обсуждение встроенных фрагментов должно помочь проиллюстрировать мощь системы фрагментов." #: ../../../__w/calibre/calibre/manual/snippets.rst:28 msgid "" "You can also use snippets in the text entry fields in the :guilabel:`Search " "& replace` panel, however, placeholders (using |ct| to jump around) will not" " work." msgstr "Вы также можете использовать фрагменты в полях ввода текста на панели :guilabel:`Search & replace`, однако заполнители (использующие |ct| для перемещения) не будут работать." #: ../../../__w/calibre/calibre/manual/snippets.rst:33 msgid "The built-in snippets" msgstr "Встроенные фрагменты" #: ../../../__w/calibre/calibre/manual/snippets.rst:35 msgid "" "The built-in snippets are described below. Note that you can override them " "by creating your own snippets with the same trigger text." msgstr "Встроенные фрагменты описаны ниже. Обратите внимание, что вы можете переопределить их, создав собственные фрагменты с тем же текстом триггера." #: ../../../__w/calibre/calibre/manual/snippets.rst:39 msgid "Inserting filler text [Lorem]" msgstr "Вставка заполнителя текста [Lorem]" #: ../../../__w/calibre/calibre/manual/snippets.rst:41 msgid "" "The first built-in snippet, and the simplest is used to insert filler text " "into a document. The filler text is taken from `De finibus bonorum et " "malorum `_ a " "philosophical work by Cicero (translated to English). To use it simply type " "``Lorem`` in an HTML file and press |ct|. It will be replaced by a couple of" " paragraphs of filler." msgstr "Первый встроенный фрагмент и самый простой используется для вставки текста-заполнителя в документ. Текст заполнителя взят из `De finibus bonorum et malorum `_ философского труда Цицерона (перевод на английский). Чтобы использовать его, просто наберите ``Lorem`` в HTML-файле и нажмите |ct|. Он будет заменен парой абзацев заполнителя." #: ../../../__w/calibre/calibre/manual/snippets.rst:48 msgid "" "The definition of this snippet is very simple, the trigger text is defined " "as ``Lorem`` and the template is defined simply as the literal text to be " "inserted. You can easily customize it to use your favorite form of filler " "text." msgstr "Определение этого фрагмента очень просто, текст триггера определяется как ``Lorem``, а шаблон определяется просто как текст, который нужно вставить. Вы можете легко настроить его, чтобы использовать вашу любимую форму текста заполнителя." #: ../../../__w/calibre/calibre/manual/snippets.rst:53 msgid "Inserting a self-closing HTML tag [<>]" msgstr "Вставка самозакрывающегося тега HTML [<>]" #: ../../../__w/calibre/calibre/manual/snippets.rst:55 msgid "" "Now let's look at a simple example of the powerful concept of " "*placeholders*. Say you want to insert the self-closing tag ``
``. Just " "type ``<>``, and press |ct|, the editor will expand the snippet to::" msgstr "Теперь давайте рассмотрим простой пример мощной концепции *заполнителей*. Скажем, вы хотите вставить самозакрывающийся тег ``
``. Просто введите ``<>`` и нажмите |ct|, редактор расширит фрагмент до::" #: ../../../__w/calibre/calibre/manual/snippets.rst:61 msgid "" "Here, the ``|`` symbol represents the current cursor position. You can then " "type ``hr`` and press |ct| to move the cursor to after the end of the tag. " "This snippet is defined as::" msgstr "Здесь символ ``|`` представляет текущую позицию курсора. Затем вы можете набрать ``hr`` и нажать |ct| переместить курсор в конец тега. Этот фрагмент определен как::" #: ../../../__w/calibre/calibre/manual/snippets.rst:68 msgid "" "Placeholders are simply the dollar ($) sign followed by a number. When the " "snippet is expanded by pressing |ct| the cursor is positioned at the first " "placeholder (the placeholder with the lowest number). When you press |ct| " "again the cursor jumps to the next placeholder (the placeholder with the " "next higher number)." msgstr "Заполнители - это просто знак доллара ($), за которым следует число. Когда фрагмент раскрывается нажатием |ct| курсор помещается на первый заполнитель (заполнитель с наименьшим номером). Когда вы нажимаете |ct| снова курсор переходит к следующему заполнителю (заполнителю со следующим большим номером)." #: ../../../__w/calibre/calibre/manual/snippets.rst:75 msgid "Inserting an HTML link tag [`` tags so you can easily type in the text for " "the link. After you are done typing the text, press |ct| again to jump to " "the point after the closing tag. This snippet is defined as::" msgstr "Кроме того, будет выбрано слово ``filename`` с курсором, расположенным над ним, чтобы вы могли легко ввести настоящее имя файла, используя отличную функцию редактора :ref:`editor_auto_complete`. И как только вы закончите вводить имя файла, нажмите |ct| снова, и курсор переместится на позицию между тегами ``
``, чтобы вы могли легко ввести текст для ссылки. После того, как вы закончите ввод текста, нажмите |ct| снова, чтобы перейти к точке после закрывающего тега. Этот фрагмент определен как ::" #: ../../../__w/calibre/calibre/manual/snippets.rst:96 msgid "" "There are a couple of new features here. First the ``$1`` placeholder has " "become more complex. It now includes some *default text* (the word " "``filename``). If a placeholder contains default text, the default text is " "substituted for the placeholder when the snippet is expanded. Also when you " "jump to a placeholder with default text using |ct|, the default text is " "selected. In this way, you can use default text to act as a reminder to you " "to fill in important parts of the template. You can specify default text for" " a placeholder by using the syntax: ``${:default text}``." msgstr "Здесь есть пара новых функций. Сначала заполнитель ``$1`` стал более сложным. Теперь он включает в себя некоторый *текст по умолчанию* (слово ``filename``). Если заполнитель содержит текст по умолчанию, то текст по умолчанию заменяется заполнителем при раскрытии фрагмента. Также при переходе к заполнителю с текстом по умолчанию с помощью |ct| выбирается текст по умолчанию. Таким образом, вы можете использовать текст по умолчанию, чтобы напоминать вам о необходимости заполнения важных частей шаблона. Вы можете указать текст по умолчанию для заполнителя, используя синтаксис: ``${:текст по умолчанию}``." #: ../../../__w/calibre/calibre/manual/snippets.rst:105 msgid "" "The other new feature is that the second placeholder has an asterisk after " "it (``${2*}``). This means that any text that was selected before expanding " "the template is substituted for the placeholder. To see this in action, " "select some text in the editor, press |ct|, type ```` tag" " and jump between the ``src`` and ``alt`` attributes::" msgstr "Это очень похоже на вставку HTML-ссылки, как мы видели выше. Он позволяет быстро вводить тег ``\"description\"`` и переходить между атрибутами ``src`` и ``alt``::" #: ../../../__w/calibre/calibre/manual/snippets.rst:124 msgid "Insert an arbitrary HTML tag [<<]" msgstr "Вставить произвольный тег HTML [<<]" #: ../../../__w/calibre/calibre/manual/snippets.rst:126 msgid "" "This allows you to insert an arbitrary full HTML tag (or wrap previously " "selected text in the tag). To use it, simply type ``<<`` and press |ct|. If " "you want to wrap selected text, first select the text, press |ct| then type " "``<<`` and press |ct| again. The editor will expand it to::" msgstr "Это позволяет вставлять произвольный полный тег HTML (или переносить ранее выделенный текст в теге). Чтобы использовать его, просто введите ``<<`` и нажмите |ct|. Если вы хотите обернуть выделенный текст, сначала выделите текст и нажмите |ct| затем введите ``<<`` и нажмите |ct| ещё раз. Редактор расширит его до::" #: ../../../__w/calibre/calibre/manual/snippets.rst:134 msgid "" "Type the tag name, for example: ``span`` and press |ct|, that will result " "in::" msgstr "Введите имя тега, напр.: ``span`` и нажмите |ct|, что приведёт к::" #: ../../../__w/calibre/calibre/manual/snippets.rst:138 msgid "" "You will note that the closing tag has been automatically filled with " "``span``. This is achieved with yet another feature of placeholders, " "*mirroring*. Mirroring simply means that if you specify the same placeholder" " more than once in a template, the second and all later positions will be " "automatically filled in with whatever you type in the first position, when " "you press |ct|. The definition for this snippet is::" msgstr "Вы заметите, что закрывающий тег был автоматически заполнен ``span``. Это достигается с помощью еще одной функции заполнителей, *зеркальное отображение*. Зеркалирование просто означает, что если вы указали образец заполнителя более одного раза в шаблоне, вторая и все последующие позиции будут автоматически заполнены тем, что вы вводите в первой позиции, когда вы нажимаете |ct|. Определение этого фрагмента::" #: ../../../__w/calibre/calibre/manual/snippets.rst:148 msgid "" "As you can see, the first placeholder ($1) has been specified twice, the " "second time in the closing tag, which will simply copy whatever you type in " "the opening tag." msgstr "Как видите, первый заполнитель ($1) был указан дважды, второй раз в закрывающем теге, который просто скопирует всё, что вы введете в открывающий тег." #: ../../../__w/calibre/calibre/manual/snippets.rst:153 msgid "Inserting an arbitrary HTML tag with a class attribute [Preferences->Editor settings->Manage snippets` in the " "editor. This will pop-up an easy to use dialog to help you create your own " "snippets. Simply click the :guilabel:`Add snippet` button and you will see a" " dialog that looks like:" msgstr "Фрагменты действительно блестящая вещь, потому что вы можете создать свой собственный, для соответствия своему стилю редактирования. Чтобы создать свои собственные фрагменты, перейдите в :guilabel:`Правка-> Настройки-> Параметры редактора-> Управлять фрагментами` в редакторе. Появится простой в использовании диалог, который поможет вам создать свои собственные фрагменты. Просто нажмите кнопку :guilabel:`Добавить фрагмент`, и вы увидите диалоговое окно, которое выглядит следующим образом:" #: ../../../__w/calibre/calibre/manual/snippets.rst:175 msgid "The create your own snippets tool" msgstr "Инструмент создания собственных сниппетов" #: ../../../__w/calibre/calibre/manual/snippets.rst:180 msgid "" "First give your snippet a name, something descriptive, to help identify the " "snippet in the future. Then specify the *trigger*. A trigger is simply the " "text that you have to type in the editor before pressing |ct| in order to " "expand the snippet." msgstr "Сначала дайте вашему фрагменту имя, что-то описательное, чтобы помочь идентифицировать фрагмент в будущем. Затем укажите *триггер*. Триггер - это просто текст, который вы должны напечатать в редакторе, прежде чем нажимать |ct| чтобы расширить фрагмент." #: ../../../__w/calibre/calibre/manual/snippets.rst:185 msgid "" "Then specify the snippet template. You should start with one of the examples" " above and modify it to suit your needs. Finally, specify which file types " "you want the snippet to be active for. This way you can have multiple " "snippets with the same trigger text that work differently in different file " "types." msgstr "Затем укажите шаблон фрагмента. Начните с одного из приведенных выше примеров и измените его в соответствии со своими потребностями. Наконец, укажите, для каких типов файлов фрагмент будет активен. Таким образом, у вас может быть несколько фрагментов с одним и тем же текстом триггера, которые по-разному работают в разных типах файлов." #: ../../../__w/calibre/calibre/manual/snippets.rst:190 msgid "" "The next step is to test your newly created snippet. Use the " ":guilabel:`Test` box at the bottom. Type in the trigger text and press |ct| " "to expand the snippet and jump between placeholders." msgstr "Следующим шагом является проверка вашего вновь созданного фрагмента. Используйте поле :guilabel:`Test` внизу. Введите текст триггера и нажмите |ct| чтобы расширить фрагмент и перейти между заполнителями."