| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
# Translators: |
| 7 |
# Merarom <[email protected]>, 2018 |
| 8 |
# efef6ec5b435a041fce803c7f8af77d2_2341d43, 2026 |
| 9 |
# Jonatan Nyberg, 2026 |
| 10 |
# |
| 11 |
#, fuzzy |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: calibre 9.11.104\n" |
| 15 |
"Report-Msgid-Bugs-To: \n" |
| 16 |
"POT-Creation-Date: 2026-07-30 18:07+0000\n" |
| 17 |
"PO-Revision-Date: 2017-12-15 03:02+0000\n" |
| 18 |
"Last-Translator: Jonatan Nyberg, 2026\n" |
| 19 |
"Language-Team: Swedish (https://app.transifex.com/calibre/teams/19337/sv/)\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Language: sv\n" |
| 24 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 25 |
|
| 26 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2 |
| 27 |
msgid "Quick reference for regexp syntax" |
| 28 |
msgstr "Snabbreferens för regexp-syntax" |
| 29 |
|
| 30 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4 |
| 31 |
msgid "" |
| 32 |
"This checklist summarizes the most commonly used/hard to remember parts of " |
| 33 |
"the regexp engine available in most parts of calibre." |
| 34 |
msgstr "" |
| 35 |
"Denna checklista sammanfattar de vanligaste/svåra att komma ihåg delar av " |
| 36 |
"regexp-motorn som finns i de flesta delar av calibre." |
| 37 |
|
| 38 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:10 |
| 39 |
msgid "Contents" |
| 40 |
msgstr "Innehåll" |
| 41 |
|
| 42 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13 |
| 43 |
msgid "Character classes" |
| 44 |
msgstr "Teckenklasser" |
| 45 |
|
| 46 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:15 |
| 47 |
msgid "" |
| 48 |
"Character classes are useful to represent different groups of characters, " |
| 49 |
"succinctly." |
| 50 |
msgstr "" |
| 51 |
"Teckenklasser är användbara för att representera olika grupper av tecken, " |
| 52 |
"kortfattat." |
| 53 |
|
| 54 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18 |
| 55 |
msgid "Examples:" |
| 56 |
msgstr "Exempel:" |
| 57 |
|
| 58 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 59 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 60 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 61 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 62 |
msgid "**Representation**" |
| 63 |
msgstr "**Notation**" |
| 64 |
|
| 65 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 66 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 67 |
msgid "**Class**" |
| 68 |
msgstr "**Klass**" |
| 69 |
|
| 70 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 71 |
msgid "``[a-z]``" |
| 72 |
msgstr "``[a-z]``" |
| 73 |
|
| 74 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 75 |
msgid "" |
| 76 |
"Lowercase letters. Does not include characters with accent mark and " |
| 77 |
"ligatures" |
| 78 |
msgstr "Gemener. Innehåller inte tecken med accentmärke och ligaturer" |
| 79 |
|
| 80 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 81 |
msgid "``[a-z0-9]``" |
| 82 |
msgstr "``[a-z0-9]``" |
| 83 |
|
| 84 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 85 |
msgid "Lowercase letters from a to z or numbers from 0 to 9" |
| 86 |
msgstr "Gemener från a till z eller siffror från 0 till 9" |
| 87 |
|
| 88 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 89 |
msgid "``[A-Za-z-]``" |
| 90 |
msgstr "``[A-Za-z-]``" |
| 91 |
|
| 92 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 93 |
msgid "" |
| 94 |
"Uppercase or lowercase letters, or a dash. To include the dash in a class, " |
| 95 |
"you must put it at the beginning or at the end so as not to confuse it with " |
| 96 |
"the hyphen that specifies a range of characters" |
| 97 |
msgstr "" |
| 98 |
"Versaler eller gemener eller ett streck. För att inkludera bindestreck i en " |
| 99 |
"klass måste du lägga den i början eller i slutet för att inte förvirra den " |
| 100 |
"med bindestrecket som anger ett antal tecken" |
| 101 |
|
| 102 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 103 |
msgid "``[^0-9]``" |
| 104 |
msgstr "``[^0-9]``" |
| 105 |
|
| 106 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 107 |
msgid "" |
| 108 |
"Any character except a digit. The caret (^) placed at the beginning of the " |
| 109 |
"class excludes the characters of the class (complemented class)" |
| 110 |
msgstr "" |
| 111 |
"Alla tecken utom en siffra. Insättningstecknet (^) placerad i början av " |
| 112 |
"klassen exkluderar tecknena i klassen (kompletterad klass)" |
| 113 |
|
| 114 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 115 |
msgid "``[[a-z]--[aeiouy]]``" |
| 116 |
msgstr "``[[a-z]--[aeiouy]]``" |
| 117 |
|
| 118 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 119 |
msgid "" |
| 120 |
"The lowercase consonants. A class can be included in a class. The characters" |
| 121 |
" ``--`` exclude what follows them" |
| 122 |
msgstr "" |
| 123 |
"Konsonanterna för gemener. En klass kan ingå i en klass. Tecknet ``--`` " |
| 124 |
"exkluderar vad som följer dem" |
| 125 |
|
| 126 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 127 |
msgid "``[\\w--[\\d_]]``" |
| 128 |
msgstr "``[\\w--[\\d_]]``" |
| 129 |
|
| 130 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 131 |
msgid "" |
| 132 |
"All letters (including foreign accented characters). Abbreviated classes can" |
| 133 |
" be used inside a class" |
| 134 |
msgstr "" |
| 135 |
"Alla bokstäver (inklusive utländska accenttecken). Förkortade klasser kan " |
| 136 |
"användas inom en klass" |
| 137 |
|
| 138 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44 |
| 139 |
msgid "Example::" |
| 140 |
msgstr "Exempel::" |
| 141 |
|
| 142 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49 |
| 143 |
msgid "Shorthand character classes" |
| 144 |
msgstr "Förkortade teckenklasser" |
| 145 |
|
| 146 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 147 |
msgid "``\\d``" |
| 148 |
msgstr "``\\d``" |
| 149 |
|
| 150 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 151 |
msgid "A digit (same as ``[0-9]``)" |
| 152 |
msgstr "En siffra (samma som ``[0-9]``)" |
| 153 |
|
| 154 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 155 |
msgid "``\\D``" |
| 156 |
msgstr "``\\D``" |
| 157 |
|
| 158 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 159 |
msgid "Any non-numeric character (same as ``[^0-9]``)" |
| 160 |
msgstr "Alla icke-numeriska tecken (samma som ``[^0-9]``)" |
| 161 |
|
| 162 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 163 |
msgid "``\\w``" |
| 164 |
msgstr "``\\w``" |
| 165 |
|
| 166 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 167 |
msgid "" |
| 168 |
"An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent" |
| 169 |
" mark and ligatures" |
| 170 |
msgstr "" |
| 171 |
"Ett alfanumeriskt tecken (``[a-zA-Z0-9]``) inklusive tecken med accentmärke " |
| 172 |
"och ligaturer" |
| 173 |
|
| 174 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 175 |
msgid "``\\W``" |
| 176 |
msgstr "``\\W``" |
| 177 |
|
| 178 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 179 |
msgid "Any “non-word” character" |
| 180 |
msgstr "Alla \"icke-ordet\" tecken" |
| 181 |
|
| 182 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 183 |
msgid "``\\s``" |
| 184 |
msgstr "``\\s``" |
| 185 |
|
| 186 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 187 |
msgid "Space, non-breaking space, tab, carriage return" |
| 188 |
msgstr "Mellanslag, fast mellanslag, tabb, carriage return" |
| 189 |
|
| 190 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 191 |
msgid "``\\S``" |
| 192 |
msgstr "``\\S``" |
| 193 |
|
| 194 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 195 |
msgid "Any “non-whitespace” character" |
| 196 |
msgstr "Alla \"icke-whitespace\" tecken" |
| 197 |
|
| 198 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 199 |
msgid "``.``" |
| 200 |
msgstr "``.``" |
| 201 |
|
| 202 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 203 |
msgid "" |
| 204 |
"Any character except newline. Use the “dot all” checkbox or the ``(?s)`` " |
| 205 |
"regexp modifier to include the newline character." |
| 206 |
msgstr "" |
| 207 |
"Alla tecken utom nyrad. Använd kryssrutan \"punkta alla\" eller regexp-" |
| 208 |
"modifieraren ``(?s)`` för att inkludera nyradstecken." |
| 209 |
|
| 210 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73 |
| 211 |
msgid "The quantifiers" |
| 212 |
msgstr "Kvantifierare" |
| 213 |
|
| 214 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 215 |
msgid "**Quantifier**" |
| 216 |
msgstr "**Kvantifierare**" |
| 217 |
|
| 218 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 219 |
msgid "**Number of occurrences of the expression preceding the quantifier**" |
| 220 |
msgstr "** Antal förekomster av uttrycket som föregår kvantifieraren **" |
| 221 |
|
| 222 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 223 |
msgid "``?``" |
| 224 |
msgstr "``?``" |
| 225 |
|
| 226 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 227 |
msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``" |
| 228 |
msgstr "0 eller 1 förekomst av uttrycket. Samma som ``{0,1}``" |
| 229 |
|
| 230 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 231 |
msgid "``+``" |
| 232 |
msgstr "``+``" |
| 233 |
|
| 234 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 235 |
msgid "1 or more occurrences of the expression. Same as ``{1,}``" |
| 236 |
msgstr "1 eller flera förekomster av uttrycket. Samma som ``{1,}``" |
| 237 |
|
| 238 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 239 |
msgid "``*``" |
| 240 |
msgstr "``*``" |
| 241 |
|
| 242 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 243 |
msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``" |
| 244 |
msgstr "0, 1 eller flera förekomster av uttrycket. Samma som ``{0,}``" |
| 245 |
|
| 246 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 247 |
msgid "``{n}``" |
| 248 |
msgstr "``{n}``" |
| 249 |
|
| 250 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 251 |
msgid "Exactly n occurrences of the expression" |
| 252 |
msgstr "Exakt n förekomster av uttrycket" |
| 253 |
|
| 254 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 255 |
msgid "``{min,max}``" |
| 256 |
msgstr "``{min,max}``" |
| 257 |
|
| 258 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 259 |
msgid "Number of occurrences between the minimum and maximum values included" |
| 260 |
msgstr "Antal förekomster mellan de minsta och högsta värdena som ingår" |
| 261 |
|
| 262 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 263 |
msgid "``{min,}``" |
| 264 |
msgstr "``{min,}``" |
| 265 |
|
| 266 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 267 |
msgid "Number of occurrences between the minimum value included and infinity" |
| 268 |
msgstr "" |
| 269 |
"Antal förekomster mellan det minsta inkluderade värdet och oändligheten" |
| 270 |
|
| 271 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 272 |
msgid "``{,max}``" |
| 273 |
msgstr "``{,max}``" |
| 274 |
|
| 275 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 276 |
msgid "Number of occurrences between 0 and the maximum value included" |
| 277 |
msgstr "Antal förekomster mellan 0 och det högsta värdet som ingår" |
| 278 |
|
| 279 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97 |
| 280 |
msgid "Greed" |
| 281 |
msgstr "Girig" |
| 282 |
|
| 283 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99 |
| 284 |
msgid "" |
| 285 |
"By default, with quantifiers, the regular expression engine is greedy: it " |
| 286 |
"extends the selection as much as possible. This often causes surprises, at " |
| 287 |
"first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the " |
| 288 |
"same expression, the result can be unpredictable." |
| 289 |
msgstr "" |
| 290 |
"Som standard, med kvantifierare, är den reguljär uttrycksmotorn girig: den " |
| 291 |
"utökar valet så mycket som möjligt. Detta orsakar ofta överraskningar i " |
| 292 |
"början. ``?`` följer en kvantifierare för att göra den lat. Undvik att sätta" |
| 293 |
" två i samma uttryck, resultatet kan vara oförutsägbart." |
| 294 |
|
| 295 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104 |
| 296 |
msgid "" |
| 297 |
"Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it " |
| 298 |
"exponentially increases processing time." |
| 299 |
msgstr "" |
| 300 |
"Se upp för häckande kvantifierare, till exempel mönstret ``(a*)*`` eftersom " |
| 301 |
"det exponentiellt ökar bearbetningstiden." |
| 302 |
|
| 303 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108 |
| 304 |
msgid "Alternation" |
| 305 |
msgstr "Alternering" |
| 306 |
|
| 307 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110 |
| 308 |
msgid "" |
| 309 |
"The ``|`` character in a regular expression is a logical ``OR``. It means " |
| 310 |
"that either the preceding or the following expression can match." |
| 311 |
msgstr "" |
| 312 |
"Tecknet ``|`` i ett reguljärt uttryck är ett logiskt ``OR``. Det betyder att" |
| 313 |
" antingen föregående eller följande uttryck kan matcha." |
| 314 |
|
| 315 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114 |
| 316 |
msgid "Exclusion" |
| 317 |
msgstr "Uteslutning" |
| 318 |
|
| 319 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116 |
| 320 |
msgid "Method 1" |
| 321 |
msgstr "Metod 1" |
| 322 |
|
| 323 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118 |
| 324 |
msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 325 |
msgstr "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 326 |
|
| 327 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120 |
| 328 |
msgid "Example:" |
| 329 |
msgstr "Exempel:" |
| 330 |
|
| 331 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122 |
| 332 |
msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 333 |
msgstr "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 334 |
|
| 335 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124 |
| 336 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132 |
| 337 |
msgid "" |
| 338 |
"selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in " |
| 339 |
"\"Blabla\"." |
| 340 |
msgstr "" |
| 341 |
"väljer Blabla, i strängarna Blabla eller \"Blabla eller Blabla\", men inte i" |
| 342 |
" \"Blabla\"." |
| 343 |
|
| 344 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126 |
| 345 |
msgid "Method 2" |
| 346 |
msgstr "Metod 2" |
| 347 |
|
| 348 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128 |
| 349 |
msgid "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 350 |
msgstr "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 351 |
|
| 352 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130 |
| 353 |
msgid "``\"Blabla\"\\K|(Blabla)``" |
| 354 |
msgstr "``\"Blabla\"\\K|(Blabla)``" |
| 355 |
|
| 356 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135 |
| 357 |
msgid "Anchors" |
| 358 |
msgstr "Ankaren" |
| 359 |
|
| 360 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:137 |
| 361 |
msgid "" |
| 362 |
"An anchor is a way to match a logical location in a string, rather than a " |
| 363 |
"character. The most useful anchors for text processing are:" |
| 364 |
msgstr "" |
| 365 |
"Ett ankare är ett sätt att matcha en logisk plats i en sträng, snarare än " |
| 366 |
"ett tecken. De användbaraste ankare för textbehandling är:" |
| 367 |
|
| 368 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:140 |
| 369 |
msgid "``\\b``" |
| 370 |
msgstr "``\\b``" |
| 371 |
|
| 372 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:141 |
| 373 |
msgid "" |
| 374 |
"Designates a word boundary, i.e. a transition from space to non-space " |
| 375 |
"character. For example, you can use ``\\bsurd`` to match ``the surd`` but " |
| 376 |
"not ``absurd``." |
| 377 |
msgstr "" |
| 378 |
"Betecknar en ordgräns, dvs. en övergång från blanktecken till icke-" |
| 379 |
"blanktecken. Du kan till exempel använda ``\\bsurd`` för att matcha ``the " |
| 380 |
"surd`` men inte ``absurd``." |
| 381 |
|
| 382 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145 |
| 383 |
msgid "``^``" |
| 384 |
msgstr "``^``" |
| 385 |
|
| 386 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146 |
| 387 |
msgid "Matches the start of a line (in multi-line mode, which is the default)" |
| 388 |
msgstr "Matchar början av en rad (i flerradsläge, vilket är standard)" |
| 389 |
|
| 390 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149 |
| 391 |
msgid "``$``" |
| 392 |
msgstr "``$``" |
| 393 |
|
| 394 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150 |
| 395 |
msgid "Matches the end of a line (in multi-line mode, which is the default)" |
| 396 |
msgstr "Matchar slutet av en rad (i flerradsläge, vilket är standard)" |
| 397 |
|
| 398 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152 |
| 399 |
msgid "``\\K``" |
| 400 |
msgstr "``\\K``" |
| 401 |
|
| 402 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153 |
| 403 |
msgid "" |
| 404 |
"Resets the start position of the selection to its position in the pattern. " |
| 405 |
"Some regexp engines (but not calibre) do not allow lookbehind of variable " |
| 406 |
"length, especially with quantifiers. When you can use ``\\K`` with these " |
| 407 |
"engines, it also allows you to get rid of this limit by writing the " |
| 408 |
"equivalent of a positive lookbehind of variable length." |
| 409 |
msgstr "" |
| 410 |
"Återställer startpositionen för valet till dess position i mönstret. Vissa " |
| 411 |
"regexp-motorer (men inte calibre) tillåter inte lookbehind av varierande " |
| 412 |
"längd, särskilt med kvantifierare. När du kan använda ``\\K`` med dessa " |
| 413 |
"motorer låter det dig också bli av med denna gräns genom att skriva " |
| 414 |
"motsvarande ett positivt lookbehind variabel längd." |
| 415 |
|
| 416 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160 |
| 417 |
msgid "Groups" |
| 418 |
msgstr "Grupper" |
| 419 |
|
| 420 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162 |
| 421 |
msgid "``(expression)``" |
| 422 |
msgstr "``(uttryck)``" |
| 423 |
|
| 424 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163 |
| 425 |
msgid "" |
| 426 |
"Capturing group, which stores the selection and can be recalled later in the" |
| 427 |
" *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence " |
| 428 |
"number of the capturing group (starting at 1 in reading order)" |
| 429 |
msgstr "" |
| 430 |
"Fångstgrupp som lagrar matchningen. Den kan återanvändas senare i *sök-* " |
| 431 |
"eller *ersättningsmönstret* med ``\\n``, där ``n`` är fångstgruppens " |
| 432 |
"ordningsnummer (från 1 i läsordning)." |
| 433 |
|
| 434 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167 |
| 435 |
msgid "``(?:expression)``" |
| 436 |
msgstr "``(?:expression)``" |
| 437 |
|
| 438 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168 |
| 439 |
msgid "Group that does not capture the selection" |
| 440 |
msgstr "Grupp som inte fångar markeringen" |
| 441 |
|
| 442 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170 |
| 443 |
msgid "``(?>expression)``" |
| 444 |
msgstr "``(?>expression)``" |
| 445 |
|
| 446 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171 |
| 447 |
msgid "" |
| 448 |
"Atomic Group: As soon as the expression is satisfied, the regexp engine " |
| 449 |
"passes, and if the rest of the pattern fails, it will not backtrack to try " |
| 450 |
"other combinations with the expression. Atomic groups do not capture." |
| 451 |
msgstr "" |
| 452 |
"Atomgrupp: Så snart uttrycket har matchats fortsätter motorn. Om resten av " |
| 453 |
"mönstret sedan misslyckas går den inte tillbaka in i atomgruppen för att " |
| 454 |
"prova andra kombinationer. Atomgrupper fångar inte." |
| 455 |
|
| 456 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176 |
| 457 |
msgid "``(?|expression)``" |
| 458 |
msgstr "``(?|expression)``" |
| 459 |
|
| 460 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177 |
| 461 |
msgid "" |
| 462 |
"Branch reset group: the branches of the alternations included in the " |
| 463 |
"expression share the same group numbers" |
| 464 |
msgstr "" |
| 465 |
"Gruppåterställningsgrupp: grenarna för alternationerna som ingår i uttrycket" |
| 466 |
" delar samma gruppnummer" |
| 467 |
|
| 468 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180 |
| 469 |
msgid "``(?<name>expression)``" |
| 470 |
msgstr "``(?<name>expression)``" |
| 471 |
|
| 472 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181 |
| 473 |
msgid "" |
| 474 |
"Group named “name”. The selection can be recalled later in the *search* " |
| 475 |
"pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two " |
| 476 |
"different groups can use the same name." |
| 477 |
msgstr "" |
| 478 |
"Grupp som heter \"name\". Urvalet kan återanropas senare i *sök*-mönstret " |
| 479 |
"med ``(?P=name)`` och i *ersätt* med ``\\g<name>``. Två olika grupper kan " |
| 480 |
"använda samma namn." |
| 481 |
|
| 482 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187 |
| 483 |
msgid "Lookarounds" |
| 484 |
msgstr "Lookarounds" |
| 485 |
|
| 486 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 487 |
msgid "**Lookaround**" |
| 488 |
msgstr "**Lookaround**" |
| 489 |
|
| 490 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 491 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 492 |
msgid "**Meaning**" |
| 493 |
msgstr "**Betydelse**" |
| 494 |
|
| 495 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 496 |
msgid "``?=``" |
| 497 |
msgstr "``?=``" |
| 498 |
|
| 499 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 500 |
msgid "Positive lookahead (to be placed after the selection)" |
| 501 |
msgstr "Positiv lookahead (placeras efter markeringen)" |
| 502 |
|
| 503 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 504 |
msgid "``?!``" |
| 505 |
msgstr "``?!``" |
| 506 |
|
| 507 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 508 |
msgid "Negative lookahead (to be placed after the selection)" |
| 509 |
msgstr "Negativ lookahead (placeras efter markeringen)" |
| 510 |
|
| 511 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 512 |
msgid "``?<=``" |
| 513 |
msgstr "``?<=``" |
| 514 |
|
| 515 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 516 |
msgid "Positive lookbehind (to be placed before the selection)" |
| 517 |
msgstr "Positiv lookbehind (placeras före markeringen)" |
| 518 |
|
| 519 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 520 |
msgid "``?<!``" |
| 521 |
msgstr "``?<!``" |
| 522 |
|
| 523 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 524 |
msgid "Negative lookbehind (to be placed before the selection)" |
| 525 |
msgstr "Negativt lookbehind (placeras före markeringen)" |
| 526 |
|
| 527 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206 |
| 528 |
msgid "" |
| 529 |
"Lookaheads and lookbehinds do not consume characters, they are zero length " |
| 530 |
"and do not capture. They are atomic groups: as soon as the assertion is " |
| 531 |
"satisfied, the regexp engine passes, and if the rest of the pattern fails, " |
| 532 |
"it will not backtrack inside the lookaround to try other combinations." |
| 533 |
msgstr "" |
| 534 |
"Framåt- och bakåtblickande villkor förbrukar inga tecken, har längden noll " |
| 535 |
"och fångar inte. De är atomgrupper: så snart villkoret är uppfyllt " |
| 536 |
"fortsätter motorn, och om resten av mönstret misslyckas söker den inte bakåt" |
| 537 |
" inne i villkoret efter andra kombinationer." |
| 538 |
|
| 539 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211 |
| 540 |
msgid "" |
| 541 |
"When looking for multiple matches in a string, at the starting position of " |
| 542 |
"each match attempt, a lookbehind can inspect the characters before the " |
| 543 |
"current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` " |
| 544 |
"(a digit preceded by a digit) should, in theory, select 2 and 3. On the " |
| 545 |
"other hand, ``\\d\\K\\d`` can only select 2, because the starting position " |
| 546 |
"after the first selection is immediately before 3, and there are not enough " |
| 547 |
"digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In " |
| 548 |
"calibre's regexp engine practice, the positive lookbehind behaves in the " |
| 549 |
"same way, and selects only 2, contrary to theory." |
| 550 |
msgstr "" |
| 551 |
"När du letar efter flera matchningar i en sträng, vid startpositionen för " |
| 552 |
"varje matchförsök, kan en lookbehind inspektera tecknen före den aktuella " |
| 553 |
"positionen. Därför, på strängen 123, bör mönstret ``(?<=\\d)\\d`` (en siffra" |
| 554 |
" som föregås av en siffra) i teorin välja 2 och 3. Å andra sidan, " |
| 555 |
"``\\d\\K\\d`` kan bara välja 2, eftersom startpositionen efter det första " |
| 556 |
"valet är omedelbart före 3, och det inte finns tillräckligt med siffror för " |
| 557 |
"en andra match. På samma sätt fångar ``\\d(\\d)`` bara 2. I calibres regexp-" |
| 558 |
"motorövning beter sig det positiva utseendet på samma sätt och väljer endast" |
| 559 |
" 2, i motsats till teorin." |
| 560 |
|
| 561 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221 |
| 562 |
msgid "" |
| 563 |
"Groups can be placed inside lookarounds, but capture is rarely useful. " |
| 564 |
"Nevertheless, if it is useful, it will be necessary to be very careful in " |
| 565 |
"the use of a quantifier in a lookbehind: the greed associated with the " |
| 566 |
"absence of backtracking can give a surprising capture. For this reason, use " |
| 567 |
"``\\K`` rather than a positive lookbehind when you have a quantifier (or " |
| 568 |
"worse, several) in a capturing group of the positive lookbehind." |
| 569 |
msgstr "" |
| 570 |
"Grupper kan placeras i lookaround-uttryck, men fångst är sällan användbar. " |
| 571 |
"Om det ändå behövs måste du vara mycket försiktig med kvantifierare i ett " |
| 572 |
"lookbehind-uttryck: girigheten i kombination med avsaknaden av backtracking " |
| 573 |
"kan ge oväntade fångster. Använd därför ``\\K`` i stället för en positiv " |
| 574 |
"lookbehind när en fångstgrupp i lookbehind-uttrycket innehåller en eller " |
| 575 |
"flera kvantifierare." |
| 576 |
|
| 577 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228 |
| 578 |
msgid "Example of negative lookahead:" |
| 579 |
msgstr "Exempel på negativ lookahead:" |
| 580 |
|
| 581 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230 |
| 582 |
msgid "``(?![^<>{}]*[>}])``" |
| 583 |
msgstr "``(?![^<>{}]*[>}])``" |
| 584 |
|
| 585 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232 |
| 586 |
msgid "" |
| 587 |
"Placed at the end of the pattern prevents selecting within a tag or a style " |
| 588 |
"embedded in the file." |
| 589 |
msgstr "" |
| 590 |
"Placering i slutet av mönstret förhindrar markering inom en tagg eller ett " |
| 591 |
"format som är inbäddat i filen." |
| 592 |
|
| 593 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234 |
| 594 |
msgid "" |
| 595 |
"Whenever possible, it is always better to \"anchor\" the lookarounds, to " |
| 596 |
"reduce the number of steps necessary to obtain the result." |
| 597 |
msgstr "" |
| 598 |
"När det är möjligt är det alltid bättre att \"förankra\" lookarounds, för " |
| 599 |
"att minska antalet steg som krävs för att få resultatet." |
| 600 |
|
| 601 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238 |
| 602 |
msgid "Recursion" |
| 603 |
msgstr "Rekursion" |
| 604 |
|
| 605 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 606 |
msgid "``(?R)``" |
| 607 |
msgstr "``(?R)``" |
| 608 |
|
| 609 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 610 |
msgid "Recursion of the entire pattern" |
| 611 |
msgstr "Rekursion av hela mönstret" |
| 612 |
|
| 613 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 614 |
msgid "``(?1)``" |
| 615 |
msgstr "``(?1)``" |
| 616 |
|
| 617 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 618 |
msgid "" |
| 619 |
"Recursion of the only pattern of the numbered capturing group, here group 1" |
| 620 |
msgstr "" |
| 621 |
"Rekursion av det enda mönstret i den numrerade fångstgruppen, här grupp 1" |
| 622 |
|
| 623 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251 |
| 624 |
msgid "" |
| 625 |
"Recursion is calling oneself. This is useful for balanced queries, such as " |
| 626 |
"quoted strings, which can contain embedded quoted strings. Thus, if during " |
| 627 |
"the processing of a string between double quotation marks, we encounter the " |
| 628 |
"beginning of a new string between double quotation marks, well we know how " |
| 629 |
"to do, and we call ourselves. Then we have a pattern like::" |
| 630 |
msgstr "" |
| 631 |
"Rekursion anropar sig själv. Detta är användbart för balanserade " |
| 632 |
"förfrågningar, till exempel citerade strängar, som kan innehålla inbäddade " |
| 633 |
"citattecken. Således, om vi under bearbetningen av en sträng mellan dubbla " |
| 634 |
"citattecken stöter på början av en ny sträng mellan dubbla citattecken, vet " |
| 635 |
"vi hur vi ska göra, och vi anropar oss själva. Då har vi ett mönster som::" |
| 636 |
|
| 637 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259 |
| 638 |
msgid "" |
| 639 |
"To select a string between double quotation marks without stopping on an " |
| 640 |
"embedded string::" |
| 641 |
msgstr "" |
| 642 |
"För att välja en sträng mellan dubbla citattecken utan att stanna på en " |
| 643 |
"inbäddad sträng::" |
| 644 |
|
| 645 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263 |
| 646 |
msgid "" |
| 647 |
"This template can also be used to modify pairs of tags that can be embedded," |
| 648 |
" such as ``<div>`` tags." |
| 649 |
msgstr "" |
| 650 |
"Denna mall kan också användas för att ändra par av taggar som kan bäddas in," |
| 651 |
" till exempel ``<div>`` taggar." |
| 652 |
|
| 653 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268 |
| 654 |
msgid "Special characters" |
| 655 |
msgstr "Speciella tecken" |
| 656 |
|
| 657 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 658 |
msgid "**Character**" |
| 659 |
msgstr "**Tecken**" |
| 660 |
|
| 661 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 662 |
msgid "``\\t``" |
| 663 |
msgstr "``\\t``" |
| 664 |
|
| 665 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 666 |
msgid "tabulation" |
| 667 |
msgstr "tabulering" |
| 668 |
|
| 669 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 670 |
msgid "``\\n``" |
| 671 |
msgstr "``\\n``" |
| 672 |
|
| 673 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 674 |
msgid "line break" |
| 675 |
msgstr "radbrytning" |
| 676 |
|
| 677 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 678 |
msgid "``\\x20``" |
| 679 |
msgstr "``\\x20``" |
| 680 |
|
| 681 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 682 |
msgid "(breakable) space" |
| 683 |
msgstr "(brytbart) mellanrum" |
| 684 |
|
| 685 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 686 |
msgid "``\\xa0``" |
| 687 |
msgstr "``\\xa0``" |
| 688 |
|
| 689 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 690 |
msgid "no-break space" |
| 691 |
msgstr "icke-brytbart mellanrum" |
| 692 |
|
| 693 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288 |
| 694 |
msgid "Meta-characters" |
| 695 |
msgstr "Metatecken" |
| 696 |
|
| 697 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290 |
| 698 |
msgid "" |
| 699 |
"Meta-characters are those that have a special meaning for the regexp engine." |
| 700 |
" Of these, twelve must be preceded by an escape character, the backslash " |
| 701 |
"(``\\``), to lose their special meaning and become a regular character " |
| 702 |
"again::" |
| 703 |
msgstr "" |
| 704 |
"Metatecken är de som har en speciell betydelse för regexp-motorn. Av dessa " |
| 705 |
"måste tolv föregås av ett escape-tecken, bakstrecket (``\\``), för att " |
| 706 |
"förlora sin speciella mening och bli ett vanligt tecken igen::" |
| 707 |
|
| 708 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296 |
| 709 |
msgid "" |
| 710 |
"Seven other meta-characters do not need to be preceded by a backslash (but " |
| 711 |
"can be without any other consequence)::" |
| 712 |
msgstr "" |
| 713 |
"Sju andra metatecken behöver inte föregås av ett bakstreck (men kan vara " |
| 714 |
"utan någon annan konsekvens)::" |
| 715 |
|
| 716 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302 |
| 717 |
msgid "" |
| 718 |
"Special characters lose their status if they are used inside a class " |
| 719 |
"(between brackets ``[]``). The closing bracket and the dash have a special " |
| 720 |
"status in a class. Outside the class, the dash is a simple literal, the " |
| 721 |
"closing bracket remains a meta-character." |
| 722 |
msgstr "" |
| 723 |
"Specialtecken förlorar sin status om de används i en klass (mellan " |
| 724 |
"hakparenteser ``[]``). Stängningshakparentesen och bindestrecket har en " |
| 725 |
"särskild status i en klass. Utanför klassen är bindestrecket en enkel " |
| 726 |
"bokstav, stängningshakparentesen förblir ett metatecken." |
| 727 |
|
| 728 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307 |
| 729 |
msgid "" |
| 730 |
"The slash (/) and the number sign (or hash character) (#) are not meta-" |
| 731 |
"characters, they don’t need to be escaped." |
| 732 |
msgstr "" |
| 733 |
"Snedstreck (/) och nummertecken (eller hashtecken) (#) är inte metatecken, " |
| 734 |
"de behöver inte föregås av ett escape-tecken." |
| 735 |
|
| 736 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310 |
| 737 |
msgid "" |
| 738 |
"In some tools, like regex101.com with the Python engine, double quotes have " |
| 739 |
"the special status of separator, and must be escaped, or the options " |
| 740 |
"changed. This is not the case in the editor of calibre." |
| 741 |
msgstr "" |
| 742 |
"I vissa verktyg, som regex101.com med Python-motorn, har dubbla citattecken " |
| 743 |
"den speciella statusen för avskiljare och måste föregås av omvänt " |
| 744 |
"snedstreck, eller alternativen ändras. Detta är inte fallet i redigeraren " |
| 745 |
"för calibre." |
| 746 |
|
| 747 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315 |
| 748 |
msgid "Modes" |
| 749 |
msgstr "Lägen" |
| 750 |
|
| 751 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317 |
| 752 |
msgid "``(?s)``" |
| 753 |
msgstr "``(?s)``" |
| 754 |
|
| 755 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318 |
| 756 |
msgid "Causes the dot (``.``) to match newline characters as well" |
| 757 |
msgstr "Orsakar punkten (``.``) att matcha nyradstecken också" |
| 758 |
|
| 759 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320 |
| 760 |
msgid "``(?m)``" |
| 761 |
msgstr "``(?m)``" |
| 762 |
|
| 763 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321 |
| 764 |
msgid "" |
| 765 |
"Makes the ``^`` and ``$`` anchors match the start and end of lines instead " |
| 766 |
"of the start and end of the entire string." |
| 767 |
msgstr "" |
| 768 |
"Gör så att ankarna ``^`` och ``$`` matchar början och slutet av rader i " |
| 769 |
"stället för början och slutet av hela strängen." |