05-14-2011, 09:25 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2011
Device: Kindle
|
TOC - Kindle - Not Generating
Hi All,
First off Calibre is brilliant, but I can't get it to generate a TOC at all. Essentially my raw html comes with just <p> tags, but is generally quite clean. The Heuristics pick up the chapters fine, however having read lots of stuff and clicked lots of buttons I can't get it to generate a TOC. Below is the conversion Log, it just looks like it's not doing it! Any ideas would be gratefully recieved! Code:
Convert book 1 of 1 (Pastoral Grit) Processing archive... Resolved conversion options calibre version: 0.7.58 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'breadth_first': False, 'change_justification': u'original', 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': None, 'debug_pipeline': None, 'dehyphenate': False, 'delete_blank_paragraphs': False, 'disable_font_rescaling': False, 'dont_compress': False, 'dont_package': False, 'enable_heuristics': True, 'extra_css': None, 'fix_indents': False, 'font_size_mapping': None, 'format_scene_breaks': False, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x1082d7d10>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': False, '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_levels': 5, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_ignore_margins': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x1082d9390>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", '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/vD/vDlvtQIeFZ45xOKGuuu2UU+++TM/-Tmp-/calibre_0.7.58_tmp_YtF1yb/calibre_0.7.58_5vxwac.opf', 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': False, 'replace_scene_breaks': u'', 'rescale_images': False, '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, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'unwrap_lines': False, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on /var/folders/vD/vDlvtQIeFZ45xOKGuuu2UU+++TM/-Tmp-/calibre_0.7.58_tmp_YtF1yb/calibre_0.7.58_jDYXXU_plumber_archive/content.opf Parsing all content... Manifest item 'toc.ncx' not found Parsing Pastoral%20Grit.html ... ********* Heuristic processing HTML ********* There are 3 blank lines. 0.00443131462334 percent blank minimum chapters required are: 6 found 0 pre-existing headings common had 1 hits - 1 chapters with no title, 0 chapters with titles, 0.0 percent. plain_number had 12 hits - 1 chapters with no title, 11 chapters with titles, 0.916666666667 percent. Marked 0 headings, Searching for common section headings marked 1 chapters. - Introduction Marked 1 headings, Searching for simple numeric headings marked 2 chapters & titles. - 1, Indexed By Size marked 3 chapters & titles. - 2, Digging Out Of My Financial Winter marked 4 chapters & titles. - 3, Light From An Eight-Watt Ministry marked 5 chapters & titles. - 4, Brown-Out marked 6 chapters & titles. - 5, After The Revolt marked 7 chapters & titles. - 6, Expectation Management marked 8 chapters & titles. - 7, Minding My Own Business marked 9 chapters & titles. - 8, When The Rope Unclips marked 10 chapters & titles. - 9, Faith For The Low-Yield Years marked 11 chapters & titles. - 10, Losing My Appetite For Cynicism marked 12 chapters & titles. - 11, Working The Edges marked 13 chapters & titles. - 12, Going With The Grain Total wordcount is: 41066, Average words per section is: 3158, Marked up 13 chapters Hard line breaks check returned False Median line length is 389, calculated with html format Generating default TOC from spine... Merging user specified metadata... Detecting structure... Auto generated TOC with 0 entries. Flattening CSS and remapping font sizes... Source base font size is 12.00000pt Removing fake margins... Parsing stylesheet.css ... Found 1 items of level: div_1 Found 1 items of level: p_2 Found 651 items of level: p_1 Ignoring level p_2 div_1 left margin stats: Counter() div_1 right margin stats: Counter() p_1 left margin stats: Counter({u'0': 629, u'18pt': 20, u'144pt': 2}) p_1 right margin stats: Counter({u'0': 646, u'18pt': 3, u'144pt': 2}) Cleaning up manifest... Trimming unused files from manifest... Creating MOBI Output... Applying case-transforming CSS... Parsing manglecase.css ... Rasterizing SVG images... Converting XHTML to Mobipocket markup... Serializing markup content... Compressing markup content... Generating flat CTOC ... CNCX utilization: 1 record, 0% full No entries found in TOC ... Writing unindexed mobi ... Serializing images... MOBI output written to /var/folders/vD/vDlvtQIeFZ45xOKGuuu2UU+++TM/-Tmp-/calibre_0.7.58_tmp_YtF1yb/calibre_0.7.58_UmPLzc.mobi ST |
05-14-2011, 10:00 AM | #2 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Enable use auto toc and reset the level 1 toc expression. Level 1 toc should look like the page break before expression after resetting.
|
Advert | |
|
05-15-2011, 07:28 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2011
Device: Kindle
|
Thanks! Was getting the toc expression wrong!
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem generating TOC | ronin712 | Calibre | 11 | 09-06-2015 11:53 PM |
Table of Contents not generating | Amalthia | Calibre | 2 | 12-19-2010 08:15 PM |
Generating TOC entries for prelims / end matter in InDesign | forlor | ePub | 7 | 07-07-2010 08:26 AM |
Trouble generating a TOC | foghat | Calibre | 2 | 05-07-2010 06:00 PM |
Generating from Wikipedia | ahi | Workshop | 0 | 08-10-2009 11:44 AM |