Debian Codegraph @

translations/manual/cs/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 # Michal Várady <[email protected]>, 2026
7 # sifkka <[email protected]>, 2014
8 # sifkka <[email protected]>, 2014
9 # Trottel <[email protected]>, 2014-2022
10 # Trottel <[email protected]>, 2014
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: calibre\n"
14 "Report-Msgid-Bugs-To: \n"
15 "POT-Creation-Date: 2026-06-24 05:21+0000\n"
16 "PO-Revision-Date: 2014-06-17 08:34+0000\n"
17 "Last-Translator: Michal Várady <[email protected]>, 2026\n"
18 "Language-Team: Czech (http://app.transifex.com/calibre/calibre/language/cs/)\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Language: cs\n"
23 "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
24
25 #: ../../../__w/calibre/calibre/manual/news.rst:4
26 msgid "Adding your favorite news website"
27 msgstr "Přidávání oblíbených webových stránek se zprávami"
28
29 #: ../../../__w/calibre/calibre/manual/news.rst:6
30 msgid ""
31 "calibre has a powerful, flexible and easy-to-use framework for downloading "
32 "news from the Internet and converting it into an e-book. The following will "
33 "show you, by means of examples, how to get news from various websites."
34 msgstr "Calibre má výkonné, pružné a snadno použitelné rozhraní pro stahování zpráv z internetu a jejich převodu do e-knihy. Následující vám za pomoci příkladů ukáže, jak získat zprávy z různých webových stránek."
35
36 #: ../../../__w/calibre/calibre/manual/news.rst:8
37 msgid ""
38 "To gain an understanding of how to use the framework, follow the examples in"
39 " the order listed below:"
40 msgstr "K pochopení, jak používat rozhraní, následujte příklady ve vypsaném pořadí níže:"
41
42 #: ../../../__w/calibre/calibre/manual/news.rst:15
43 msgid "Completely automatic fetching"
44 msgstr "Úplně automatické načítání"
45
46 #: ../../../__w/calibre/calibre/manual/news.rst:17
47 msgid ""
48 "If your news source is simple enough, calibre may well be able to fetch it "
49 "completely automatically, all you need to do is provide the URL. calibre "
50 "gathers all the information needed to download a news source into a "
51 ":term:`recipe`. In order to tell calibre about a news source, you have to "
52 "create a :term:`recipe` for it. Let's see some examples:"
53 msgstr "Pokud je váš zdroj zpráv dostatečně jednoduchý, Calibre může být schopné získat ho úplně automaticky, potřebujete jen zadat URL. Calibre shromáždí všechny informace potřebné ke stažení zdroje zpráv do :term:`předpisu`. Abyste řekli Calibre o zdroji zpráv, musíte pro to vytvořit :term:`předpis`. Pojďme se podívat na nějaké příklady:"
54
55 #: ../../../__w/calibre/calibre/manual/news.rst:26
56 msgid "The calibre blog"
57 msgstr "Blog Calibre"
58
59 #: ../../../__w/calibre/calibre/manual/news.rst:28
60 msgid ""
61 "The calibre blog is a blog of posts that describe many useful calibre "
62 "features in a simple and accessible way for new calibre users. In order to "
63 "download this blog into an e-book, we rely on the :term:`RSS` feed of the "
64 "blog::"
65 msgstr "Blog Calibre je blog příspěvků, které popisují mnoho užitečných funkcí Calibre jednoduchým a přístupným způsobem pro nové uživatele Calibre. Pro stažení tohoto blogu do e-knihy spoléháme na informační kanál :term:`RSS` blogu::"
66
67 #: ../../../__w/calibre/calibre/manual/news.rst:34
68 msgid ""
69 "I got the RSS URL by looking under \"Subscribe to\" at the bottom of the "
70 "blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the"
71 " feeds and convert them into an e-book, you should right click the "
72 ":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news "
73 "source` menu item and then the :guilabel:`New Recipe` button. A dialog "
74 "similar to that shown below should open up."
75 msgstr "URL RSS jsem získal podíváním se pod \"Subscribe to\" dole na stránce blogu a výběrem :guilabel:`Posts->Atom`. Aby Calibre stáhlo informační kanály a převedlo je na e-knihu, měli byste kliknout pravým tlačítkem myši na tlačítko :guilabel:`Načíst zprávy` a pak na položku nabídky :guilabel:`Přidat vlastní zdroj zpráv` a pak na tlačítko :guilabel:`Nový předpis. Mělo by se otevřít dialogové okno podobné tomu níže zobrazenému."
76
77 #: ../../../__w/calibre/calibre/manual/news.rst:43
78 msgid ""
79 "First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This "
80 "will be the title of the e-book that will be created from the articles in "
81 "the above feeds."
82 msgstr "Nejdříve zadejte ``Blog Calibre`` do pole :guilabel:`Název předpisu`. To bude název e-knihy, která bude vytvořena z článků ve výše uvedených informačních kanálech."
83
84 #: ../../../__w/calibre/calibre/manual/news.rst:45
85 msgid ""
86 "The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number "
87 "of articles`) allow you some control over how many articles should be "
88 "downloaded from each feed, and they are pretty self explanatory."
89 msgstr "Další dvě pole (:guilabel:`Nejstarší článek` a :guilabel:`Max. počet článků`) vám umožní kontrolu nad tím, kolik článků by mělo být staženo z každého informačního kanálu, a jsou docela sebevysvětlující."
90
91 #: ../../../__w/calibre/calibre/manual/news.rst:47
92 msgid ""
93 "To add the feeds to the recipe, enter the feed title and the feed URL and "
94 "click the :guilabel:`Add feed` button. Once you have added the feed, simply "
95 "click the :guilabel:`Save` button and you're done! Close the dialog."
96 msgstr "Pro přidání informačních kanálů do předpisu zadejte název a URL informačního kanálu a klikněte na tlačítko :guilabel:`Přidat informační kanál`. Jakmile jste přidali informační kanál, jednoduše klikněte na tlačítko :guilabel:`Uložit` a máte hotovo! Zavřete dialogové okno."
97
98 #: ../../../__w/calibre/calibre/manual/news.rst:51
99 msgid ""
100 "To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and"
101 " in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre "
102 "Blog`. After a couple of minutes, the newly downloaded e-book of blog posts "
103 "will appear in the main library view (if you have your reader connected, it "
104 "will be put onto the reader instead of into the library). Select it and hit "
105 "the :guilabel:`View` button to read!"
106 msgstr "Pro otestování nového :term:`předpisu <recipe>` klikněte na tlačítko :guilabel:`Načíst zprávy` a v podnabídce :guilabel:`Vlastní zdroje zpráv` klikněte na :guilabel:`Blog Calibre`. Po několika minutách se nově stažená e-kniha příspěvků blogu zobrazí v hlavním zobrazení knihovny (pokud máte připojenou čtečku, bude umístěna do čtečky namísto do knihovny). Vyberte ji a stiskněte tlačítko :guilabel:`Zobrazit` pro čtení!"
107
108 #: ../../../__w/calibre/calibre/manual/news.rst:53
109 msgid ""
110 "The reason this worked so well, with so little effort is that the blog "
111 "provides *full-content* :term:`RSS` feeds, i.e., the article content is "
112 "embedded in the feed itself. For most news sources that provide news in this"
113 " fashion, with *full-content* feeds, you don't need any more effort to "
114 "convert them to e-books. Now we will look at a news source that does not "
115 "provide full content feeds. In such feeds, the full article is a webpage and"
116 " the feed only contains a link to the webpage with a short summary of the "
117 "article."
118 msgstr "Důvod, proč toto fungovalo tak dobře s tak málo úsilím, je ten, že blog poskytuje informační kanály :term:`RSS` s *úplným obsahem*, t.j. obsah článku je vložen do samotného informačního kanálu. Pro většinu zdrojů zpráv, které poskytují zprávy tímto způsobem s informačními kanály s *úplným obsahem*, nepotřebujete žádné další úsilí, abyste je převedli na e-knihy. Nyní se podíváme na zdroje zpráv, které neposkytují informační kanály s úplným obsahem. V takových informačních kanálech je celý článek webová stránka a informační kanál obsahuje pouze odkaz na webovou stránku s krátkým souhrnem článku."
119
120 #: ../../../__w/calibre/calibre/manual/news.rst:58
121 msgid "bbc.co.uk"
122 msgstr "bbc.co.uk"
123
124 #: ../../../__w/calibre/calibre/manual/news.rst:60
125 msgid "Let's try the following two feeds from *The BBC*:"
126 msgstr "Zkusme následující dva informační kanály z *BBC*:"
127
128 #: ../../../__w/calibre/calibre/manual/news.rst:62
129 msgid ""
130 "News Front Page: "
131 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
132 msgstr "Titulní sránka zpráv: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
133
134 #: ../../../__w/calibre/calibre/manual/news.rst:63
135 msgid ""
136 "Science/Nature: "
137 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
138 msgstr "Věda a příroda: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
139
140 #: ../../../__w/calibre/calibre/manual/news.rst:65
141 msgid ""
142 "Follow the procedure outlined in :ref:`calibre_blog` above to create a "
143 "recipe for *The BBC* (using the feeds above). Looking at the downloaded "
144 "e-book, we see that calibre has done a creditable job of extracting only the"
145 " content you care about from each article's webpage. However, the extraction"
146 " process is not perfect. Sometimes it leaves in undesirable content like "
147 "menus and navigation aids or it removes content that should have been left "
148 "alone, like article headings. In order, to have perfect content extraction, "
149 "we will need to customize the fetch process, as described in the next "
150 "section."
151 msgstr "Postupujte podle pokynů navržených ve výše uvedeném :ref:`calibre_blog` pro vytvoření předpisu pro *BBC* (pomocí výše uvedených informačních kanálů). Při pohledu na staženou e-knihu vidíme, že Calibre udělalo slušnou práci vyextrahováním pouze obsahu, na kterém vám záleží, z každé webové stránky článku. Proces extrakce však není dokonalý. Někdy ponechá nežádoucí obsah, jako jsou nabídky a navigační pomůcky, nebo odebere obsah, který by měl být ponechán, jako jsou záhlaví článku. Abychom dosáhli dokonalé extrakce obsahu, budeme muset přizpůsobit proces načtení, jak je popsáno v následujícím oddíle."
152
153 #: ../../../__w/calibre/calibre/manual/news.rst:68
154 msgid "Customizing the fetch process"
155 msgstr "Přizpůsobení procesu načítání"
156
157 #: ../../../__w/calibre/calibre/manual/news.rst:70
158 msgid ""
159 "When you want to perfect the download process, or download content from a "
160 "particularly complex website, you can avail yourself of all the power and "
161 "flexibility of the :term:`recipe` framework. In order to do that, in the "
162 ":guilabel:`Add custom news sources` dialog, simply click the "
163 ":guilabel:`Switch to Advanced mode` button."
164 msgstr "Pokud chcete zdokonalit proces stahování, nebo stáhnout obsah z obzvláště složité webové stránky, můžete využít celou sílu a pružnost rozhraní :term:`předpisů`. Za tímto účelem v dialogovém okně :guilabel:`Přidat vlastní zdroje zpráv` jednoduše klikněte na tlačítko :guilabel:`Přepnout do rozšířeného režimu`."
165
166 #: ../../../__w/calibre/calibre/manual/news.rst:72
167 msgid ""
168 "The easiest and often most productive customization is to use the print "
169 "version of the online articles. The print version typically has much less "
170 "cruft and translates much more smoothly to an e-book. Let's try to use the "
171 "print version of the articles from *The BBC*."
172 msgstr "Nejjednodušší a často nejproduktivnější přizpůsobení je použít tiskovou verzi online článků. Tisková verze má obvykle mnohem méně nadbytečných dat a překládá se mnohem plynuleji do e-knihy. Zkusme použít tiskovou verzi článků z *BBC*."
173
174 #: ../../../__w/calibre/calibre/manual/news.rst:75
175 msgid "Using the print version of bbc.co.uk"
176 msgstr "Použití tiskové verze bbc.co.uk"
177
178 #: ../../../__w/calibre/calibre/manual/news.rst:77
179 msgid ""
180 "The first step is to look at the e-book we downloaded previously from "
181 ":ref:`bbc`. At the end of each article, in the e-book is a little blurb "
182 "telling you where the article was downloaded from. Copy and paste that URL "
183 "into a browser. Now on the article webpage look for a link that points to "
184 "the \"Printable version\". Click it to see the print version of the article."
185 " It looks much neater! Now compare the two URLs. For me they were:"
186 msgstr "Prvním krokem je podívat se na e-knihu, kterou jsme dříve stáhli z :ref:`bbc`. Na konci každého článku v e-knize je malá záložka oznamující, odkud byl článek stažen z. Zkopírujte a vložte tuto URL do prohlížeče. Nyní na webové stránce článku najděte odkaz, který odkazuje na \"Tisknutelnou verzi\". Klikněte na něj pro zobrazení tiskové verze článku. Vypadá to mnohem čistěji! Nyní porovnejte obě URL. Pro mě byly:"
187
188 #: ../../../__w/calibre/calibre/manual/news.rst:79
189 msgid "Article URL"
190 msgstr "URL článku"
191
192 #: ../../../__w/calibre/calibre/manual/news.rst:80
193 msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
194 msgstr "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
195
196 #: ../../../__w/calibre/calibre/manual/news.rst:82
197 msgid "Print version URL"
198 msgstr "URL tiskové verze"
199
200 #: ../../../__w/calibre/calibre/manual/news.rst:83
201 msgid ""
202 "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
203 msgstr "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
204
205 #: ../../../__w/calibre/calibre/manual/news.rst:85
206 msgid ""
207 "So it looks like to get the print version, we need to prefix every article "
208 "URL with:"
209 msgstr "Takže to vypadá, že pro získání tiskové verze musíme přidat ke každé URL článku předponu:"
210
211 #: ../../../__w/calibre/calibre/manual/news.rst:87
212 msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/"
213 msgstr "newsvote.bbc.co.uk/mpapps/pagetools/print/"
214
215 #: ../../../__w/calibre/calibre/manual/news.rst:89
216 msgid ""
217 "Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you "
218 "should see something like (remember to select *The BBC* recipe before "
219 "switching to advanced mode):"
220 msgstr "Nyní byste měli v :guilabel:`Pokročilém režimu` dialogového okna Vlastní zdroje zpráv vidět něco podobného (nezapomeňte vybrat předpis *BBC* před přepnutím do pokročilého režimu):"
221
222 #: ../../../__w/calibre/calibre/manual/news.rst:94
223 msgid ""
224 "You can see that the fields from the :guilabel:`Basic mode` have been "
225 "translated to Python code in a straightforward manner. We need to add "
226 "instructions to this recipe to use the print version of the articles. All "
227 "that's needed is to add the following two lines:"
228 msgstr "Můžete vidět, že pole ze :guilabel:`Základního režimu` byla přeložena do kódu Pythonu přímočarým způsobem. Potřebujeme přidat pokyny k tomuto předpisu, aby použil tiskovou verzi článků. Vše, co je potřeba, je přidat následující dva řádky:"
229
230 #: ../../../__w/calibre/calibre/manual/news.rst:101
231 msgid ""
232 "This is Python, so indentation is important. After you've added the lines, "
233 "it should look like:"
234 msgstr "Toto je Python, takže odsazení je důležité. Poté, co jste přidali řádky, mělo by to vypadat takto:"
235
236 #: ../../../__w/calibre/calibre/manual/news.rst:106
237 msgid ""
238 "In the above, ``def print_version(self, url)`` defines a *method* that is "
239 "called by calibre for every article. ``url`` is the URL of the original "
240 "article. What ``print_version`` does is take that url and replace it with "
241 "the new URL that points to the print version of the article. To learn about "
242 "`Python <https://www.python.org>`_ see the `tutorial "
243 "<https://docs.python.org/tutorial/>`_."
244 msgstr "Ve výše uvedeném ``def print_version(self, url)`` definuje *metodu*, která je volána Calibre pro každý článek. ``url`` je URL původního článku. ``print_version`` dělá to, že vezme tuto URL a nahradí ji novou URL, která odkazuje na tiskovou verzi článku. Abyste se naučili více o `Pythonu <https://www.python.org>`_, podívejte se na `kurz <https://docs.python.org/tutorial/>`_."
245
246 #: ../../../__w/calibre/calibre/manual/news.rst:108
247 msgid ""
248 "Now, click the :guilabel:`Add/update recipe` button and your changes will be"
249 " saved. Re-download the e-book. You should have a much improved e-book. One "
250 "of the problems with the new version is that the fonts on the print version "
251 "webpage are too small. This is automatically fixed when converting to an "
252 "e-book, but even after the fixing process, the font size of the menus and "
253 "navigation bar become too large relative to the article text. To fix this, "
254 "we will do some more customization, in the next section."
255 msgstr "Nyní klikněte na tlačítko :guilabel:`Přidat nebo aktualizovat předpis` a vaše změny budou uloženy. Znovu stáhněte e-knihu. Měli byste mít mnohem lepší e-knihu. Jeden z problémů s novou verzí je, že písma na tiskové verzi webové stránky jsou příliš malá. To je automaticky opraveno při převodu na e-knihu, ale i po procesu opravy bude velikost písma nabídek a navigačního panelu příliš velká vzhledem k textu článku. Abychom to opravili, provedeme nějaká další přizpůsobení v dalším oddíle."
256
257 #: ../../../__w/calibre/calibre/manual/news.rst:111
258 msgid "Replacing article styles"
259 msgstr "Nahrazování stylů článku"
260
261 #: ../../../__w/calibre/calibre/manual/news.rst:113
262 msgid ""
263 "In the previous section, we saw that the font size for articles from the "
264 "print version of *The BBC* was too small. In most websites, *The BBC* "
265 "included, this font size is set by means of :term:`CSS` stylesheets. We can "
266 "disable the fetching of such stylesheets by adding the line::"
267 msgstr "V předchozím oddíle jsme viděli, že velikost písma pro články z tiskové verze *BBC* byla příliš malá. Ve většině webových stránek, včetně *BBC*, je tato velikost písma nastavena pomocí šablon stylů :term:`CSS`. Můžeme zakázat načítání těchto šablon stylů přidáním řádku::"
268
269 #: ../../../__w/calibre/calibre/manual/news.rst:119
270 msgid "The recipe now looks like:"
271 msgstr "Předpis nyní vypadá takto:"
272
273 #: ../../../__w/calibre/calibre/manual/news.rst:124
274 msgid ""
275 "The new version looks pretty good. If you're a perfectionist, you'll want to"
276 " read the next section, which deals with actually modifying the downloaded "
277 "content."
278 msgstr "Nová verze vypadá docela dobře. Pokud jste perfekcionista, budete si chtít přečíst další oddíl, který se zabývá skutečnou úpravou staženého obsahu."
279
280 #: ../../../__w/calibre/calibre/manual/news.rst:127
281 msgid "Slicing and dicing"
282 msgstr "Krájení a sekání"
283
284 #: ../../../__w/calibre/calibre/manual/news.rst:129
285 msgid ""
286 "calibre contains very powerful and flexible abilities when it comes to "
287 "manipulating downloaded content. To show off a couple of these, let's look "
288 "at our old friend the :ref:`The BBC <bbc1>` recipe again. Looking at the "
289 "source code (:term:`HTML`) of a couple of articles (print version), we see "
290 "that they have a footer that contains no useful information, contained in"
291 msgstr "Calibre obsahuje velice výkonné a pružné možnosti, pokud jde o zacházení se staženým obsahem. Abychom vám pár z nich ukázali, pojďme se znovu podívat na našeho starého přítele, na předpis :ref:`BBC <bbc1>`. Při pohledu na zdrojový kód (:term:`HTML`) pár článků (tisková verze) vidíme, že mají patičku, která neobsahuje žádné užitečné informace, obsažené v"
292
293 #: ../../../__w/calibre/calibre/manual/news.rst:137
294 msgid "This can be removed by adding::"
295 msgstr "Toto může být odebráno přidáním::"
296
297 #: ../../../__w/calibre/calibre/manual/news.rst:141
298 msgid ""
299 "to the recipe. Finally, let's replace some of the :term:`CSS` that we "
300 "disabled earlier, with our own :term:`CSS` that is suitable for conversion "
301 "to an e-book::"
302 msgstr "do receptu. Nakonec nahraďme část :term:`CSS`, které jsme dříve zakázali, vlastním :term:`CSS` vhodným pro převod do e-knihy::"
303
304 #: ../../../__w/calibre/calibre/manual/news.rst:145
305 msgid "With these additions, our recipe has become \"production quality\"."
306 msgstr "S těmito dodatky se náš předpis stal „kvalitou výroby“."
307
308 #: ../../../__w/calibre/calibre/manual/news.rst:147
309 msgid ""
310 "This :term:`recipe` explores only the tip of the iceberg when it comes to "
311 "the power of calibre. To explore more of the abilities of calibre we'll "
312 "examine a more complex real life example in the next section."
313 msgstr "Tento :term:`předpis` prozkoumá pouze špičku ledovce, pokud jde o sílu Calibre. Abychom prozkoumali více možností Calibre, prohlédneme si v dalším oddíle složitější příklad ze skutečného života."
314
315 #: ../../../__w/calibre/calibre/manual/news.rst:150
316 msgid "Real life example"
317 msgstr "Příklad ze skutečného života"
318
319 #: ../../../__w/calibre/calibre/manual/news.rst:152
320 msgid ""
321 "A reasonably complex real life example that exposes more of the :term:`API` "
322 "of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*"
323 msgstr "Přiměřeně složitý příklad ze skutečného života, který odhaluje více z :term:`API` ``BasicNewsRecipe``, je :term:`předpis` pro *The New York Times*"
324
325 #: ../../../__w/calibre/calibre/manual/news.rst:238
326 msgid "We see several new features in this :term:`recipe`. First, we have::"
327 msgstr "V tomto :term:`předpisu` vidíme několik nových funkcí. Nejdříve máme::"
328
329 #: ../../../__w/calibre/calibre/manual/news.rst:242
330 msgid ""
331 "This sets the displayed time on the front page of the created e-book to be "
332 "in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt "
333 "<calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
334 msgstr "To nastaví zobrazený čas na úvodní stránce vytvořené e-knihy, aby byl ve formátu ``Day, Day_Number Month, Year``. Podívejte se na :attr:`timefmt <calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
335
336 #: ../../../__w/calibre/calibre/manual/news.rst:245
337 msgid ""
338 "Then we see a group of directives to cleanup the downloaded :term:`HTML`::"
339 msgstr "Pak vidíme skupinu směrnic pro vyčištění staženého :term:`HTML`::"
340
341 #: ../../../__w/calibre/calibre/manual/news.rst:251
342 msgid ""
343 "These remove everything before the first ``<h1>`` tag and everything after "
344 "the first tag whose id is ``footer``. See :attr:`remove_tags "
345 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, "
346 ":attr:`remove_tags_before "
347 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, "
348 ":attr:`remove_tags_after "
349 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`."
350 msgstr "Tyto odeberou vše před první značkou ``<h1>`` a vše za první značkou, jejíž identifikátor je ``footer``. Podívejte se na :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>`."
351
352 #: ../../../__w/calibre/calibre/manual/news.rst:253
353 msgid "The next interesting feature is::"
354 msgstr "Další zajímavá funkce je::"
355
356 #: ../../../__w/calibre/calibre/manual/news.rst:260
357 msgid ""
358 "``needs_subscription = True`` tells calibre that this recipe needs a "
359 "username and password in order to access the content. This causes, calibre "
360 "to ask for a username and password whenever you try to use this recipe. The "
361 "code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually "
362 "does the login into the NYT website. Once logged in, calibre will use the "
363 "same, logged in, browser instance to fetch all content. See `mechanize "
364 "<https://mechanize.readthedocs.io/en/latest/>`_ to understand the code in "
365 "``get_browser``."
366 msgstr "``needs_subscription = True`` říká Calibre, že tento předpis potřebuje uživatelské jméno a heslo pro přístup k obsahu. To způsobí, že Calibre požádá o uživatelské jméno a heslo, kdykoliv se pokusíte použít tento předpis. Kód v :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` skutečně provede přihlášení na webovou stránku NYT. Jakmile se přihlásíte, Calibre použije stejnou, přihlášenou instance prohlížeče k načtení celého obsahu. Podívejte se na `automatizace <https://mechanize.readthedocs.io/en/latest/>`_ k porozumění kódu v ``get_browser``."
367
368 #: ../../../__w/calibre/calibre/manual/news.rst:262
369 msgid ""
370 "The next new feature is the "
371 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job "
372 "is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch "
373 "the list of articles that appear in *today's* paper. While more complex than"
374 " simply using :term:`RSS`, the recipe creates an e-book that corresponds "
375 "very closely to the day's paper. ``parse_index`` makes heavy use of "
376 "`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ to"
377 " parse the daily paper webpage. You can also use other, more modern parsers "
378 "if you dislike BeautifulSoup. calibre comes with `lxml <https://lxml.de/>`_ "
379 "and `html5lib <https://github.com/html5lib/html5lib-python>`_, which are the"
380 " recommended parsers. To use them, replace the call to ``index_to_soup()`` "
381 "with the following::"
382 msgstr "Další novou funkcí je metoda :meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index`. Jejím úkolem je přejít na https://www.nytimes.com/pages/todayspaper/index.html a načíst seznam článků, které se objevují v *dnešních* novinách. I když je to složitější než prosté použití :term:`RSS`, recept vytvoří e-knihu, která velmi přesně odpovídá dennímu vydání novin. ``parse_index`` intenzivně používá `BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ k parsování webové stránky denního vydání. Pokud vám BeautifulSoup nevyhovuje, můžete použít i jiné, modernější parsery. Součástí calibre jsou `lxml <https://lxml.de/>`_ a `html5lib <https://github.com/html5lib/html5lib-python>`_, což jsou doporučené parsery. Chcete-li je použít, nahraďte volání ``index_to_soup()`` následujícím::"
383
384 #: ../../../__w/calibre/calibre/manual/news.rst:283
385 msgid ""
386 "The final new feature is the "
387 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It "
388 "can be used to perform arbitrary transformations on every downloaded HTML "
389 "page. Here it is used to bypass the ads that the nytimes shows you before "
390 "each article."
391 msgstr "Poslední novou funkcí je metoda :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html`. Může být použita k provedení libovolných transformací na každé stažené stránce HTML. Zde je použita k obejití reklam, které NYT zobrazuje před každým článkem."
392
393 #: ../../../__w/calibre/calibre/manual/news.rst:286
394 msgid "Tips for developing new recipes"
395 msgstr "Tipy pro vývoj nových předpisů"
396
397 #: ../../../__w/calibre/calibre/manual/news.rst:288
398 msgid ""
399 "The best way to develop new recipes is to use the command line interface. "
400 "Create the recipe using your favorite Python editor and save it to a file "
401 "say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can "
402 "download content using this recipe with the command::"
403 msgstr "Nejlepším způsobem vývoje nových předpisů je použít rozhraní příkazového řádku. Vytvořte předpis pomocí svého oblíbeného editoru Pythonu a uložte ho do souboru :file:`myrecipe.recipe`. Přípona `.recipe` je vyžadována. Pomocí tohoto předpisu můžete stáhnout obsah příkazem::"
404
405 #: ../../../__w/calibre/calibre/manual/news.rst:292
406 msgid ""
407 "The command :command:`ebook-convert` will download all the webpages and save"
408 " them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes "
409 "ebook-convert spit out a lot of information about what it is doing. The "
410 ":option:`ebook-convert-recipe-input --test` option makes it download only a "
411 "couple of articles from at most two feeds. In addition, ebook-convert will "
412 "put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is "
413 "the folder you specified in the :option:`ebook-convert --debug-pipeline` "
414 "option."
415 msgstr "Příkaz :command:`ebook-convert` stáhne celé webové stránky a uloží je do souboru EPUB :file:`myrecipe.epub`. Volba ``-vv`` způsobí, že ebook-convert vyplivne spoustu informací o tom, co dělá. Volba :option:`ebook-convert-recipe-input --test` umožní stáhnout pouze pár článků z nejvýše dvou informačních kanálů. Kromě toho ebook-convert umístí stažené HTML do složky ``debug/input``, kde ``debug`` je složka, kterou jste zadali ve volbě :option:`ebook-convert --debug-pipeline`."
416
417 #: ../../../__w/calibre/calibre/manual/news.rst:300
418 msgid ""
419 "Once the download is complete, you can look at the downloaded :term:`HTML` "
420 "by opening the file :file:`debug/input/index.html` in a browser. Once you're"
421 " satisfied that the download and preprocessing is happening correctly, you "
422 "can generate e-books in different formats as shown below::"
423 msgstr "Jakmile je stahování dokončeno, můžete se podívat na stažené :term:`HTML` otevřením souboru :file:`debug/input/index.html` v prohlížeči. Jakmile jste spokojeni se správností stahování a předzpracování, můžete generovat e-knihy v různých formátech, jak je zobrazeno níže::"
424
425 #: ../../../__w/calibre/calibre/manual/news.rst:307
426 msgid ""
427 "If you're satisfied with your recipe, and you feel there is enough demand to"
428 " justify its inclusion into the set of built-in recipes, post your recipe in"
429 " the `calibre recipes forum "
430 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ to share it "
431 "with other calibre users."
432 msgstr "Pokud jste se svým předpisem spokojeni a máte pocit, že je o něj dostatečný zájem, aby mohl být zařazen mezi vestavěné předpisy, zveřejněte svůj předpis na `fóru předpisů calibre <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ a sdílejte ho s ostatními uživateli calibre."
433
434 #: ../../../__w/calibre/calibre/manual/news.rst:310
435 msgid ""
436 "On macOS, the command line tools are inside the calibre bundle, for example,"
437 " if you installed calibre in :file:`/Applications` the command line tools "
438 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
439 msgstr "Na macOS jsou nástroje příkazového řádku uvnitř sady Calibre, například pokud jste nainstalovali Calibre do :file:`/Applications`, nástroje příkazového řádku jsou v :file:`/Applications/calibre.app/Contents/MacOS/`."
440
441 #: ../../../__w/calibre/calibre/manual/news.rst:316
442 msgid ":doc:`generated/en/ebook-convert`"
443 msgstr ":doc:`generated/cs/ebook-convert`"
444
445 #: ../../../__w/calibre/calibre/manual/news.rst:317
446 msgid "The command line interface for all e-book conversion."
447 msgstr "Rozhraní příkazového řádku pro všechny převody e-knih."
448
449 #: ../../../__w/calibre/calibre/manual/news.rst:321
450 msgid "Further reading"
451 msgstr "Další čtení"
452
453 #: ../../../__w/calibre/calibre/manual/news.rst:323
454 msgid ""
455 "To learn more about writing advanced recipes using some of the facilities, "
456 "available in ``BasicNewsRecipe`` you should consult the following sources:"
457 msgstr "Abyste se dozvěděli více o psaní pokročilých předpisů pomocí některého z vybavení dostupného v ``BasicNewsRecipe``, měli byste si pročíst následující zdroje:"
458
459 #: ../../../__w/calibre/calibre/manual/news.rst:325
460 msgid ":ref:`API documentation <news_recipe>`"
461 msgstr ":ref:`Dokumentace API <news_recipe>`"
462
463 #: ../../../__w/calibre/calibre/manual/news.rst:326
464 msgid ""
465 "Documentation of the ``BasicNewsRecipe`` class and all its important methods"
466 " and fields."
467 msgstr "Dokumentace třídy ``BasicNewsRecipe`` a všechny její důležité metody a pole."
468
469 #: ../../../__w/calibre/calibre/manual/news.rst:328
470 msgid ""
471 "`BasicNewsRecipe "
472 "<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
473 msgstr "`BasicNewsRecipe <https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
474
475 #: ../../../__w/calibre/calibre/manual/news.rst:329
476 msgid "The source code of ``BasicNewsRecipe``"
477 msgstr "Zdrojový kód ``BasicNewsRecipe``"
478
479 #: ../../../__w/calibre/calibre/manual/news.rst:331
480 msgid ""
481 "`Built-in recipes "
482 "<https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
483 msgstr "`Vestavěné předpisy <https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
484
485 #: ../../../__w/calibre/calibre/manual/news.rst:332
486 msgid "The source code for the built-in recipes that come with calibre"
487 msgstr "Zdrojový kód vestavěných předpisů dodávaných s calibre"
488
489 #: ../../../__w/calibre/calibre/manual/news.rst:334
490 msgid ""
491 "`The calibre recipes forum "
492 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
493 msgstr "`Fórum předpisů calibre <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
494
495 #: ../../../__w/calibre/calibre/manual/news.rst:335
496 msgid "Lots of knowledgeable calibre recipe writers hang out here."
497 msgstr "Na tomto fóru se pohybuje mnoho zkušených autorů předpisů pro calibre."
498
499 #: ../../../__w/calibre/calibre/manual/news.rst:339
500 msgid "API documentation"
501 msgstr "Dokumentace API"