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 11-02-2018, 02:48 AM   #1
mw-b
Junior Member
mw-b began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2018
Device: calibre
Calibre lose code block style on EPUB to HTML conversion phase

Hi there. My problem is that calibre lose code block style on EPUB to HTML conversion phase. They put code blocks inside of paragraphs tags and it looks like the paragraph content like the following

Click image for larger version

Name:	Kcm9RkB.png
Views:	290
Size:	324.2 KB
ID:	167388
Conversion Options : Default Settings
Conversion log:
Spoiler:

Convert book 1 of 1 (Database Systems: Design, Implementation, and Management, 10th Ed.)
Conversion options changed from defaults:
read_metadata_from_opf: u'/tmp/calibre_3.21.0_tmp_vWrX9B/9JbPO1.opf'
cover: u'/tmp/calibre_3.21.0_tmp_vWrX9B/FJf4WF.jpeg'
verbose: 2
linearize_tables: True
output_profile: 'generic_eink'
Resolved conversion options
calibre version: 3.21.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|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/tmp/calibre_3.21.0_tmp_vWrX9B/FJf4WF.jpeg',
'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,
'htmlz_class_style': u'external',
'htmlz_css_type': u'class',
'htmlz_title_filename': False,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x7fb9b5346f90>,
'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': True,
'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.GenericEink object at 0x7fb9b52d13d0>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/tmp/calibre_3.21.0_tmp_vWrX9B/9JbPO1.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,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /tmp/calibre_3.21.0_tmp_vWrX9B/Y_3KPI.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing page_styles.css ...
Parsing stylesheet.css ...
Parsing titlepage.xhtml ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_027.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_028.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_029.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_030.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_031.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_032.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_033.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_034.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_035.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_036.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_037.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_038.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_039.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_040.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_002.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_003.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_004.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_005.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_006.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_007.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_008.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_009.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_010.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_011.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_012.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_013.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_014.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_015.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_016.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_017.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_018.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_019.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_020.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_021.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_022.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_023.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_024.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_025.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_026.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_001.html ...
Parsing CR!5A4MGEVRHD03Z2219SKHVZ3J0KMH_split_000.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 5373 items of level: div_1
Found 760 items of level: div_3
Found 79 items of level: div_2
Found 467 items of level: div_5
Found 1704 items of level: div_4
Found 18 items of level: div_6
Found 481 items of level: p_6
Found 865 items of level: p_5
Found 3869 items of level: p_2
Found 10635 items of level: p_1
Ignoring level div_6
div_1 left margin stats: Counter({u'': 165})
div_1 right margin stats: Counter({u'': 165})
div_3 left margin stats: Counter({u'': 760})
div_3 right margin stats: Counter({u'': 760})
div_2 left margin stats: Counter({u'': 79})
div_2 right margin stats: Counter({u'': 79})
div_5 left margin stats: Counter({u'': 467})
div_5 right margin stats: Counter({u'': 467})
div_4 left margin stats: Counter({u'': 1704})
div_4 right margin stats: Counter({u'': 1704})
Negative text indent detected at level p_6, ignoring this level
Negative text indent detected at level p_5, ignoring this level
Negative text indent detected at level p_2, ignoring this level
Negative text indent detected at level p_1, ignoring this level
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'titlepage.xhtml' from manifest
Creating HTMLZ Output...
Converting OEB book to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_000.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_001.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_002.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_003.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_004.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_005.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_006.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_007.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_008.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_009.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_010.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_011.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_012.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_013.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_014.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_015.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_016.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_017.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_018.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_019.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_020.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_021.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_022.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_023.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_024.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_025.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_026.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_027.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_028.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_029.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_030.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_031.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_032.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_033.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_034.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_035.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_036.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_037.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_038.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_039.html to HTML...
Converting CR%215A4MGEVRHD03Z2219SKHVZ3J0KMH_split_040.html to HTML...
HTMLZ output written to /tmp/calibre_3.21.0_tmp_vWrX9B/u7qvIF.htmlz

Input File:https://drive.google.com/open?id=1NJ...eNXVLFgTzLzjjk
Output File:https://drive.google.com/open?id=1Jo...dEc4U_iCIRUvkd
I saw that code blocks are in tables while I were looking calibre epub document maybe there is a way that convert these tables to html code blocks but I don't know how can I do this.Any advice appreciated.

Last edited by theducks; 11-02-2018 at 10:40 AM. Reason: Changed log to SPOILER TAG ,Upload OVERSIZED images to MR -
mw-b is offline   Reply With Quote
Old 11-02-2018, 02:56 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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I lose paragraph spacing in epub>docx Calibre conversion Gregg Bell Conversion 9 02-09-2017 07:40 PM
Images "cut" into strips after conversion HTML to epub in calibre senordustball Conversion 0 02-13-2013 03:31 PM
html to epub CLI conversion / html input m4mmon Conversion 2 05-05-2012 02:10 AM
Cluttered Calibre style code in EPUB rurdyrucker Calibre 4 04-08-2012 02:17 AM
HTML code in epub book Giselleco Kobo Reader 4 07-26-2011 01:33 PM


All times are GMT -4. The time now is 01:15 AM.


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