|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 4102
Join Date: Jun 2018
Device: Kindle Paperwhite (10th gen) - 6", OnePlus 9RT - MoonReader Pro
|
Docx file not getting converted to epub with table of contents
I am trying to convert an msword docx file to an epub.
The word file has auto-generated headings section. So I want those headings to read as table of contents. However, only 4 headings are coming out in the clickable table of contents that shows up on the left in the calibre reader, as well as in the Kindle viewer. What should I do? Here's what the word file looks like with the headings. https://i.imgur.com/M4ML1fz.png Here's how the headings are coming out in the table of contents of the resultant epub file. https://i.imgur.com/UJruyoS.png I didn't do any specific settings in the docx file. I am enclosing both the source docx file and resultant epub file. |
|
|
|
|
|
#2 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,728
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 4102
Join Date: Jun 2018
Device: Kindle Paperwhite (10th gen) - 6", OnePlus 9RT - MoonReader Pro
|
Sorry. Here's the log.
Code:
Convert book 1 of 1 (Naval Compilation)
Conversion options changed from defaults:
read_metadata_from_opf: 'C:\\Users\\mylaptopname\\AppData\\Local\\Temp\\calibre-kvievuh6\\afwqix6t.opf'
verbose: 2
use_auto_toc: True
cover: 'C:\\Users\\mylaptopname\\AppData\\Local\\Temp\\calibre-kvievuh6\\uolu123c.jpeg'
output_profile: 'generic_eink'
Resolved conversion options
calibre version: 9.10.0
{'add_alt_text_to_img': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\mylaptopname\\AppData\\Local\\Temp\\calibre-kvievuh6\\uolu123c.jpeg',
'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_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000001E962AECAD0>,
'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_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x000001E962AEDFD0>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\mylaptopname\\AppData\\Local\\Temp\\calibre-kvievuh6\\afwqix6t.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': '',
'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': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': True,
'verbose': 2}
InputFormatPlugin: DOCX Input running
on C:\Users\mylaptopname\AppData\Local\Temp\calibre-kvievuh6\ppboy4eq.docx
Converting Word markup to HTML
Converting styles to CSS
Cleaning up redundant markup generated by Word
Generating Table of Contents from headings
Parsing all content...
Parsing docx.css ...
Parsing index.html ...
Initial parse failed, using more forgiving parsers
Parsing index.html as HTML
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Matt Ridley: How Innovation Works, Part 1
Detected chapter: Matt Ridley: How Innovation Works, Part 2
Detected chapter: How to Angel Invest, Part 2
Detected chapter: How to Angel Invest, Part 1
Auto generated TOC with 4 entries.
Flattening CSS and remapping font sizes...
Source base font size is 11.00000pt
Removing fake margins...
Found 2225 items of level: p_1
Found 4 items of level: div_1
p_1 left margin stats: Counter({'0': 2225})
p_1 right margin stats: Counter({'0': 2225})
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=calibre_pb_1
Splitting on page-break at id=calibre_pb_2
Splitting on page-break at id=calibre_pb_3
Splitting on page-break at id=calibre_pb_4
Splitting on page-break at id=calibre_pb_5
Splitting on page-break at id=calibre_pb_6
Splitting on page-break at id=calibre_pb_7
Splitting on page-break at id=calibre_pb_8
Splitting on page-break at id=calibre_pb_9
Splitting on page-break at id=calibre_pb_10
Splitting on page-break at id=calibre_pb_11
Splitting on page-break at id=calibre_pb_12
Splitting on page-break at id=calibre_pb_13
Splitting on page-break at id=calibre_pb_14
Splitting on page-break at id=calibre_pb_15
Splitting on page-break at id=calibre_pb_16
Splitting on page-break at id=calibre_pb_17
Splitting on page-break at id=calibre_pb_18
Splitting on page-break at id=calibre_pb_19
Splitting on page-break at id=calibre_pb_20
Splitting on page-break at id=calibre_pb_21
Splitting on page-break at id=calibre_pb_22
Splitting on page-break at id=calibre_pb_23
Splitting on page-break at id=calibre_pb_24
Splitting on page-break at id=calibre_pb_25
Splitting on page-break at id=calibre_pb_26
Splitting on page-break at id=calibre_pb_27
Splitting on page-break at id=calibre_pb_28
Splitting on page-break at id=calibre_pb_29
Splitting on page-break at id=calibre_pb_30
Splitting on page-break at id=calibre_pb_31
Splitting on page-break at id=calibre_pb_32
Splitting on page-break at id=calibre_pb_33
Splitting on page-break at id=calibre_pb_34
Splitting on page-break at id=calibre_pb_35
Splitting on page-break at id=calibre_pb_36
Splitting on page-break at id=calibre_pb_37
Splitting on page-break at id=calibre_pb_38
Splitting on page-break at id=calibre_pb_39
Splitting on page-break at id=calibre_pb_40
Splitting on page-break at id=calibre_pb_41
Splitting on page-break at id=calibre_pb_42
Splitting on page-break at id=calibre_pb_43
Splitting on page-break at id=calibre_pb_44
Splitting on page-break at id=calibre_pb_45
Splitting on page-break at id=calibre_pb_46
Splitting on page-break at id=calibre_pb_47
Splitting on page-break at id=calibre_pb_48
Splitting on page-break at id=calibre_pb_49
Splitting on page-break at id=calibre_pb_50
Splitting on page-break at id=calibre_pb_51
Splitting on page-break at id=calibre_pb_52
Splitting on page-break at id=calibre_pb_53
Splitting on page-break at id=calibre_pb_54
Looking for large trees in index.html...
No large trees found
Split into 51 parts
Removing anchor from TOC href: index_split_023.html#toc_id_24
Removing anchor from TOC href: index_split_024.html#toc_id_25
Removing anchor from TOC href: index_split_025.html#toc_id_26
Removing anchor from TOC href: index_split_031.html#toc_id_32
EPUB output written to C:\Users\mylaptopname\AppData\Local\Temp\calibre-kvievuh6\6s5y4g1k.epub
|
|
|
|
|
|
#4 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,307
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
|
What happens if you re-add the docx to calibre and try a conversion with default settings?
I'm asking because I converted with default settings and the ToC was fully generated. |
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,728
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Epub file with missing table of contents | archz2 | Amazon Kindle | 10 | 11-25-2023 07:17 AM |
| No Table of Contents in Converted Epub? | enuddleyarbl | Conversion | 16 | 06-09-2021 03:53 PM |
| DOCX Table of Contents Page Title Missing from Calibre TOC | Hushpower | Conversion | 2 | 08-27-2020 09:21 PM |
| unwanted table of contents in converted book | asqueue | Conversion | 14 | 05-07-2014 06:23 PM |
| access directly the table of contents of cbc converted into epub | Khawarizmi | Sony Reader | 4 | 12-27-2010 08:55 AM |