Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2014, 02:35 AM   #1
zBernie
Junior Member
zBernie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: Nexus 7
How to view calibre conversion commands?

I have an .epub file I exported from Apple Pages. If I load it into Calibre, then convert it to .mobi, the cover looks great. But If I use ebook-convert from the command line to convert the .epub to .mobi, the book cover is missing. I tried using --cover=myfile.jpg, but that just places a picture of the file on the front cover.

Is it possible to see how calibre is executing the conversion commands? There's a debug option, but that just generates a bunch of html. I'm interested in duplicating what calibre is doing on the command line.

-Thanks
zBernie is offline   Reply With Quote
Old 04-26-2014, 03:00 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the log, click the rotating spinner in the bottom right corner.
kovidgoyal is online now   Reply With Quote
Advert
Old 04-26-2014, 03:17 PM   #3
zBernie
Junior Member
zBernie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: Nexus 7
Quote:
Originally Posted by kovidgoyal View Post
Look at the log, click the rotating spinner in the bottom right corner.
I've looked at that before, but it does not show the actual commands used for the conversion, only informational messages:
Spoiler:

Convert book 1 of 1 (Family Recipes)
Resolved conversion options
calibre version: 0.9.15
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/l8/hn7b506d0ls1t81h0jv9gwjh0000gp/T/calibre_0.9.15_tmp_MAO_bW/cVKWLm.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_font_family': None,
'enable_heuristics': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x108d65ad0>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x108d65e90>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/l8/hn7b506d0ls1t81h0jv9gwjh0000gp/T/calibre_0.9.15_tmp_MAO_bW/Oewxfb.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /var/folders/l8/hn7b506d0ls1t81h0jv9gwjh0000gp/T/calibre_0.9.15_tmp_MAO_bW/Z9vwGB.epub
Parsing all content...
Parsing OPS/chapter-24.xhtml ...
Parsing OPS/chapter-7.xhtml ...
Parsing OPS/chapter-1.xhtml ...
Parsing OPS/chapter-17.xhtml ...
Parsing OPS/chapter-8.xhtml ...
Parsing OPS/chapter-27.xhtml ...
Parsing OPS/chapter-16.xhtml ...
Parsing OPS/chapter-18.xhtml ...
Parsing OPS/toc.xhtml ...
Parsing OPS/chapter-29.xhtml ...
Parsing OPS/chapter-19.xhtml ...
Parsing OPS/chapter-11.xhtml ...
Parsing OPS/chapter-10.xhtml ...
Parsing OPS/chapter-30.xhtml ...
Parsing OPS/chapter-2.xhtml ...
Parsing OPS/chapter-20.xhtml ...
Parsing OPS/chapter-3.xhtml ...
Parsing OPS/chapter-12.xhtml ...
Parsing OPS/chapter-25.xhtml ...
Parsing OPS/chapter-21.xhtml ...
Parsing OPS/chapter-4.xhtml ...
Parsing OPS/chapter-13.xhtml ...
Parsing OPS/chapter-28.xhtml ...
Parsing OPS/chapter-9.xhtml ...
Parsing OPS/chapter-22.xhtml ...
Parsing OPS/chapter-5.xhtml ...
Parsing OPS/chapter-14.xhtml ...
Parsing OPS/chapter-23.xhtml ...
Parsing OPS/chapter-6.xhtml ...
Parsing OPS/css/book.css ...
Parsing OPS/chapter-15.xhtml ...
Parsing OPS/chapter-26.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 8.25000pt
Removing fake margins...
Found 30 items of level: div_1
Found 1297 items of level: p_2
div_1 left margin stats: Counter({u'': 30})
div_1 right margin stats: Counter({u'': 30})
Negative text indent detected at level p_2, ignoring this level
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OPS/toc.xhtml' from manifest
Trimming u'OPS/images/cover-image.png' from manifest

Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating MOBI index for a book
MOBI output written to /var/folders/l8/hn7b506d0ls1t81h0jv9gwjh0000gp/T/calibre_0.9.15_tmp_MAO_bW/8v5hrv.mobi

Last edited by theducks; 04-26-2014 at 05:08 PM. Reason: wrap huge paste in spoiler
zBernie is offline   Reply With Quote
Old 04-26-2014, 09:47 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The resolved conversion options map directly to corresponding options for the ebook-convert command. The GUI does not however use ebook-convert directly, so there is no actual command line to see.
kovidgoyal is online now   Reply With Quote
Old 04-26-2014, 10:11 PM   #5
zBernie
Junior Member
zBernie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: Nexus 7
Quote:
Originally Posted by kovidgoyal View Post
The resolved conversion options map directly to corresponding options for the ebook-convert command. The GUI does not however use ebook-convert directly, so there is no actual command line to see.

That's what I thought but thought I'd check for certain. Thanks for the info.
zBernie is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Voice Commands Getting More Useful ebusinesstutor Android Devices 1 09-07-2012 05:15 PM
Touch commands Stingo Amazon Kindle 3 11-15-2011 08:47 PM
list of commands for Calibre JTAL604622 Calibre 5 06-23-2010 04:21 PM
PRS-500 Available XML commands johnmcelfresh Sony Reader Dev Corner 0 08-18-2007 01:55 PM


All times are GMT -4. The time now is 09:44 AM.


MobileRead.com is a privately owned, operated and funded community.