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