# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # Darío Hereñú, 2014 # Darío Hereñú, 2018 # Jellby , 2014-2022,2024 # Walter Paterno , 2021,2024,2026 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-03-12 02:31+0000\n" "PO-Revision-Date: 2014-06-17 08:34+0000\n" "Last-Translator: Walter Paterno , 2021,2024,2026\n" "Language-Team: Spanish (http://app.transifex.com/calibre/calibre/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: es\n" "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" #: ../../../__w/calibre/calibre/manual/news.rst:4 msgid "Adding your favorite news website" msgstr "Añadir su sitio de noticias favorito" #: ../../../__w/calibre/calibre/manual/news.rst:6 msgid "" "calibre has a powerful, flexible and easy-to-use framework for downloading " "news from the Internet and converting it into an e-book. The following will " "show you, by means of examples, how to get news from various websites." msgstr "calibre tiene un estructura potente, flexible y fácil de usar para descargar noticias de Internet y convertirlas en un libro electrónico. A continuación se le mostrará, a través de ejemplos, cómo acceder a las noticias de varios sitios de Internet." #: ../../../__w/calibre/calibre/manual/news.rst:8 msgid "" "To gain an understanding of how to use the framework, follow the examples in" " the order listed below:" msgstr "Para comprender mejor cómo utilizar la estructura, siga los ejemplos en el orden indicado a continuación:" #: ../../../__w/calibre/calibre/manual/news.rst:15 msgid "Completely automatic fetching" msgstr "Recopilación totalmente automática" #: ../../../__w/calibre/calibre/manual/news.rst:17 msgid "" "If your news source is simple enough, calibre may well be able to fetch it " "completely automatically, all you need to do is provide the URL. calibre " "gathers all the information needed to download a news source into a " ":term:`recipe`. In order to tell calibre about a news source, you have to " "create a :term:`recipe` for it. Let's see some examples:" msgstr "Si la fuente de noticias es suficientemente simple, es posible que calibre sea capaz de obtener las noticias de forma totalmente automática, todo lo que tiene que hacer es proporcionar el URL. calibre reúne toda la información necesaria para descargar una fuente de noticias en una :term:`fórmula`. Si quiere añadir una fuente de noticias en calibre, debe crear una :term:`fórmula` para ello. Veamos algunos ejemplos:" #: ../../../__w/calibre/calibre/manual/news.rst:26 msgid "The calibre blog" msgstr "El blog de calibre" #: ../../../__w/calibre/calibre/manual/news.rst:28 msgid "" "The calibre blog is a blog of posts that describe many useful calibre " "features in a simple and accessible way for new calibre users. In order to " "download this blog into an e-book, we rely on the :term:`RSS` feed of the " "blog::" msgstr "El blog de calibre es un blog de ​​mensajes que describen varias características útiles de calibre de una manera sencilla y accesible para los nuevos usuarios de calibre. Para descargar este blog en un libro electrónico, nos basamos en el :term:`RSS` del blog::" #: ../../../__w/calibre/calibre/manual/news.rst:34 msgid "" "I got the RSS URL by looking under \"Subscribe to\" at the bottom of the " "blog page and choosing :guilabel:`Posts->Atom`. To make calibre download the" " feeds and convert them into an e-book, you should right click the " ":guilabel:`Fetch news` button and then the :guilabel:`Add a custom news " "source` menu item and then the :guilabel:`New Recipe` button. A dialog " "similar to that shown below should open up." msgstr "Obtenemos la dirección URL del RSS de la sección «Subscribe to» al final de la página del blog, eligiendo «Posts > Atom». Para hacer que calibre descargue los canales y los convierta en un libro electrónico, debe pulsar con el botón derecho en el botón :guilabel:`Obtener noticias` y luego el elemento del menú :guilabel:`Añadir una nueva fuente de noticias` y el botón :guilabel:`Nueva fórmula`. Se abrirá un cuadro de diálogo similar al que se muestra a continuación." #: ../../../__w/calibre/calibre/manual/news.rst:43 msgid "" "First enter ``Calibre Blog`` into the :guilabel:`Recipe title` field. This " "will be the title of the e-book that will be created from the articles in " "the above feeds." msgstr "Primero introduzca ``Blog de calibre`` dentro del campo :guilabel:`Título de la fórmula`. Éste será el título del libro electrónico que se creará a partir de los artículos provenientes de los canales anteriores." #: ../../../__w/calibre/calibre/manual/news.rst:45 msgid "" "The next two fields (:guilabel:`Oldest article` and :guilabel:`Max. number " "of articles`) allow you some control over how many articles should be " "downloaded from each feed, and they are pretty self explanatory." msgstr "Los dos campos siguientes (:guilabel:`Artículo más antiguo` y :guilabel:`Número máximo de artículos por canal`) le permiten controlar cuántos artículos se descargan desde cada canal, ambos son suficientemente explícitos." #: ../../../__w/calibre/calibre/manual/news.rst:47 msgid "" "To add the feeds to the recipe, enter the feed title and the feed URL and " "click the :guilabel:`Add feed` button. Once you have added the feed, simply " "click the :guilabel:`Save` button and you're done! Close the dialog." msgstr "Para añadir los canales a la fórmula, introduzca el título y dirección URL del canal y pulse en el botón :guilabel:`Añadir canal`. Una vez añadido el canal, simplemente pulse en el botón :guilabel:`Añadir o actualizar fórmula` ¡y ya está! Cierre el cuadro de diálogo." #: ../../../__w/calibre/calibre/manual/news.rst:51 msgid "" "To test your new :term:`recipe`, click the :guilabel:`Fetch news` button and" " in the :guilabel:`Custom news sources` sub-menu click :guilabel:`calibre " "Blog`. After a couple of minutes, the newly downloaded e-book of blog posts " "will appear in the main library view (if you have your reader connected, it " "will be put onto the reader instead of into the library). Select it and hit " "the :guilabel:`View` button to read!" msgstr "Para probar la nueva :term:`fórmula`, pulse en el botón :guilabel:`Obtener noticias`, en el submenú :guilabel:`Personalizado`, y en :guilabel:`Blog de calibre`. En un par de minutos, el nuevo libro electrónico descargado con las entradas al blog aparecerá en la biblioteca principal (si tiene conectado un dispositivo de lectura, aparecerá en él en vez de la biblioteca). Selecciónelo y pulse en el botón :guilabel:`Mostrar` para leerlo." #: ../../../__w/calibre/calibre/manual/news.rst:53 msgid "" "The reason this worked so well, with so little effort is that the blog " "provides *full-content* :term:`RSS` feeds, i.e., the article content is " "embedded in the feed itself. For most news sources that provide news in this" " fashion, with *full-content* feeds, you don't need any more effort to " "convert them to e-books. Now we will look at a news source that does not " "provide full content feeds. In such feeds, the full article is a webpage and" " the feed only contains a link to the webpage with a short summary of the " "article." msgstr "La razón por la que esto funcionó tan bien, con tan poco esfuerzo, es que el blog proporciona una fuente :term:`RSS` con el *contenido completo*, es decir, el contenido del artículo está incrustado en el propio canal de información. Para la mayoría de las fuentes de noticias que proporcionan noticias de esta manera, con un canal RSS con el *contenido completo*, no necesitará mayores esfuerzos para convertirlas en libros electrónicos. Ahora veremos en una fuente de noticias que no proporciona un canal de noticias RSS con el contenido completo. En dichos canales, el artículo completo es una página de Internet y el canal de información RSS sólo contiene un enlace a la página con un breve resumen del artículo." #: ../../../__w/calibre/calibre/manual/news.rst:58 msgid "bbc.co.uk" msgstr "bbc.co.uk" #: ../../../__w/calibre/calibre/manual/news.rst:60 msgid "Let's try the following two feeds from *The BBC*:" msgstr "Vamos a probar los siguentes dos canales de *The BBC*:" #: ../../../__w/calibre/calibre/manual/news.rst:62 msgid "" "News Front Page: " "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" msgstr "Portal de noticias: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" #: ../../../__w/calibre/calibre/manual/news.rst:63 msgid "" "Science/Nature: " "https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml" msgstr "Ciencia y naturaleza: https://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml" #: ../../../__w/calibre/calibre/manual/news.rst:65 msgid "" "Follow the procedure outlined in :ref:`calibre_blog` above to create a " "recipe for *The BBC* (using the feeds above). Looking at the downloaded " "e-book, we see that calibre has done a creditable job of extracting only the" " content you care about from each article's webpage. However, the extraction" " process is not perfect. Sometimes it leaves in undesirable content like " "menus and navigation aids or it removes content that should have been left " "alone, like article headings. In order, to have perfect content extraction, " "we will need to customize the fetch process, as described in the next " "section." msgstr "Siga el procedimiento descrito anteriormente en :ref:`calibre_blog` para crear una fórmula para *La BBC* (usando los canales RSS mencionados más arriba). Al examinar el libro electrónico descargado, vemos que calibre ha hecho un trabajo encomiable al extraer sólo el contenido que significativo de la página de Internet de cada artículo. Sin embargo, el proceso de extracción no es perfecto. A veces quedan contenidos no deseados como los menús y las ayudas a la navegación o se elimina contenido que debería haber sido mantenido, como las cabeceras de los artículos. Para que la extracción de contenido sea perfecta, tendremos que personalizar el proceso de Obtención, como se describe en la siguiente sección." #: ../../../__w/calibre/calibre/manual/news.rst:68 msgid "Customizing the fetch process" msgstr "Personalizar el proceso de obtención" #: ../../../__w/calibre/calibre/manual/news.rst:70 msgid "" "When you want to perfect the download process, or download content from a " "particularly complex website, you can avail yourself of all the power and " "flexibility of the :term:`recipe` framework. In order to do that, in the " ":guilabel:`Add custom news sources` dialog, simply click the " ":guilabel:`Switch to Advanced mode` button." msgstr "Cuando desea perfeccionar el proceso de descarga, o descargar el contenido de un sitio de Internet particularmente complejo, puede servirse de toda la potencia y flexibilidad de la estructura de una :term:`fórmula`. Con ese fin, en el cuadro de diálogo :guilabel:`Añadir nueva fuente de noticias`, simplemente pulse en el botón :guilabel:`Cambiar a modo avanzado`." #: ../../../__w/calibre/calibre/manual/news.rst:72 msgid "" "The easiest and often most productive customization is to use the print " "version of the online articles. The print version typically has much less " "cruft and translates much more smoothly to an e-book. Let's try to use the " "print version of the articles from *The BBC*." msgstr "La personalización más fácil y a menudo más productiva es el uso de la versión para imprimir de los artículos en línea. La versión para imprimir normalmente tiene mucho menos contenido superfluo y se transforma de maner más fluida en un libro electrónico. Vamos a tratar de utilizar la versión impresa de los artículos de *La BBC*." #: ../../../__w/calibre/calibre/manual/news.rst:75 msgid "Using the print version of bbc.co.uk" msgstr "Usar la versión para imprimir de bbc.co.uk" #: ../../../__w/calibre/calibre/manual/news.rst:77 msgid "" "The first step is to look at the e-book we downloaded previously from " ":ref:`bbc`. At the end of each article, in the e-book is a little blurb " "telling you where the article was downloaded from. Copy and paste that URL " "into a browser. Now on the article webpage look for a link that points to " "the \"Printable version\". Click it to see the print version of the article." " It looks much neater! Now compare the two URLs. For me they were:" msgstr "El primer paso es buscar en el libro electrónico que descargamos previamente de :ref:`bbc`. Al final de cada artículo, en el libro electrónico, hay una pequeña reseña que dice desde dónde ha sido descargado el artículo. Copie y pegue la dirección URL en un navegador. Ahora en la página de Internet del artículo, busque un enlace que apunta a la «Versión para imprimir». Pulse en él para ver la versión para imprimir del artículo. ¡Es mucho más limpia! Ahora compare ambas direcciones URL. En mi caso eran:" #: ../../../__w/calibre/calibre/manual/news.rst:79 msgid "Article URL" msgstr "URL del artículo" #: ../../../__w/calibre/calibre/manual/news.rst:80 msgid "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm" msgstr "https://news.bbc.co.uk/2/hi/science/nature/7312016.stm" #: ../../../__w/calibre/calibre/manual/news.rst:82 msgid "Print version URL" msgstr "URL de la versión para imprimir" #: ../../../__w/calibre/calibre/manual/news.rst:83 msgid "" "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm" msgstr "https://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/2/hi/science/nature/7312016.stm" #: ../../../__w/calibre/calibre/manual/news.rst:85 msgid "" "So it looks like to get the print version, we need to prefix every article " "URL with:" msgstr "Así que parece que para obtener la versión para imprimir, tenemos que poner delante de cada URL de artículo:" #: ../../../__w/calibre/calibre/manual/news.rst:87 msgid "newsvote.bbc.co.uk/mpapps/pagetools/print/" msgstr "newsvote.bbc.co.uk/mpapps/pagetools/print/" #: ../../../__w/calibre/calibre/manual/news.rst:89 msgid "" "Now in the :guilabel:`Advanced mode` of the Custom news sources dialog, you " "should see something like (remember to select *The BBC* recipe before " "switching to advanced mode):" msgstr "Ahora en el :guilabel:`Modo avanzado` cuadro de diálogo de nuevas fuentes de noticias, debería ver algo así (recuerde seleccionar la fórmula *La BBC* antes de cambiar al modo avanzado):" #: ../../../__w/calibre/calibre/manual/news.rst:94 msgid "" "You can see that the fields from the :guilabel:`Basic mode` have been " "translated to Python code in a straightforward manner. We need to add " "instructions to this recipe to use the print version of the articles. All " "that's needed is to add the following two lines:" msgstr "Se puede ver que los campos del :guilabel:`Modo básico` han sido traducidos a código Python de una manera directa. Necesitamos añadir instrucciones para que esta fórmula utilice la versión para imprimir de los artículos. Todo lo que se necesita es añadir las siguientes dos líneas:" #: ../../../__w/calibre/calibre/manual/news.rst:101 msgid "" "This is Python, so indentation is important. After you've added the lines, " "it should look like:" msgstr "Esto es Python, por lo que la sangría es importante. Después de añadir las líneas, debe ser algo así:" #: ../../../__w/calibre/calibre/manual/news.rst:106 msgid "" "In the above, ``def print_version(self, url)`` defines a *method* that is " "called by calibre for every article. ``url`` is the URL of the original " "article. What ``print_version`` does is take that url and replace it with " "the new URL that points to the print version of the article. To learn about " "`Python `_ see the `tutorial " "`_." msgstr "En lo anterior, ``def print_version(self, url)`` define un *método* que es utilizado por calibre para cada artículo. ``url`` es la dirección URL del artículo original. Lo que hace ``print_version`` es tomar la dirección URL y sustituirla por la nueva dirección URL que apunta a la versión para imprimir del artículo. Para aprender sobre `Python `_ vea el `cursillo `_ (en inglés)." #: ../../../__w/calibre/calibre/manual/news.rst:108 msgid "" "Now, click the :guilabel:`Add/update recipe` button and your changes will be" " saved. Re-download the e-book. You should have a much improved e-book. One " "of the problems with the new version is that the fonts on the print version " "webpage are too small. This is automatically fixed when converting to an " "e-book, but even after the fixing process, the font size of the menus and " "navigation bar become too large relative to the article text. To fix this, " "we will do some more customization, in the next section." msgstr "Ahora pulse en el botón :guilabel:`Añadir o actualizar fórmula` y se guardarán los cambios. Vuelva a descargar el libro electrónico. Ahora debe tener un libro electrónico muy mejorado. Uno de los problemas con la nueva versión es que los tipos de letra en la página de Internet de la versión impresa son demasiado pequeños. Esto es corregido automáticamente cuando se convierte a un libro electrónico, pero incluso después del proceso de corrección, el tamaño de la letra de los menús y barra de navegación es demasiado grande en relación con el texto del artículo. Para solucionar esto, vamos a personalizar un poco más, en la siguiente sección." #: ../../../__w/calibre/calibre/manual/news.rst:111 msgid "Replacing article styles" msgstr "Sustituir los estilos de los artículos" #: ../../../__w/calibre/calibre/manual/news.rst:113 msgid "" "In the previous section, we saw that the font size for articles from the " "print version of *The BBC* was too small. In most websites, *The BBC* " "included, this font size is set by means of :term:`CSS` stylesheets. We can " "disable the fetching of such stylesheets by adding the line::" msgstr "En la sección anterior, hemos visto que el tamaño de letra para los artículos de la versión impresa de *La BBC* era demasiado pequeño. En la mayoría de sitios de Internet, incluido *La BBC*, el tamaño de letra se establece por medio de las hojas de estilo :term:`CSS`. Podemos desactivar la obtención de dichas hojas de estilo añadiendo esta línea::" #: ../../../__w/calibre/calibre/manual/news.rst:119 msgid "The recipe now looks like:" msgstr "La fórmula queda ahora como:" #: ../../../__w/calibre/calibre/manual/news.rst:124 msgid "" "The new version looks pretty good. If you're a perfectionist, you'll want to" " read the next section, which deals with actually modifying the downloaded " "content." msgstr "La nueva versión está bastante bien. Si es usted perfeccionista, querrá leer la siguiente sección, que trata de hacer cambios en el contenido descargado." #: ../../../__w/calibre/calibre/manual/news.rst:127 msgid "Slicing and dicing" msgstr "Dividir y reordenar" #: ../../../__w/calibre/calibre/manual/news.rst:129 msgid "" "calibre contains very powerful and flexible abilities when it comes to " "manipulating downloaded content. To show off a couple of these, let's look " "at our old friend the :ref:`The BBC ` recipe again. Looking at the " "source code (:term:`HTML`) of a couple of articles (print version), we see " "that they have a footer that contains no useful information, contained in" msgstr "calibre contiene funciones muy poderosas y flexibles a la hora de manipular el contenido descargado. Para mostrar un par de ellas, echemos un nuevo vistazo a nuestra vieja amiga, la fórmula :ref:`La BBC `. Mirando el código fuente (:term:`HTML`) de un par de artículos (versiones para imprimir), vemos que tienen un pie de página que no contiene ninguna información útil, que figura en" #: ../../../__w/calibre/calibre/manual/news.rst:137 msgid "This can be removed by adding::" msgstr "Esto se puede quitar agregando::" #: ../../../__w/calibre/calibre/manual/news.rst:141 msgid "" "to the recipe. Finally, let's replace some of the :term:`CSS` that we " "disabled earlier, with our own :term:`CSS` that is suitable for conversion " "to an e-book::" msgstr "A la receta. Finalmente, reemplacemos algunos de los `CSS` que desactivamos anteriormente con nuestro propio `CSS`, apto para la conversión a libro electrónico::" #: ../../../__w/calibre/calibre/manual/news.rst:145 msgid "With these additions, our recipe has become \"production quality\"." msgstr "Con estos añadidos, nuestra fórmula ha alcanzado «calidad de producción»." #: ../../../__w/calibre/calibre/manual/news.rst:147 msgid "" "This :term:`recipe` explores only the tip of the iceberg when it comes to " "the power of calibre. To explore more of the abilities of calibre we'll " "examine a more complex real life example in the next section." msgstr "Esta :term:`fórmula` muestra sólo la punta del iceberg en lo que se refiere a la potencia de calibre. Para explorar más sobre las capacidades de calibre, examinaremos un ejemplo de la vida real más complejo en la siguiente sección." #: ../../../__w/calibre/calibre/manual/news.rst:150 msgid "Real life example" msgstr "Ejemplo de la vida real" #: ../../../__w/calibre/calibre/manual/news.rst:152 msgid "" "A reasonably complex real life example that exposes more of the :term:`API` " "of ``BasicNewsRecipe`` is the :term:`recipe` for *The New York Times*" msgstr "Un ejemplo real bastante complejo que expone más partes de la :term:`API` de ``BasicNewsRecipe`` es la :term:`fórmula` de *The New York Times*" #: ../../../__w/calibre/calibre/manual/news.rst:238 msgid "We see several new features in this :term:`recipe`. First, we have::" msgstr "Vemos varias características nuevas en esta :term:`fórmula`. En primer lugar, tenemos::" #: ../../../__w/calibre/calibre/manual/news.rst:242 msgid "" "This sets the displayed time on the front page of the created e-book to be " "in the format, ``Day, Day_Number Month, Year``. See :attr:`timefmt " "`." msgstr "Esto hace que la fecha que aparece en la primera página del libro electrónico creado se muestre en este formato, ``Día, Número de día Mes, Año``. Vea: attr:`timefmt `." #: ../../../__w/calibre/calibre/manual/news.rst:245 msgid "" "Then we see a group of directives to cleanup the downloaded :term:`HTML`::" msgstr "Después vemos un grupo de directivas para depurar el :term:`HTML` descargado::" #: ../../../__w/calibre/calibre/manual/news.rst:251 msgid "" "These remove everything before the first ``

