Debian Codegraph @

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