View Single Post
Old 01-26-2010, 04:44 AM   #1
gondwild
Member
gondwild began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-300
Problem converting "large" .rtf/.html to .epub

All of the large .txt and .html (that I've converted using TextEdit from .rtf) files that I've been trying to convert to .epub have been having problem, the error being as follows:

Convert book 1 of 1 ([Book Title Here])
Processing archive...
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': '/var/folders/tw/twyPmqswE7OUrwR3lSwWFE+++TI/-Tmp-/calibre_0.6.35_zctmuu.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': False,
'dont_package': False,
'dont_split_on_page_breaks': False,
'extra_css': None,
'extract_to': None,
'flow_size': 260,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x626b610>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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,
'max_levels': 5,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.SonyReader300Output object at 0x626b810>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': True,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/tw/twyPmqswE7OUrwR3lSwWFE+++TI/-Tmp-/calibre_0.6.35_e0bzFe.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unwrap_factor': 0.0,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on /var/folders/tw/twyPmqswE7OUrwR3lSwWFE+++TI/-Tmp-/calibre_0.6.35_sSC2Gi_plumber/content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing [Book Title Here].html ...
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 11.52000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Python function terminated unexpectedly: Could not find reasonable point at which to split: [Book Title Here].html Sub-tree size: 1110 KB
Creating EPUB Output...
Looking for large trees in [Book Title Here].html...
Found large tree #0
Splitting...
Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*
Split tree still too large: 1110 KB
Splitting...
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 99, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 852, in run
File "site-packages/calibre/ebooks/epub/output.py", line 169, in convert
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 56, in __call__
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 66, in split_item
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 188, in __init__
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 402, in split_to_size
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 385, in split_to_size
calibre.ebooks.oeb.transforms.split.SplitError: Could not find reasonable point at which to split: [Book title here].html Sub-tree size: 1110 KB
gondwild is offline   Reply With Quote