Debian Codegraph @

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