Debian Codegraph @

translations/manual/ja/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 # akihiko tanae (tanaeakihiko), 2025-2026
7 # Asakura, 2015
8 # Asakura, 2015
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2026-02-17 16:44+0000\n"
14 "PO-Revision-Date: 2014-06-17 08:34+0000\n"
15 "Last-Translator: akihiko tanae (tanaeakihiko), 2025-2026\n"
16 "Language-Team: Japanese (http://app.transifex.com/calibre/calibre/language/ja/)\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Language: ja\n"
21 "Plural-Forms: nplurals=1; plural=0;\n"
22
23 #: ../../../__w/calibre/calibre/manual/news.rst:4
24 msgid "Adding your favorite news website"
25 msgstr "お気に入りのニュースサイトを追加"
26
27 #: ../../../__w/calibre/calibre/manual/news.rst:6
28 msgid ""
29 "calibre has a powerful, flexible and easy-to-use framework for downloading "
30 "news from the Internet and converting it into an e-book. The following will "
31 "show you, by means of examples, how to get news from various websites."
32 msgstr "calibre は、インターネットからニュースをダウンロードして電子書籍に変換するための、柔軟かつ強力で使いやすいフレームワークを備えています。下では例を用いて、さまざまな Web サイトからニュースを取得する方法を説明します。"
33
34 #: ../../../__w/calibre/calibre/manual/news.rst:8
35 msgid ""
36 "To gain an understanding of how to use the framework, follow the examples in"
37 " the order listed below:"
38 msgstr "フレームワークの使い方を理解するには、下に並んでいる順に例を追ってください:"
39
40 #: ../../../__w/calibre/calibre/manual/news.rst:15
41 msgid "Completely automatic fetching"
42 msgstr "完全自動の取得"
43
44 #: ../../../__w/calibre/calibre/manual/news.rst:17
45 msgid ""
46 "If your news source is simple enough, calibre may well be able to fetch it "
47 "completely automatically, all you need to do is provide the URL. calibre "
48 "gathers all the information needed to download a news source into a "
49 ":term:`recipe`. In order to tell calibre about a news source, you have to "
50 "create a :term:`recipe` for it. Let's see some examples:"
51 msgstr "もしニュースソースが単純なものなら、calibre は完全に自動で取得することができます。必要なのは URL を与えることだけです。calibre はニュースソースのダウンロードに必要な情報を :term:`レシピ` に集めています。calibre にニュースソースについての情報を与えるためには、:term:`レシピ` を作る必要があります。では、いくつか例を見てみましょう。"
52
53 #: ../../../__w/calibre/calibre/manual/news.rst:26
54 msgid "The calibre blog"
55 msgstr "calibre ブログ"
56
57 #: ../../../__w/calibre/calibre/manual/news.rst:28
58 msgid ""
59 "The calibre blog is a blog of posts that describe many useful calibre "
60 "features in a simple and accessible way for new calibre users. In order to "
61 "download this blog into an e-book, we rely on the :term:`RSS` feed of the "
62 "blog::"
63 msgstr "calibre ブログには、calibre の新規ユーザが簡単に情報を入手できるよう、calibre の多くの便利な機能を説明する記事が置かれています。このブログをダウンロードして電子書籍にするのに、ブログの :term:`RSS` フィードを頼っています。"
64
65 #: ../../../__w/calibre/calibre/manual/news.rst:34
66 msgid ""
67 "I got the RSS URL by looking under \"Subscribe to\" at the bottom of the "
68 "blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the"
69 " feeds and convert them into an e-book, you should right click the "
70 ":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news "
71 "source` menu item and then the :guilabel:`New Recipe` button. A dialog "
72 "similar to that shown below should open up."
73 msgstr "RSS URL はブログページ下部の \"Subscribe to\" の下にある :guilabel:`Posts->Atom` を選択します。calibre にフィードをダウンロードして電子書籍に変換させるには、:guilabel:`ニュースを取得` を右クリックしてメニュー項目の :guilabel:`カスタムニュースソースを追加` を選択し、:guilabel:`新規レシピ` ボタンを押します。下に示すものと似たようなダイアログが表示されます。"
74
75 #: ../../../__w/calibre/calibre/manual/news.rst:43
76 msgid ""
77 "First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This "
78 "will be the title of the e-book that will be created from the articles in "
79 "the above feeds."
80 msgstr "まず :guilabel:`レシピのタイトル` フィールドに ``Calibre Blog`` と入力します。これは上記のフィードの記事から作成される電子書籍のタイトルとなります。"
81
82 #: ../../../__w/calibre/calibre/manual/news.rst:45
83 msgid ""
84 "The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number "
85 "of articles`) allow you some control over how many articles should be "
86 "downloaded from each feed, and they are pretty self explanatory."
87 msgstr "次のふたつのフィールド (:guilabel:`一番古い記事` および :guilabel:`記事の最大数`) を使って、各フィードからどれだけの記事をダウンロードするかを制御できます。意味は名前のとおりです。"
88
89 #: ../../../__w/calibre/calibre/manual/news.rst:47
90 msgid ""
91 "To add the feeds to the recipe, enter the feed title and the feed URL and "
92 "click the :guilabel:`Add feed` button. Once you have added the feed, simply "
93 "click the :guilabel:`Save` button and you're done! Close the dialog."
94 msgstr "フィードをレシピに追加するには、フィードのタイトルと URL を入力して :guilabel:`フィードを追加` ボタンをクリックします。フィードを追加したら :guilabel:`保存` ボタンをクリックすれば完了です。ダイアログを閉じてください。"
95
96 #: ../../../__w/calibre/calibre/manual/news.rst:51
97 msgid ""
98 "To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and"
99 " in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre "
100 "Blog`. After a couple of minutes, the newly downloaded e-book of blog posts "
101 "will appear in the main library view (if you have your reader connected, it "
102 "will be put onto the reader instead of into the library). Select it and hit "
103 "the :guilabel:`View` button to read!"
104 msgstr ":term:`レシピ` をテストするには、:guilabel:`ニュースを取得` ボタンをクリックして、サブメニュー :guilabel:`カスタムニュースソース` の中から :guilabel:`calibre Blog` をクリックします。数分後、新しくダウンロードしたブログ記事の電子書籍がメインのライブラリビューに (もしリーダーを接続していれば、ライブラリの代わりにリーダー上に) 現れます。それを選択して :guilabel:`表示` ボタンを押せば、読めます。"
105
106 #: ../../../__w/calibre/calibre/manual/news.rst:53
107 msgid ""
108 "The reason this worked so well, with so little effort is that the blog "
109 "provides *full-content* :term:`RSS` feeds, i.e., the article content is "
110 "embedded in the feed itself. For most news sources that provide news in this"
111 " fashion, with *full-content* feeds, you don't need any more effort to "
112 "convert them to e-books. Now we will look at a news source that does not "
113 "provide full content feeds. In such feeds, the full article is a webpage and"
114 " the feed only contains a link to the webpage with a short summary of the "
115 "article."
116 msgstr "ほとんど手間をかけることなくこれがうまく機能する理由は、ブログが *フルコンテンツの* :term:`RSS` フィードを提供しているためです。つまり、記事内容がフィード自体に埋めこまれているのです。ニュースをこの形、すなわち *フルコンテンツの* フィードで提供するほとんどのニュースソースでは、電子書籍に変換するのにこれ以上の手間は必要ありません。では、フルコンテンツのフィードを提供していないニュースソースについて見てみましょう。そのようなフィードには、記事の全文は Web ページにあり、フィードには短い要約とともにその Web ページへのリンクのみが含まれています。"
117
118 #: ../../../__w/calibre/calibre/manual/news.rst:58
119 msgid "bbc.co.uk"
120 msgstr "bbc.co.uk"
121
122 #: ../../../__w/calibre/calibre/manual/news.rst:60
123 msgid "Let's try the following two feeds from *The BBC*:"
124 msgstr "次の *The BBC* からのふたつのフィードを追ってみましょう:"
125
126 #: ../../../__w/calibre/calibre/manual/news.rst:62
127 msgid ""
128 "News Front Page: "
129 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
130 msgstr "ニュース一面: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"
131
132 #: ../../../__w/calibre/calibre/manual/news.rst:63
133 msgid ""
134 "Science/Nature: "
135 "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
136 msgstr "科学/自然: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml"
137
138 #: ../../../__w/calibre/calibre/manual/news.rst:65
139 msgid ""
140 "Follow the procedure outlined in :ref:`calibre_blog` above to create a "
141 "recipe for *The BBC* (using the feeds above). Looking at the downloaded "
142 "e-book, we see that calibre has done a creditable job of extracting only the"
143 " content you care about from each article's webpage. However, the extraction"
144 " process is not perfect. Sometimes it leaves in undesirable content like "
145 "menus and navigation aids or it removes content that should have been left "
146 "alone, like article headings. In order, to have perfect content extraction, "
147 "we will need to customize the fetch process, as described in the next "
148 "section."
149 msgstr "上記の :ref:`calibre_blog` で概説した手順に沿って *The BBC* 用のレシピを (上のフィードを使って) 作成します。ダウンロードした電子書籍を見ると、calibre はそれぞれの記事の Web ページから読みたい記事だけを抽出する仕事を立派にこなしていることがわかります。しかし、その抽出の処理は完全ではありません。メニューやナビゲーションなどの望ましくないコンテンツがそのまま残っていたり、記事の見出しのような残しておくべきコンテンツを削除してしまっていることがあります。コンテンツの抽出を完璧に行うには、次の章で説明するように取得処理をカスタマイズする必要があります。"
150
151 #: ../../../__w/calibre/calibre/manual/news.rst:68
152 msgid "Customizing the fetch process"
153 msgstr "取得処理のカスタマイズ"
154
155 #: ../../../__w/calibre/calibre/manual/news.rst:70
156 msgid ""
157 "When you want to perfect the download process, or download content from a "
158 "particularly complex website, you can avail yourself of all the power and "
159 "flexibility of the :term:`recipe` framework. In order to do that, in the "
160 ":guilabel:`Add custom news sources` dialog, simply click the "
161 ":guilabel:`Switch to Advanced mode` button."
162 msgstr "ダウンロード処理を完璧にしたいときや、特に複雑な Web サイトからコンテンツをダウンロードしたいときこそ、:term:`レシピ` フレームワークの威力と柔軟性が役立ちます。これには :guilabel:`カスタムニュースソースを追加` ダイアログで :guilabel:`上級者モードに切替え` をクリックします。"
163
164 #: ../../../__w/calibre/calibre/manual/news.rst:72
165 msgid ""
166 "The easiest and often most productive customization is to use the print "
167 "version of the online articles. The print version typically has much less "
168 "cruft and translates much more smoothly to an e-book. Let's try to use the "
169 "print version of the articles from *The BBC*."
170 msgstr "最も簡単で、かつ多くの場合最も生産的なカスタマイズは、オンライン記事の印刷用バージョンを使うことです。印刷用バージョンは通例、よけいなものがはるかに少なく、電子書籍への変換もスムーズに行えます。*The BBC* の記事の印刷用バージョンを使ってみましょう."
171
172 #: ../../../__w/calibre/calibre/manual/news.rst:75
173 msgid "Using the print version of bbc.co.uk"
174 msgstr "bbc.co.uk のプリント用バージョンを使用"
175
176 #: ../../../__w/calibre/calibre/manual/news.rst:77
177 msgid ""
178 "The first step is to look at the e-book we downloaded previously from "
179 ":ref:`bbc`. At the end of each article, in the e-book is a little blurb "
180 "telling you where the article was downloaded from. Copy and paste that URL "
181 "into a browser. Now on the article webpage look for a link that points to "
182 "the \"Printable version\". Click it to see the print version of the article."
183 " It looks much neater! Now compare the two URLs. For me they were:"
184 msgstr "最初のステップは、以前 :ref:`bbc` からダウンロードした電子書籍を確認することです。各記事の末尾に、電子書籍ではその記事がどこからダウンロードされたものなのかを示す小さな記載があります。その URL をブラウザにコピーして貼り付けてください。では、記事の Web ページ上で \"Printable version\" へのリンクを探しましょう。それをクリックして記事の印刷用バージョンを見てみます。こちらの方がずっときれいです。さて、ふたつの URL を比較してみましょう。次のように見えます:"
185
186 #: ../../../__w/calibre/calibre/manual/news.rst:79
187 msgid "Article URL"
188 msgstr "記事の URL"
189
190 #: ../../../__w/calibre/calibre/manual/news.rst:80
191 msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
192 msgstr "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm"
193
194 #: ../../../__w/calibre/calibre/manual/news.rst:82
195 msgid "Print version URL"
196 msgstr "印刷用バージョンの URL"
197
198 #: ../../../__w/calibre/calibre/manual/news.rst:83
199 msgid ""
200 "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
201 msgstr "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm"
202
203 #: ../../../__w/calibre/calibre/manual/news.rst:85
204 msgid ""
205 "So it looks like to get the print version, we need to prefix every article "
206 "URL with:"
207 msgstr "したがって印刷用バージョンを入手するためには、すべての記事の URL に次のプレフィックスをつける必要がありそうです:"
208
209 #: ../../../__w/calibre/calibre/manual/news.rst:87
210 msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/"
211 msgstr "newsvote.bbc.co.uk/mpapps/pagetools/print/"
212
213 #: ../../../__w/calibre/calibre/manual/news.rst:89
214 msgid ""
215 "Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you "
216 "should see something like (remember to select *The BBC* recipe before "
217 "switching to advanced mode):"
218 msgstr "これでカスタムニュースソースダイアログの :guilabel:`上級者モード` に入りました。次のように表示されます (上級者モードに切り替える前に、忘れずに *The BBC* レシピを選択してください):"
219
220 #: ../../../__w/calibre/calibre/manual/news.rst:94
221 msgid ""
222 "You can see that the fields from the :guilabel:`Basic mode` have been "
223 "translated to Python code in a straightforward manner. We need to add "
224 "instructions to this recipe to use the print version of the articles. All "
225 "that's needed is to add the following two lines:"
226 msgstr ":guilabel:`ベーシックモード` のフィールドが Python コードに簡単な方法で変換されていることがわかります。このレシピに、記事のプリント用バージョンを利用するよう指示を加える必要があります。必要なのは、次の 2 行を追加することです:"
227
228 #: ../../../__w/calibre/calibre/manual/news.rst:101
229 msgid ""
230 "This is Python, so indentation is important. After you've added the lines, "
231 "it should look like:"
232 msgstr "これは Python なので、インデントが重要です。行を追加すると、次のようになります:"
233
234 #: ../../../__w/calibre/calibre/manual/news.rst:106
235 msgid ""
236 "In the above, ``def print_version(self, url)`` defines a *method* that is "
237 "called by calibre for every article. ``url`` is the URL of the original "
238 "article. What ``print_version`` does is take that url and replace it with "
239 "the new URL that points to the print version of the article. To learn about "
240 "`Python <https://www.python.org>`_ see the `tutorial "
241 "<https://docs.python.org/tutorial/>`_."
242 msgstr "上では ``def print_version(self, url)`` は記事ごとに calibre から呼び出される *メソッド* を定義しています。``url`` は元の記事の URL です。``print_version`` は、その URL を記事の印刷用バージョンを指す新しい URL で置き換えます。 `Python <https://www.python.org>`_ について学習するには、 `チュートリアル <https://docs.python.org/tutorial/>`_ を参照してください。"
243
244 #: ../../../__w/calibre/calibre/manual/news.rst:108
245 msgid ""
246 "Now, click the :guilabel:`Add/update recipe` button and your changes will be"
247 " saved. Re-download the e-book. You should have a much improved e-book. One "
248 "of the problems with the new version is that the fonts on the print version "
249 "webpage are too small. This is automatically fixed when converting to an "
250 "e-book, but even after the fixing process, the font size of the menus and "
251 "navigation bar become too large relative to the article text. To fix this, "
252 "we will do some more customization, in the next section."
253 msgstr "次に、:guilabel:`保存` ボタンを押すと変更が保存されます。電子書籍を再ダウンロードしてください。電子書籍はかなり改善されているはずです。この新しいバージョンの問題点のひとつは、印刷用バージョンの Web ページのフォントは小さすぎることです。これは電子書籍への変換時に自動的に修正されますが、修正処理の後でも、メニューとナビゲーションバーのフォントサイズは記事のテキストと比較して大きくなりすぎます。これを修正するには、次の章で説明するようにさらにカスタマイズが必要です。"
254
255 #: ../../../__w/calibre/calibre/manual/news.rst:111
256 msgid "Replacing article styles"
257 msgstr "記事のスタイルを置換"
258
259 #: ../../../__w/calibre/calibre/manual/news.rst:113
260 msgid ""
261 "In the previous section, we saw that the font size for articles from the "
262 "print version of *The BBC* was too small. In most websites, *The BBC* "
263 "included, this font size is set by means of :term:`CSS` stylesheets. We can "
264 "disable the fetching of such stylesheets by adding the line::"
265 msgstr "前の章では、*The BBC* の印刷用バージョンの記事のフォントサイズが小さすぎることを確認しました。*The BBC* を含めほとんどの Web サイトでは、このフォントサイズを :term:`CSS` スタイルシートを使って設定しています。そのようなスタイルシートの取得は、次の行を加えることでやめさせられます:"
266
267 #: ../../../__w/calibre/calibre/manual/news.rst:119
268 msgid "The recipe now looks like:"
269 msgstr "レシピは次のようになります:"
270
271 #: ../../../__w/calibre/calibre/manual/news.rst:124
272 msgid ""
273 "The new version looks pretty good. If you're a perfectionist, you'll want to"
274 " read the next section, which deals with actually modifying the downloaded "
275 "content."
276 msgstr "新しいバージョンは大変よくなりました。完全主義者であれば、ダウンロードしたコンテンツを実際に変更することを扱う次の章を読むことをお勧めします。"
277
278 #: ../../../__w/calibre/calibre/manual/news.rst:127
279 msgid "Slicing and dicing"
280 msgstr "スライス&ダイス分析"
281
282 #: ../../../__w/calibre/calibre/manual/news.rst:129
283 msgid ""
284 "calibre contains very powerful and flexible abilities when it comes to "
285 "manipulating downloaded content. To show off a couple of these, let's look "
286 "at our old friend the :ref:`The BBC <bbc1>` recipe again. Looking at the "
287 "source code (:term:`HTML`) of a couple of articles (print version), we see "
288 "that they have a footer that contains no useful information, contained in"
289 msgstr "ダウンロードしたコンテンツの処理にかけては、calibre には非常に強力で柔軟性のある機能を持っています。いくつか紹介するために、もはやお馴染みとなった :ref:`The BBC <bbc1>` レシピをもう一度見てみましょう。いくつかの記事 (印刷用バージョン) のソースコード (:term:`HTML`) を見ると、下で示すフッタ部分には有用な情報が含まれていないことがわかります。"
290
291 #: ../../../__w/calibre/calibre/manual/news.rst:137
292 msgid "This can be removed by adding::"
293 msgstr "これはレシピに次を追加することで削除できます::"
294
295 #: ../../../__w/calibre/calibre/manual/news.rst:141
296 msgid ""
297 "to the recipe. Finally, let's replace some of the :term:`CSS` that we "
298 "disabled earlier, with our own :term:`CSS` that is suitable for conversion "
299 "to an e-book::"
300 msgstr "最後に、以前無効にした :term:`CSS` の一部を、電子書籍への変換に適した自前の :term:`CSS` に置き換えましょう::"
301
302 #: ../../../__w/calibre/calibre/manual/news.rst:145
303 msgid "With these additions, our recipe has become \"production quality\"."
304 msgstr "こうした追加によって、レシピは「製品レベルの品質」になりました。"
305
306 #: ../../../__w/calibre/calibre/manual/news.rst:147
307 msgid ""
308 "This :term:`recipe` explores only the tip of the iceberg when it comes to "
309 "the power of calibre. To explore more of the abilities of calibre we'll "
310 "examine a more complex real life example in the next section."
311 msgstr "この :term:`レシピ` は calibre の威力に関する氷山の一角に触れたにすぎません。calibre の能力にさらに触れるため、次の章ではより複雑な実例を取り上げます。"
312
313 #: ../../../__w/calibre/calibre/manual/news.rst:150
314 msgid "Real life example"
315 msgstr "実例"
316
317 #: ../../../__w/calibre/calibre/manual/news.rst:152
318 msgid ""
319 "A reasonably complex real life example that exposes more of the :term:`API` "
320 "of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*"
321 msgstr "``BasicNewsRecipe`` の :term:`API` を体験できる適度に複雑な実例は、*The New York Times* の :term:`レシピ` です。"
322
323 #: ../../../__w/calibre/calibre/manual/news.rst:238
324 msgid "We see several new features in this :term:`recipe`. First, we have::"
325 msgstr "この :term:`レシピ` にはいくつか新しい機能があります。まず、次のものがあります::"
326
327 #: ../../../__w/calibre/calibre/manual/news.rst:242
328 msgid ""
329 "This sets the displayed time on the front page of the created e-book to be "
330 "in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt "
331 "<calibre.web.feeds.news.BasicNewsRecipe.timefmt>`."
332 msgstr "これは作成する電子書籍のとびらに日付を ``曜日, 日 月, 年`` の形式で表示します。:attr:`timefmt <calibre.web.feeds.news.BasicNewsRecipe.timefmt>` を参照してください。"
333
334 #: ../../../__w/calibre/calibre/manual/news.rst:245
335 msgid ""
336 "Then we see a group of directives to cleanup the downloaded :term:`HTML`::"
337 msgstr "そして、ダウンロードした :term:`HTML` をきれいにするための指令のかたまりがあるのがわかります。"
338
339 #: ../../../__w/calibre/calibre/manual/news.rst:251
340 msgid ""
341 "These remove everything before the first ``<h1>`` tag and everything after "
342 "the first tag whose id is ``footer``. See :attr:`remove_tags "
343 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, "
344 ":attr:`remove_tags_before "
345 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, "
346 ":attr:`remove_tags_after "
347 "<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`."
348 msgstr "これは最初の ``<h1>`` の前にあるすべてと、id が ``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>` を参照してください。"
349
350 #: ../../../__w/calibre/calibre/manual/news.rst:253
351 msgid "The next interesting feature is::"
352 msgstr "次の興味深い機能は次のものです::"
353
354 #: ../../../__w/calibre/calibre/manual/news.rst:260
355 msgid ""
356 "``needs_subscription = True`` tells calibre that this recipe needs a "
357 "username and password in order to access the content. This causes, calibre "
358 "to ask for a username and password whenever you try to use this recipe. The "
359 "code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually "
360 "does the login into the NYT website. Once logged in, calibre will use the "
361 "same, logged in, browser instance to fetch all content. See `mechanize "
362 "<https://mechanize.readthedocs.io/en/latest/>`_ to understand the code in "
363 "``get_browser``."
364 msgstr "``needs_subscription = True`` はコンテンツにアクセスするためにユーザ名とパスワードが必要であることを calibre に伝えます。これにより、calibre はこのレシピを使うたびにユーザ名とパスワードを要求します。:meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` の中のコードで、実際に NYT の Web サイトにログインしています。ログインすると、同じログイン済みのブラウザインスタンスを使用してすべてのコンテンツを取得します。``get_browser`` のコードを理解するには `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ を参照してください。"
365
366 #: ../../../__w/calibre/calibre/manual/news.rst:262
367 msgid ""
368 "The next new feature is the "
369 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job "
370 "is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch "
371 "the list of articles that appear in *today's* paper. While more complex than"
372 " simply using :term:`RSS`, the recipe creates an e-book that corresponds "
373 "very closely to the day's paper. ``parse_index`` makes heavy use of "
374 "`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ to"
375 " parse the daily paper webpage. You can also use other, more modern parsers "
376 "if you dislike BeautifulSoup. calibre comes with `lxml <https://lxml.de/>`_ "
377 "and `html5lib <https://github.com/html5lib/html5lib-python>`_, which are the"
378 " recommended parsers. To use them, replace the call to ``index_to_soup()`` "
379 "with the following::"
380 msgstr "次の新しい機能は :meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` メソッドです。これの仕事は https://www.nytimes.com/pages/todayspaper/index.html へ行き、 *今日* の 新聞に掲載されている記事のリストを取得することです。:term`RSS` を使用することに比べると複雑ですが、このレシピはその日の新聞に非常に近い電子書籍を作成します。``parse_index`` は日刊紙の Web サイトを解析するのに `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()`` の呼び出しを次のもので置き換えてください:"
381
382 #: ../../../__w/calibre/calibre/manual/news.rst:283
383 msgid ""
384 "The final new feature is the "
385 ":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It "
386 "can be used to perform arbitrary transformations on every downloaded HTML "
387 "page. Here it is used to bypass the ads that the nytimes shows you before "
388 "each article."
389 msgstr "最後の新しい機能は :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` メソッドです。ダウンロードした HTML ページごとに任意の変換を行うために利用できます。ここでは記事の前に表示される広告をよけるために使用しています。"
390
391 #: ../../../__w/calibre/calibre/manual/news.rst:286
392 msgid "Tips for developing new recipes"
393 msgstr "新しいレシピを開発するコツ"
394
395 #: ../../../__w/calibre/calibre/manual/news.rst:288
396 msgid ""
397 "The best way to develop new recipes is to use the command line interface. "
398 "Create the recipe using your favorite Python editor and save it to a file "
399 "say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can "
400 "download content using this recipe with the command::"
401 msgstr "新しいレシピを開発するのに最適なのは、コマンドラインインタフェースを利用することです。好みの Python エディタを使ってレシピを作成し、たとえば :file:`myrecipe.recipe` のようなファイルに保存します。拡張子は `.recipe` とする必要があります。このレシピを使ってコンテンツをダウンロードするには、次のコマンドを使用します::"
402
403 #: ../../../__w/calibre/calibre/manual/news.rst:292
404 msgid ""
405 "The command :command:`ebook-convert` will download all the webpages and save"
406 " them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes "
407 "ebook-convert spit out a lot of information about what it is doing. The "
408 ":option:`ebook-convert-recipe-input --test` option makes it download only a "
409 "couple of articles from at most two feeds. In addition, ebook-convert will "
410 "put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is "
411 "the folder you specified in the :option:`ebook-convert --debug-pipeline` "
412 "option."
413 msgstr ":command:`ebook-convert` コマンドは、すべての Web ページをダウンロードして :file:`myrecipe.epub` という EPUB ファイルに保存します。``-vv`` オプションを使うと、最大 2 つのフィードから数記事のみをダウンロードします。さらに、ebook-convert はダウンロードした HTML を ``debug/input`` フォルダに置きます。``debug`` は :option:`ebook-convert --debug-pipeline` オプションで指定したフォルダです。"
414
415 #: ../../../__w/calibre/calibre/manual/news.rst:300
416 msgid ""
417 "Once the download is complete, you can look at the downloaded :term:`HTML` "
418 "by opening the file :file:`debug/input/index.html` in a browser. Once you're"
419 " satisfied that the download and preprocessing is happening correctly, you "
420 "can generate e-books in different formats as shown below::"
421 msgstr "ダウンロードが完了したら、ブラウザで :file:`debug/input/index.html` ファイルを開いてダウンロードした :term:`HTML` を確認できます。ダウンロードと前処理が正しく行われていることを確認できたら、下に示すようにさまざまな形式の電子書籍を生成できます::"
422
423 #: ../../../__w/calibre/calibre/manual/news.rst:307
424 msgid ""
425 "If you're satisfied with your recipe, and you feel there is enough demand to"
426 " justify its inclusion into the set of built-in recipes, post your recipe in"
427 " the `calibre recipes forum "
428 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ to share it "
429 "with other calibre users."
430 msgstr "作成したレシピに満足して、calibre のビルトインレシピに含めるに十分なだけの需要があると感じた場合には、 `calibre レシピフォーラム <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ に投稿して他のユーザと共有してください 。"
431
432 #: ../../../__w/calibre/calibre/manual/news.rst:310
433 msgid ""
434 "On macOS, the command line tools are inside the calibre bundle, for example,"
435 " if you installed calibre in :file:`/Applications` the command line tools "
436 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
437 msgstr "macOS では、コマンドラインツールは calibre バンドルの中にあります。たとえば calibre を :file:`/Applications` にインストールしたのであれば、コマンドラインツールは :file:`/Applications/calibre.app/Contents/console.app/Contents/MacOS/` にあります。"
438
439 #: ../../../__w/calibre/calibre/manual/news.rst:316
440 msgid ":doc:`generated/en/ebook-convert`"
441 msgstr ":doc:`generated/ja/ebook-convert`"
442
443 #: ../../../__w/calibre/calibre/manual/news.rst:317
444 msgid "The command line interface for all e-book conversion."
445 msgstr "すべての電子書籍変換用のコマンドラインインタフェース。"
446
447 #: ../../../__w/calibre/calibre/manual/news.rst:321
448 msgid "Further reading"
449 msgstr "参考文献"
450
451 #: ../../../__w/calibre/calibre/manual/news.rst:323
452 msgid ""
453 "To learn more about writing advanced recipes using some of the facilities, "
454 "available in ``BasicNewsRecipe`` you should consult the following sources:"
455 msgstr "``BasicNewsRecipe`` で利用可能な機能を利用して上級レシピを作成する方法をさらに学ぶには、下のソースを参照してください:"
456
457 #: ../../../__w/calibre/calibre/manual/news.rst:325
458 msgid ":ref:`API documentation <news_recipe>`"
459 msgstr ":ref:`API 取扱説明書 <news_recipe>`"
460
461 #: ../../../__w/calibre/calibre/manual/news.rst:326
462 msgid ""
463 "Documentation of the ``BasicNewsRecipe`` class and all its important methods"
464 " and fields."
465 msgstr "``BasicNewsRecipe`` クラスと、すべての重要なメソッドおよびフィールドについての取扱説明書です。"
466
467 #: ../../../__w/calibre/calibre/manual/news.rst:328
468 msgid ""
469 "`BasicNewsRecipe "
470 "<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
471 msgstr "`BasicNewsRecipe <https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_"
472
473 #: ../../../__w/calibre/calibre/manual/news.rst:329
474 msgid "The source code of ``BasicNewsRecipe``"
475 msgstr "``BasicNewsRecipe`` のソースコード"
476
477 #: ../../../__w/calibre/calibre/manual/news.rst:331
478 msgid ""
479 "`Built-in recipes "
480 "<https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
481 msgstr "`ビルトインレシピ <https://github.com/kovidgoyal/calibre/tree/master/recipes>`_"
482
483 #: ../../../__w/calibre/calibre/manual/news.rst:332
484 msgid "The source code for the built-in recipes that come with calibre"
485 msgstr "calibre に付属しているビルトインレシピのソースコード"
486
487 #: ../../../__w/calibre/calibre/manual/news.rst:334
488 msgid ""
489 "`The calibre recipes forum "
490 "<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
491 msgstr "`calibre レシピフォーラム <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_"
492
493 #: ../../../__w/calibre/calibre/manual/news.rst:335
494 msgid "Lots of knowledgeable calibre recipe writers hang out here."
495 msgstr "知識豊富なレシピ作者の多くがここにたむろしています。"
496
497 #: ../../../__w/calibre/calibre/manual/news.rst:339
498 msgid "API documentation"
499 msgstr "API 取扱説明書"