EBOOK-CONVERT(1) calibre EBOOK-CONVERT(1) NAME ebook-convert - ebook-convert ebook-convert input_file output_file [options] Convert an e-book from one format to another. input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command. The output e-book format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived from the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a folder and an "open e-book" (OEB) consisting of HTML files is written to that folder. These files are the files that would normally have been passed to the output plugin. After specifying the input and output file you can customize the conversion by specifying various options. The available options depend on the input and output file types. To get help on them specify the input and output file and then use the -h option. For full documentation of the conversion system see E-book conversion Whenever you pass arguments to ebook-convert that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces" The options and default values for the options change depending on both the input and output formats, so you should always check with: ebook-convert myfile.input_format myfile.output_format -h Below are the options that are common to all conversion, followed by the options specific to every input and output format. o OPCIONS DE ENTRADA o OPCIONS DE SAIDA o APARENCIA o PROCESAMENTO HEURISTICO o BUSCAR E SUBSTITUIR o DETECCION DA ESTRUTURA o INDICE o METADATOS o DEPURACION --help, -h show this help message and exit --input-profile Especificar o perfil de entrada. O perfil de entrada dalle informacion ao sistema de conversion sobre como interpretar os distintos datos do documento de entrada. Por exemplo, as lonxitudes dependentes da resolucion (en pixeles). As opcions son: cybookg3, cybook_opus, default, hanlinv3, hanlinv5, illiad, irexdr1000, irexdr800, kindle, msreader, mobipocket, nook, sony, sony300, sony900 --list-recipes List builtin recipe names. You can create an e-book from a builtin recipe like this: ebook-convert "Recipe Name.recipe" output.epub --output-profile Specify the output profile. The output profile tells the conversion system how to optimize the created document for the specified device. In some cases, an output profile can be used to optimize the output for a particular device, but this is rarely necessary. Choices are:cybookg3, cybook_opus, default, hanlinv3, hanlinv5, illiad, ipad, ipad3, irexdr1000, irexdr800, jetbook5, kindle, kindle_dx, kindle_fire, kindle_oasis, kindle_pw, kindle_pw3, kindle_scribe, kindle_voyage, kobo, msreader, mobipocket, nook, nook_color, nook_hd_plus, pocketbook_inkpad3, pocketbook_lux, pocketbook_hd, pocketbook_900, pocketbook_pro_912, galaxy, sony, sony300, sony900, sony-landscape, sonyt3, tablet, generic_eink, generic_eink_large, generic_eink_hd --version show program's version number and exit OPCIONS DE ENTRADA Opcions para controlar o procesamento do ficheiro de entrada mobi. --input-encoding Especificar a codificacion de caracteres do documento de entrada. Se se establece esta opcion, substituira calquera codificacion declarada no propio documento. En particular e util para documentos sen codificacion declarada ou con erros na declaracion da codificacion. OPCIONS DE SAIDA Opcions para controlar o procesamento da saida epub --dont-split-on-page-breaks Turn off splitting at page breaks. Normally, input files are automatically split at every page break into two files. This gives an output e-book that can be parsed faster and with less resources. However, splitting is slow and if your source file contains a very large number of page breaks, you should turn off splitting on page breaks. --epub-flatten Esta opcion e necesaria soamente se pretende usar o EPUB con FBReaderJ. Con esta opcion simplificarase o sistema de ficheiros dentro do EPUB, ponendo todos os ficheiros no nivel superior. --epub-inline-toc Inserir un indice na lina que aparecera como parte do contido do libro pincipal. --epub-max-image-size The maximum image size (width x height). A value of none means use the screen size from the output profile. A value of profile means no maximum size is specified. For example, a value of 100x200 will cause all images to be resized so that their width is no more than 100 pixels and their height is no more than 200 pixels. Note that this only affects the size of the actual image files themselves. Any given image may be rendered at a different size depending on the styling applied to it in the document. --epub-toc-at-end Put the inserted inline Table of Contents at the end of the book instead of the start. --epub-version The version of the EPUB file to generate. EPUB 2 is the most widely compatible, only use EPUB 3 if you know you actually need it. --extract-to Extract the contents of the generated EPUB file to the specified folder. The contents of the folder are first deleted, so be careful. --flow-size Split all HTML files larger than this size (in KB). This is necessary as most EPUB readers cannot handle large file sizes. The default of 260KB is the size required for Adobe Digital Editions. Set to 0 to disable size based splitting. --no-default-epub-cover Normalmente, se o ficheiro de entrada non ten capa e non especifica unha, xerarase unha capa co titulo, autores, etc. Esta opcion desactiva a xeracion desta capa. --no-svg-cover Non usar un SVG para a capa dun libro. Debe usar esta opcion se o EPUB vai ser empregado nun dispositivo que non e compatible con SVG, como o iPhone ou de JetBook Lite. Sen esta opcion, cada dispositivo amosara a capa como unha paxina en branco. --preserve-cover-aspect-ratio Ao empregar unha capa en branco, esta opcion implicara que a capa escalarase a toda a area da pantalla disponibel mais mantera a relacion de aspecto. Isto implica que pode ter bordos en branco aos lados ou na parte superior e inferior, mais a imaxe non pode estar distorsionada. Sen esta opcion, a imaxe pode distorsionarse, mais non tera bordos. --pretty-print Se esta especificado, o complemento de saida tratara de crear unha saida o mais lexibel posibel. Pode non funcionar no caso dalguns engadidos de saida. --toc-title Titulo para calquera indice xerado no texto. APARENCIA Opcions para controlar o aspecto da saida --asciiize Transliterate Unicode characters to an ASCII representation. Use with care because this will replace Unicode characters with ASCII. For instance it will replace "Pele" with "Pele". Also, note that in cases where there are multiple representations of a character (characters shared by Chinese and Japanese for instance) the representation based on the current calibre interface language will be used. --base-font-size The base font size in pts. All font sizes in the produced book will be rescaled based on this size. By choosing a larger size you can make the fonts in the output bigger and vice versa. By default, when the value is zero, the base font size is chosen based on the output profile you chose. --change-justification Cambiar a xustificacion do texto. O valor <> fai que o texto xustificado na orixe quede alinado a esquerda (non xustificado). O valor <> fai que o texto non xustificado quede xustificado. O valor <> (o predeterminado) non altera a xustificacion do ficheiro fonte. Tena en conta que non todos os formatos de saida admiten xustificacion. --disable-font-rescaling Desactivar o redimensionamento dos tamanos de letra. --embed-all-fonts Embed every font that is referenced in the input document but not already embedded. This will search your system for the fonts, and if found, they will be embedded. Embedding will only work if the format you are converting to supports embedded fonts, such as EPUB, AZW3, DOCX or PDF. Please ensure that you have the proper license for embedding the fonts used in this document. --embed-font-family Embed the specified font family into the book. This specifies the "base" font used for the book. If the input document specifies its own fonts, they may override this base font. You can use the filter style information option to remove fonts from the input document. Note that font embedding only works with some output formats, principally EPUB, AZW3 and DOCX. --expand-css By default, calibre will use the shorthand form for various CSS properties such as margin, padding, border, etc. This option will cause it to use the full expanded form instead. Note that CSS is always expanded when generating EPUB files with the output profile set to one of the Nook profiles as the Nook cannot handle shorthand CSS. --extra-css Tanto a ruta dunha folla de estilo CSS como CSS directo. Este CSS sera anexado as regras de estilo do ficheiro orixinal, de modo que poida usarse para sobreescribir aquelas regras. --filter-css A comma separated list of CSS properties that will be removed from all CSS style rules. This is useful if the presence of some style information prevents it from being overridden on your device. For example: font-family,color,margin-left,margin-right --font-size-mapping Correspondencia entre os tamanos de letra de CSS e tamanos en pt. Un exemplo poderia ser 12,12,14,16,18,20,22,24. Estas son as correspondencias para os tamanos de xx-small a xx-large, e o ultimo tamano para letras enormes. O algoritmo para ampliar ou reducir o texto emprega estes tamanos para determinar o tamano de letra de maneira intelixente. Por omision, o valor e usar unha correspondencia baseada no perfil de saida seleccionado. --insert-blank-line Inserir unha lina en branco entre paragrafos. Non funciona se o ficheiro de orixe non define paragrafos (etiquetas

