Debian Codegraph @

translations/manual/ru/snippets.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 # Andrei Stepanov, 2026
7 # ashed <[email protected]>, 2020-2021,2025-2026
8 # Vlad Loktionov, 2015
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2026-08-26 16:50+0000\n"
14 "PO-Revision-Date: 2015-01-10 01:24+0000\n"
15 "Last-Translator: Andrei Stepanov, 2026\n"
16 "Language-Team: Russian (http://app.transifex.com/calibre/calibre/language/ru/)\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Language: ru\n"
21 "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"
22
23 #: ../../../__w/calibre/calibre/manual/snippets.rst:2
24 msgid "Snippets"
25 msgstr "Фрагменты"
26
27 #: ../../../__w/calibre/calibre/manual/snippets.rst:6
28 msgid ""
29 "The calibre E-book editor supports *snippets*. A snippet is a piece of text "
30 "that is either re-used often or contains a lot of redundant text. The editor"
31 " allows you to insert a snippet with only a few key strokes. For example, "
32 "suppose you often find yourself inserting link tags when editing HTML files,"
33 " then you can simply type ``<a`` in the editor and press |ct|. The editor "
34 "will expand it to::"
35 msgstr "Редактор calibre поддерживает *фрагменты*. Фрагмент - это фрагмент текста, который часто используется повторно или содержит много избыточного текста. Редактор позволяет вставить фрагмент с помощью всего нескольких нажатий клавиш. Напр., предположим, что вы часто вставляете теги ссылок при редактировании файлов HTML, тогда вы можете просто набрать ``<a`` в редакторе и нажать |ct|. Редактор расширит его до::"
36
37 #: ../../../__w/calibre/calibre/manual/snippets.rst:15
38 msgid ""
39 "Not only that, the word ``filename`` will be selected, with the cursor "
40 "placed over it, so that you can easily type in the real filename, using the "
41 "editor's nifty :ref:`editor_auto_complete` feature. And once you are done "
42 "typing the filename, press |ct| again and the cursor will jump to the "
43 "position in between the ``<a>`` tags so you can easily type in the text for "
44 "the link."
45 msgstr "Кроме того, будет выбрано слово ``filename`` с курсором, расположенным над ним, чтобы вы могли легко ввести настоящее имя файла, используя отличную функцию редактора :ref:`editor_auto_complete`. И как только вы закончите вводить имя файла, нажмите |ct| снова, и курсор переместится на позицию между тегами ``<a>``, чтобы вы могли легко ввести текст для ссылки."
46
47 #: ../../../__w/calibre/calibre/manual/snippets.rst:21
48 msgid ""
49 "The snippets system in the editor is very sophisticated, there are a few "
50 "built-in snippets and you can create your own to suit your editing style."
51 msgstr "Система фрагментов в редакторе очень сложна, есть несколько встроенных фрагментов, и вы можете создать свой собственный в соответствии со своим стилем редактирования."
52
53 #: ../../../__w/calibre/calibre/manual/snippets.rst:24
54 msgid ""
55 "The following discussion of the built-in snippets should help illustrate the"
56 " power of the snippets system."
57 msgstr "Следующее обсуждение встроенных фрагментов должно помочь проиллюстрировать мощь системы фрагментов."
58
59 #: ../../../__w/calibre/calibre/manual/snippets.rst:28
60 msgid ""
61 "You can also use snippets in the text entry fields in the :guilabel:`Search "
62 "& replace` panel, however, placeholders (using |ct| to jump around) will not"
63 " work."
64 msgstr "Вы также можете использовать фрагменты в полях ввода текста на панели :guilabel:`Search & replace`, однако заполнители (использующие |ct| для перемещения) не будут работать."
65
66 #: ../../../__w/calibre/calibre/manual/snippets.rst:33
67 msgid "The built-in snippets"
68 msgstr "Встроенные фрагменты"
69
70 #: ../../../__w/calibre/calibre/manual/snippets.rst:35
71 msgid ""
72 "The built-in snippets are described below. Note that you can override them "
73 "by creating your own snippets with the same trigger text."
74 msgstr "Встроенные фрагменты описаны ниже. Обратите внимание, что вы можете переопределить их, создав собственные фрагменты с тем же текстом триггера."
75
76 #: ../../../__w/calibre/calibre/manual/snippets.rst:39
77 msgid "Inserting filler text [Lorem]"
78 msgstr "Вставка заполнителя текста [Lorem]"
79
80 #: ../../../__w/calibre/calibre/manual/snippets.rst:41
81 msgid ""
82 "The first built-in snippet, and the simplest is used to insert filler text "
83 "into a document. The filler text is taken from `De finibus bonorum et "
84 "malorum <https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum>`_ a "
85 "philosophical work by Cicero (translated to English). To use it simply type "
86 "``Lorem`` in an HTML file and press |ct|. It will be replaced by a couple of"
87 " paragraphs of filler."
88 msgstr "Первый встроенный фрагмент и самый простой используется для вставки текста-заполнителя в документ. Текст заполнителя взят из `De finibus bonorum et malorum <https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum>`_ философского труда Цицерона (перевод на английский). Чтобы использовать его, просто наберите ``Lorem`` в HTML-файле и нажмите |ct|. Он будет заменен парой абзацев заполнителя."
89
90 #: ../../../__w/calibre/calibre/manual/snippets.rst:48
91 msgid ""
92 "The definition of this snippet is very simple, the trigger text is defined "
93 "as ``Lorem`` and the template is defined simply as the literal text to be "
94 "inserted. You can easily customize it to use your favorite form of filler "
95 "text."
96 msgstr "Определение этого фрагмента очень просто, текст триггера определяется как ``Lorem``, а шаблон определяется просто как текст, который нужно вставить. Вы можете легко настроить его, чтобы использовать вашу любимую форму текста заполнителя."
97
98 #: ../../../__w/calibre/calibre/manual/snippets.rst:53
99 msgid "Inserting a self-closing HTML tag [<>]"
100 msgstr "Вставка самозакрывающегося тега HTML [<>]"
101
102 #: ../../../__w/calibre/calibre/manual/snippets.rst:55
103 msgid ""
104 "Now let's look at a simple example of the powerful concept of "
105 "*placeholders*. Say you want to insert the self-closing tag ``<hr/>``. Just "
106 "type ``<>``, and press |ct|, the editor will expand the snippet to::"
107 msgstr "Теперь давайте рассмотрим простой пример мощной концепции *заполнителей*. Скажем, вы хотите вставить самозакрывающийся тег ``<hr/>``. Просто введите ``<>`` и нажмите |ct|, редактор расширит фрагмент до::"
108
109 #: ../../../__w/calibre/calibre/manual/snippets.rst:61
110 msgid ""
111 "Here, the ``|`` symbol represents the current cursor position. You can then "
112 "type ``hr`` and press |ct| to move the cursor to after the end of the tag. "
113 "This snippet is defined as::"
114 msgstr "Здесь символ ``|`` представляет текущую позицию курсора. Затем вы можете набрать ``hr`` и нажать |ct| переместить курсор в конец тега. Этот фрагмент определен как::"
115
116 #: ../../../__w/calibre/calibre/manual/snippets.rst:68
117 msgid ""
118 "Placeholders are simply the dollar ($) sign followed by a number. When the "
119 "snippet is expanded by pressing |ct| the cursor is positioned at the first "
120 "placeholder (the placeholder with the lowest number). When you press |ct| "
121 "again the cursor jumps to the next placeholder (the placeholder with the "
122 "next higher number)."
123 msgstr "Заполнители - это просто знак доллара ($), за которым следует число. Когда фрагмент раскрывается нажатием |ct| курсор помещается на первый заполнитель (заполнитель с наименьшим номером). Когда вы нажимаете |ct| снова курсор переходит к следующему заполнителю (заполнителю со следующим большим номером)."
124
125 #: ../../../__w/calibre/calibre/manual/snippets.rst:75
126 msgid "Inserting an HTML link tag [<a]"
127 msgstr "Вставить тег ссылка HTML [<a]"
128
129 #: ../../../__w/calibre/calibre/manual/snippets.rst:77
130 msgid ""
131 "HTML link tags all share a common structure. They have an ``href`` attribute"
132 " and some text between the opening and closing tags. A snippet to make "
133 "typing them more efficient will introduce us to some more features of "
134 "placeholders. To use this snippet, simply type ``<a`` and press |ct|. The "
135 "editor will expand this to::"
136 msgstr "Все теги HTML-ссылок имеют общую структуру. У них есть атрибут ``href`` и некоторый текст между открывающим и закрывающим тегами. Фрагмент для более эффективного их набора познакомит нас с некоторыми функциями заполнителей. Чтобы использовать этот фрагмент, просто введите ``<a`` и нажмите |ct|. Редактор расширит это до::"
137
138 #: ../../../__w/calibre/calibre/manual/snippets.rst:85
139 msgid ""
140 "Not only that, the word ``filename`` will be selected, with the cursor "
141 "placed over it, so that you can easily type in the real filename, using the "
142 "editor's nifty :ref:`editor_auto_complete` feature. And once you are done "
143 "typing the filename, press |ct| again and the cursor will jump to the "
144 "position in between the ``<a>`` tags so you can easily type in the text for "
145 "the link. After you are done typing the text, press |ct| again to jump to "
146 "the point after the closing tag. This snippet is defined as::"
147 msgstr "Кроме того, будет выбрано слово ``filename`` с курсором, расположенным над ним, чтобы вы могли легко ввести настоящее имя файла, используя отличную функцию редактора :ref:`editor_auto_complete`. И как только вы закончите вводить имя файла, нажмите |ct| снова, и курсор переместится на позицию между тегами ``<a>``, чтобы вы могли легко ввести текст для ссылки. После того, как вы закончите ввод текста, нажмите |ct| снова, чтобы перейти к точке после закрывающего тега. Этот фрагмент определен как ::"
148
149 #: ../../../__w/calibre/calibre/manual/snippets.rst:96
150 msgid ""
151 "There are a couple of new features here. First the ``$1`` placeholder has "
152 "become more complex. It now includes some *default text* (the word "
153 "``filename``). If a placeholder contains default text, the default text is "
154 "substituted for the placeholder when the snippet is expanded. Also when you "
155 "jump to a placeholder with default text using |ct|, the default text is "
156 "selected. In this way, you can use default text to act as a reminder to you "
157 "to fill in important parts of the template. You can specify default text for"
158 " a placeholder by using the syntax: ``${<number>:default text}``."
159 msgstr "Здесь есть пара новых функций. Сначала заполнитель ``$1`` стал более сложным. Теперь он включает в себя некоторый *текст по умолчанию* (слово ``filename``). Если заполнитель содержит текст по умолчанию, то текст по умолчанию заменяется заполнителем при раскрытии фрагмента. Также при переходе к заполнителю с текстом по умолчанию с помощью |ct| выбирается текст по умолчанию. Таким образом, вы можете использовать текст по умолчанию, чтобы напоминать вам о необходимости заполнения важных частей шаблона. Вы можете указать текст по умолчанию для заполнителя, используя синтаксис: ``${<number>:текст по умолчанию}``."
160
161 #: ../../../__w/calibre/calibre/manual/snippets.rst:105
162 msgid ""
163 "The other new feature is that the second placeholder has an asterisk after "
164 "it (``${2*}``). This means that any text that was selected before expanding "
165 "the template is substituted for the placeholder. To see this in action, "
166 "select some text in the editor, press |ct|, type ``<a`` and press |ct| "
167 "again, the template will be expanded to::"
168 msgstr "Другая новая особенность заключается в том, что второй заполнитель имеет звездочку после него (``${2*}``). Это означает, что любой текст, который был выбран перед расширением шаблона, заменяется заполнителем. Чтобы увидеть это в действии, выделите текст в редакторе, нажмите |ct|, введите ``<a`` и нажмите |ct| снова шаблон будет расширен до::"
169
170 #: ../../../__w/calibre/calibre/manual/snippets.rst:114
171 msgid "Inserting an HTML image tag [<i]"
172 msgstr "Вставить тег изображение HTML [<i]"
173
174 #: ../../../__w/calibre/calibre/manual/snippets.rst:116
175 msgid ""
176 "This is very similar to inserting an HTML link, as we saw above. It allows "
177 "you to quickly input an ``<img src=\"filename\" alt=\"description\" />`` tag"
178 " and jump between the ``src`` and ``alt`` attributes::"
179 msgstr "Это очень похоже на вставку HTML-ссылки, как мы видели выше. Он позволяет быстро вводить тег ``<img src=\"filename\" alt=\"description\" />`` и переходить между атрибутами ``src`` и ``alt``::"
180
181 #: ../../../__w/calibre/calibre/manual/snippets.rst:124
182 msgid "Insert an arbitrary HTML tag [<<]"
183 msgstr "Вставить произвольный тег HTML [<<]"
184
185 #: ../../../__w/calibre/calibre/manual/snippets.rst:126
186 msgid ""
187 "This allows you to insert an arbitrary full HTML tag (or wrap previously "
188 "selected text in the tag). To use it, simply type ``<<`` and press |ct|. If "
189 "you want to wrap selected text, first select the text, press |ct| then type "
190 "``<<`` and press |ct| again. The editor will expand it to::"
191 msgstr "Это позволяет вставлять произвольный полный тег HTML (или переносить ранее выделенный текст в теге). Чтобы использовать его, просто введите ``<<`` и нажмите |ct|. Если вы хотите обернуть выделенный текст, сначала выделите текст и нажмите |ct| затем введите ``<<`` и нажмите |ct| ещё раз. Редактор расширит его до::"
192
193 #: ../../../__w/calibre/calibre/manual/snippets.rst:134
194 msgid ""
195 "Type the tag name, for example: ``span`` and press |ct|, that will result "
196 "in::"
197 msgstr "Введите имя тега, напр.: ``span`` и нажмите |ct|, что приведёт к::"
198
199 #: ../../../__w/calibre/calibre/manual/snippets.rst:138
200 msgid ""
201 "You will note that the closing tag has been automatically filled with "
202 "``span``. This is achieved with yet another feature of placeholders, "
203 "*mirroring*. Mirroring simply means that if you specify the same placeholder"
204 " more than once in a template, the second and all later positions will be "
205 "automatically filled in with whatever you type in the first position, when "
206 "you press |ct|. The definition for this snippet is::"
207 msgstr "Вы заметите, что закрывающий тег был автоматически заполнен ``span``. Это достигается с помощью еще одной функции заполнителей, *зеркальное отображение*. Зеркалирование просто означает, что если вы указали образец заполнителя более одного раза в шаблоне, вторая и все последующие позиции будут автоматически заполнены тем, что вы вводите в первой позиции, когда вы нажимаете |ct|. Определение этого фрагмента::"
208
209 #: ../../../__w/calibre/calibre/manual/snippets.rst:148
210 msgid ""
211 "As you can see, the first placeholder ($1) has been specified twice, the "
212 "second time in the closing tag, which will simply copy whatever you type in "
213 "the opening tag."
214 msgstr "Как видите, первый заполнитель ($1) был указан дважды, второй раз в закрывающем теге, который просто скопирует всё, что вы введете в открывающий тег."
215
216 #: ../../../__w/calibre/calibre/manual/snippets.rst:153
217 msgid "Inserting an arbitrary HTML tag with a class attribute [<c]"
218 msgstr "Вставка произвольного тега HTML с атрибутом класса [<c]"
219
220 #: ../../../__w/calibre/calibre/manual/snippets.rst:155
221 msgid ""
222 "This is very similar to the insert arbitrary tag example above, except that "
223 "it assumes that you want to specify a class for the tag::"
224 msgstr "Это очень похоже на пример вставки произвольного тега выше, за исключением того, что предполагается, что вы хотите указать класс для тега::"
225
226 #: ../../../__w/calibre/calibre/manual/snippets.rst:161
227 msgid ""
228 "This will allow you to first type the tag name, press |ct|, type the class "
229 "name, press |ct| type the contents of the tag and press |ct| one last time "
230 "to jump out of the tag. The closing tag will be auto-filled."
231 msgstr "Это позволит вам сначала ввести имя тега, нажать |ct|, ввести имя класса, нажать |ct|, ввести содержимое тега и нажав |ct| в последний раз, выпрыгнуть из тега. Закрывающий тег будет заполнен автоматически."
232
233 #: ../../../__w/calibre/calibre/manual/snippets.rst:167
234 msgid "Creating your own snippets"
235 msgstr "Создание собственных фрагментов"
236
237 #: ../../../__w/calibre/calibre/manual/snippets.rst:169
238 msgid ""
239 "Snippets really shine because you can create your own to suit your editing "
240 "style. To create your own snippets go to "
241 ":guilabel:`Edit->Preferences->Editor settings->Manage snippets` in the "
242 "editor. This will pop-up an easy to use dialog to help you create your own "
243 "snippets. Simply click the :guilabel:`Add snippet` button and you will see a"
244 " dialog that looks like:"
245 msgstr "Фрагменты действительно блестящая вещь, потому что вы можете создать свой собственный, для соответствия своему стилю редактирования. Чтобы создать свои собственные фрагменты, перейдите в :guilabel:`Правка-> Настройки-> Параметры редактора-> Управлять фрагментами` в редакторе. Появится простой в использовании диалог, который поможет вам создать свои собственные фрагменты. Просто нажмите кнопку :guilabel:`Добавить фрагмент`, и вы увидите диалоговое окно, которое выглядит следующим образом:"
246
247 #: ../../../__w/calibre/calibre/manual/snippets.rst:175
248 msgid "The create your own snippets tool"
249 msgstr "Инструмент создания собственных сниппетов"
250
251 #: ../../../__w/calibre/calibre/manual/snippets.rst:180
252 msgid ""
253 "First give your snippet a name, something descriptive, to help identify the "
254 "snippet in the future. Then specify the *trigger*. A trigger is simply the "
255 "text that you have to type in the editor before pressing |ct| in order to "
256 "expand the snippet."
257 msgstr "Сначала дайте вашему фрагменту имя, что-то описательное, чтобы помочь идентифицировать фрагмент в будущем. Затем укажите *триггер*. Триггер - это просто текст, который вы должны напечатать в редакторе, прежде чем нажимать |ct| чтобы расширить фрагмент."
258
259 #: ../../../__w/calibre/calibre/manual/snippets.rst:185
260 msgid ""
261 "Then specify the snippet template. You should start with one of the examples"
262 " above and modify it to suit your needs. Finally, specify which file types "
263 "you want the snippet to be active for. This way you can have multiple "
264 "snippets with the same trigger text that work differently in different file "
265 "types."
266 msgstr "Затем укажите шаблон фрагмента. Начните с одного из приведенных выше примеров и измените его в соответствии со своими потребностями. Наконец, укажите, для каких типов файлов фрагмент будет активен. Таким образом, у вас может быть несколько фрагментов с одним и тем же текстом триггера, которые по-разному работают в разных типах файлов."
267
268 #: ../../../__w/calibre/calibre/manual/snippets.rst:190
269 msgid ""
270 "The next step is to test your newly created snippet. Use the "
271 ":guilabel:`Test` box at the bottom. Type in the trigger text and press |ct| "
272 "to expand the snippet and jump between placeholders."
273 msgstr "Следующим шагом является проверка вашего вновь созданного фрагмента. Используйте поле :guilabel:`Test` внизу. Введите текст триггера и нажмите |ct| чтобы расширить фрагмент и перейти между заполнителями."