View Single Post
Old 08-04-2011, 01:53 PM   #7
Tearin de Hairou
Junior Member
Tearin de Hairou began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2011
Device: Kindle
No, I'd originally left it alone and got no table of contents at all.

By the way, I've another weird problem: the paragraphs have a couple of acres with them when the book is made. I've looked at other ebooks, for instance The Hunger Games, and this isn't the case with them. How on earth do I fix this?

Edit: I tried again to use the menu at those fields and return to the original //*[((name.... stuff (catchy!) but on outputting the file got an error message saying "Failed: Convert book 1 of 1 (Attempt at an Aardvark)" (Attempt at an Aardvark being the title of the book).

This dialogue had a button 'Show details'; I used 'copy to clipboard' on this and got:

Spoiler:

calibre, version 0.8.12
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Attempt at an Aardvark)

Convert book 1 of 1 (Attempt at an Aardvark)
Processing archive...
Resolved conversion options
calibre version: 0.8.12
{'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 named()='chapter' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'none',
'comments': None,
'cover': u'/var/folders/4l/7q0n1hkn7y3dg76kps5m360m0000gn/T/calibre_0.8.12_tmp_q4Glu5/calibre_0.8.12_OmCgHm.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_package': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'extra_css': None,
'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 0x108739410>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kindlegen': False,
'language': None,
'level1_toc': u'//h[re:test(@class, "chapter", "i")]',
'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,
'mobi_toc_at_start': True,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x108739a50>,
'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/4l/7q0n1hkn7y3dg76kps5m360m0000gn/T/calibre_0.8.12_tmp_q4Glu5/calibre_0.8.12_kYXVOH.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'',
'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': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on /var/folders/4l/7q0n1hkn7y3dg76kps5m360m0000gn/T/calibre_0.8.12_tmp_q4Glu5/calibre_0.8.12_wHKKPr_plumber_archive/content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Attempt.html ...
Generating default TOC from spine...
Merging user specified metadata...
Python function terminated unexpectedly: Unregistered function
Detecting structure...
Traceback (most recent call last):
File "/Users/lucille/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main
return run_entry_point()
File "/Users/lucille/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 181, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 975, in run
File "site-packages/calibre/ebooks/oeb/transforms/structure.py", line 33, in __call__
File "site-packages/calibre/ebooks/oeb/transforms/structure.py", line 76, in detect_chapters
File "xpath.pxi", line 430, in lxml.etree.XPath.__call__ (src/lxml/lxml.etree.c:105242)
File "xpath.pxi", line 212, in lxml.etree._XPathEvaluatorBase._handle_result (src/lxml/lxml.etree.c:103335)
File "xpath.pxi", line 197, in lxml.etree._XPathEvaluatorBase._raise_eval_error (src/lxml/lxml.etree.c:103158)
lxml.etree.XPathEvalError: Unregistered function

Last edited by Starson17; 08-04-2011 at 03:01 PM. Reason: Add spoilers
Tearin de Hairou is offline   Reply With Quote