ou

). --insert-blank-line-size Set the height of the inserted blank lines (in em). The height of the lines between paragraphs will be twice the value set here. --keep-ligatures Preservar os vinculos no documento de entrada. Un vinculo e unha forma especial de escribir un par de caracteres como ff, fi, fl, etc. A maioria dos lectores no admiten vinculos nos tipos de letra predeterminados, polo que non os poden mostrar correctamente. Por omision, Calibre convertera un vinculo nos seus dous caracteres separados. Caso contrario, ao seleccionar esta opcion, preservaraos. --line-height A altura de lina en pt. Controla o espazo entre linas consecutivas de texto. So se lle aplica a elementos que non definen a sua propia altura de lina. Na maioria dos casos, a opcion de altura de lina minima e mais util. De modo predeterminado, non se modifica a altura da lina. --linearize-tables Alguns documentos mal desenados usan taboas para controlar a disposicion do texto na paxina. Cando se converten estes documentos adoitan dar lugar a texto que se sae da paxina e outros problemas. Esta opcion extrae o contido das taboas e presentao de maneira lineal. --margin-bottom Set the bottom margin in pts. Default is 5.0. Setting this to less than zero will cause no margin to be set (the margin setting in the original document will be preserved). Note: Page oriented formats such as PDF and DOCX have their own margin settings that take precedence. --margin-left Set the left margin in pts. Default is 5.0. Setting this to less than zero will cause no margin to be set (the margin setting in the original document will be preserved). Note: Page oriented formats such as PDF and DOCX have their own margin settings that take precedence. --margin-right Set the right margin in pts. Default is 5.0. Setting this to less than zero will cause no margin to be set (the margin setting in the original document will be preserved). Note: Page oriented formats such as PDF and DOCX have their own margin settings that take precedence. --margin-top Set the top margin in pts. Default is 5.0. Setting this to less than zero will cause no margin to be set (the margin setting in the original document will be preserved). Note: Page oriented formats such as PDF and DOCX have their own margin settings that take precedence. --minimum-line-height A altura minima da lina, como porcentaxe do tamano de tipo de letra do elemento calculado. Calibre asegurara que cada elemento tena esta altura de lina como minimo, malia o que indique o documento de entrada. Asignar 0 para desactivar. De modo predeterminado e 120%. Utiliza esta opcion preferentemente a especificacion directa da altura de lina, non sendo que saiba o que esta a facer. Por exemplo, pode conseguir texto con <> asignandolle un valor de 240. --remove-paragraph-spacing Retirar o espazo entre paragrafos. Tamen estabelece o sangrado na primeira lina de cada paragrafo de 1,5em. A retirada do espazo non funciona se o ficheiro de orixe non define paragrafos (etiquetas

o

). --remove-paragraph-spacing-indent-size When calibre removes blank lines between paragraphs, it automatically sets a paragraph indent, to ensure that paragraphs can be easily distinguished. This option controls the width of that indent (in em). If you set this value negative, then the indent specified in the input document is used, that is, calibre does not change the indentation. --smarten-punctuation Convert plain quotes, dashes and ellipsis to their typographically correct equivalents. For details, see https://daringfireball.net/projects/smartypants. --subset-embedded-fonts Subset all embedded fonts. Every embedded font is reduced to contain only the glyphs used in this document. This decreases the size of the font files. Useful if you are embedding a particularly large font with lots of unused glyphs. --transform-css-rules Path to a file containing rules to transform the CSS styles in this book. The easiest way to create such a file is to use the wizard for creating rules in the calibre GUI. Access it in the "Look & feel->Transform styles" section of the conversion dialog. Once you create the rules, you can use the "Export" button to save them to a file. --transform-html-rules Path to a file containing rules to transform the HTML in this book. The easiest way to create such a file is to use the wizard for creating rules in the calibre GUI. Access it in the "Look & feel->Transform HTML" section of the conversion dialog. Once you create the rules, you can use the "Export" button to save them to a file. --unsmarten-punctuation Convert fancy quotes, dashes and ellipsis to their plain equivalents. PROCESAMENTO HEURISTICO Modificar o texto e a estrutura do documento utilizando patrons habituais. Empregue --enable-heuristics para activar. As accions individuais podense desactivar coas opcions --disable- * . --disable-dehyphenate Analiza as palabras con guion en todo o documento. O propio documento se usa coma un dicionario para determinar se cada guion se debe manter ou eliminarse. --disable-delete-blank-paragraphs Eliminar do documento os paragrafos baleiros que hai entre outros paragrafos --disable-fix-indents Converter os sangrados creados a partir de varios espazos duros en sangrados de CSS. --disable-format-scene-breaks Left aligned scene break markers are center aligned. Replace soft scene breaks that use multiple blank lines with horizontal rules. --disable-italicize-common-cases Buscar palabras e patrons que habitualmente estean en cursiva e ponelos en cursiva. --disable-markup-chapter-headings Detectar cabeceiras e subcabeceiras de capitulos sen formato e convertilas en etiquetas h2 e h3. Esta configuracion non creara un Indice (TOC), pero podese utilizar xunto coa deteccion de estrutura para crear uno. --disable-renumber-headings Busca secuencias de etiquetas

