| 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 |
# Leonardo Armando Iarrusso <[email protected]>, 2015 |
| 7 |
# Michele Galimberti <[email protected]>, 2021-2023 |
| 8 |
# Riccardo Di Maio <[email protected]>, 2015 |
| 9 |
# Vincenzo Reale <[email protected]>, 2014 |
| 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: Vincenzo Reale <[email protected]>, 2014\n" |
| 17 |
"Language-Team: Italian (http://app.transifex.com/calibre/calibre/language/it/)\n" |
| 18 |
"MIME-Version: 1.0\n" |
| 19 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 20 |
"Content-Transfer-Encoding: 8bit\n" |
| 21 |
"Language: it\n" |
| 22 |
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" |
| 23 |
|
| 24 |
#: ../../../__w/calibre/calibre/manual/news.rst:4 |
| 25 |
msgid "Adding your favorite news website" |
| 26 |
msgstr "Aggiunta del tuo sito di notizie preferito" |
| 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 ha un sistema potente, flessibile e facile da usare per scaricare notizie da Internet e convertirle in un e-book. Ciò che segue ti mostrerà, usando degli esempi, come ottenere notizie da vari siti web." |
| 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 "Per poter utilizzare questo sistema con cognizione di causa, segui gli esempi nell'ordine elencato qui sotto:" |
| 40 |
|
| 41 |
#: ../../../__w/calibre/calibre/manual/news.rst:15 |
| 42 |
msgid "Completely automatic fetching" |
| 43 |
msgstr "Recupero completamente automatico" |
| 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 "Se la tua fonte di notizie è abbastanza semplice, calibre potrebbe essere in grado di utilizzarla in modo completamente automatico, e tutto ciò che dovrai fare è fornire l'URL. calibre raccoglie tutte le informazioni necessarie a scaricare una fonte di notizie in una :term:`ricetta`. Per portare a conoscenza di calibre una fonte di notizie, devi creare una :term:`ricetta` per essa. Vediamo alcuni esempi:" |
| 53 |
|
| 54 |
#: ../../../__w/calibre/calibre/manual/news.rst:26 |
| 55 |
msgid "The calibre blog" |
| 56 |
msgstr "Il blog di 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 "Il blog di calibre è una raccolta di post che descrivono molte utili funzionalità di calibre in un modo semplice e accessibile ai nuovi utenti di calibre. Per poter scaricare questo blog in un e-book, ci affidiamo al feed :term:`RSS` del blog::" |
| 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 "Ho ottenuto l'URL dell'RSS cercando sotto a \"Iscriviti a\" in fondo alla pagina del blog e scegliendo :guilabel:`Post->Atom`. Per fare in modo che calibre scarichi i feed e li converta in un e-book, devi fare clic con il tasto destro del mouse sul pulsante :guilabel:`Scarica notizie`, poi sulla voce del menu :guilabel:`Aggiungi una fonte di notizie personalizzata` e infine sul pulsante :guilabel:`Nuova ricetta`. Dovrebbe aprirsi una finestra simile a quella mostrata qui sotto." |
| 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 "Per prima cosa inserisci ``Blog di calibre`` nel campo :guilabel:`Titolo ricetta`. Questo sarà il titolo dell'e-book creato dagli articoli dei feed qui sopra." |
| 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 "I due campi successivi (:guilabel:`Articolo più vecchio` and :guilabel:`Numero massimo di articoli`) ti permettono di controllare quanti (e quali) articoli debbano essere scaricati da ciascun feed, e non hanno bisogno di spiegazioni." |
| 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 "Per aggiungere i feed alla ricetta, inserisci titolo e URL del feed e fai clic sul pulsante :guilabel:`Aggiungi feed`. Una volta aggiunto il feed, basta fare clic sul pulsante :guilabel:`Salva` e avrai finito! Chiudi la finestra." |
| 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 "Per provare la tua nuova :term:`ricetta`, fai clic sul pulsante :guilabel:`Scarica notizie` e nel sottomenu :guilabel:`Fonti di notizie personalizzate` su :guilabel:`Blog di calibre`. Dopo qualche minuto un nuovo e-book con i contenuti del blog apparirà nella vista principale della biblioteca (se il tuo lettore è connesso, apparirà nel lettore invece che nella biblioteca). Selezionalo e usa il pulsante :guilabel:`Leggi` per leggerlo!" |
| 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 "Il motivo per cui tutto ha funzionato così bene e con così poco sforzo richiesto è che il blog mette a disposizione feed :term:`RSS` *di contenuto*, ovverosia, il contenuto dell'articolo è incluso nel feed stesso. Per la maggior parte delle fonti di notizie organizzate in questo modo, con feed *di contenuto*, non è richiesto alcuno sforzo per convertirle in e-book. Ora daremo uno sguardo a una fonte di notizie che non fornisce feed di contenuto. In questi feed l'articolo completo è in una pagina web, mentre il feed contiene solo un collegamento alla pagina web con un breve riassunto dell'articolo." |
| 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 "Proviamo con i seguenti due feed della *BBC*:" |
| 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 "News Front Page: 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 "Science/Nature: 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 "Segui la procedura descritta poco fa in :ref:`calibre_blog` per creare una ricetta per *The BBC* (utilizzando i feed qui sopra). Se diamo un'occhiata all'e-book scaricato, vediamo che calibre ha fatto un lavoro più che dignitoso nell'estrarre solamente i contenuti che ti interessano dalla pagina di ciascun articolo. Tuttavia, il processo di estrazione non è perfetto. A volte si porta dietro contenuti indesiderati come menu e aiuti di navigazione o rimuove contenuti che avrebbero dovuto essere lasciati intatti, come i titoli degli articoli. Per ottenere una perfetta estrazione dei contenuti, dovremo personalizzare il processo di recupero, come descritto nella sezione successiva." |
| 151 |
|
| 152 |
#: ../../../__w/calibre/calibre/manual/news.rst:68 |
| 153 |
msgid "Customizing the fetch process" |
| 154 |
msgstr "Personalizzazione del processo di recupero" |
| 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 "Se vuoi perfezionare il processo di scaricamento, o scaricare il contenuto di un sito web particolarmente complesso, puoi fare uso di tutta la potenza e flessibilità del sistema delle :term:`ricetta`. Per fare ciò, devi solo fare clic sul pulsante :guilabel:`Passa alla modalità avanzata` nella finestra :guilabel:`Aggiungi fonti di notizie personalizzate`." |
| 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 "La personalizzazione più semplice, e spesso anche la più efficace, è quella di usare la versione di stampa degli articoli online. La versione di stampa ha spesso molti meno fronzoli, e si adatta molto meglio ad essere convertita in un e-book. Proviamo a utilizzare la versione di stampa degli articoli della *BBC*." |
| 172 |
|
| 173 |
#: ../../../__w/calibre/calibre/manual/news.rst:75 |
| 174 |
msgid "Using the print version of bbc.co.uk" |
| 175 |
msgstr "Uso della versione di stampa di 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 "Il primo passo è dare un'occhiata all'e-book che abbiamo scaricato poco fa dalla :ref:`bbc`. In fondo ad ogni articolo nell'e-book c'è una piccola nota che ti dice da dove l'articolo in questione è stato scaricato. Copia e incolla quell'URL nel browser. Ora, nella pagina dell'articolo, cerca un collegamento che indichi la \"Printable version\". Fai clic per vedere la versione di stampa dell'articolo. Ha un aspetto decisamente migliore! Ora confronta i due URL. Nel mio caso erano:" |
| 186 |
|
| 187 |
#: ../../../__w/calibre/calibre/manual/news.rst:79 |
| 188 |
msgid "Article URL" |
| 189 |
msgstr "URL articolo" |
| 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 versione di stampa" |
| 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 "Sembra quindi che, per ottenere la versione di stampa, dobbiamo anteporre ad ogni URL di articolo ciò che segue:" |
| 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 "Ora nella :guilabel:`Modalità avanzata` della finestra Fonti di notizie personalizzate, dovresti vedere qualcosa di simile a questo (ricorda di selezionare la ricetta *The BBC* prima di passare alla modalità avanzata):" |
| 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 "Puoi vedere che i campi della :guilabel:`Modalità base` sono stati tradotti in codice Python in un modo chiaro e trasparente. Dobbiamo aggiungere istruzioni a questa ricetta perché utilizzi la versione di stampa degli articoli. Tutto ciò che serve è aggiungere le seguenti due righe:" |
| 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 "Stiamo usando Python, perciò i rientri sono importanti. Dopo aver aggiunto le righe, il risultato dovrebbe essere:" |
| 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 "Qui ``def print_version(self, url)`` definisce un *metodo* che viene chiamato da calibre per ogni articolo. ``url`` è l'URL dell'articolo originale. Quello che ``print_version`` fa è prendere quell'url e sostituirlo con il nuovo URL che rimanda alla versione di stampa dell'articolo. Per conoscere meglio `Python <https://www.python.org>`_ vedi il `tutorial <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 "Ora fai clic sul pulsante :guilabel:`Aggiungi/aggiorna ricetta` e i tuoi cambiamenti saranno salvati. Riscarica l'e-book. Dovresti ottenere un e-book molto migliore. Uno dei problemi della nuova versione è che i caratteri della versione di stampa sono troppo piccoli. Questo problema è automaticamente risolto durante la conversione in e-book, ma anche dopo questo processo, la dimensione dei caratteri dei menu e della barra di navigazione diventa troppo grande rispetto al testo dell'articolo. Per ovviare a questo nuovo problema, ci serviranno delle personalizzazioni aggiuntive, che vediamo nella prossima sezione." |
| 255 |
|
| 256 |
#: ../../../__w/calibre/calibre/manual/news.rst:111 |
| 257 |
msgid "Replacing article styles" |
| 258 |
msgstr "Sostituire gli stili dell'articolo" |
| 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 "Nella sezione precedente abbiamo visto che la dimensione dei caratteri negli articoli della *BBC* in versione di stampa era troppo piccola. Nella maggior parte dei siti web, *BBC* inclusa, questa dimensione è impostata tramite fogli di stile :term:`CSS`. Possiamo disabilitare lo scaricamento di tali fogli di stile aggiungendo la riga::" |
| 267 |
|
| 268 |
#: ../../../__w/calibre/calibre/manual/news.rst:119 |
| 269 |
msgid "The recipe now looks like:" |
| 270 |
msgstr "La ricetta è ora diventata:" |
| 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 "La nuova versione ha un aspetto più che accettabile. Se sei un perfezionista vorrai leggere la prossima sezione, che si occupa della modifica effettiva del contenuto scaricato." |
| 278 |
|
| 279 |
#: ../../../__w/calibre/calibre/manual/news.rst:127 |
| 280 |
msgid "Slicing and dicing" |
| 281 |
msgstr "Rifinitura dei contenuti" |
| 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 può far uso di abilità molto potenti e flessibili per quanto riguarda la manipolazione del contenuto scaricato. Per mostrarne un paio ritorniamo alla nostra vecchia conoscenza, la ricetta per :ref:`The BBC <bbc1>`. Osservando il codice sorgente (:term:`HTML`) di un paio di articoli (versione di stampa), notiamo che hanno un piè di pagina privo di informazioni utili, racchiuso in" |
| 291 |
|
| 292 |
#: ../../../__w/calibre/calibre/manual/news.rst:137 |
| 293 |
msgid "This can be removed by adding::" |
| 294 |
msgstr "Questo piè di pagina essere rimosso aggiungendo::" |
| 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 "Con queste aggiunte, la nostra ricetta ha raggiunto una quailtà ottimale." |
| 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 "Questa :term:`ricetta` è solo la punta dell'iceberg della potenza di calibre. Per esplorare una parte maggiore delle capacità di calibre, nella prossima sezione esamineremo un caso reale più complesso." |
| 313 |
|
| 314 |
#: ../../../__w/calibre/calibre/manual/news.rst:150 |
| 315 |
msgid "Real life example" |
| 316 |
msgstr "Un caso reale" |
| 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 "Un esempio reale ragionevolmente complesso che presenta una parte maggiore dell'API di ``BasicNewsRecipe`` è la :term:`ricetta` per il *New York Times*" |
| 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 "Ci sono parecchie nuove caratteristiche in questa :term:`ricetta`. Come prima cosa abbiamo::" |
| 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 "Questa riga fa in modo che la data mostrata nella prima pagina dell'e-book creato sia nel formato ``Giorno, Numero_Giorno Mese, Anno``. Vedi :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 "Segue un gruppo di direttive atte a ripulire l':term:`HTML` scaricato::" |
| 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 "Queste direttive rimuovono tutto ciò che precede il primo tag ``<h1>`` e tutto ciò che segue il primo tag con id ``footer``. Vedi :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 "La prossima caratteristica interessante è::" |
| 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`` dice a calibre che questa ricetta ha bisogno di un nome utente e di una password per poter accedere al contenuto. La conseguenza è che calibre chiederà un nome utente e una password ogni volta che provi a usare questa ricetta. Il codice in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` è quello che effettua effettivamente l'accesso al sito del NYT. Una volta dentro, calibre utilizzerà la stessa istanza del browser, connessa al sito, per recuperare tutto il contenuto. Vedi `mechanize <https://mechanize.readthedocs.io/en/latest/>`_ per comprendere il codice di ``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 "L'ultima nuova caratteristica è il metodo :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html`. Può essere usato per eseguire trasformazioni arbitrarie su tutte le pagine HTML scaricate. Qui viene impiegato per aggirare le pubblicità che il nytimes ti mostra prima di ogni articolo." |
| 391 |
|
| 392 |
#: ../../../__w/calibre/calibre/manual/news.rst:286 |
| 393 |
msgid "Tips for developing new recipes" |
| 394 |
msgstr "Suggerimenti per lo sviluppo di nuove ricette" |
| 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 "Il modo migliore per sviluppare nuove ricette è utilizzare l'interfaccia da linea di comando. Crea la ricetta utilizzando il tuo editor Python preferito e salvala in un file, ad esempio :file:`myrecipe.recipe`. L'estensione `.recipe` è necessaria. Puoi scaricare del contenuto con questa ricetta usando il comando::" |
| 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 "Il comando :command:`ebook-convert` scaricherà tutte le pagine web e le salverà nel file EPUB :file:`myrecipe.epub`. L'opzione ``-vv`` fa in modo che ebook-convert restituisca parecchie informazioni su quello che sta facendo. L'opzione :option:`ebook-convert-recipe-input --test` limita lo scaricamento a un paio di articoli, da due feed al massimo. In più, ebook-convert porrà l'HTML scaricato nella cartella ``debug/input``, dove ``debug`` è la cartella che hai specificato nell'opzione :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 "Una volta completato lo scaricamento, puoi guardare l'HTML scaricato aprendo il file :file:`debug/input/index.html` in un browser. Una volta verificato che lo scaricamento e la pre-elaborazione stiano avvenendo correttamente, puoi generare e-book in diversi formati come mostrato di seguito::" |
| 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 "Se sei soddisfatto della tua ricetta e ritieni che ci sia abbastanza richiesta da giustificarne l'inclusione nel novero delle ricette integrate, pubblica la tua ricetta nel `forum delle ricette di calibre <https://www.mobileread.com/forums/forumdisplay.php?f=228>`_ per condividerla con altri utenti di 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 "In macOS, gli strumenti da linea di comando si trovano dentro il bundle di calibre, per esempio, se hai installato calibre in :file:`/Applications` gli strumenti si trovano in :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/it/ebook-convert`" |
| 443 |
|
| 444 |
#: ../../../__w/calibre/calibre/manual/news.rst:317 |
| 445 |
msgid "The command line interface for all e-book conversion." |
| 446 |
msgstr "L'interfaccia da linea di comando per tutte le conversioni di e-book." |
| 447 |
|
| 448 |
#: ../../../__w/calibre/calibre/manual/news.rst:321 |
| 449 |
msgid "Further reading" |
| 450 |
msgstr "Ulteriori approfondimenti" |
| 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 "Per saperne di più sulla produzione di ricette avanzate usando alcune delle funzioni disponibili in ``BasicNewsRecipe``, consulta le fonti seguenti:" |
| 457 |
|
| 458 |
#: ../../../__w/calibre/calibre/manual/news.rst:325 |
| 459 |
msgid ":ref:`API documentation <news_recipe>`" |
| 460 |
msgstr ":ref:`Documentazione 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 "Documentazione della classe ``BasicNewsRecipe`` e di tutti i suoi metodi e campi importanti." |
| 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 "`BasicNewsRecipe <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 "Il codice sorgente di ``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 "`Ricette integrate <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 "Il codice sorgente per le ricette integrate in 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 "Il forum delle ricette di 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 "Qui si trovano parecchi esperti scrittori di ricette per calibre." |
| 497 |
|
| 498 |
#: ../../../__w/calibre/calibre/manual/news.rst:339 |
| 499 |
msgid "API documentation" |
| 500 |
msgstr "Documentazione API" |