Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2012, 10:26 PM   #1
VictorTalbot
Junior Member
VictorTalbot began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2012
Device: iPad3
Conversion fail from chm file to epub, pdf, etc..

Hi, I've been working with calibre from a few months ago.
Never had an issue until this one.

Trying to convert a chm file to epub (mainly), I received an error message saying: "splitting error".

So googling for answers I found this website and a post that says It's better to extract the html files from the chm, then zip them and finally convert to epub with calibre, I've done this and received in the final step the same error...

Checking the details calibre suggested me to activate heuristic processing, done it, but it still won't work...

I hope we could figure this one out, I woul really really appreciate it.

Thanks

Code:
Convertido el libro 1 de 1 (Goodman and Gilman's the Pharmacological Basis of Therapeutics, Twelfth Edition)
Processing archive...
Resolved conversion options
calibre version: 0.8.64
{'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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\LOGAN\\AppData\\Local\\Temp\\calibre_0.8.64_tmp_hfmbty\\xsfzqq.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_package': False,
 'dont_split_on_page_breaks': False,
 'duplicate_links_in_toc': False,
 'enable_heuristics': True,
 'epub_flatten': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 '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 0x03790BB0>,
 '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_levels': 5,
 'max_toc_links': 3000,
 '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.iPad3Output object at 0x03790E70>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\LOGAN\\AppData\\Local\\Temp\\calibre_0.8.64_tmp_hfmbty\\5s3ird.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,
 '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': 80,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: HTML Input running
on C:\Users\LOGAN\AppData\Local\Temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\Goodman &amp; Gilman_s The Pharmacological Basis of Therapeutics - 12th Ed\X. Appendices\II..htm
Language not specified
Creator not specified
Building file list...
IgnoreFile(u'C:\\Users\\LOGAN\\AppData\\Local\\Temp\\calibre_0.8.64_tmp_hfmbty\\dlshty_plumber_archive\\Goodman &amp; Gilman_s The Pharmacological Basis of Therapeutics - 12th Ed\\X. Appendices\\II._files\\Global.css is a binary file',)
	Found files...
		 HTMLFile:0:a:C:\Users\LOGAN\AppData\Local\Temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\Goodman &amp; Gilman_s The Pharmacological Basis of Therapeutics - 12th Ed\X. Appendices\II..htm
Normalizing filename cases
Rewriting HTML links
Parsing II..htm ...
*********  Heuristic processing HTML  *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 7
found 0 pre-existing headings
common had 2 hits - 2 chapters with no title, 0 chapters with titles, 0.0 percent. 
uppercase had 5 hits - 5 chapters with no title, 0 chapters with titles, 0.0 percent. 
Marked 0 headings, Searching for common section headings
marked 1 chapters. - Volume of Distribution
marked 2 chapters. - Volume of Distribution
Total wordcount is: 45565, Average words per section is: 22782, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 304, calculated with html format
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 2
marked 3 section markers based on punctuation. - Tabulated Pharmacokinetic Parameters</p>
marked 4 section markers based on punctuation. - Bioavailability</p>
marked 5 section markers based on punctuation. - Urinary Excretion of Unchanged Drug</p>
marked 6 section markers based on punctuation. - Binding to Plasma Proteins</p>
marked 7 section markers based on punctuation. - Plasma Clearance</p>
marked 8 section markers based on punctuation. - Time to Peak Concentration</p>
marked 9 section markers based on punctuation. - Peak Concentration</p>
marked 10 section markers based on punctuation. - Clearance</p>
marked 11 section markers based on punctuation. - Example</p>
marked 12 section markers based on punctuation. - Individualization of Dosage</p>
Formatting scene breaks
Found microsoft markup, cleaning...
Initial parse failed, using more forgiving parsers
Parsing II..htm as HTML
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\global.css
Parsing global.css ...
Selector: Unexpected IDENT. [600:2: html]
SelectorList: Invalid Selector: *html .RadComboBoxDropDown .rcbItem
Selector: Unexpected IDENT. [601:2: html]
SelectorList: Invalid Selector:   
*html .RadComboBoxDropDown .rcbHovered  
       

Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\spacer.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\greaterorequal.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\alphalower.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\lesserorequal.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary_004.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\approx.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\downarrow.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary_003.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary_005.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary_006.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\loadbinary_002.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\mulower.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\doublearrow.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\uparrow.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\betalower.gif
Added c:\users\logan\appdata\local\temp\calibre_0.8.64_tmp_hfmbty\dlshty_plumber_archive\goodman &amp; gilman_s the pharmacological basis of therapeutics - 12th ed\x. appendices\ii._files\gammalower.gif
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Interpreting class and tag selectors case insensitively in the CSS selector: h|BODY
Interpreting class and tag selectors case insensitively in the CSS selector: h|P
Interpreting class and tag selectors case insensitively in the CSS selector: h|TD
Interpreting class and tag selectors case insensitively in the CSS selector: h|A
Interpreting class and tag selectors case insensitively in the CSS selector: .Spacer5
Source base font size is 8.64000pt
Removing fake margins...
Found 3 items of level: div_8
Found 71 items of level: p_15
Found 266 items of level: p_23
Found 1 items of level: div_2
Found 1 items of level: div_7
Found 1 items of level: div_6
Ignoring level div_8
Ignoring level div_7
Ignoring level div_6
p_15  left margin stats: Counter({u'1px': 54, u'0': 15, u'20px': 2})
p_15  right margin stats: Counter({u'0': 69, u'30px': 2})
p_23  left margin stats: Counter({u'0': 266})
p_23  right margin stats: Counter({u'0': 266})
div_2  left margin stats: Counter()
div_2  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
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
		Splitting on page-break
	Looking for large trees in II..htm...
	Found large tree #0
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}div /*/*[2]/*
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[7]/*/*/*/*[9]
			Split tree still too large: 1581 KB
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[7]/*/*/*/*[5]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[7]/*/*/*/*[3]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[7]/*/*/*/*[7]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[7]/*/*/*/*[1]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}div /*/*[2]/*/*[1]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}br /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[5]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}br /*/*[2]/*/*[5]/*/*/*[2]/*/*/*/*/*/*[3]
			Split tree too small
		Splitting...
Python function terminated unexpectedly
  No se pudo encontrar un punto razonable en el que dividir: II..htm Tamaño del árbol: 1581 kB (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 192, 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 1116, in run
  File "site-packages\calibre\ebooks\conversion\plugins\epub_output.py", line 169, in convert
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 58, in __call__
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 68, in split_item
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 211, in __init__
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 431, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 415, in split_to_size
  File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 408, in split_to_size
calibre.ebooks.oeb.transforms.split.SplitError: No se pudo encontrar un punto razonable en el que dividir: II..htm Tamaño del árbol: 1581 kB
VictorTalbot is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing on CHM conversion - stuck. File attached. tentimes Calibre 1 04-21-2012 02:35 PM
Conversion fail: CHM to MOBI, 142mb file shesaidit Conversion 0 06-29-2011 03:04 PM
Any chance for chm to epub/mobi/pdf conversion support joblack Calibre 4 11-02-2010 01:06 AM
contemporary pdf and chm conversion to epub for kobo reader zoran Calibre 2 06-06-2010 05:41 AM
Conversion error: CHM to PDF or "anything else" conversions FAIL. Help. mm07 Calibre 3 05-16-2010 09:41 AM


All times are GMT -4. The time now is 11:44 PM.


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