`` tag and everything after " "the first tag whose id is ``footer``. See :attr:`remove_tags " "`, " ":attr:`remove_tags_before " "`, " ":attr:`remove_tags_after " "`." msgstr "Éstas eliminan todo lo que hay antes de la primera etiqueta ``

`` y todo lo que hay después de la primera etiqueta cuyo id es ``footer``. Véanse :attr:`remove_tags `, :attr:`remove_tags_before `, :attr:`remove_tags_after `." #: ../../../__w/calibre/calibre/manual/news.rst:253 msgid "The next interesting feature is::" msgstr "La siguiente función interesante es::" #: ../../../__w/calibre/calibre/manual/news.rst:260 msgid "" "``needs_subscription = True`` tells calibre that this recipe needs a " "username and password in order to access the content. This causes, calibre " "to ask for a username and password whenever you try to use this recipe. The " "code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually " "does the login into the NYT website. Once logged in, calibre will use the " "same, logged in, browser instance to fetch all content. See `mechanize " "`_ to understand the code in " "``get_browser``." msgstr "``needs_subscription = True`` le comunica a calibre que esta fórmula necesita un nombre de usuario y contraseña para poder acceder al contenido. Esto hace que calibre pida un nombre de usuario y contraseña cada vez que intente utilizar esta fórmula. El código en :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` es el que realmente inicia la sesión en el sitio de Internet del New York Times. Una vez iniciada la sesión, calibre utilizará esta misma sesión para obtener todo el contenido. Véase `mechanize `_ para entender el código en ``get_browser``." #: ../../../__w/calibre/calibre/manual/news.rst:262 msgid "" "The next new feature is the " ":meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job " "is to go to https://www.nytimes.com/pages/todayspaper/index.html and fetch " "the list of articles that appear in *today's* paper. While more complex than" " simply using :term:`RSS`, the recipe creates an e-book that corresponds " "very closely to the day's paper. ``parse_index`` makes heavy use of " "`BeautifulSoup `_ to" " parse the daily paper webpage. You can also use other, more modern parsers " "if you dislike BeautifulSoup. calibre comes with `lxml `_ " "and `html5lib `_, which are the" " recommended parsers. To use them, replace the call to ``index_to_soup()`` " "with the following::" msgstr "La siguiente característica nueva es el método :meth:calibre.web.feeds.news.BasicNewsRecipe.parse_index. Su función es ir a https://www.nytimes.com/pages/todayspaper/index.html y obtener la lista de artículos que aparecen en el periódico de hoy. Aunque es más complejo que el simple uso de :term:`RSS`, la receta crea un libro electrónico que se corresponde muy fielmente con el periódico del día. ``parse_index`` hace un uso intensivo de `BeautifulSoup `_ para analizar la página web del diario. También puedes utilizar otros analizadores más modernos si no te gusta BeautifulSoup. calibre incluye `lxml `_ y html5lib _, que son los analizadores recomendados. Para utilizarlos, sustituye la llamada a ``index_to_soup()`` por lo siguiente::" #: ../../../__w/calibre/calibre/manual/news.rst:283 msgid "" "The final new feature is the " ":meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html` method. It " "can be used to perform arbitrary transformations on every downloaded HTML " "page. Here it is used to bypass the ads that the nytimes shows you before " "each article." msgstr "La última nueva característica es el método :meth:`calibre.web.feeds.news.BasicNewsRecipe.preprocess_html`. Se puede utilizar para realizar transformaciones arbitrarias en cada página HTML descargada. Aquí se usa para evitar la publicidad que nytimes muestra antes de cada artículo." #: ../../../__w/calibre/calibre/manual/news.rst:286 msgid "Tips for developing new recipes" msgstr "Consejos para desarrollar nuevas fórmulas" #: ../../../__w/calibre/calibre/manual/news.rst:288 msgid "" "The best way to develop new recipes is to use the command line interface. " "Create the recipe using your favorite Python editor and save it to a file " "say :file:`myrecipe.recipe`. The `.recipe` extension is required. You can " "download content using this recipe with the command::" msgstr "La mejor manera de desarrollar nuevas fórmulas es utilizar la interfaz de línea de órdenes. Cree la fórmula usando su editor de Python favorito y guárdela en un archivo, digamos :file:`mifórmula.recipe`. La extensión `.recipe` es necesaria. Puede descargar contenido usando esta fórmula con la orden::" #: ../../../__w/calibre/calibre/manual/news.rst:292 msgid "" "The command :command:`ebook-convert` will download all the webpages and save" " them to the EPUB file :file:`myrecipe.epub`. The ``-vv`` option makes " "ebook-convert spit out a lot of information about what it is doing. The " ":option:`ebook-convert-recipe-input --test` option makes it download only a " "couple of articles from at most two feeds. In addition, ebook-convert will " "put the downloaded HTML into the ``debug/input`` folder, where ``debug`` is " "the folder you specified in the :option:`ebook-convert --debug-pipeline` " "option." msgstr "La orden :command:`ebook-convert` descargará todas las páginas de Internet y las guardará en el archivo EPUB :file:`mifórmula.epub`. La opción ``-vv`` hace que ebook-convert muestre una gran cantidad de información acerca de lo que está haciendo. La opción :option:`ebook-convert-recipe-input --test` hace que se descargue sólo un par de artículos de un máximo de dos canales RSS. Además, ebook-convert pondrá el HTML descargado en la carpeta ``debug/input``, donde ``debug`` es la carpeta que haya especificado en la opción :`option:`ebook-convert --debug-pipeline`." #: ../../../__w/calibre/calibre/manual/news.rst:300 msgid "" "Once the download is complete, you can look at the downloaded :term:`HTML` " "by opening the file :file:`debug/input/index.html` in a browser. Once you're" " satisfied that the download and preprocessing is happening correctly, you " "can generate e-books in different formats as shown below::" msgstr "Una vez que la descarga está completa, puede ver el :term:`HTML` descargado abriendo el archivo :file:`debug/input/index.html` en un navegador. Cuando que esté satisfecho con la descarga y el procesado previo, puede generar libros electrónicos en diferentes formatos, como se muestra a continuación::" #: ../../../__w/calibre/calibre/manual/news.rst:307 msgid "" "If you're satisfied with your recipe, and you feel there is enough demand to" " justify its inclusion into the set of built-in recipes, post your recipe in" " the `calibre recipes forum " "`_ to share it " "with other calibre users." msgstr "Si está satisfecho con fórmula y cree que existe suficiente demanda para justificar su inclusión en el conjunto de fórmulas incorporadas, compártala en el `Foro de fórmulas de calibre `_ (en inglés)." #: ../../../__w/calibre/calibre/manual/news.rst:310 msgid "" "On macOS, the command line tools are inside the calibre bundle, for example," " if you installed calibre in :file:`/Applications` the command line tools " "are in :file:`/Applications/calibre.app/Contents/MacOS/`." msgstr "En macOS, las herramientas de línea de órdenes están dentro del paquete calibre, por ejemplo, si ha instalado calibre en :file:`/Aplicaciones` las herramientas de línea de órdenes están en :file:/Aplicaciones/calibre.app/Contents/MacOS/`." #: ../../../__w/calibre/calibre/manual/news.rst:316 msgid ":doc:`generated/en/ebook-convert`" msgstr ":doc:`generated/es/ebook-convert`" #: ../../../__w/calibre/calibre/manual/news.rst:317 msgid "The command line interface for all e-book conversion." msgstr "La interfaz de la línea de órdenes para todas las conversiones de libros electrónicos." #: ../../../__w/calibre/calibre/manual/news.rst:321 msgid "Further reading" msgstr "Lecturas adicionales" #: ../../../__w/calibre/calibre/manual/news.rst:323 msgid "" "To learn more about writing advanced recipes using some of the facilities, " "available in ``BasicNewsRecipe`` you should consult the following sources:" msgstr "Para obtener más información acerca de cómo escribir fórmulas avanzadas usando algunas de las opciones disponibles en ``BasicNewsRecipe`` debe consultar las siguientes fuentes:" #: ../../../__w/calibre/calibre/manual/news.rst:325 msgid ":ref:`API documentation `" msgstr ":ref:`Documentación de la API `" #: ../../../__w/calibre/calibre/manual/news.rst:326 msgid "" "Documentation of the ``BasicNewsRecipe`` class and all its important methods" " and fields." msgstr "La documentación de la clase ``BasicNewsRecipe`` y todos sus métodos y campos importantes." #: ../../../__w/calibre/calibre/manual/news.rst:328 msgid "" "`BasicNewsRecipe " "`_" msgstr "`BasicNewsRecipe `_" #: ../../../__w/calibre/calibre/manual/news.rst:329 msgid "The source code of ``BasicNewsRecipe``" msgstr "El código fuente de ``BasicNewsRecipe``" #: ../../../__w/calibre/calibre/manual/news.rst:331 msgid "" "`Built-in recipes " "`_" msgstr "`Fórmulas predefinidas `_" #: ../../../__w/calibre/calibre/manual/news.rst:332 msgid "The source code for the built-in recipes that come with calibre" msgstr "El código fuente de las fórmulas predefinidas que incluye calibre" #: ../../../__w/calibre/calibre/manual/news.rst:334 msgid "" "`The calibre recipes forum " "`_" msgstr "`El foro de fórmulas de calibre `_ (en inglés)" #: ../../../__w/calibre/calibre/manual/news.rst:335 msgid "Lots of knowledgeable calibre recipe writers hang out here." msgstr "Un buen número de creadores de fórmulas de calibre pasan el rato aquí." #: ../../../__w/calibre/calibre/manual/news.rst:339 msgid "API documentation" msgstr "Documentación de la API"