Debian Codegraph @

translations/manual/sv/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 # Jonatan Nyberg, 2025
7 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2018,2020
8 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2020
9 # Jonatan Nyberg, 2025-2026
10 # Jonatan Nyberg, 2016-2017,2021,2026
11 # Jonatan Nyberg, 2019-2021
12 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2018
13 # Jonatan Nyberg, 2026
14 # Merarom <[email protected]>, 2015,2017
15 msgid ""
16 msgstr ""
17 "Project-Id-Version: calibre\n"
18 "Report-Msgid-Bugs-To: \n"
19 "POT-Creation-Date: 2026-09-16 15:05+0000\n"
20 "PO-Revision-Date: 2015-01-10 01:24+0000\n"
21 "Last-Translator: Merarom <[email protected]>, 2015,2017\n"
22 "Language-Team: Swedish (http://app.transifex.com/calibre/calibre/language/sv/)\n"
23 "MIME-Version: 1.0\n"
24 "Content-Type: text/plain; charset=UTF-8\n"
25 "Content-Transfer-Encoding: 8bit\n"
26 "Language: sv\n"
27 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
28
29 #: ../../../__w/calibre/calibre/manual/snippets.rst:2
30 msgid "Snippets"
31 msgstr "Kodavsnitt"
32
33 #: ../../../__w/calibre/calibre/manual/snippets.rst:6
34 msgid ""
35 "The calibre E-book editor supports *snippets*. A snippet is a piece of text "
36 "that is either re-used often or contains a lot of redundant text. The editor"
37 " allows you to insert a snippet with only a few key strokes. For example, "
38 "suppose you often find yourself inserting link tags when editing HTML files,"
39 " then you can simply type ``<a`` in the editor and press |ct|. The editor "
40 "will expand it to::"
41 msgstr "calibres e-bokredigerare stöder *kodavsnitt*. Ett kodavsnitt är ett textstycke som återanvänds ofta eller innehåller mycket upprepad text. Redigeraren låter dig infoga ett kodavsnitt med bara några få tangenttryckningar. Anta exempelvis att du ofta infogar länktaggar när du redigerar HTML-filer. Då kan du skriva ``<a`` i redigeraren och trycka på |ct|. Redigeraren expanderar texten till::"
42
43 #: ../../../__w/calibre/calibre/manual/snippets.rst:15
44 msgid ""
45 "Not only that, the word ``filename`` will be selected, with the cursor "
46 "placed over it, so that you can easily type in the real filename, using the "
47 "editor's nifty :ref:`editor_auto_complete` feature. And once you are done "
48 "typing the filename, press |ct| again and the cursor will jump to the "
49 "position in between the ``<a>`` tags so you can easily type in the text for "
50 "the link."
51 msgstr "Dessutom markeras ordet ``filename`` och markören placeras på det, så att du enkelt kan skriva in det verkliga filnamnet med hjälp av redigerarens praktiska :ref:`editor_auto_complete`-funktion. När du har skrivit filnamnet trycker du på |ct| igen. Markören flyttas då till platsen mellan ``<a>``-taggarna, där du enkelt kan skriva länktexten."
52
53 #: ../../../__w/calibre/calibre/manual/snippets.rst:21
54 msgid ""
55 "The snippets system in the editor is very sophisticated, there are a few "
56 "built-in snippets and you can create your own to suit your editing style."
57 msgstr "Kodavsnittssystemet i redigeraren är mycket avancerat. Det finns några inbyggda kodavsnitt, och du kan skapa egna som passar ditt sätt att arbeta."
58
59 #: ../../../__w/calibre/calibre/manual/snippets.rst:24
60 msgid ""
61 "The following discussion of the built-in snippets should help illustrate the"
62 " power of the snippets system."
63 msgstr "Genomgången av de inbyggda kodavsnitten nedan visar hur kraftfullt systemet är."
64
65 #: ../../../__w/calibre/calibre/manual/snippets.rst:28
66 msgid ""
67 "You can also use snippets in the text entry fields in the :guilabel:`Search "
68 "& replace` panel, however, placeholders (using |ct| to jump around) will not"
69 " work."
70 msgstr "Du kan också använda kodavsnitt i textfälten på panelen :guilabel:`Sök och ersätt`. Platshållare där du hoppar mellan positioner med |ct| fungerar dock inte där."
71
72 #: ../../../__w/calibre/calibre/manual/snippets.rst:33
73 msgid "The built-in snippets"
74 msgstr "Inbyggda kodavsnitt"
75
76 #: ../../../__w/calibre/calibre/manual/snippets.rst:35
77 msgid ""
78 "The built-in snippets are described below. Note that you can override them "
79 "by creating your own snippets with the same trigger text."
80 msgstr "De inbyggda kodavsnitten beskrivs nedan. Observera att du kan åsidosätta dem genom att skapa dina egna kodavsnitt med samma utlösartext."
81
82 #: ../../../__w/calibre/calibre/manual/snippets.rst:39
83 msgid "Inserting filler text [Lorem]"
84 msgstr "Infoga fyllnadstext [Lorem]"
85
86 #: ../../../__w/calibre/calibre/manual/snippets.rst:41
87 msgid ""
88 "The first built-in snippet, and the simplest is used to insert filler text "
89 "into a document. The filler text is taken from `De finibus bonorum et "
90 "malorum <https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum>`_ a "
91 "philosophical work by Cicero (translated to English). To use it simply type "
92 "``Lorem`` in an HTML file and press |ct|. It will be replaced by a couple of"
93 " paragraphs of filler."
94 msgstr "Det första inbyggda kodavsnittet, som också är det enklaste, används för att infoga fyllnadstext i ett dokument. Fyllnadstexten hämtas från `De finibus bonorum et malorum <https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum>`_, ett filosofiskt verk av Cicero som har översatts till engelska. För att använda kodavsnittet skriver du helt enkelt ``Lorem`` i en HTML-fil och trycker på |ct|. Texten ersätts då med ett par stycken fyllnadstext."
95
96 #: ../../../__w/calibre/calibre/manual/snippets.rst:48
97 msgid ""
98 "The definition of this snippet is very simple, the trigger text is defined "
99 "as ``Lorem`` and the template is defined simply as the literal text to be "
100 "inserted. You can easily customize it to use your favorite form of filler "
101 "text."
102 msgstr "Definitionen av kodavsnittet är mycket enkel. Utlösartexten är ``Lorem`` och mallen består av den bokstavliga text som ska infogas. Du kan enkelt byta ut den mot den fyllnadstext du föredrar."
103
104 #: ../../../__w/calibre/calibre/manual/snippets.rst:53
105 msgid "Inserting a self-closing HTML tag [<>]"
106 msgstr "Infoga en självstängande HTML-tagg [<>]"
107
108 #: ../../../__w/calibre/calibre/manual/snippets.rst:55
109 msgid ""
110 "Now let's look at a simple example of the powerful concept of "
111 "*placeholders*. Say you want to insert the self-closing tag ``<hr/>``. Just "
112 "type ``<>``, and press |ct|, the editor will expand the snippet to::"
113 msgstr "Nu tittar vi på ett enkelt exempel på det kraftfulla begreppet *platshållare*. Anta att du vill infoga den självstängande taggen ``<hr/>``. Skriv ``<>`` och tryck på |ct|, så expanderar redigeraren kodavsnittet till::"
114
115 #: ../../../__w/calibre/calibre/manual/snippets.rst:61
116 msgid ""
117 "Here, the ``|`` symbol represents the current cursor position. You can then "
118 "type ``hr`` and press |ct| to move the cursor to after the end of the tag. "
119 "This snippet is defined as::"
120 msgstr "Här anger symbolen ``|`` markörens aktuella position. Skriv ``hr`` och tryck på |ct| för att flytta markören till positionen efter taggen. Kodavsnittet definieras så här::"
121
122 #: ../../../__w/calibre/calibre/manual/snippets.rst:68
123 msgid ""
124 "Placeholders are simply the dollar ($) sign followed by a number. When the "
125 "snippet is expanded by pressing |ct| the cursor is positioned at the first "
126 "placeholder (the placeholder with the lowest number). When you press |ct| "
127 "again the cursor jumps to the next placeholder (the placeholder with the "
128 "next higher number)."
129 msgstr "Platshållare består av ett dollartecken ($) följt av ett tal. När kodavsnittet expanderas med |ct| placeras markören vid den första platshållaren, alltså den med lägst nummer. Nästa gång du trycker på |ct| flyttas markören till platshållaren med närmast högre nummer."
130
131 #: ../../../__w/calibre/calibre/manual/snippets.rst:75
132 msgid "Inserting an HTML link tag [<a]"
133 msgstr "Infoga en HTML-länktagg [<a]"
134
135 #: ../../../__w/calibre/calibre/manual/snippets.rst:77
136 msgid ""
137 "HTML link tags all share a common structure. They have an ``href`` attribute"
138 " and some text between the opening and closing tags. A snippet to make "
139 "typing them more efficient will introduce us to some more features of "
140 "placeholders. To use this snippet, simply type ``<a`` and press |ct|. The "
141 "editor will expand this to::"
142 msgstr "Alla HTML-länktaggar har samma grundstruktur: ett ``href``-attribut och text mellan start- och sluttaggen. Ett kodavsnitt som effektiviserar inmatningen visar samtidigt fler funktioner hos platshållare. Skriv ``<a`` och tryck på |ct|, så expanderar redigeraren kodavsnittet till::"
143
144 #: ../../../__w/calibre/calibre/manual/snippets.rst:85
145 msgid ""
146 "Not only that, the word ``filename`` will be selected, with the cursor "
147 "placed over it, so that you can easily type in the real filename, using the "
148 "editor's nifty :ref:`editor_auto_complete` feature. And once you are done "
149 "typing the filename, press |ct| again and the cursor will jump to the "
150 "position in between the ``<a>`` tags so you can easily type in the text for "
151 "the link. After you are done typing the text, press |ct| again to jump to "
152 "the point after the closing tag. This snippet is defined as::"
153 msgstr "Dessutom markeras ordet ``filename`` och markören placeras på det, så att du enkelt kan skriva det verkliga filnamnet med redigerarens praktiska :ref:`editor_auto_complete`-funktion. När filnamnet är klart trycker du på |ct| igen. Markören flyttas då till positionen mellan ``<a>``-taggarna, där du skriver länktexten. Tryck på |ct| ännu en gång för att flytta markören till positionen efter sluttaggen. Kodavsnittet definieras så här::"
154
155 #: ../../../__w/calibre/calibre/manual/snippets.rst:96
156 msgid ""
157 "There are a couple of new features here. First the ``$1`` placeholder has "
158 "become more complex. It now includes some *default text* (the word "
159 "``filename``). If a placeholder contains default text, the default text is "
160 "substituted for the placeholder when the snippet is expanded. Also when you "
161 "jump to a placeholder with default text using |ct|, the default text is "
162 "selected. In this way, you can use default text to act as a reminder to you "
163 "to fill in important parts of the template. You can specify default text for"
164 " a placeholder by using the syntax: ``${<number>:default text}``."
165 msgstr "Här finns ett par nya funktioner. Platshållaren ``$1`` har blivit mer avancerad och innehåller nu *standardtexten* ``filename``. När kodavsnittet expanderas ersätter standardtexten platshållaren. När du sedan hoppar till platshållaren med |ct| markeras standardtexten. Den kan därför fungera som en påminnelse om att fylla i viktiga delar av mallen. Standardtext anges med syntaxen ``${<number>:default text}``."
166
167 #: ../../../__w/calibre/calibre/manual/snippets.rst:105
168 msgid ""
169 "The other new feature is that the second placeholder has an asterisk after "
170 "it (``${2*}``). This means that any text that was selected before expanding "
171 "the template is substituted for the placeholder. To see this in action, "
172 "select some text in the editor, press |ct|, type ``<a`` and press |ct| "
173 "again, the template will be expanded to::"
174 msgstr "Den andra nyheten är asterisken efter den andra platshållaren (``${2*}``). Den innebär att text som var markerad innan mallen expanderades infogas i platshållaren. Prova genom att markera text i redigeraren, trycka på |ct|, skriva ``<a`` och trycka på |ct| igen. Mallen expanderas då till::"
175
176 #: ../../../__w/calibre/calibre/manual/snippets.rst:114
177 msgid "Inserting an HTML image tag [<i]"
178 msgstr "Infoga en HTML-bildtagg [<i]"
179
180 #: ../../../__w/calibre/calibre/manual/snippets.rst:116
181 msgid ""
182 "This is very similar to inserting an HTML link, as we saw above. It allows "
183 "you to quickly input an ``<img src=\"filename\" alt=\"description\" />`` tag"
184 " and jump between the ``src`` and ``alt`` attributes::"
185 msgstr "Detta fungerar ungefär som att infoga en HTML-länk, vilket vi såg ovan. Du kan snabbt infoga taggen ``<img src=\"filename\" alt=\"description\" />`` och hoppa mellan attributen ``src`` och ``alt``::"
186
187 #: ../../../__w/calibre/calibre/manual/snippets.rst:124
188 msgid "Insert an arbitrary HTML tag [<<]"
189 msgstr "Infoga en godtycklig HTML-tagg [<<]"
190
191 #: ../../../__w/calibre/calibre/manual/snippets.rst:126
192 msgid ""
193 "This allows you to insert an arbitrary full HTML tag (or wrap previously "
194 "selected text in the tag). To use it, simply type ``<<`` and press |ct|. If "
195 "you want to wrap selected text, first select the text, press |ct| then type "
196 "``<<`` and press |ct| again. The editor will expand it to::"
197 msgstr "Med detta kodavsnitt kan du infoga en valfri fullständig HTML-tagg eller omsluta tidigare markerad text med taggen. Skriv ``<<`` och tryck på |ct|. Om du vill omsluta markerad text markerar du den först, trycker på |ct|, skriver ``<<`` och trycker på |ct| igen. Redigeraren expanderar kodavsnittet till::"
198
199 #: ../../../__w/calibre/calibre/manual/snippets.rst:134
200 msgid ""
201 "Type the tag name, for example: ``span`` and press |ct|, that will result "
202 "in::"
203 msgstr "Skriv taggnamnet, till exempel ``span``, och tryck på |ct|. Resultatet blir::"
204
205 #: ../../../__w/calibre/calibre/manual/snippets.rst:138
206 msgid ""
207 "You will note that the closing tag has been automatically filled with "
208 "``span``. This is achieved with yet another feature of placeholders, "
209 "*mirroring*. Mirroring simply means that if you specify the same placeholder"
210 " more than once in a template, the second and all later positions will be "
211 "automatically filled in with whatever you type in the first position, when "
212 "you press |ct|. The definition for this snippet is::"
213 msgstr "Du märker att sluttaggen automatiskt har fyllts i med ``span``. Det görs med en annan platshållarfunktion: *spegling*. Om samma platshållare anges flera gånger i en mall fylls den andra och alla senare förekomster automatiskt i med det du skrev vid den första positionen när du trycker på |ct|. Kodavsnittet definieras så här::"
214
215 #: ../../../__w/calibre/calibre/manual/snippets.rst:148
216 msgid ""
217 "As you can see, the first placeholder ($1) has been specified twice, the "
218 "second time in the closing tag, which will simply copy whatever you type in "
219 "the opening tag."
220 msgstr "Som du ser har den första platshållaren ($1) angetts två gånger. Den andra förekomsten finns i sluttaggen och kopierar helt enkelt det du skriver i starttaggen."
221
222 #: ../../../__w/calibre/calibre/manual/snippets.rst:153
223 msgid "Inserting an arbitrary HTML tag with a class attribute [<c]"
224 msgstr "Infoga en godtycklig HTML-tagg med ett klassattribut [<c]"
225
226 #: ../../../__w/calibre/calibre/manual/snippets.rst:155
227 msgid ""
228 "This is very similar to the insert arbitrary tag example above, except that "
229 "it assumes that you want to specify a class for the tag::"
230 msgstr "Detta liknar exemplet ovan för att infoga en godtycklig tagg, men förutsätter att du vill ange en klass för taggen::"
231
232 #: ../../../__w/calibre/calibre/manual/snippets.rst:161
233 msgid ""
234 "This will allow you to first type the tag name, press |ct|, type the class "
235 "name, press |ct| type the contents of the tag and press |ct| one last time "
236 "to jump out of the tag. The closing tag will be auto-filled."
237 msgstr "Du kan först skriva taggnamnet, trycka på |ct|, skriva klassnamnet, trycka på |ct|, skriva taggens innehåll och slutligen trycka på |ct| för att flytta markören utanför taggen. Sluttaggen fylls i automatiskt."
238
239 #: ../../../__w/calibre/calibre/manual/snippets.rst:167
240 msgid "Creating your own snippets"
241 msgstr "Skapa dina egna kodavsnitt"
242
243 #: ../../../__w/calibre/calibre/manual/snippets.rst:169
244 msgid ""
245 "Snippets really shine because you can create your own to suit your editing "
246 "style. To create your own snippets go to "
247 ":guilabel:`Edit->Preferences->Editor settings->Manage snippets` in the "
248 "editor. This will pop-up an easy to use dialog to help you create your own "
249 "snippets. Simply click the :guilabel:`Add snippet` button and you will see a"
250 " dialog that looks like:"
251 msgstr "Kodavsnitt blir särskilt användbara eftersom du kan skapa egna som passar ditt arbetssätt. Gå till :guilabel:`Redigera->Inställningar->Redigerarinställningar->Hantera kodavsnitt` i redigeraren. Då öppnas en lättanvänd dialogruta. Klicka på :guilabel:`Lägg till kodavsnitt` för att visa följande dialogruta:"
252
253 #: ../../../__w/calibre/calibre/manual/snippets.rst:175
254 msgid "The create your own snippets tool"
255 msgstr "Verktyget för att skapa egna kodavsnitt"
256
257 #: ../../../__w/calibre/calibre/manual/snippets.rst:180
258 msgid ""
259 "First give your snippet a name, something descriptive, to help identify the "
260 "snippet in the future. Then specify the *trigger*. A trigger is simply the "
261 "text that you have to type in the editor before pressing |ct| in order to "
262 "expand the snippet."
263 msgstr "Ge först kodavsnittet ett beskrivande namn så att du kan identifiera det senare. Ange sedan *utlösaren*, alltså den text som ska skrivas i redigeraren innan du trycker på |ct| för att expandera kodavsnittet."
264
265 #: ../../../__w/calibre/calibre/manual/snippets.rst:185
266 msgid ""
267 "Then specify the snippet template. You should start with one of the examples"
268 " above and modify it to suit your needs. Finally, specify which file types "
269 "you want the snippet to be active for. This way you can have multiple "
270 "snippets with the same trigger text that work differently in different file "
271 "types."
272 msgstr "Ange sedan kodavsnittets mall. Utgå gärna från något av exemplen ovan och anpassa det efter dina behov. Ange slutligen vilka filtyper kodavsnittet ska vara aktivt för. På så sätt kan flera kodavsnitt ha samma utlösartext men fungera olika i olika filtyper."
273
274 #: ../../../__w/calibre/calibre/manual/snippets.rst:190
275 msgid ""
276 "The next step is to test your newly created snippet. Use the "
277 ":guilabel:`Test` box at the bottom. Type in the trigger text and press |ct| "
278 "to expand the snippet and jump between placeholders."
279 msgstr "Nästa steg är att testa det nya kodavsnittet. Använd rutan :guilabel:`Test` längst ned. Skriv utlösartexten och tryck på |ct| för att expandera kodavsnittet och hoppa mellan platshållarna."