ou

. As etiquetas renumeran para evitar que de dividan os ficheiros en medio dunha cabeceira de capitulo. --disable-unwrap-lines Unir linas baseandose na puntuacion e noutros indicios de formato. --enable-heuristics Activar o procesamento heuristico. Esta opcion debe estar activada para que se poida realizar calquera tipo de procesametno heuristico. --html-unwrap-factor Escala para determinar a lonxitude para unir linas. Os valores correctos son numeros decimais entre 0 e 1. O valor predeterminado e 0.4, un pouco menos da metade da lina. Se soamente unhas poucas linas do documento necesitan unirse, deberia reducir o valor. --replace-scene-breaks Substituir saltos de escea polo texto especificado. De maneira predeterminada usase o texto existente no documento de entrada. BUSCAR E SUBSTITUIR Modificar o texto do documento e a estrutura usando patrons definidos. --search-replace Path to a file containing search and replace regular expressions. The file must contain alternating lines of regular expression followed by replacement pattern (which can be an empty line). The regular expression must be in the Python regex syntax and the file must be UTF-8 encoded. --sr1-replace Texto de substitucion para o texto encontrado con sr1-search. --sr1-search Patron de busca (expresion regular) que se substituira por sr1-replace. --sr2-replace Texto de substitucion para o texto atopado con sr2-search. --sr2-search Patron de busca (expresion regular) que se substituira por sr2-replace. --sr3-replace Texto de substitucion para o texto atopado con sr3-search. --sr3-search Patron de busca (expresion regular) que se substituira por sr3-replace. DETECCION DA ESTRUTURA Control de autodeteccion de estrutura de documento. --chapter An XPath expression to detect chapter titles. The default is to consider

