| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# |
| 5 |
# Translators: |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: calibre\n" |
| 9 |
"Report-Msgid-Bugs-To: \n" |
| 10 |
"POT-Creation-Date: 2026-02-17 16:44+0000\n" |
| 11 |
"PO-Revision-Date: 2014-06-17 08:34+0000\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: French (Canada) (http://app.transifex.com/calibre/calibre/language/fr_CA/)\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Language: fr_CA\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" |
| 19 |
|
| 20 |
#: ../../../__w/calibre/calibre/manual/news.rst:4 |
| 21 |
msgid "Adding your favorite news website" |
| 22 |
msgstr "Ajouter votre site web favori d'actualités" |
| 23 |
|
| 24 |
#: ../../../__w/calibre/calibre/manual/news.rst:6 |
| 25 |
msgid "" |
| 26 |
"calibre has a powerful, flexible and easy-to-use framework for downloading " |
| 27 |
"news from the Internet and converting it into an e-book. The following will " |
| 28 |
"show you, by means of examples, how to get news from various websites." |
| 29 |
msgstr "calibre contient une structure de création puissante, flexible et facile à utiliser pour télécharger des actualités sur Internet et les convertir en livre numérique. Ce qui suit vous montrera, au moyen d'exemples, comment obtenir les actualités de divers sites web." |
| 30 |
|
| 31 |
#: ../../../__w/calibre/calibre/manual/news.rst:8 |
| 32 |
msgid "" |
| 33 |
"To gain an understanding of how to use the framework, follow the examples in" |
| 34 |
" the order listed below:" |
| 35 |
msgstr "Pour avoir une compréhension de la façon d’employer cette structure de création, suivez les exemples ci-dessous dans l'ordre :" |
| 36 |
|
| 37 |
#: ../../../__w/calibre/calibre/manual/news.rst:15 |
| 38 |
msgid "Completely automatic fetching" |
| 39 |
msgstr "Récupération entièrement automatique" |
| 40 |
|
| 41 |
#: ../../../__w/calibre/calibre/manual/news.rst:17 |
| 42 |
msgid "" |
| 43 |
"If your news source is simple enough, calibre may well be able to fetch it " |
| 44 |
"completely automatically, all you need to do is provide the URL. calibre " |
| 45 |
"gathers all the information needed to download a news source into a " |
| 46 |
":term:`recipe`. In order to tell calibre about a news source, you have to " |
| 47 |
"create a :term:`recipe` for it. Let's see some examples:" |
| 48 |
msgstr "Si votre source d’actualité est assez simple, calibre est capable d’en effectuer la récupération de manière complètement automatique. Tout ce que vous avez à faire est de fournir l’URL. calibre recueille toutes les informations nécessaires pour télécharger une source d’actualités dans une :term:`recette`. Pour intégrer à calibre une nouvelle source d’actualité, vous devez créer une :term:`recette` pour celle-ci. Voyons quelques exemples :" |
| 49 |
|
| 50 |
#: ../../../__w/calibre/calibre/manual/news.rst:26 |
| 51 |
msgid "The calibre blog" |
| 52 |
msgstr "Le blog calibre" |
| 53 |
|
| 54 |
#: ../../../__w/calibre/calibre/manual/news.rst:28 |
| 55 |
msgid "" |
| 56 |
"The calibre blog is a blog of posts that describe many useful calibre " |
| 57 |
"features in a simple and accessible way for new calibre users. In order to " |
| 58 |
"download this blog into an e-book, we rely on the :term:`RSS` feed of the " |
| 59 |
"blog::" |
| 60 |
msgstr "Le blog calibre est un blog de postes qui décrivent beaucoup de fonctionnalités utiles de calibre d'une manière simple et accessible pour les nouveaux utilisateurs de calibre. Pour pouvoir télécharger ce blog dans un livre numérique, nous nous référons au flux :term:`RSS` du blog::" |
| 61 |
|
| 62 |
#: ../../../__w/calibre/calibre/manual/news.rst:34 |
| 63 |
msgid "" |
| 64 |
"I got the RSS URL by looking under \"Subscribe to\" at the bottom of the " |
| 65 |
"blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the" |
| 66 |
" feeds and convert them into an e-book, you should right click the " |
| 67 |
":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news " |
| 68 |
"source` menu item and then the :guilabel:`New Recipe` button. A dialog " |
| 69 |
"similar to that shown below should open up." |
| 70 |
msgstr "J'ai obtenu l'URL RSS en regardant sous \"Subscribe to\" en bas de la page du blog et en choisissant :guilabel:`Posts->Atom`. Pour faire en sorte que calibre télécharge les flux et les convertissent en livre numérique, vous devrez faire une clic droit sur le bouton :guilabel:`Récupérer des actualités` et puis le bouton :guilabel:`Ajouter une source personnalisée d'informations`. Une boite de dialogue semblable à celle montrée ci-dessous devrait s'ouvrir." |
| 71 |
|
| 72 |
#: ../../../__w/calibre/calibre/manual/news.rst:43 |
| 73 |
msgid "" |
| 74 |
"First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This " |
| 75 |
"will be the title of the e-book that will be created from the articles in " |
| 76 |
"the above feeds." |
| 77 |
msgstr "Tout d'abord entrez ``Blog calibre`` dans le champ :guilabel:`Titre de la recette`. Ceci sera le titre du livre numérique qui sera créé à partir des articles des flux ci-dessus." |
| 78 |
|
| 79 |
#: ../../../__w/calibre/calibre/manual/news.rst:45 |
| 80 |
msgid "" |
| 81 |
"The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number " |
| 82 |
"of articles`) allow you some control over how many articles should be " |
| 83 |
"downloaded from each feed, and they are pretty self explanatory." |
| 84 |
msgstr "Les deux champs suivants (:guilabel:`Article le plus ancien` et :guilabel:`Max. Nombre d’articles par flux`) donnent la possibilité de contrôler combien d’articles pourront être téléchargés de chaque flux. Ils sont assez explicites." |
| 85 |
|
| 86 |
#: ../../../__w/calibre/calibre/manual/news.rst:47 |
| 87 |
msgid "" |
| 88 |
"To add the feeds to the recipe, enter the feed title and the feed URL and " |
| 89 |
"click the :guilabel:`Add feed` button. Once you have added the feed, simply " |
| 90 |
"click the :guilabel:`Save` button and you're done! Close the dialog." |
| 91 |
msgstr "Pour ajouter les flux à la recette, entrer le titre du flux et l’URL du flux et cliquez sur le bouton :guilabel:`Ajouter un flux`. Une fois que vous avez ajouté le flux, cliquez simplement sur le bouton :guilabel:`Sauvegarder` et vous avez fini ! Fermez la boîte de dialogue." |
| 92 |
|
| 93 |
#: ../../../__w/calibre/calibre/manual/news.rst:51 |
| 94 |
msgid "" |
| 95 |
"To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and" |
| 96 |
" in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre " |
| 97 |
"Blog`. After a couple of minutes, the newly downloaded e-book of blog posts " |
| 98 |
"will appear in the main library view (if you have your reader connected, it " |
| 99 |
"will be put onto the reader instead of into the library). Select it and hit " |
| 100 |
"the :guilabel:`View` button to read!" |
| 101 |
msgstr "Pour tester votre nouvelle :term:`recette`, cliquez le bouton :guilabel:`Récupérer des informations` et dans le sous menu :guilabel:`Personnaliser les sources d'actualités` cliquez guilabel:`Blog calibre`. Après quelques minutes, le nouveau livre numérique de postes de blog apparaîtra dans la vue de la bibliothèque principale (si votre lecteur est connecté, il sera déposé sur le lecteur plutôt que dans la bibliothèque). Sélectionnez-le et appuyer le bouton :guilabel:`Visualiser` pour le lire !" |
| 102 |
|
| 103 |
#: ../../../__w/calibre/calibre/manual/news.rst:53 |
| 104 |
msgid "" |
| 105 |
"The reason this worked so well, with so little effort is that the blog " |
| 106 |
"provides *full-content* :term:`RSS` feeds, i.e., the article content is " |
| 107 |
"embedded in the feed itself. For most news sources that provide news in this" |
| 108 |
" fashion, with *full-content* feeds, you don't need any more effort to " |
| 109 |
"convert them to e-books. Now we will look at a news source that does not " |
| 110 |
"provide full content feeds. In such feeds, the full article is a webpage and" |
| 111 |
" the feed only contains a link to the webpage with a short summary of the " |
| 112 |
"article." |
| 113 |
msgstr "La raison pour laquelle cela fonctionne si bien, avec si peu d’efforts, est parce que le blog fournit un flux RSS à *contenu plein*, c'est à dire, dont le contenu de l’article est inclut dans le flux lui-même. Pour la plupart des sites d’actualités qui fournissent des actualités de cette façon, avec des flux à *contenu plein*, vous n’avez pas besoin de faire beaucoup plus d’efforts pour les convertir en livres numériques. Maintenant nous allons regarder à des sources d'actualités qui ne fournissent pas des flux à contenu plein. Dans de tels flux, L'article complet est une page web et le flux contient uniquement un lien vers la page web avec un petit résumé de l'article." |
| 114 |
|
| 115 |
#: ../../../__w/calibre/calibre/manual/news.rst:58 |
| 116 |
msgid "bbc.co.uk" |
| 117 |
msgstr "bbc.co.uk" |
| 118 |
|
| 119 |
#: ../../../__w/calibre/calibre/manual/news.rst:60 |
| 120 |
msgid "Let's try the following two feeds from *The BBC*:" |
| 121 |
msgstr "Essayons les deux flux suivants de *The BBC* :" |
| 122 |
|
| 123 |
#: ../../../__w/calibre/calibre/manual/news.rst:62 |
| 124 |
msgid "" |
| 125 |
"News Front Page: " |
| 126 |
"https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" |
| 127 |
msgstr "News Front Page: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" |
| 128 |
|
| 129 |
#: ../../../__w/calibre/calibre/manual/news.rst:63 |
| 130 |
msgid "" |
| 131 |
"Science/Nature: " |
| 132 |
"https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml" |
| 133 |
msgstr "Science/Nature: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml" |
| 134 |
|
| 135 |
#: ../../../__w/calibre/calibre/manual/news.rst:65 |
| 136 |
msgid "" |
| 137 |
"Follow the procedure outlined in :ref:`calibre_blog` above to create a " |
| 138 |
"recipe for *The BBC* (using the feeds above). Looking at the downloaded " |
| 139 |
"e-book, we see that calibre has done a creditable job of extracting only the" |
| 140 |
" content you care about from each article's webpage. However, the extraction" |
| 141 |
" process is not perfect. Sometimes it leaves in undesirable content like " |
| 142 |
"menus and navigation aids or it removes content that should have been left " |
| 143 |
"alone, like article headings. In order, to have perfect content extraction, " |
| 144 |
"we will need to customize the fetch process, as described in the next " |
| 145 |
"section." |
| 146 |
msgstr "Suivez la procédure comme exposée dans :ref:`calibre_blog` pour créer une recette pour *The BBC* (en utilisant les flux ci-dessus). Regardez le livre numérique téléchargé,nous voyons que calibre a réalisé un travail honorable d'extraire seulement le contenu qui vous intéresse depuis la page web de chaque article. Cependant, le processus d'extraction n'est pas parfait. Parfois il laisse du contenu indésirable comme des menus et des aides à la navigation ou enlève du contenu qui aurait dû apparaître seul, comme des titres d’article. Pour obtenir une extraction parfaite, nous aurons besoin d’adapter le processus de récupération, tel que décrit dans la section suivante." |
| 147 |
|
| 148 |
#: ../../../__w/calibre/calibre/manual/news.rst:68 |
| 149 |
msgid "Customizing the fetch process" |
| 150 |
msgstr "Personnaliser le processus de récupération" |
| 151 |
|
| 152 |
#: ../../../__w/calibre/calibre/manual/news.rst:70 |
| 153 |
msgid "" |
| 154 |
"When you want to perfect the download process, or download content from a " |
| 155 |
"particularly complex website, you can avail yourself of all the power and " |
| 156 |
"flexibility of the :term:`recipe` framework. In order to do that, in the " |
| 157 |
":guilabel:`Add custom news sources` dialog, simply click the " |
| 158 |
":guilabel:`Switch to Advanced mode` button." |
| 159 |
msgstr "Quand vous voulez perfectionner le processus de téléchargement, ou télécharger du contenu d'un site web particulièrement complexe, vous pouvez vous servir de toutes la puissance et de la flexibilité de la structure :term:`recette`. Afin de faire cela, dans la boîte de dialogue :guilabel:`Ajouter des sources d'actualités personnalisées`, cliquez simplement sur le bouton :guilabel:`Basculer vers le mode Avancé`." |
| 160 |
|
| 161 |
#: ../../../__w/calibre/calibre/manual/news.rst:72 |
| 162 |
msgid "" |
| 163 |
"The easiest and often most productive customization is to use the print " |
| 164 |
"version of the online articles. The print version typically has much less " |
| 165 |
"cruft and translates much more smoothly to an e-book. Let's try to use the " |
| 166 |
"print version of the articles from *The BBC*." |
| 167 |
msgstr "La personnalisation la plus facile et souvent la plus productive est d'employer la version imprimable des articles en ligne. La version imprimable est habituellement moins compliqué et se traduit beaucoup plus souplement en un livre numérique. Essayons d'employer la version imprimable des articles de *The BBC*." |
| 168 |
|
| 169 |
#: ../../../__w/calibre/calibre/manual/news.rst:75 |
| 170 |
msgid "Using the print version of bbc.co.uk" |
| 171 |
msgstr "Utilisation de la version imprimable de bbc.co.uk" |
| 172 |
|
| 173 |
#: ../../../__w/calibre/calibre/manual/news.rst:77 |
| 174 |
msgid "" |
| 175 |
"The first step is to look at the e-book we downloaded previously from " |
| 176 |
":ref:`bbc`. At the end of each article, in the e-book is a little blurb " |
| 177 |
"telling you where the article was downloaded from. Copy and paste that URL " |
| 178 |
"into a browser. Now on the article webpage look for a link that points to " |
| 179 |
"the \"Printable version\". Click it to see the print version of the article." |
| 180 |
" It looks much neater! Now compare the two URLs. For me they were:" |
| 181 |
msgstr "La première étape est de regarder le livre numérique que nous avons précédemment téléchargé depuis :ref:`bbc`. A la fin de chaque article, dans le livre numérique il y a un petit texte de présentation vous indiquant d'où l'article a été téléchargé. Copier et coller cette URL dans un navigateur. Maintenant sur la page Web de l'article recherchez un lien qui pointe vers la \"version imprimable\". Cliquez le pour voir la version imprimable de l'article. Il parait beaucoup plus ordonné ! Comparez maintenant les deux URLs. Pour moi elles étaient :" |
| 182 |
|
| 183 |
#: ../../../__w/calibre/calibre/manual/news.rst:79 |
| 184 |
msgid "Article URL" |
| 185 |
msgstr "URL d'article" |
| 186 |
|
| 187 |
#: ../../../__w/calibre/calibre/manual/news.rst:80 |
| 188 |
msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm" |
| 189 |
msgstr "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm" |
| 190 |
|
| 191 |
#: ../../../__w/calibre/calibre/manual/news.rst:82 |
| 192 |
msgid "Print version URL" |
| 193 |
msgstr "URL de version imprimable" |
| 194 |
|
| 195 |
#: ../../../__w/calibre/calibre/manual/news.rst:83 |
| 196 |
msgid "" |
| 197 |
"https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm" |
| 198 |
msgstr "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm" |
| 199 |
|
| 200 |
#: ../../../__w/calibre/calibre/manual/news.rst:85 |
| 201 |
msgid "" |
| 202 |
"So it looks like to get the print version, we need to prefix every article " |
| 203 |
"URL with:" |
| 204 |
msgstr "Aussi il semble que pour obtenir la version imprimable, nous avons besoin de préfixer que URL d'article avec :" |
| 205 |
|
| 206 |
#: ../../../__w/calibre/calibre/manual/news.rst:87 |
| 207 |
msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/" |
| 208 |
msgstr "newsvote.bbc.co.uk/mpapps/pagetools/print/" |
| 209 |
|
| 210 |
#: ../../../__w/calibre/calibre/manual/news.rst:89 |
| 211 |
msgid "" |
| 212 |
"Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you " |
| 213 |
"should see something like (remember to select *The BBC* recipe before " |
| 214 |
"switching to advanced mode):" |
| 215 |
msgstr "Dorénavant dans le :guilabel:`Mode Avancé` de la boîte de dialogue Personnaliser les sources d'actualités, vous devriez voir quelque chose comme (rappeler vous de sélectionner la recette *The BBC* avant de basculer vers le mode avancé) :" |
| 216 |
|
| 217 |
#: ../../../__w/calibre/calibre/manual/news.rst:94 |
| 218 |
msgid "" |
| 219 |
"You can see that the fields from the :guilabel:`Basic mode` have been " |
| 220 |
"translated to Python code in a straightforward manner. We need to add " |
| 221 |
"instructions to this recipe to use the print version of the articles. All " |
| 222 |
"that's needed is to add the following two lines:" |
| 223 |
msgstr "Vous pouvez voir que les champs du :guilabel:`Mode de base` ont été traduits en code de Python d'une façon simple. Nous devons ajouter des instructions à cette recette pour employer la version imprimable des articles. Tout ce qui est nécessaire est d'ajouter les deux lignes suivantes :" |
| 224 |
|
| 225 |
#: ../../../__w/calibre/calibre/manual/news.rst:101 |
| 226 |
msgid "" |
| 227 |
"This is Python, so indentation is important. After you've added the lines, " |
| 228 |
"it should look like:" |
| 229 |
msgstr "C'est du Python, donc l'indentation est importante. Après que vous ayez ajouté les lignes, elles devraient ressembler à :" |
| 230 |
|
| 231 |
#: ../../../__w/calibre/calibre/manual/news.rst:106 |
| 232 |
msgid "" |
| 233 |
"In the above, ``def print_version(self, url)`` defines a *method* that is " |
| 234 |
"called by calibre for every article. ``url`` is the URL of the original " |
| 235 |
"article. What ``print_version`` does is take that url and replace it with " |
| 236 |
"the new URL that points to the print version of the article. To learn about " |
| 237 |
"`Python <https://www.python.org>`_ see the `tutorial " |
| 238 |
"<https://docs.python.org/tutorial/>`_." |
| 239 |
msgstr "Ci-dessus, ``def print_version(self, url)`` définit une *méthode* qui est appelée par calibre pour chaque article. ``url`` est l'URL de l'article original. Ce que ``print_version`` fait est de prendre cette url et de la remplacer avec l'URL qui pointe vers la version imprimable de l'article. Pour apprendre à propos de `Python <https://www.python.org>`_ voir le `tutoriel <https://docs.python.org/tutorial/>`_." |
| 240 |
|
| 241 |
#: ../../../__w/calibre/calibre/manual/news.rst:108 |
| 242 |
msgid "" |
| 243 |
"Now, click the :guilabel:`Add/update recipe` button and your changes will be" |
| 244 |
" saved. Re-download the e-book. You should have a much improved e-book. One " |
| 245 |
"of the problems with the new version is that the fonts on the print version " |
| 246 |
"webpage are too small. This is automatically fixed when converting to an " |
| 247 |
"e-book, but even after the fixing process, the font size of the menus and " |
| 248 |
"navigation bar become too large relative to the article text. To fix this, " |
| 249 |
"we will do some more customization, in the next section." |
| 250 |
msgstr "Maintenant, cliquez sur le bouton :guilabel:`Ajouter/Mettre à jour la recette` et vos changements seront enregistrés. Téléchargez à nouveau le livre numérique. Vous devriez obtenir un livre numérique beaucoup plus amélioré. Un des problèmes avec la nouvelle version est que les polices sur la page Web de la version imprimable sont trop petites. Ceci est automatiquement fixé en convertissant en livre numérique, mais même après le processus de fixation, la taille de la police des menus et la barre de navigation peuvent être trop grandes relativement au texte de l'article. Pour fixer ceci, nous ferons encore plus de personnalisation dans la prochaine section." |
| 251 |
|
| 252 |
#: ../../../__w/calibre/calibre/manual/news.rst:111 |
| 253 |
msgid "Replacing article styles" |
| 254 |
msgstr "Remplacer les styles d'article" |
| 255 |
|
| 256 |
#: ../../../__w/calibre/calibre/manual/news.rst:113 |
| 257 |
msgid "" |
| 258 |
"In the previous section, we saw that the font size for articles from the " |
| 259 |
"print version of *The BBC* was too small. In most websites, *The BBC* " |
| 260 |
"included, this font size is set by means of :term:`CSS` stylesheets. We can " |
| 261 |
"disable the fetching of such stylesheets by adding the line::" |
| 262 |
msgstr "Dans la section précédente, nous avons vu que la taille de la police pour des articles de la version imprimable de *The BBC* était trop petite. Dans la plupart des sites Web, le *The BBC* inclus, cette taille de la police est placée au moyen de feuilles de style :term:`CSS`. Nous pouvons désactiver la récupération de telles feuilles de style n ajoutant la ligne::" |
| 263 |
|
| 264 |
#: ../../../__w/calibre/calibre/manual/news.rst:119 |
| 265 |
msgid "The recipe now looks like:" |
| 266 |
msgstr "La recette ressemble maintenant à :" |
| 267 |
|
| 268 |
#: ../../../__w/calibre/calibre/manual/news.rst:124 |
| 269 |
msgid "" |
| 270 |
"The new version looks pretty good. If you're a perfectionist, you'll want to" |
| 271 |
" read the next section, which deals with actually modifying the downloaded " |
| 272 |
"content." |
| 273 |
msgstr "La nouvelle version parait assez bonne. Si vous êtes un perfectionniste, vous voudrez lire la prochaine section, qui traite de modifier réellement le contenu téléchargé." |
| 274 |
|
| 275 |
#: ../../../__w/calibre/calibre/manual/news.rst:127 |
| 276 |
msgid "Slicing and dicing" |
| 277 |
msgstr "Découper et émincer" |
| 278 |
|
| 279 |
#: ../../../__w/calibre/calibre/manual/news.rst:129 |
| 280 |
msgid "" |
| 281 |
"calibre contains very powerful and flexible abilities when it comes to " |
| 282 |
"manipulating downloaded content. To show off a couple of these, let's look " |
| 283 |
"at our old friend the :ref:`The BBC <bbc1>` recipe again. Looking at the " |
| 284 |
"source code (:term:`HTML`) of a couple of articles (print version), we see " |
| 285 |
"that they have a footer that contains no useful information, contained in" |
| 286 |
msgstr "calibre a des capacités très puissantes et flexibles quand il s'agit de manipuler le contenu téléchargé. Pour montrer quelques uns de ces derniers, regardons encore notre vieille amie la recette :ref:`The BBC <bbc1>`. Regardez le code source (:term:`HTML`) de quelques articles (version imprimable), nous voyons qu'il contient un pied de page qui n'apporte aucune information utile" |
| 287 |
|
| 288 |
#: ../../../__w/calibre/calibre/manual/news.rst:137 |
| 289 |
msgid "This can be removed by adding::" |
| 290 |
msgstr "Ceci peut être supprimé en ajoutant::" |
| 291 |
|
| 292 |
#: ../../../__w/calibre/calibre/manual/news.rst:141 |
| 293 |
msgid "" |
| 294 |
"to the recipe. Finally, let's replace some of the :term:`CSS` that we " |
| 295 |
"disabled earlier, with our own :term:`CSS` that is suitable for conversion " |
| 296 |
"to an e-book::" |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#: ../../../__w/calibre/calibre/manual/news.rst:145 |
| 300 |
msgid "With these additions, our recipe has become \"production quality\"." |
| 301 |
msgstr "Avec ces ajouts, notre recette est devenue \"qualité de production\"." |
| 302 |
|
| 303 |
#: ../../../__w/calibre/calibre/manual/news.rst:147 |
| 304 |
msgid "" |
| 305 |
"This :term:`recipe` explores only the tip of the iceberg when it comes to " |
| 306 |
"the power of calibre. To explore more of the abilities of calibre we'll " |
| 307 |
"examine a more complex real life example in the next section." |
| 308 |
msgstr "Cette :term:`recette` explore seulement la partie émergée de l'iceberg quand il s'agit de la puissance de calibre. Pour mieux explorer les capacités de calibre nous examinerons un exemple plus complexe de vie réelle dans la prochaine section." |
| 309 |
|
| 310 |
#: ../../../__w/calibre/calibre/manual/news.rst:150 |
| 311 |
msgid "Real life example" |
| 312 |
msgstr "Exemple de la vie réelle" |
| 313 |
|
| 314 |
#: ../../../__w/calibre/calibre/manual/news.rst:152 |
| 315 |
msgid "" |
| 316 |
"A reasonably complex real life example that exposes more of the :term:`API` " |
| 317 |
"of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*" |
| 318 |
msgstr "Un exemple de la vie réelle raisonnablement complexe qui expose plus de l':term:`API` de ``BasicNewsRecipe`` est la :term:`recette` pour *The New York Times*" |
| 319 |
|
| 320 |
#: ../../../__w/calibre/calibre/manual/news.rst:238 |
| 321 |
msgid "We see several new features in this :term:`recipe`. First, we have::" |
| 322 |
msgstr "Nous voyons plusieurs nouvelles fonctionnalités dans cette :term:`recipe`. En premier, nous avons::" |
| 323 |
|
| 324 |
#: ../../../__w/calibre/calibre/manual/news.rst:242 |
| 325 |
msgid "" |
| 326 |
"This sets the displayed time on the front page of the created e-book to be " |
| 327 |
"in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt " |
| 328 |
"<calibre.web.feeds.news.BasicNewsRecipe.timefmt>`." |
| 329 |
msgstr "Ceci règle le temps affiché sur la page de garde du livre numérique créé au format , ``Day, Day_Number Month, Year``. Voir :attr:`timefmt <calibre.web.feeds.news.BasicNewsRecipe.timefmt>`." |
| 330 |
|
| 331 |
#: ../../../__w/calibre/calibre/manual/news.rst:245 |
| 332 |
msgid "" |
| 333 |
"Then we see a group of directives to cleanup the downloaded :term:`HTML`::" |
| 334 |
msgstr "Voyons maintenant un groupe de directives pour nettoyer l':term:` HTML` téléchargé::" |
| 335 |
|
| 336 |
#: ../../../__w/calibre/calibre/manual/news.rst:251 |
| 337 |
msgid "" |
| 338 |
"These remove everything before the first ``<h1>`` tag and everything after " |
| 339 |
"the first tag whose id is ``footer``. See :attr:`remove_tags " |
| 340 |
"<calibre.web.feeds.news.BasicNewsRecipe.remove_tags>`, " |
| 341 |
":attr:`remove_tags_before " |
| 342 |
"<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before>`, " |
| 343 |
":attr:`remove_tags_after " |
| 344 |
"<calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after>`." |
| 345 |
msgstr "Celle-ci supprime tout avant la première balise ``<h1>`` et tout ce qui se trouve après le première balise dont l'id est ``footer``. Voir :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>`." |
| 346 |
|
| 347 |
#: ../../../__w/calibre/calibre/manual/news.rst:253 |
| 348 |
msgid "The next interesting feature is::" |
| 349 |
msgstr "La prochaine fonctionnalité intéressante est::" |
| 350 |
|
| 351 |
#: ../../../__w/calibre/calibre/manual/news.rst:260 |
| 352 |
msgid "" |
| 353 |
"``needs_subscription = True`` tells calibre that this recipe needs a " |
| 354 |
"username and password in order to access the content. This causes, calibre " |
| 355 |
"to ask for a username and password whenever you try to use this recipe. The " |
| 356 |
"code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually " |
| 357 |
"does the login into the NYT website. Once logged in, calibre will use the " |
| 358 |
"same, logged in, browser instance to fetch all content. See `mechanize " |
| 359 |
"<https://mechanize.readthedocs.io/en/latest/>`_ to understand the code in " |
| 360 |
"``get_browser``." |
| 361 |
msgstr "``needs_subscription = True`` dit à calibre que cette recette nécessite un nom d'utilisateur et un mot de passe pour accéder au contenu. Ceci amène calibre à demander après un nom d'utilisateur et un mot de passe à chaque fois que vous essayez d'utiliser cette recette. Le code dans :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` fait réellement l'ouverture de session sur le site Web de NYT. Une fois connecté, calibre utilisera la même instance, connectée, du navigateur pour récupérer tout le contenu. Voir `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ pour comprendre le code dans ``get_browser``." |
| 362 |
|
| 363 |
#: ../../../__w/calibre/calibre/manual/news.rst:262 |
| 364 |
msgid "" |
| 365 |
"The next new feature is the " |
| 366 |
":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job " |
| 367 |
"is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch " |
| 368 |
"the list of articles that appear in *today's* paper. While more complex than" |
| 369 |
" simply using :term:`RSS`, the recipe creates an e-book that corresponds " |
| 370 |
"very closely to the day's paper. ``parse_index`` makes heavy use of " |
| 371 |
"`BeautifulSoup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`_ to" |
| 372 |
" parse the daily paper webpage. You can also use other, more modern parsers " |
| 373 |
"if you dislike BeautifulSoup. calibre comes with `lxml <https://lxml.de/>`_ " |
| 374 |
"and `html5lib <https://github.com/html5lib/html5lib-python>`_, which are the" |
| 375 |
" recommended parsers. To use them, replace the call to ``index_to_soup()`` " |
| 376 |
"with the following::" |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#: ../../../__w/calibre/calibre/manual/news.rst:283 |
| 380 |
msgid "" |
| 381 |
"The final new feature is the " |
| 382 |
":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It " |
| 383 |
"can be used to perform arbitrary transformations on every downloaded HTML " |
| 384 |
"page. Here it is used to bypass the ads that the nytimes shows you before " |
| 385 |
"each article." |
| 386 |
msgstr "La nouvelle fonctionnalité finale est la méthode :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html`. Elle peut être employée pour exécuter des transformations quelconques sur chaque page HTML téléchargée. Ici elle est employée pour éviter les publicités que le nytimes place avant chaque article." |
| 387 |
|
| 388 |
#: ../../../__w/calibre/calibre/manual/news.rst:286 |
| 389 |
msgid "Tips for developing new recipes" |
| 390 |
msgstr "Astuces pour développer de nouvelles recettes" |
| 391 |
|
| 392 |
#: ../../../__w/calibre/calibre/manual/news.rst:288 |
| 393 |
msgid "" |
| 394 |
"The best way to develop new recipes is to use the command line interface. " |
| 395 |
"Create the recipe using your favorite Python editor and save it to a file " |
| 396 |
"say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can " |
| 397 |
"download content using this recipe with the command::" |
| 398 |
msgstr "La meilleure manière de développer de nouvelles recettes est d’utiliser l’interface de commande en ligne. Créer la recette en utilisant votre éditeur Python favori et sauvegardez la dans un fichier nommé :file:`myrecipe.recipe`. L’extension `.recipe` est obligatoire. Vous pouvez télécharger le contenu qu’utilise cette recette avec la commande::" |
| 399 |
|
| 400 |
#: ../../../__w/calibre/calibre/manual/news.rst:292 |
| 401 |
msgid "" |
| 402 |
"The command :command:`ebook-convert` will download all the webpages and save" |
| 403 |
" them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes " |
| 404 |
"ebook-convert spit out a lot of information about what it is doing. The " |
| 405 |
":option:`ebook-convert-recipe-input --test` option makes it download only a " |
| 406 |
"couple of articles from at most two feeds. In addition, ebook-convert will " |
| 407 |
"put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is " |
| 408 |
"the folder you specified in the :option:`ebook-convert --debug-pipeline` " |
| 409 |
"option." |
| 410 |
msgstr "La commande :command:`ebook-convert` téléchargera toutes les pages web et les enregistrera dans le fichier EPUB :file:`myrecipe.epub`. L'option ``-vv`` fait en sorte que ebook-convert renvoie beaucoup d’informations sur ce qu’il fait. L'option :option:`ebook-convert-recipe-input --test` fait qu’il ne télécharge que quelques articles d’au maximum deux flux. En outre, ebook-convert déposera l’HTML téléchargé dans le répertoire ``debug/input``, où ``debug`` est le répertoire que vous avez spécifié dans l’option :option:`ebook-convert --debug-pipeline`." |
| 411 |
|
| 412 |
#: ../../../__w/calibre/calibre/manual/news.rst:300 |
| 413 |
msgid "" |
| 414 |
"Once the download is complete, you can look at the downloaded :term:`HTML` " |
| 415 |
"by opening the file :file:`debug/input/index.html` in a browser. Once you're" |
| 416 |
" satisfied that the download and preprocessing is happening correctly, you " |
| 417 |
"can generate e-books in different formats as shown below::" |
| 418 |
msgstr "Une fois le téléchargement terminé, vous pouvez regarder l’:term:`HTML` téléchargé en ouvrant le fichier :file:`debug/input/index.html` dans un navigateur. Une fois que vous êtes satisfait que le téléchargement et le pré-traitement se sont déroulés correctement, vous pouvez générer des livres numériques dans différents formats comme montré ci-dessous::" |
| 419 |
|
| 420 |
#: ../../../__w/calibre/calibre/manual/news.rst:307 |
| 421 |
msgid "" |
| 422 |
"If you're satisfied with your recipe, and you feel there is enough demand to" |
| 423 |
" justify its inclusion into the set of built-in recipes, post your recipe in" |
| 424 |
" the `calibre recipes forum " |
| 425 |
"<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ to share it " |
| 426 |
"with other calibre users." |
| 427 |
msgstr "Si vous êtes satisfait de votre recette et que vous sentez qu’il y a suffisamment de demandes pour l’inclure dans le jeu de recettes intégrées, déposez votre recette sur le `forum calibre de recettes <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ pour la partager avec les autres utilisateurs de calibre." |
| 428 |
|
| 429 |
#: ../../../__w/calibre/calibre/manual/news.rst:310 |
| 430 |
msgid "" |
| 431 |
"On macOS, the command line tools are inside the calibre bundle, for example," |
| 432 |
" if you installed calibre in :file:`/Applications` the command line tools " |
| 433 |
"are in :file:`/Applications/calibre.app/Contents/MacOS/`." |
| 434 |
msgstr "Sous macOS, les outils en de ligne de commande sont à l'intérieur de la suite logicielle calibre, par exemple, si vous installez calibre dans :file:`/Applications` les outils de ligne de commande sont dans :file:`/Applications/calibre.app/Contents/MacOS/`." |
| 435 |
|
| 436 |
#: ../../../__w/calibre/calibre/manual/news.rst:316 |
| 437 |
msgid ":doc:`generated/en/ebook-convert`" |
| 438 |
msgstr ":doc:`generated/fr/ebook-convert`" |
| 439 |
|
| 440 |
#: ../../../__w/calibre/calibre/manual/news.rst:317 |
| 441 |
msgid "The command line interface for all e-book conversion." |
| 442 |
msgstr "L'interface en ligne de commande pour toute conversion de livre numérique" |
| 443 |
|
| 444 |
#: ../../../__w/calibre/calibre/manual/news.rst:321 |
| 445 |
msgid "Further reading" |
| 446 |
msgstr "Lectures recommandées" |
| 447 |
|
| 448 |
#: ../../../__w/calibre/calibre/manual/news.rst:323 |
| 449 |
msgid "" |
| 450 |
"To learn more about writing advanced recipes using some of the facilities, " |
| 451 |
"available in ``BasicNewsRecipe`` you should consult the following sources:" |
| 452 |
msgstr "Pour en apprendre plus sur l’écriture avancée de recettes utilisant quelques unes des facilités disponibles dans ``BasicNewsRecipe``, vous devriez consulter les sources suivantes :" |
| 453 |
|
| 454 |
#: ../../../__w/calibre/calibre/manual/news.rst:325 |
| 455 |
msgid ":ref:`API documentation <news_recipe>`" |
| 456 |
msgstr ":ref:`Documentation API <news_recipe>`" |
| 457 |
|
| 458 |
#: ../../../__w/calibre/calibre/manual/news.rst:326 |
| 459 |
msgid "" |
| 460 |
"Documentation of the ``BasicNewsRecipe`` class and all its important methods" |
| 461 |
" and fields." |
| 462 |
msgstr "Documentation sur la classe ``BasicNewsRecipe`` et toutes ses méthodes importantes et champs." |
| 463 |
|
| 464 |
#: ../../../__w/calibre/calibre/manual/news.rst:328 |
| 465 |
msgid "" |
| 466 |
"`BasicNewsRecipe " |
| 467 |
"<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_" |
| 468 |
msgstr "`BasicNewsRecipe <https://github.com/kovidgoyal/calibre/blob/master/src/calibre/web/feeds/news.py>`_" |
| 469 |
|
| 470 |
#: ../../../__w/calibre/calibre/manual/news.rst:329 |
| 471 |
msgid "The source code of ``BasicNewsRecipe``" |
| 472 |
msgstr "Le code source de ``BasicNewsRecipe``" |
| 473 |
|
| 474 |
#: ../../../__w/calibre/calibre/manual/news.rst:331 |
| 475 |
msgid "" |
| 476 |
"`Built-in recipes " |
| 477 |
"<https://github.com/kovidgoyal/calibre/tree/master/recipes>`_" |
| 478 |
msgstr "`Recettes intégrées <https://github.com/kovidgoyal/calibre/tree/master/recipes>`_" |
| 479 |
|
| 480 |
#: ../../../__w/calibre/calibre/manual/news.rst:332 |
| 481 |
msgid "The source code for the built-in recipes that come with calibre" |
| 482 |
msgstr "Le code source des recettes intégrées qui est fourni avec calibre" |
| 483 |
|
| 484 |
#: ../../../__w/calibre/calibre/manual/news.rst:334 |
| 485 |
msgid "" |
| 486 |
"`The calibre recipes forum " |
| 487 |
"<https://www.mobileread.com/forums/forumdisplay.php?f=228>`_" |
| 488 |
msgstr "`Le forum de recettes calibre <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_" |
| 489 |
|
| 490 |
#: ../../../__w/calibre/calibre/manual/news.rst:335 |
| 491 |
msgid "Lots of knowledgeable calibre recipe writers hang out here." |
| 492 |
msgstr "Un bon nombre d’auteurs bien informés des recettes calibre traînent ici." |
| 493 |
|
| 494 |
#: ../../../__w/calibre/calibre/manual/news.rst:339 |
| 495 |
msgid "API documentation" |
| 496 |
msgstr "Documentation de l'API" |