Debian Codegraph @

translations/manual/sv/news.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, 2026
7 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2018,2020
8 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2020
9 # Jonatan Nyberg, 2026
10 # Jonatan Nyberg, 2016-2017,2021-2023,2025-2026
11 # Jonatan Nyberg, 2018-2021
12 # efef6ec5b435a041fce803c7f8af77d2_2341d43, 2018
13 # Jonatan Nyberg, 2026
14 # Merarom <[email protected]>, 2014-2017
15 # Sebastian Rasmussen <[email protected]>, 2018
16 msgid ""
17 msgstr ""
18 "Project-Id-Version: calibre\n"
19 "Report-Msgid-Bugs-To: \n"
20 "POT-Creation-Date: 2026-09-16 15:05+0000\n"
21 "PO-Revision-Date: 2014-06-17 08:34+0000\n"
22 "Last-Translator: Sebastian Rasmussen <[email protected]>, 2018\n"
23 "Language-Team: Swedish (http://app.transifex.com/calibre/calibre/language/sv/)\n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=UTF-8\n"
26 "Content-Transfer-Encoding: 8bit\n"
27 "Language: sv\n"
28 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
29
30 #: ../../../__w/calibre/calibre/manual/news.rst:4
31 msgid "Adding your favorite news website"
32 msgstr "Lägga till din favoritnyhetswebbplats"
33
34 #: ../../../__w/calibre/calibre/manual/news.rst:6
35 msgid ""
36 "calibre has a powerful, flexible and easy-to-use framework for downloading "
37 "news from the Internet and converting it into an e-book. The following will "
38 "show you, by means of examples, how to get news from various websites."
39 msgstr "calibre har ett kraftfullt, flexibelt och lättanvänt ramverk för att hämta nyheter från Internet och konvertera dem till en e-bok. Följande kommer att visa dig, med hjälp av exempel, hur du får nyheter från olika webbplatser."
40
41 #: ../../../__w/calibre/calibre/manual/news.rst:8
42 msgid ""
43 "To gain an understanding of how to use the framework, follow the examples in"
44 " the order listed below:"
45 msgstr "För att få en förståelse för hur man använder ramverket, följ exemplen i den ordning som anges nedan:"
46
47 #: ../../../__w/calibre/calibre/manual/news.rst:15
48 msgid "Completely automatic fetching"
49 msgstr "Helt automatisk hämtning"
50
51 #: ../../../__w/calibre/calibre/manual/news.rst:17
52 msgid ""
53 "If your news source is simple enough, calibre may well be able to fetch it "
54 "completely automatically, all you need to do is provide the URL. calibre "
55 "gathers all the information needed to download a news source into a "
56 ":term:`recipe`. In order to tell calibre about a news source, you have to "
57 "create a :term:`recipe` for it. Let's see some examples:"
58 msgstr "Om nyhetskällan är tillräckligt enkel kan calibre kanske hämta den helt automatiskt. Du behöver bara ange URL:en. calibre samlar all information som behövs för att hämta en nyhetskälla i ett :term:`recept`. För att informera calibre om en nyhetskälla måste du skapa ett :term:`recept` för den. Här följer några exempel:"
59
60 #: ../../../__w/calibre/calibre/manual/news.rst:26
61 msgid "The calibre blog"
62 msgstr "calibre-bloggen"
63
64 #: ../../../__w/calibre/calibre/manual/news.rst:28
65 msgid ""
66 "The calibre blog is a blog of posts that describe many useful calibre "
67 "features in a simple and accessible way for new calibre users. In order to "
68 "download this blog into an e-book, we rely on the :term:`RSS` feed of the "
69 "blog::"
70 msgstr "calibre-bloggen innehåller inlägg som beskriver många användbara calibre-funktioner på ett enkelt och lättillgängligt sätt för nya användare. För att hämta bloggen som en e-bok använder vi bloggens :term:`RSS`-flöde::"
71
72 #: ../../../__w/calibre/calibre/manual/news.rst:34
73 msgid ""
74 "I got the RSS URL by looking under \"Subscribe to\" at the bottom of the "
75 "blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the"
76 " feeds and convert them into an e-book, you should right click the "
77 ":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news "
78 "source` menu item and then the :guilabel:`New Recipe` button. A dialog "
79 "similar to that shown below should open up."
80 msgstr "Jag fick RSS-URL:en genom att titta under \"Prenumerera\" längst ner på bloggsidan och välja :guilabel:`Posts->Atom`. För att låta calibre hämta flödena och konvertera dem till en e-bok, bör du högerklicka på knappen :guilabel:`Hämta nyheter` och sedan på menyalternativet :guilabel:`Lägg till en anpassad nyhetskälla` och sedan knappen :guilabel:`Nytt recept`. En dialogruta liknande den som visas nedan bör öppnas."
81
82 #: ../../../__w/calibre/calibre/manual/news.rst:43
83 msgid ""
84 "First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This "
85 "will be the title of the e-book that will be created from the articles in "
86 "the above feeds."
87 msgstr "Ange först ``Calibre Blog`` i fältet :guilabel:`Recepttitel`. Detta kommer att vara titeln på e-boken som kommer att skapas från artiklarna i ovanstående flöden."
88
89 #: ../../../__w/calibre/calibre/manual/news.rst:45
90 msgid ""
91 "The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number "
92 "of articles`) allow you some control over how many articles should be "
93 "downloaded from each feed, and they are pretty self explanatory."
94 msgstr "Med de två följande fälten (:guilabel:`Äldsta artikel` och :guilabel:`Högst antal artiklar`) kan du i viss mån styra hur många artiklar som ska hämtas från varje flöde. Fälten är i stort sett självförklarande."
95
96 #: ../../../__w/calibre/calibre/manual/news.rst:47
97 msgid ""
98 "To add the feeds to the recipe, enter the feed title and the feed URL and "
99 "click the :guilabel:`Add feed` button. Once you have added the feed, simply "
100 "click the :guilabel:`Save` button and you're done! Close the dialog."
101 msgstr "För att lägga till flöden till receptet, mata in flödestitel och flödes-URL:en och klicka på knappen :guilabel:`Lägg till flöde`. När du har lagt till flödet klickar du på knappen :guilabel:`Spara` och du är klar! Stäng dialogrutan."
102
103 #: ../../../__w/calibre/calibre/manual/news.rst:51
104 msgid ""
105 "To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and"
106 " in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre "
107 "Blog`. After a couple of minutes, the newly downloaded e-book of blog posts "
108 "will appear in the main library view (if you have your reader connected, it "
109 "will be put onto the reader instead of into the library). Select it and hit "
110 "the :guilabel:`View` button to read!"
111 msgstr "För att testa ditt nya :term:`recept` klickar du på knappen :guilabel:`Hämta nyheter` och sedan på :guilabel:`calibre Blog` i undermenyn :guilabel:`Anpassade nyhetskällor`. Efter ett par minuter visas den nyligen hämtade e-boken med blogginlägg i biblioteksvyn. Om läsenheten är ansluten läggs den i stället till på läsenheten. Markera den och klicka på knappen :guilabel:`Visa` för att läsa den."
112
113 #: ../../../__w/calibre/calibre/manual/news.rst:53
114 msgid ""
115 "The reason this worked so well, with so little effort is that the blog "
116 "provides *full-content* :term:`RSS` feeds, i.e., the article content is "
117 "embedded in the feed itself. For most news sources that provide news in this"
118 " fashion, with *full-content* feeds, you don't need any more effort to "
119 "convert them to e-books. Now we will look at a news source that does not "
120 "provide full content feeds. In such feeds, the full article is a webpage and"
121 " the feed only contains a link to the webpage with a short summary of the "
122 "article."
123 msgstr "Det fungerade så bra med så liten arbetsinsats eftersom bloggen tillhandahåller :term:`RSS`-flöden med *fullständigt innehåll*, det vill säga artikeltexten är inbäddad i själva flödet. För de flesta nyhetskällor som tillhandahåller sådana flöden behövs inget ytterligare arbete för att konvertera dem till e-böcker. Nu ska vi titta på en nyhetskälla som inte tillhandahåller flöden med fullständigt innehåll. I sådana flöden finns hela artikeln på en webbsida, medan flödet bara innehåller en länk till sidan och en kort sammanfattning av artikeln."
124
125 #: ../../../__w/calibre/calibre/manual/news.rst:58
126 msgid "bbc.co.uk"
127 msgstr "bbc.co.uk"
128
129 #: ../../../__w/calibre/calibre/manual/news.rst:60
130 msgid "Let's try the following two feeds from *The BBC*:"
131 msgstr "Låt oss testa följande två flöden från *BBC*:"
132
133 #: ../../../__w/calibre/calibre/manual/news.rst:62
134 msgid ""
135 "News Front Page: "
136 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
137 msgstr "Nyheter framsida: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
138
139 #: ../../../__w/calibre/calibre/manual/news.rst:63
140 msgid ""
141 "Science/Nature: "
142 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
143 msgstr "Vetenskap/Natur: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
144
145 #: ../../../__w/calibre/calibre/manual/news.rst:65
146 msgid ""
147 "Follow the procedure outlined in :ref:`calibre_blog` above to create a "
148 "recipe for *The BBC* (using the feeds above). Looking at the downloaded "
149 "e-book, we see that calibre has done a creditable job of extracting only the"
150 " content you care about from each article's webpage. However, the extraction"
151 " process is not perfect. Sometimes it leaves in undesirable content like "
152 "menus and navigation aids or it removes content that should have been left "
153 "alone, like article headings. In order, to have perfect content extraction, "
154 "we will need to customize the fetch process, as described in the next "
155 "section."
156 msgstr "Följ proceduren i :ref:`calibre_blog` ovan för att skapa ett recept för *BBC* med flödena ovan. I den hämtade e-boken ser vi att calibre har lyckats ganska bra med att hämta ut enbart det relevanta innehållet från varje artikels webbsida. Processen är dock inte perfekt. Ibland lämnas oönskat innehåll kvar, till exempel menyer och navigeringshjälpmedel, eller så tas innehåll bort som borde ha behållits, till exempel artikelrubriker. För att få med exakt rätt innehåll behöver vi anpassa hämtningsprocessen enligt nästa avsnitt."
157
158 #: ../../../__w/calibre/calibre/manual/news.rst:68
159 msgid "Customizing the fetch process"
160 msgstr "Anpassa hämtningsprocessen"
161
162 #: ../../../__w/calibre/calibre/manual/news.rst:70
163 msgid ""
164 "When you want to perfect the download process, or download content from a "
165 "particularly complex website, you can avail yourself of all the power and "
166 "flexibility of the :term:`recipe` framework. In order to do that, in the "
167 ":guilabel:`Add custom news sources` dialog, simply click the "
168 ":guilabel:`Switch to Advanced mode` button."
169 msgstr "När du vill finslipa hämtningsprocessen eller hämta innehåll från en särskilt komplex webbplats kan du använda alla möjligheter i ramverket för :term:`recept`. Klicka då på knappen :guilabel:`Växla till avancerat läge` i dialogrutan :guilabel:`Lägg till anpassade nyhetskällor`."
170
171 #: ../../../__w/calibre/calibre/manual/news.rst:72
172 msgid ""
173 "The easiest and often most productive customization is to use the print "
174 "version of the online articles. The print version typically has much less "
175 "cruft and translates much more smoothly to an e-book. Let's try to use the "
176 "print version of the articles from *The BBC*."
177 msgstr "Den enklaste och ofta mest effektiva anpassningen är att använda artiklarnas utskriftsversioner. De innehåller vanligtvis mycket mindre ovidkommande material och är lättare att konvertera till en e-bok. Låt oss försöka använda utskriftsversionerna av artiklarna från *BBC*."
178
179 #: ../../../__w/calibre/calibre/manual/news.rst:75
180 msgid "Using the print version of bbc.co.uk"
181 msgstr "Använda utskriftsversionen av bbc.co.uk"
182
183 #: ../../../__w/calibre/calibre/manual/news.rst:77
184 msgid ""
185 "The first step is to look at the e-book we downloaded previously from "
186 ":ref:`bbc`. At the end of each article, in the e-book is a little blurb "
187 "telling you where the article was downloaded from. Copy and paste that URL "
188 "into a browser. Now on the article webpage look for a link that points to "
189 "the \"Printable version\". Click it to see the print version of the article."
190 " It looks much neater! Now compare the two URLs. For me they were:"
191 msgstr "Det första steget är att titta på e-boken som vi tidigare hämtade från :ref:`bbc`. I slutet av varje artikel finns en kort text som anger varifrån artikeln hämtades. Kopiera URL:en och klistra in den i en webbläsare. Leta sedan efter en länk till \"Utskriftsversion\" på artikelns webbsida. Klicka på den för att visa artikelns utskriftsversion. Den ser mycket prydligare ut! Jämför nu de två URL:erna. För mig var de:"
192
193 #: ../../../__w/calibre/calibre/manual/news.rst:79
194 msgid "Article URL"
195 msgstr "Artikelns URL"
196
197 #: ../../../__w/calibre/calibre/manual/news.rst:80
198 msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
199 msgstr "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
200
201 #: ../../../__w/calibre/calibre/manual/news.rst:82
202 msgid "Print version URL"
203 msgstr "Utskriftsversionens URL"
204
205 #: ../../../__w/calibre/calibre/manual/news.rst:83
206 msgid ""
207 "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
208 msgstr "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
209
210 #: ../../../__w/calibre/calibre/manual/news.rst:85
211 msgid ""
212 "So it looks like to get the print version, we need to prefix every article "
213 "URL with:"
214 msgstr "För att hämta utskriftsversionen verkar vi alltså behöva lägga följande prefix framför varje artikeladress:"
215
216 #: ../../../__w/calibre/calibre/manual/news.rst:87
217 msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/"
218 msgstr "newsvote.bbc.co.uk/mpapps/pagetools/print/"
219
220 #: ../../../__w/calibre/calibre/manual/news.rst:89
221 msgid ""
222 "Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you "
223 "should see something like (remember to select *The BBC* recipe before "
224 "switching to advanced mode):"
225 msgstr "Nu i :guilabel:`Avancerat läge` i dialogrutan Anpassade nyhetskällor ska du se något liknande (kom ihåg att välja *BBC*-receptet innan du växlar till avancerat läge):"
226
227 #: ../../../__w/calibre/calibre/manual/news.rst:94
228 msgid ""
229 "You can see that the fields from the :guilabel:`Basic mode` have been "
230 "translated to Python code in a straightforward manner. We need to add "
231 "instructions to this recipe to use the print version of the articles. All "
232 "that's needed is to add the following two lines:"
233 msgstr "Du kan se att fälten från :guilabel:`Grundläge` har översatts till Python-kod på ett enkelt sätt. Vi måste lägga till instruktioner som får receptet att använda artiklarnas utskriftsversioner. Det enda som behövs är följande två rader:"
234
235 #: ../../../__w/calibre/calibre/manual/news.rst:101
236 msgid ""
237 "This is Python, so indentation is important. After you've added the lines, "
238 "it should look like:"
239 msgstr "Detta är Python, så indrag är viktigt. När du har lagt till raderna ska det se ut som:"
240
241 #: ../../../__w/calibre/calibre/manual/news.rst:106
242 msgid ""
243 "In the above, ``def print_version(self, url)`` defines a *method* that is "
244 "called by calibre for every article. ``url`` is the URL of the original "
245 "article. What ``print_version`` does is take that url and replace it with "
246 "the new URL that points to the print version of the article. To learn about "
247 "`Python <https://www.python.org>`_ see the `tutorial "
248 "<https://docs.python.org/tutorial/>`_."
249 msgstr "I exemplet ovan definierar ``def print_version(self, url)`` en *metod* som calibre anropar för varje artikel. ``url`` är den ursprungliga artikelns URL. Metoden ``print_version`` tar denna URL och ersätter den med den nya URL som leder till artikelns utskriftsversion. Mer information om `Python <https://www.python.org>`_ finns i `handledningen <https://docs.python.org/tutorial/>`_."
250
251 #: ../../../__w/calibre/calibre/manual/news.rst:108
252 msgid ""
253 "Now, click the :guilabel:`Add/update recipe` button and your changes will be"
254 " saved. Re-download the e-book. You should have a much improved e-book. One "
255 "of the problems with the new version is that the fonts on the print version "
256 "webpage are too small. This is automatically fixed when converting to an "
257 "e-book, but even after the fixing process, the font size of the menus and "
258 "navigation bar become too large relative to the article text. To fix this, "
259 "we will do some more customization, in the next section."
260 msgstr "Nu klickar du på knappen :guilabel:`Lägg till/uppdatera recept` och dina ändringar sparas. Hämta e-boken igen. Du borde nu ha en mycket förbättrad e-bok. Ett av problemen med den nya versionen är att teckensnitten på utskriftsversionens webbplats är för små. Det här är automatiskt åtgärdat vid konvertering till en e-bok, men även efter justeringsprocessen blir teckensnittsstorleken på menyer och navigeringsfältet för stor i förhållande till artikeltexten. För att åtgärda det här, kommer vi att göra lite mer anpassning, i nästa avsnitt."
261
262 #: ../../../__w/calibre/calibre/manual/news.rst:111
263 msgid "Replacing article styles"
264 msgstr "Ersätta artiklarnas formatmallar"
265
266 #: ../../../__w/calibre/calibre/manual/news.rst:113
267 msgid ""
268 "In the previous section, we saw that the font size for articles from the "
269 "print version of *The BBC* was too small. In most websites, *The BBC* "
270 "included, this font size is set by means of :term:`CSS` stylesheets. We can "
271 "disable the fetching of such stylesheets by adding the line::"
272 msgstr "I föregående avsnitt såg vi att teckenstorleken i artiklar från utskriftsversionen av *BBC* var för liten. På de flesta webbplatser, inklusive *BBC*, anges teckenstorleken med hjälp av :term:`CSS`-formatmallar. Vi kan förhindra att sådana formatmallar hämtas genom att lägga till raden::"
273
274 #: ../../../__w/calibre/calibre/manual/news.rst:119
275 msgid "The recipe now looks like:"
276 msgstr "Receptet ser nu ut så här:"
277
278 #: ../../../__w/calibre/calibre/manual/news.rst:124
279 msgid ""
280 "The new version looks pretty good. If you're a perfectionist, you'll want to"
281 " read the next section, which deals with actually modifying the downloaded "
282 "content."
283 msgstr "Den nya versionen ser ganska bra ut. Om du är perfektionist vill du nog läsa nästa avsnitt, som handlar om att ändra själva det hämtade innehållet."
284
285 #: ../../../__w/calibre/calibre/manual/news.rst:127
286 msgid "Slicing and dicing"
287 msgstr "Bearbeta innehållet"
288
289 #: ../../../__w/calibre/calibre/manual/news.rst:129
290 msgid ""
291 "calibre contains very powerful and flexible abilities when it comes to "
292 "manipulating downloaded content. To show off a couple of these, let's look "
293 "at our old friend the :ref:`The BBC <bbc1>` recipe again. Looking at the "
294 "source code (:term:`HTML`) of a couple of articles (print version), we see "
295 "that they have a footer that contains no useful information, contained in"
296 msgstr "calibre har kraftfulla och flexibla funktioner för att bearbeta hämtat innehåll. För att visa ett par av dem tittar vi återigen på receptet :ref:`BBC <bbc1>`. I källkoden (:term:`HTML`) för ett par artiklars utskriftsversioner ser vi en sidfot utan användbar information, innesluten i"
297
298 #: ../../../__w/calibre/calibre/manual/news.rst:137
299 msgid "This can be removed by adding::"
300 msgstr "Detta kan tas bort genom att lägga till::"
301
302 #: ../../../__w/calibre/calibre/manual/news.rst:141
303 msgid ""
304 "to the recipe. Finally, let's replace some of the :term:`CSS` that we "
305 "disabled earlier, with our own :term:`CSS` that is suitable for conversion "
306 "to an e-book::"
307 msgstr "till receptet. Låt oss slutligen ersätta en del av :term:`CSS` som vi inaktiverade tidigare med vår egen :term:`CSS` som är lämplig för konvertering till en e-bok::"
308
309 #: ../../../__w/calibre/calibre/manual/news.rst:145
310 msgid "With these additions, our recipe has become \"production quality\"."
311 msgstr "Med dessa tillägg är vårt recept redo för praktisk användning."
312
313 #: ../../../__w/calibre/calibre/manual/news.rst:147
314 msgid ""
315 "This :term:`recipe` explores only the tip of the iceberg when it comes to "
316 "the power of calibre. To explore more of the abilities of calibre we'll "
317 "examine a more complex real life example in the next section."
318 msgstr "Detta :term:`recept` visar bara en liten del av vad calibre kan göra. För att utforska fler av möjligheterna tittar vi på ett mer komplext exempel från verkligheten i nästa avsnitt."
319
320 #: ../../../__w/calibre/calibre/manual/news.rst:150
321 msgid "Real life example"
322 msgstr "Exempel i verkligheten"
323
324 #: ../../../__w/calibre/calibre/manual/news.rst:152
325 msgid ""
326 "A reasonably complex real life example that exposes more of the :term:`API` "
327 "of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*"
328 msgstr "Ett relativt komplext exempel från verkligheten som visar mer av :term:`API`:et för ``BasicNewsRecipe`` är :term:`receptet <recept>` för *The New York Times*"
329
330 #: ../../../__w/calibre/calibre/manual/news.rst:238
331 msgid "We see several new features in this :term:`recipe`. First, we have::"
332 msgstr "Vi ser flera nya funktioner i detta :term:`recept`. Först har vi::"
333
334 #: ../../../__w/calibre/calibre/manual/news.rst:242
335 msgid ""
336 "This sets the displayed time on the front page of the created e-book to be "
337 "in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt "
338 "<calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
339 msgstr "Detta anger att tiden på den skapade e-bokens förstasida ska visas i formatet ``Dag, dagnummer månad, år``. Se :attr:`timefmt <calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
340
341 #: ../../../__w/calibre/calibre/manual/news.rst:245
342 msgid ""
343 "Then we see a group of directives to cleanup the downloaded :term:`HTML`::"
344 msgstr "Då ser vi en grupp direktiv för att rensa hämtad :term:`HTML`::"
345
346 #: ../../../__w/calibre/calibre/manual/news.rst:251
347 msgid ""
348 "These remove everything before the first ``<h1>`` tag and everything after "
349 "the first tag whose id is ``footer``. See :attr:`remove_tags "
350 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, "
351 ":attr:`remove_tags_before "
352 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, "
353 ":attr:`remove_tags_after "
354 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`."
355 msgstr "Dessa tar bort allt innan den första ``<h1>``-taggen och allt efter den första taggen vars id är ``footer``. Se :attr:`remove_tags <calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, :attr:`remove_tags_before <calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, :attr:`remove_tags_after <calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`."
356
357 #: ../../../__w/calibre/calibre/manual/news.rst:253
358 msgid "The next interesting feature is::"
359 msgstr "Nästa intressanta funktion är::"
360
361 #: ../../../__w/calibre/calibre/manual/news.rst:260
362 msgid ""
363 "``needs_subscription = True`` tells calibre that this recipe needs a "
364 "username and password in order to access the content. This causes, calibre "
365 "to ask for a username and password whenever you try to use this recipe. The "
366 "code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually "
367 "does the login into the NYT website. Once logged in, calibre will use the "
368 "same, logged in, browser instance to fetch all content. See `mechanize "
369 "<https://mechanize.readthedocs.io/en/latest/>`_ to understand the code in "
370 "``get_browser``."
371 msgstr "``needs_subscription = True`` berättar för calibre att detta recept behöver användarnamn och lösenord för att komma åt innehållet. Detta medför att calibre frågar efter användarnamn och lösenord när du försöker använda det här receptet. Koden i :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` loggar faktiskt in på NYT-webbplatsen. När du loggat in kommer calibre att använda samma webbläsarinstans för att hämta allt innehåll. Se `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ för att förstå koden i ``get_browser``."
372
373 #: ../../../__w/calibre/calibre/manual/news.rst:262
374 msgid ""
375 "The next new feature is the "
376 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job "
377 "is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch "
378 "the list of articles that appear in *today's* paper. While more complex than"
379 " simply using :term:`RSS`, the recipe creates an e-book that corresponds "
380 "very closely to the day's paper. ``parse_index`` makes heavy use of "
381 "`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ to"
382 " parse the daily paper webpage. You can also use other, more modern parsers "
383 "if you dislike BeautifulSoup. calibre comes with `lxml <https://lxml.de/>`_ "
384 "and `html5lib <https://github.com/html5lib/html5lib-python>`_, which are the"
385 " recommended parsers. To use them, replace the call to ``index_to_soup()`` "
386 "with the following::"
387 msgstr "Nästa nya funktion är metoden :meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index`. Den går till https://www.nytimes.com/pages/todayspaper/index.html och hämtar listan över artiklar i *dagens* tidning. Detta är mer komplicerat än att bara använda :term:`RSS`, men receptet skapar en e-bok som mycket nära motsvarar dagens tidning. ``parse_index`` använder `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ i stor utsträckning för att tolka webbsidan med dagens tidning. Du kan också använda andra, modernare tolkar om du inte vill använda BeautifulSoup. calibre levereras med `lxml <https://lxml.de/>`_ och `html5lib <https://github.com/html5lib/html5lib-python>`_, som är de rekommenderade tolkarna. Ersätt anropet till ``index_to_soup()`` med följande för att använda dem::"
388
389 #: ../../../__w/calibre/calibre/manual/news.rst:283
390 msgid ""
391 "The final new feature is the "
392 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It "
393 "can be used to perform arbitrary transformations on every downloaded HTML "
394 "page. Here it is used to bypass the ads that the nytimes shows you before "
395 "each article."
396 msgstr "Den sista nya funktionen är metoden :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html`. Den kan användas för att utföra godtyckliga omvandlingar på varje hämtad HTML-sida. Här används den för att kringgå annonserna som nytimes visar före varje artikel."
397
398 #: ../../../__w/calibre/calibre/manual/news.rst:286
399 msgid "Tips for developing new recipes"
400 msgstr "Tips för att utveckla nya recept"
401
402 #: ../../../__w/calibre/calibre/manual/news.rst:288
403 msgid ""
404 "The best way to develop new recipes is to use the command line interface. "
405 "Create the recipe using your favorite Python editor and save it to a file "
406 "say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can "
407 "download content using this recipe with the command::"
408 msgstr "Det bästa sättet att utveckla nya recept är att använda kommandoradsgränssnittet. Skapa receptet i den Python-redigerare du föredrar och spara det i en fil, till exempel :file:`myrecipe.recipe`. Filändelsen `.recipe` krävs. Du kan hämta innehåll med receptet med följande kommando::"
409
410 #: ../../../__w/calibre/calibre/manual/news.rst:292
411 msgid ""
412 "The command :command:`ebook-convert` will download all the webpages and save"
413 " them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes "
414 "ebook-convert spit out a lot of information about what it is doing. The "
415 ":option:`ebook-convert-recipe-input --test` option makes it download only a "
416 "couple of articles from at most two feeds. In addition, ebook-convert will "
417 "put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is "
418 "the folder you specified in the :option:`ebook-convert --debug-pipeline` "
419 "option."
420 msgstr "Kommandot :command:`ebook-convert` hämtar alla webbsidor och sparar dem i EPUB-filen :file:`myrecipe.epub`. Flaggan ``-vv`` gör att ebook-convert skriver ut utförlig information om vad programmet gör. Flaggan :option:`ebook-convert-recipe-input --test` begränsar hämtningen till ett par artiklar från högst två flöden. Dessutom placerar ebook-convert den hämtade HTML-koden i mappen ``debug/input``, där ``debug`` är den mapp du angav med flaggan :option:`ebook-convert --debug-pipeline`."
421
422 #: ../../../__w/calibre/calibre/manual/news.rst:300
423 msgid ""
424 "Once the download is complete, you can look at the downloaded :term:`HTML` "
425 "by opening the file :file:`debug/input/index.html` in a browser. Once you're"
426 " satisfied that the download and preprocessing is happening correctly, you "
427 "can generate e-books in different formats as shown below::"
428 msgstr "När hämtningen är klar kan du titta på hämtad :term:`HTML` genom att öppna filen :file:`debug/input/index.html` i en webbläsare. När du är nöjd med att hämtningen och förbehandling sker korrekt kan du skapa e-böcker i olika format enligt nedan::"
429
430 #: ../../../__w/calibre/calibre/manual/news.rst:307
431 msgid ""
432 "If you're satisfied with your recipe, and you feel there is enough demand to"
433 " justify its inclusion into the set of built-in recipes, post your recipe in"
434 " the `calibre recipes forum "
435 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ to share it "
436 "with other calibre users."
437 msgstr "Om du är nöjd med ditt recept och du känner att det finns tillräcklig efterfrågan för att motivera dess införande i uppsättningen av inbyggda recept, lägg upp ditt recept i `calibres receptforum <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ för att dela med andra calibre-användare."
438
439 #: ../../../__w/calibre/calibre/manual/news.rst:310
440 msgid ""
441 "On macOS, the command line tools are inside the calibre bundle, for example,"
442 " if you installed calibre in :file:`/Applications` the command line tools "
443 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
444 msgstr "I macOS finns kommandoradsverktygen inuti calibre-paketet. Om du till exempel installerade calibre i :file:`/Applications` finns verktygen i :file:`/Applications/calibre.app/Contents/MacOS/`."
445
446 #: ../../../__w/calibre/calibre/manual/news.rst:316
447 msgid ":doc:`generated/en/ebook-convert`"
448 msgstr ":doc:`generated/sv/ebook-convert`"
449
450 #: ../../../__w/calibre/calibre/manual/news.rst:317
451 msgid "The command line interface for all e-book conversion."
452 msgstr "Kommandoradsgränssnittet för all e-bokkonvertering."
453
454 #: ../../../__w/calibre/calibre/manual/news.rst:321
455 msgid "Further reading"
456 msgstr "Ytterligare läsning"
457
458 #: ../../../__w/calibre/calibre/manual/news.rst:323
459 msgid ""
460 "To learn more about writing advanced recipes using some of the facilities, "
461 "available in ``BasicNewsRecipe`` you should consult the following sources:"
462 msgstr "Om du vill veta mer om att skriva avancerade recept med funktionerna i ``BasicNewsRecipe`` kan du läsa följande källor:"
463
464 #: ../../../__w/calibre/calibre/manual/news.rst:325
465 msgid ":ref:`API documentation <news_recipe>`"
466 msgstr ":ref:`API-dokumentation <news_recipe>`"
467
468 #: ../../../__w/calibre/calibre/manual/news.rst:326
469 msgid ""
470 "Documentation of the ``BasicNewsRecipe`` class and all its important methods"
471 " and fields."
472 msgstr "Dokumentation av ``BasicNewsRecipe``-klassen och alla dess viktiga metoder och fält."
473
474 #: ../../../__w/calibre/calibre/manual/news.rst:328
475 msgid ""
476 "`BasicNewsRecipe "
477 "<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
478 msgstr "`BasicNewsRecipe <https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
479
480 #: ../../../__w/calibre/calibre/manual/news.rst:329
481 msgid "The source code of ``BasicNewsRecipe``"
482 msgstr "Källkoden för ``BasicNewsRecipe``"
483
484 #: ../../../__w/calibre/calibre/manual/news.rst:331
485 msgid ""
486 "`Built-in recipes "
487 "<https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
488 msgstr "`Inbyggda recept <https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
489
490 #: ../../../__w/calibre/calibre/manual/news.rst:332
491 msgid "The source code for the built-in recipes that come with calibre"
492 msgstr "Källkoden för de inbyggda recept som kommer med calibre"
493
494 #: ../../../__w/calibre/calibre/manual/news.rst:334
495 msgid ""
496 "`The calibre recipes forum "
497 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
498 msgstr "`calibre-receptforumet <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
499
500 #: ../../../__w/calibre/calibre/manual/news.rst:335
501 msgid "Lots of knowledgeable calibre recipe writers hang out here."
502 msgstr "Här finns massor av kunniga receptförfattare för calibre."
503
504 #: ../../../__w/calibre/calibre/manual/news.rst:339
505 msgid "API documentation"
506 msgstr "API-dokumentation"