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-17-2019, 04:22 PM   #1
resolfe
Member
resolfe began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2019
Device: kindle
Heading style problem at docx to mobi conversion

Hi,

I am trying to converting a docx file (word 2007) to a mobi.

I am experiencing the following problems with the h1 heading:
  • the h1 heading is indented, although there is no indent in the original docx file.
    see screenshot of original heading here
    And a screenshot of the converted heading here
  • the number of the h1 heading is sometimes bigger than the text and seems to have a differente font or is not bold; see screenshot here

How can that be solved or what is the problem?

Here is the conversion log:
Spoiler:
Convert book 1 of 1 (test)
Conversion options changed from defaults:
output_profile: 'tablet'
verbose: 2
read_metadata_from_opf: u'C:\\Users\\xxx\\AppData\\Local\\Temp\\calibre_qa 30dx\\otcqlv.opf'
Resolved conversion options
calibre version: 3.20.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': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_inline_subsup': False,
'docx_no_cover': False,
'docx_no_pagebreaks_between_notes': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': 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 0x000000A6E13A0FD0>,
'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.TabletOutput object at 0x000000A6E13A8A58>,
'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'C:\\Users\\xxx\\AppData\\Local\\Temp\\calibre_qa 30dx\\otcqlv.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,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: DOCX Input running
on C:\Users\xxx\AppData\Local\Temp\calibre_qa30dx\8dx ini.docx
Converting Word markup to HTML
Converting styles to CSS
Cleaning up redundant markup generated by Word
Found Word Table of Contents, using it to generate the Table of Contents
Parsing all content...
Parsing index.html ...
Initial parse failed, using more forgiving parsers
Parsing index.html as HTML
Parsing docx.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 10.00000pt
Removing fake margins...
Found 73 items of level: p_1
Found 2 items of level: div_2
Found 2 items of level: div_1
p_1 left margin stats: Counter({u'0': 71, u'11.1pt': 2})
p_1 right margin stats: Counter({u'0': 71, u'22.7pt': 2})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files 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 C:\Users\xxx\AppData\Local\Temp\calibre_qa30dx\nm0 phx.mobi

Last edited by theducks; 04-17-2019 at 06:27 PM. Reason: chaBGED QUOTE TO SPOILER
resolfe is offline   Reply With Quote
Old 04-17-2019, 08:23 PM   #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: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your headings are styled using a numbering style, which means they become numbered lists in MOBI. And MOBI has very limited support for that, convert to AZW3 instead.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-18-2019, 10:38 AM   #3
resolfe
Member
resolfe began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2019
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
Your headings are styled using a numbering style, which means they become numbered lists in MOBI. And MOBI has very limited support for that, convert to AZW3 instead.
Thanks kovidgoyal for your feedback.

I will just avoid the automatic numbering of the headings then and write the numbers manually instead.
resolfe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi to Docx Conversion Erorr thebigbopper Conversion 2 09-13-2016 07:12 PM
DOCX to MOBI Problems with Fixed Width Code Style grepnick Conversion 13 02-03-2015 12:44 AM
Docx to mobi (Extra space over the heading/title) zonoiko Conversion 0 12-04-2013 08:04 PM
docx to mobi conversion, Image center/dragging problem zonoiko Conversion 0 09-24-2013 02:35 PM
PDF to MOBI Conversion Problem with Page Heading gtbeagle Conversion 1 06-09-2011 02:10 AM


All times are GMT -4. The time now is 10:06 AM.


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