or

tags that contain the words "chapter", "book", "section", "prologue", "epilogue" or "part" as chapter titles as well as any tags that have class="chapter". The expression used must evaluate to a list of elements. To disable chapter detection, use the expression "/". See the XPath Tutorial in the calibre User Manual for further help on using this feature. --chapter-mark Especificar como marcar os capitulos detectados. Un valor <> inserira un salto de paxina antes de cada capitulo. Un valor de <> inserira unha lina antes de cada capitulo. <> marcara os capitulos cun salto de paxina e unha lina en branco. <> desactivara o marcado de capitulos e un valor de <> usara ambos saltos de paxina e linas para marcar capitulos. --disable-remove-fake-margins Alguns documentos especifican as marxes de paxina engadindo marxes a esquerda e dereita de cada paragrafo, Calibre intentara detectar e eliminar estas marxes. As veces isto pode ocasionar que se eliminen marxes que deberian manterse. En tal caso, pode desactivar a eliminacion. --insert-metadata Insert the book metadata at the start of the book. This is useful if your e-book reader does not support displaying/searching metadata directly. --page-breaks-before An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: / --prefer-metadata-cover Usar a capa detectada no ficheiro de orixe mellor que a capa especificada. --remove-first-image Remove the first image from the input e-book. Useful if the input document has a cover image that is not identified as a cover. In this case, if you set a cover in calibre, the output document will end up with two cover images if you do not specify this option. --start-reading-at An XPath expression to detect the location in the document at which to start reading. Some e-book reading programs (most prominently the Kindle) use this location as the position at which to open the book. See the XPath tutorial in the calibre User Manual for further help using this feature. INDICE Controla a xeracion automatica do Indice. De modo predeterminado, se o ficheiro orixe ten unha taboa de contidos, usarase esta preferentemente respecto da xerada automaticamente. --duplicate-links-in-toc When creating a TOC from links in the input document, allow duplicate entries, i.e. allow more than one entry with the same text, provided that they point to a different location. --level1-toc XPath expression that specifies all tags that should be added to the Table of Contents at level one. If this is specified, it takes precedence over other forms of auto-detection. See the XPath Tutorial in the calibre User Manual for examples. --level2-toc XPath expression that specifies all tags that should be added to the Table of Contents at level two. Each entry is added under the previous level one entry. See the XPath Tutorial in the calibre User Manual for examples. --level3-toc XPath expression that specifies all tags that should be added to the Table of Contents at level three. Each entry is added under the previous level two entry. See the XPath Tutorial in the calibre User Manual for examples. --max-toc-links Numero maximo de ligazons que se incluiran no Indice de contidos. O valor 0 desactiva a opcion. Valor predeterminado: 50. So se engadiran ligazons no IdC se se detecta un numero de capitulos menor que o estabelecido como limiar. --no-chapters-in-toc Non engadir os capitulos autodetectados a taboa de contidos. --toc-filter Retirar entradas do Indice de contidos (IdC) con titulos que se corresponden coa expresion regular especificada. As entradas correspondentes e todas as subordinadas seran retiradas. --toc-threshold Se se detecta menos deste numero de capitulos, enton engadense ligazons ao Indice de contidos. Valor predeterminado: 6 --use-auto-toc Normalmente, se o ficheiro de orixe ten un Indice de contidos, usase este en vez do autoxerado. Con esta opcion sempre se usara o autoxerado. METADATOS As opcions para asignar metadatos na saida --author-sort Texto que se usara para ordenacion por autor. --authors Estabelecer os autores. Se hai varios autores deben separarse por <<&>>. --book-producer Definir o produtor do libro. --comments Set the e-book description. --cover Estabelecer a capa desde o ficheiro ou o URL especificado --isbn Definir o ISBN do libro. --language Definir o idioma. --pubdate Set the publication date (assumed to be in the local timezone, unless the timezone is explicitly specified) --publisher Set the e-book publisher. --rating Estabelecer a valoracion. Debe ser un numero entre 1 e 5. --read-metadata-from-opf, --from-opf, -m Ler metadatos do ficheiro OPF especificado. Os metadatos destes ficheiro sobreescribiran calquera metadato do ficheiro de orixe. --series Set the series this e-book belongs to. --series-index Estabelecer a posicion que ocupa o libro nesta colectanea. --tags Estabelecer etiquetas para o libro. Debe ser unha lista separada por comas --timestamp Set the book timestamp (no longer used anywhere) --title Definir o titulo. --title-sort A version do titulo que se usara para ordenacion. DEPURACION Opcion para axudar coa depuracion da conversion --debug-pipeline, -d Save the output from different stages of the conversion pipeline to the specified folder. Useful if you are unsure at which stage of the conversion process a bug is occurring. --verbose, -v Level of verbosity. Specify multiple times for greater verbosity. Specifying it twice will result in full verbosity, once medium verbosity and zero times least verbosity. AUTHOR Kovid Goyal COPYRIGHT Kovid Goyal 7.10.0 maio 03, 2024 EBOOK-CONVERT(1)