Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3919

Kobo Epub to AZW3/PDF conversion problem

$
0
0
Hi there,
I'm trying to convert a couple of (similar) guitar tab books I bought from Kobo to use on my Kindle. I can import them using OBOK with no apparent issues - however, when I view them in Calibre reader the text and graphics are all over the place, e.g.:

I don't have a Kobo reader so can't check there, unfortunately. But when I check the Epub on Moon Reader (Android), it shows without any images whatsoever.

Converting to AZW3 yields files that are unreadable on my Kindle.

Converting to PDF (probably preferable anyway for this content) fails in the case of one of the files:

Code:

Convert book 1 of 1 (Justin Guitar: Christmas Songbook)
Conversion options changed from defaults:
  output_profile: u'kindle_pw3'
  cover: u'C:\\Users\\AppData\\Local\\Temp\\calibre_9dwvsk\\wq7rh2.jpeg'
  read_metadata_from_opf: u'C:\\Users\\AppData\\Local\\Temp\\calibre_9dwvsk\\2x0el6.opf'
  pdf_sans_family: u'Liberation Sans'
  pdf_serif_family: u'Liberation Serif'
  pdf_mono_family: u'Liberation Mono'
  verbose: 2
Resolved conversion options
calibre version: 4.6.0
{'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|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\AppData\\Local\\Temp\\calibre_9dwvsk\\wq7rh2.jpeg',
 'custom_size': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': 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 0x0000022B093DA848>,
 '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,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.KindlePaperWhite3Output object at 0x0000022B093E80C8>,
 'page_breaks_before': u'/',
 'paper_size': u'letter',
 'pdf_add_toc': False,
 'pdf_default_font_size': 20,
 'pdf_footer_template': None,
 'pdf_header_template': None,
 'pdf_hyphenate': False,
 'pdf_mark_links': False,
 'pdf_mono_family': u'Liberation Mono',
 'pdf_mono_font_size': 16,
 'pdf_odd_even_offset': 0.0,
 'pdf_page_margin_bottom': 72.0,
 'pdf_page_margin_left': 72.0,
 'pdf_page_margin_right': 72.0,
 'pdf_page_margin_top': 72.0,
 'pdf_page_number_map': None,
 'pdf_page_numbers': False,
 'pdf_sans_family': u'Liberation Sans',
 'pdf_serif_family': u'Liberation Serif',
 'pdf_standard_font': u'serif',
 'pdf_use_document_margins': False,
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\AppData\\Local\\Temp\\calibre_9dwvsk\\2x0el6.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,
 '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,
 'transform_css_rules': '[]',
 'uncompressed_pdf': False,
 'unit': u'inch',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'use_profile_size': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\AppData\Local\Temp\calibre_9dwvsk\ygj7w3.epub
Found HTML cover OEBPS/cover.xhtml
Parsing all content...
Parsing OEBPS/page035.xhtml ...
Parsing OEBPS/page010.xhtml ...
Parsing OEBPS/page027.xhtml ...
Parsing OEBPS/page060.xhtml ...
Parsing OEBPS/page029.xhtml ...
Parsing OEBPS/page062.xhtml ...
Parsing OEBPS/page031.xhtml ...
Parsing OEBPS/page070.xhtml ...
Parsing OEBPS/page033.xhtml ...
Parsing OEBPS/page083.xhtml ...
Parsing OEBPS/cover.xhtml ...
Parsing OEBPS/page001.xhtml ...
Parsing OEBPS/page037.xhtml ...
Parsing OEBPS/empty.xhtml ...
Parsing OEBPS/page039.xhtml ...
Parsing OEBPS/page003.xhtml ...
Parsing OEBPS/page041.xhtml ...
Parsing OEBPS/page072.xhtml ...
Parsing OEBPS/page007.xhtml ...
Parsing OEBPS/page043.xhtml ...
Parsing OEBPS/page065.xhtml ...
Parsing OEBPS/page045.xhtml ...
Parsing OEBPS/page015.xhtml ...
Parsing OEBPS/page047.xhtml ...
Parsing OEBPS/page097.xhtml ...
Parsing OEBPS/page017.xhtml ...
Parsing OEBPS/page049.xhtml ...
Parsing OEBPS/page074.xhtml ...
Parsing OEBPS/page021.xhtml ...
Parsing OEBPS/page053.xhtml ...
Parsing OEBPS/page087.xhtml ...
Parsing OEBPS/page055.xhtml ...
Parsing OEBPS/page057.xhtml ...
Parsing OEBPS/page090.xhtml ...
Parsing OEBPS/page005.xhtml ...
Parsing OEBPS/page063.xhtml ...
Parsing OEBPS/page076.xhtml ...
Parsing OEBPS/page081.xhtml ...
Parsing OEBPS/page094.xhtml ...
Parsing OEBPS/page089.xhtml ...
Parsing OEBPS/page086.xhtml ...
Parsing OEBPS/page096.xhtml ...
Parsing OEBPS/page026.xhtml ...
Parsing OEBPS/page078.xhtml ...
Parsing OEBPS/page022.xhtml ...
Parsing OEBPS/page009.xhtml ...
Parsing OEBPS/page067.xhtml ...
Parsing OEBPS/page051.xhtml ...
Parsing OEBPS/page080.xhtml ...
Parsing OEBPS/page092.xhtml ...
Parsing OEBPS/page013.xhtml ...
Parsing OEBPS/page059.xhtml ...
Parsing OEBPS/page028.xhtml ...
Parsing OEBPS/page082.xhtml ...
Parsing OEBPS/page061.xhtml ...
Parsing OEBPS/page030.xhtml ...
Parsing OEBPS/page032.xhtml ...
Parsing OEBPS/page034.xhtml ...
Parsing OEBPS/page068.xhtml ...
Parsing OEBPS/page012.xhtml ...
Parsing OEBPS/page036.xhtml ...
Parsing OEBPS/page019.xhtml ...
Parsing OEBPS/page071.xhtml ...
Parsing OEBPS/page069.xhtml ...
Parsing OEBPS/page038.xhtml ...
Parsing OEBPS/page084.xhtml ...
Parsing OEBPS/page002.xhtml ...
Parsing OEBPS/page040.xhtml ...
Parsing OEBPS/page042.xhtml ...
Parsing OEBPS/page006.xhtml ...
Parsing OEBPS/page044.xhtml ...
Parsing OEBPS/page046.xhtml ...
Parsing OEBPS/page073.xhtml ...
Parsing OEBPS/page048.xhtml ...
Parsing OEBPS/page018.xhtml ...
Parsing OEBPS/page050.xhtml ...
Parsing OEBPS/page079.xhtml ...
Parsing OEBPS/nav.xhtml ...
Parsing OEBPS/page020.xhtml ...
Parsing OEBPS/page052.xhtml ...
Parsing OEBPS/page098.xhtml ...
Parsing OEBPS/page054.xhtml ...
Parsing OEBPS/page004.xhtml ...
Parsing OEBPS/page024.xhtml ...
Parsing OEBPS/page056.xhtml ...
Parsing OEBPS/page023.xhtml ...
Parsing OEBPS/page075.xhtml ...
Parsing OEBPS/page058.xhtml ...
Parsing OEBPS/page088.xhtml ...
Parsing OEBPS/page091.xhtml ...
Parsing OEBPS/page085.xhtml ...
Parsing OEBPS/page093.xhtml ...
Parsing OEBPS/page011.xhtml ...
Parsing OEBPS/page095.xhtml ...
Parsing OEBPS/page064.xhtml ...
Parsing OEBPS/page025.xhtml ...
Parsing OEBPS/page077.xhtml ...
Parsing OEBPS/fixed.css ...
Parsing OEBPS/page014.xhtml ...
Parsing OEBPS/page066.xhtml ...
Parsing OEBPS/page008.xhtml ...
Parsing OEBPS/page016.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 17.40000pt
Removing fake margins...
Found 98 items of level: div_1
Found 447 items of level: div_3
Found 305 items of level: div_2
div_1  left margin stats: Counter({u'0': 53})
div_1  right margin stats: Counter({u'': 53})
Negative text indent detected at level  div_3, ignoring this level
div_2  left margin stats: Counter({u'': 29})
div_2  right margin stats: Counter({u'': 29})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/cover.xhtml' from manifest
Trimming u'OEBPS/empty.xhtml' from manifest
Trimming u'OEBPS/toc.ncx' from manifest
Trimming u'OEBPS/nav.xhtml' from manifest
Trimming u'OEBPS/docimages/img_p98.jpg' from manifest
Creating PDF Output...
Converting input as a text based book...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Python function terminated unexpectedly
  Size mismatch for glyph id: 0 prev_sz: 84 sz: 68 (Error Code: 1)
 Traceback (most recent call last):
  File "site.py", line 114, in main
  File "site.py", line 88, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 208, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 43, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1275, in run
  File "site-packages\calibre\ebooks\conversion\plugins\pdf_output.py", line 188, in convert
  File "site-packages\calibre\ebooks\conversion\plugins\pdf_output.py", line 255, in convert_text
  File "site-packages\calibre\ebooks\pdf\html_writer.py", line 1214, in convert
  File "site-packages\calibre\ebooks\pdf\html_writer.py", line 955, in merge_fonts
  File "site-packages\calibre\ebooks\pdf\html_writer.py", line 911, in merge_font
  File "site-packages\calibre\utils\fonts\sfnt\merge.py", line 31, in merge_truetype_fonts_for_pdf
GlyphSizeMismatch: Size mismatch for glyph id: 0 prev_sz: 84 sz: 68

For the other file, it produces a text that replicates the distorted EPUB file (not surprising, I suppose).
Any suggestions? Thanks heaps!

Viewing all articles
Browse latest Browse all 3919

Trending Articles