Debian Codegraph @

translations/manual/mt/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 msgid ""
7 msgstr ""
8 "Project-Id-Version: calibre\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2022-01-20 09:15+0000\n"
11 "PO-Revision-Date: 2022-01-11 06:52+0000\n"
12 "Last-Translator: Kovid Goyal <[email protected]>\n"
13 "Language-Team: Maltese (http://www.transifex.com/calibre/calibre/language/mt/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: mt\n"
18 "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3);\n"
19
20 #: ../../__w/calibre/calibre/manual/news.rst:4
21 msgid "Adding your favorite news website"
22 msgstr ""
23
24 #: ../../__w/calibre/calibre/manual/news.rst:6
25 msgid ""
26 "calibre has a powerful, flexible and easy-to-use framework for downloading "
27 "news from the Internet and converting it into an e-book. The following will "
28 "show you, by means of examples, how to get news from various websites."
29 msgstr ""
30
31 #: ../../__w/calibre/calibre/manual/news.rst:8
32 msgid ""
33 "To gain an understanding of how to use the framework, follow the examples in"
34 " the order listed below:"
35 msgstr ""
36
37 #: ../../__w/calibre/calibre/manual/news.rst:15
38 msgid "Completely automatic fetching"
39 msgstr ""
40
41 #: ../../__w/calibre/calibre/manual/news.rst:17
42 msgid ""
43 "If your news source is simple enough, calibre may well be able to fetch it "
44 "completely automatically, all you need to do is provide the URL. calibre "
45 "gathers all the information needed to download a news source into a "
46 ":term:`recipe`. In order to tell calibre about a news source, you have to "
47 "create a :term:`recipe` for it. Let's see some examples:"
48 msgstr ""
49
50 #: ../../__w/calibre/calibre/manual/news.rst:26
51 msgid "The calibre blog"
52 msgstr ""
53
54 #: ../../__w/calibre/calibre/manual/news.rst:28
55 msgid ""
56 "The calibre blog is a blog of posts that describe many useful calibre "
57 "features in a simple and accessible way for new calibre users. In order to "
58 "download this blog into an e-book, we rely on the :term:`RSS` feed of the "
59 "blog::"
60 msgstr ""
61
62 #: ../../__w/calibre/calibre/manual/news.rst:34
63 msgid ""
64 "I got the RSS URL by looking under \"Subscribe to\" at the bottom of the "
65 "blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the"
66 " feeds and convert them into an e-book, you should right click the "
67 ":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news "
68 "source` menu item and then the :guilabel:`New Recipe` button. A dialog "
69 "similar to that shown below should open up."
70 msgstr ""
71
72 #: ../../__w/calibre/calibre/manual/news.rst:43
73 msgid ""
74 "First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This "
75 "will be the title of the e-book that will be created from the articles in "
76 "the above feeds."
77 msgstr ""
78
79 #: ../../__w/calibre/calibre/manual/news.rst:45
80 msgid ""
81 "The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number "
82 "of articles`) allow you some control over how many articles should be "
83 "downloaded from each feed, and they are pretty self explanatory."
84 msgstr ""
85
86 #: ../../__w/calibre/calibre/manual/news.rst:47
87 msgid ""
88 "To add the feeds to the recipe, enter the feed title and the feed URL and "
89 "click the :guilabel:`Add feed` button. Once you have added the feed, simply "
90 "click the :guilabel:`Save` button and you're done! Close the dialog."
91 msgstr ""
92
93 #: ../../__w/calibre/calibre/manual/news.rst:51
94 msgid ""
95 "To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and"
96 " in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre "
97 "Blog`. After a couple of minutes, the newly downloaded e-book of blog posts "
98 "will appear in the main library view (if you have your reader connected, it "
99 "will be put onto the reader instead of into the library). Select it and hit "
100 "the :guilabel:`View` button to read!"
101 msgstr ""
102
103 #: ../../__w/calibre/calibre/manual/news.rst:53
104 msgid ""
105 "The reason this worked so well, with so little effort is that the blog "
106 "provides *full-content* :term:`RSS` feeds, i.e., the article content is "
107 "embedded in the feed itself. For most news sources that provide news in this"
108 " fashion, with *full-content* feeds, you don't need any more effort to "
109 "convert them to e-books. Now we will look at a news source that does not "
110 "provide full content feeds. In such feeds, the full article is a webpage and"
111 " the feed only contains a link to the webpage with a short summary of the "
112 "article."
113 msgstr ""
114
115 #: ../../__w/calibre/calibre/manual/news.rst:58
116 msgid "bbc.co.uk"
117 msgstr ""
118
119 #: ../../__w/calibre/calibre/manual/news.rst:60
120 msgid "Let's try the following two feeds from *The BBC*:"
121 msgstr ""
122
123 #: ../../__w/calibre/calibre/manual/news.rst:62
124 msgid ""
125 "News Front Page: "
126 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
127 msgstr ""
128
129 #: ../../__w/calibre/calibre/manual/news.rst:63
130 msgid ""
131 "Science/Nature: "
132 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
133 msgstr ""
134
135 #: ../../__w/calibre/calibre/manual/news.rst:65
136 msgid ""
137 "Follow the procedure outlined in :ref:`calibre_blog` above to create a "
138 "recipe for *The BBC* (using the feeds above). Looking at the downloaded "
139 "e-book, we see that calibre has done a creditable job of extracting only the"
140 " content you care about from each article's webpage. However, the extraction"
141 " process is not perfect. Sometimes it leaves in undesirable content like "
142 "menus and navigation aids or it removes content that should have been left "
143 "alone, like article headings. In order, to have perfect content extraction, "
144 "we will need to customize the fetch process, as described in the next "
145 "section."
146 msgstr ""
147
148 #: ../../__w/calibre/calibre/manual/news.rst:68
149 msgid "Customizing the fetch process"
150 msgstr ""
151
152 #: ../../__w/calibre/calibre/manual/news.rst:70
153 msgid ""
154 "When you want to perfect the download process, or download content from a "
155 "particularly complex website, you can avail yourself of all the power and "
156 "flexibility of the :term:`recipe` framework. In order to do that, in the "
157 ":guilabel:`Add custom news sources` dialog, simply click the "
158 ":guilabel:`Switch to Advanced mode` button."
159 msgstr ""
160
161 #: ../../__w/calibre/calibre/manual/news.rst:72
162 msgid ""
163 "The easiest and often most productive customization is to use the print "
164 "version of the online articles. The print version typically has much less "
165 "cruft and translates much more smoothly to an e-book. Let's try to use the "
166 "print version of the articles from *The BBC*."
167 msgstr ""
168
169 #: ../../__w/calibre/calibre/manual/news.rst:75
170 msgid "Using the print version of bbc.co.uk"
171 msgstr ""
172
173 #: ../../__w/calibre/calibre/manual/news.rst:77
174 msgid ""
175 "The first step is to look at the e-book we downloaded previously from "
176 ":ref:`bbc`. At the end of each article, in the e-book is a little blurb "
177 "telling you where the article was downloaded from. Copy and paste that URL "
178 "into a browser. Now on the article webpage look for a link that points to "
179 "the \"Printable version\". Click it to see the print version of the article."
180 " It looks much neater! Now compare the two URLs. For me they were:"
181 msgstr ""
182
183 #: ../../__w/calibre/calibre/manual/news.rst:80
184 msgid "Article URL"
185 msgstr ""
186
187 #: ../../__w/calibre/calibre/manual/news.rst:80
188 msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
189 msgstr ""
190
191 #: ../../__w/calibre/calibre/manual/news.rst:83
192 msgid "Print version URL"
193 msgstr ""
194
195 #: ../../__w/calibre/calibre/manual/news.rst:83
196 msgid ""
197 "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
198 msgstr ""
199
200 #: ../../__w/calibre/calibre/manual/news.rst:85
201 msgid ""
202 "So it looks like to get the print version, we need to prefix every article "
203 "URL with:"
204 msgstr ""
205
206 #: ../../__w/calibre/calibre/manual/news.rst:87
207 msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/"
208 msgstr ""
209
210 #: ../../__w/calibre/calibre/manual/news.rst:89
211 msgid ""
212 "Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you "
213 "should see something like (remember to select *The BBC* recipe before "
214 "switching to advanced mode):"
215 msgstr ""
216
217 #: ../../__w/calibre/calibre/manual/news.rst:94
218 msgid ""
219 "You can see that the fields from the :guilabel:`Basic mode` have been "
220 "translated to Python code in a straightforward manner. We need to add "
221 "instructions to this recipe to use the print version of the articles. All "
222 "that's needed is to add the following two lines:"
223 msgstr ""
224
225 #: ../../__w/calibre/calibre/manual/news.rst:101
226 msgid ""
227 "This is Python, so indentation is important. After you've added the lines, "
228 "it should look like:"
229 msgstr ""
230
231 #: ../../__w/calibre/calibre/manual/news.rst:106
232 msgid ""
233 "In the above, ``def print_version(self, url)`` defines a *method* that is "
234 "called by calibre for every article. ``url`` is the URL of the original "
235 "article. What ``print_version`` does is take that url and replace it with "
236 "the new URL that points to the print version of the article. To learn about "
237 "`Python <https://www.python.org>`_ see the `tutorial "
238 "<https://docs.python.org/tutorial/>`_."
239 msgstr ""
240
241 #: ../../__w/calibre/calibre/manual/news.rst:108
242 msgid ""
243 "Now, click the :guilabel:`Add/update recipe` button and your changes will be"
244 " saved. Re-download the e-book. You should have a much improved e-book. One "
245 "of the problems with the new version is that the fonts on the print version "
246 "webpage are too small. This is automatically fixed when converting to an "
247 "e-book, but even after the fixing process, the font size of the menus and "
248 "navigation bar become too large relative to the article text. To fix this, "
249 "we will do some more customization, in the next section."
250 msgstr ""
251
252 #: ../../__w/calibre/calibre/manual/news.rst:111
253 msgid "Replacing article styles"
254 msgstr ""
255
256 #: ../../__w/calibre/calibre/manual/news.rst:113
257 msgid ""
258 "In the previous section, we saw that the font size for articles from the "
259 "print version of *The BBC* was too small. In most websites, *The BBC* "
260 "included, this font size is set by means of :term:`CSS` stylesheets. We can "
261 "disable the fetching of such stylesheets by adding the line::"
262 msgstr ""
263
264 #: ../../__w/calibre/calibre/manual/news.rst:119
265 msgid "The recipe now looks like:"
266 msgstr ""
267
268 #: ../../__w/calibre/calibre/manual/news.rst:124
269 msgid ""
270 "The new version looks pretty good. If you're a perfectionist, you'll want to"
271 " read the next section, which deals with actually modifying the downloaded "
272 "content."
273 msgstr ""
274
275 #: ../../__w/calibre/calibre/manual/news.rst:127
276 msgid "Slicing and dicing"
277 msgstr ""
278
279 #: ../../__w/calibre/calibre/manual/news.rst:129
280 msgid ""
281 "calibre contains very powerful and flexible abilities when it comes to "
282 "manipulating downloaded content. To show off a couple of these, let's look "
283 "at our old friend the :ref:`The BBC <bbc1>` recipe again. Looking at the "
284 "source code (:term:`HTML`) of a couple of articles (print version), we see "
285 "that they have a footer that contains no useful information, contained in"
286 msgstr ""
287
288 #: ../../__w/calibre/calibre/manual/news.rst:137
289 msgid "This can be removed by adding::"
290 msgstr ""
291
292 #: ../../__w/calibre/calibre/manual/news.rst:141
293 msgid ""
294 "to the recipe. Finally, lets replace some of the :term:`CSS` that we "
295 "disabled earlier, with our own :term:`CSS` that is suitable for conversion "
296 "to an e-book::"
297 msgstr ""
298
299 #: ../../__w/calibre/calibre/manual/news.rst:145
300 msgid "With these additions, our recipe has become \"production quality\"."
301 msgstr ""
302
303 #: ../../__w/calibre/calibre/manual/news.rst:147
304 msgid ""
305 "This :term:`recipe` explores only the tip of the iceberg when it comes to "
306 "the power of calibre. To explore more of the abilities of calibre we'll "
307 "examine a more complex real life example in the next section."
308 msgstr ""
309
310 #: ../../__w/calibre/calibre/manual/news.rst:150
311 msgid "Real life example"
312 msgstr ""
313
314 #: ../../__w/calibre/calibre/manual/news.rst:152
315 msgid ""
316 "A reasonably complex real life example that exposes more of the :term:`API` "
317 "of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*"
318 msgstr ""
319
320 #: ../../__w/calibre/calibre/manual/news.rst:238
321 msgid "We see several new features in this :term:`recipe`. First, we have::"
322 msgstr ""
323
324 #: ../../__w/calibre/calibre/manual/news.rst:242
325 msgid ""
326 "This sets the displayed time on the front page of the created e-book to be "
327 "in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt "
328 "<calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
329 msgstr ""
330
331 #: ../../__w/calibre/calibre/manual/news.rst:245
332 msgid ""
333 "Then we see a group of directives to cleanup the downloaded :term:`HTML`::"
334 msgstr ""
335
336 #: ../../__w/calibre/calibre/manual/news.rst:251
337 msgid ""
338 "These remove everything before the first ``<h1>`` tag and everything after "
339 "the first tag whose id is ``footer``. See :attr:`remove_tags "
340 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, "
341 ":attr:`remove_tags_before "
342 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, "
343 ":attr:`remove_tags_after "
344 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`."
345 msgstr ""
346
347 #: ../../__w/calibre/calibre/manual/news.rst:253
348 msgid "The next interesting feature is::"
349 msgstr ""
350
351 #: ../../__w/calibre/calibre/manual/news.rst:260
352 msgid ""
353 "``needs_subscription = True`` tells calibre that this recipe needs a "
354 "username and password in order to access the content. This causes, calibre "
355 "to ask for a username and password whenever you try to use this recipe. The "
356 "code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually "
357 "does the login into the NYT website. Once logged in, calibre will use the "
358 "same, logged in, browser instance to fetch all content. See `mechanize "
359 "<https://mechanize.readthedocs.io/en/latest/>`_ to understand the code in "
360 "``get_browser``."
361 msgstr ""
362
363 #: ../../__w/calibre/calibre/manual/news.rst:262
364 msgid ""
365 "The next new feature is the "
366 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job "
367 "is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch "
368 "the list of articles that appear in *todays* paper. While more complex than "
369 "simply using :term:`RSS`, the recipe creates an e-book that corresponds very"
370 " closely to the days paper. ``parse_index`` makes heavy use of "
371 "`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ to"
372 " parse the daily paper webpage. You can also use other, more modern parsers "
373 "if you dislike BeautifulSoup. calibre comes with `lxml <https://lxml.de/>`_ "
374 "and `html5lib <https://github.com/html5lib/html5lib-python>`_, which are the"
375 " recommended parsers. To use them, replace the call to ``index_to_soup()`` "
376 "with the following::"
377 msgstr ""
378
379 #: ../../__w/calibre/calibre/manual/news.rst:283
380 msgid ""
381 "The final new feature is the "
382 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It "
383 "can be used to perform arbitrary transformations on every downloaded HTML "
384 "page. Here it is used to bypass the ads that the nytimes shows you before "
385 "each article."
386 msgstr ""
387
388 #: ../../__w/calibre/calibre/manual/news.rst:286
389 msgid "Tips for developing new recipes"
390 msgstr ""
391
392 #: ../../__w/calibre/calibre/manual/news.rst:288
393 msgid ""
394 "The best way to develop new recipes is to use the command line interface. "
395 "Create the recipe using your favorite Python editor and save it to a file "
396 "say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can "
397 "download content using this recipe with the command::"
398 msgstr ""
399
400 #: ../../__w/calibre/calibre/manual/news.rst:292
401 msgid ""
402 "The command :command:`ebook-convert` will download all the webpages and save"
403 " them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes "
404 "ebook-convert spit out a lot of information about what it is doing. The "
405 ":option:`ebook-convert-recipe-input --test` option makes it download only a "
406 "couple of articles from at most two feeds. In addition, ebook-convert will "
407 "put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is "
408 "the folder you specified in the :option:`ebook-convert --debug-pipeline` "
409 "option."
410 msgstr ""
411
412 #: ../../__w/calibre/calibre/manual/news.rst:300
413 msgid ""
414 "Once the download is complete, you can look at the downloaded :term:`HTML` "
415 "by opening the file :file:`debug/input/index.html` in a browser. Once you're"
416 " satisfied that the download and preprocessing is happening correctly, you "
417 "can generate e-books in different formats as shown below::"
418 msgstr ""
419
420 #: ../../__w/calibre/calibre/manual/news.rst:307
421 msgid ""
422 "If you're satisfied with your recipe, and you feel there is enough demand to"
423 " justify its inclusion into the set of built-in recipes, post your recipe in"
424 " the `calibre recipes forum "
425 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ to share it "
426 "with other calibre users."
427 msgstr ""
428
429 #: ../../__w/calibre/calibre/manual/news.rst:310
430 msgid ""
431 "On macOS, the command line tools are inside the calibre bundle, for example,"
432 " if you installed calibre in :file:`/Applications` the command line tools "
433 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
434 msgstr ""
435
436 #: ../../__w/calibre/calibre/manual/news.rst:316
437 msgid ":doc:`generated/en/ebook-convert`"
438 msgstr ""
439
440 #: ../../__w/calibre/calibre/manual/news.rst:317
441 msgid "The command line interface for all e-book conversion."
442 msgstr ""
443
444 #: ../../__w/calibre/calibre/manual/news.rst:321
445 msgid "Further reading"
446 msgstr ""
447
448 #: ../../__w/calibre/calibre/manual/news.rst:323
449 msgid ""
450 "To learn more about writing advanced recipes using some of the facilities, "
451 "available in ``BasicNewsRecipe`` you should consult the following sources:"
452 msgstr ""
453
454 #: ../../__w/calibre/calibre/manual/news.rst:326
455 msgid ":ref:`API documentation <news_recipe>`"
456 msgstr ""
457
458 #: ../../__w/calibre/calibre/manual/news.rst:326
459 msgid ""
460 "Documentation of the ``BasicNewsRecipe`` class and all its important methods"
461 " and fields."
462 msgstr ""
463
464 #: ../../__w/calibre/calibre/manual/news.rst:329
465 msgid ""
466 "`BasicNewsRecipe "
467 "<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
468 msgstr ""
469
470 #: ../../__w/calibre/calibre/manual/news.rst:329
471 msgid "The source code of ``BasicNewsRecipe``"
472 msgstr ""
473
474 #: ../../__w/calibre/calibre/manual/news.rst:332
475 msgid ""
476 "`Built-in recipes "
477 "<https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
478 msgstr ""
479
480 #: ../../__w/calibre/calibre/manual/news.rst:332
481 msgid "The source code for the built-in recipes that come with calibre"
482 msgstr ""
483
484 #: ../../__w/calibre/calibre/manual/news.rst:336
485 msgid ""
486 "`The calibre recipes forum "
487 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
488 msgstr ""
489
490 #: ../../__w/calibre/calibre/manual/news.rst:335
491 msgid "Lots of knowledgeable calibre recipe writers hang out here."
492 msgstr ""
493
494 #: ../../__w/calibre/calibre/manual/news.rst:339
495 msgid "API documentation"
496 msgstr ""