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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2010, 08:19 AM   #1
foreverstud
Junior Member
foreverstud began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: dell axim,kindle
Cool converting complex 200 mb chm file

hello everyone

i ve been trying to convert a big chm file using calibre to mobi format

however got terribly stuck

this is what i get



Convert book 1 of 1 (Oxford TexbookOfClinicalNephrology)
Resolved conversion options
calibre version: 0.7.31
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'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': None,
'debug_pipeline': None,
'disable_font_rescaling': 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>)' ,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0578F270>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': u'//h:div[re:test(@id, "CHAPTER", "i")]',
'level2_toc': u'//h:h2[re:test(@class, "chapter", "i")]',
'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_toc_links': 110,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.MSReaderOutput object at 0x0578F5B0>,
'page_breaks_before': u'//h:h2[re:test(@class, "CHAPTER", "i")]',
'prefer_metadata_cover': False,
'preprocess_html': True,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_mbc7sm.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 1,
'use_auto_toc': True,
'verbose': 2}
InputFormatPlugin: CHM Input running
on C:\Users\New User\Calibre Library\Unknown\Oxford TexbookOfClinicalNephrology (99)\Oxford TexbookOfClinicalNephrology - Unknown.chm
Processing CHM...
tdir=c:\users\newuse~1\appdata\local\temp\calibre_ 0.7.31_tmp_tyoayl\calibre_0.7.31_9bkwkd_chm2oeb
stream.name=C:\Users\New User\Calibre Library\Unknown\Oxford TexbookOfClinicalNephrology (99)\Oxford TexbookOfClinicalNephrology - Unknown.chm
Opening CHM file
Extracting CHM to c:\users\newuse~1\appdata\local\temp\calibre_0.7.3 1_tmp_tyoayl\calibre_0.7.31_9bkwkd_chm2oeb
Python function terminated unexpectedly
[Error 206] The filename or extension is too long: 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_9bkwkd_chm2oeb \\1 - Assessment of the patient with renal disease/1.6 - Imaging in nephrology/1.6.1 - Imaging techniques/1.6.1.iii - Percutaneous nephrostomy and ureteral stenting_files' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 107, 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 836, in run
File "site-packages\calibre\customize\conversion.py", line 216, in __call__
File "site-packages\calibre\ebooks\chm\input.py", line 50, in convert
File "site-packages\calibre\ebooks\chm\input.py", line 27, in _chmtohtml
File "site-packages\calibre\ebooks\chm\reader.py", line 238, in extract_content
File "site-packages\calibre\ebooks\chm\reader.py", line 99, in ExtractFiles
File "site-packages\calibre\ebooks\chm\reader.py", line 235, in _ensure_dir
File "os.py", line 157, in makedirs
WindowsError: [Error 206] The filename or extension is too long: 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_9bkwkd_chm2oeb \\1 - Assessment of the patient with renal disease/1.6 - Imaging in nephrology/1.6.1 - Imaging techniques/1.6.1.iii - Percutaneous nephrostomy and ureteral stenting_files'



plz help
foreverstud is offline   Reply With Quote
Old 12-09-2010, 08:27 AM   #2
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
There's a limit as to how long path and file names can be in Windows. I don't remember the exact length, but the path that throws the error is longer. Try renaming the file (change the title if it is within the Calibre library).
Manichean is offline   Reply With Quote
Old 12-09-2010, 10:46 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,374
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those filenames are inside the chm, renaming it wont help. Basically you're only option is to convert it on OS X or linux.
kovidgoyal is offline   Reply With Quote
Old 12-09-2010, 01:32 PM   #4
foreverstud
Junior Member
foreverstud began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: dell axim,kindle
thanks a lot kovid will give it a try
foreverstud is offline   Reply With Quote
Old 12-10-2010, 10:03 AM   #5
foreverstud
Junior Member
foreverstud began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: dell axim,kindle
well finally i did find a way for my windows machine

decompiled chm file using html help workshop

that gae me a bunch of folders with .hhc file and .hhk file

converted hhc file to html using hhctohtml utility

that again gave me a list of files which linked to the chapters

merged all these files using snowsoft merger

now i get a merged html file containing links to all my chapers

finally loaded this into calibre and hmmmm rest is easy
foreverstud 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
Converting from CHM to MOBI guttaperk Calibre 6 02-08-2012 03:49 PM
Converting complex MS-word documents Eclipse General Discussions 15 06-22-2010 06:59 PM
How to edit CHM books before converting? picardo Calibre 4 04-22-2010 04:37 AM
converting long, somewhat complex docs to eReader Richard Maseles Other formats 4 01-07-2009 05:28 PM
Converting CHM to Html Tahras Rastah Workshop 0 01-16-2008 05:11 PM


All times are GMT -4. The time now is 06:27 PM.


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