Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2010, 02:47 AM   #1
bigtymer
Member
bigtymer began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Jan 2010
Device: Kindle 2
HTML Conversion Problem

Hey Guys,

Thanks for any replies in advanced and apologies if this is a simple fix, I'm new to Calibre and loving it but I have one problem. I have an HTML book and it imports into Calibre fine but when converting it for output to Kindle I recieve an error with the output below. This book was a .chm that I broke down using another program, I am not sure if that is relevant but I had some problems using other .chm conversion tools so I resorted to this.

I have tried just throwing the html file as a txt on but the formatting is awful that way and a merged html file is too big to browse with the web browser.

If anyone can solve my Calibre conundrum or figure another way to get this book on my Kindle I would be most grateful.

Regards,
BT





Convert book 1 of 1
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': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_justify': False,
'dont_package': False,
'extra_css': None,
'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 0x04BEA8D0>,
'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_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04BEABD0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\******~1\\appdata\\local\\temp\\calibr e_0.6.33_setljy.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unwrap_factor': 0.0,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\users\******~1\appdata\local\temp\calibre_0.6.3 3_swccki_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Basic%20and%20Clinical%20Pharmacology.html ...
Parsing ___left.htm ...
Referenced file '___dtree.css' not found
Referenced file '___dtree.js' not found
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
max() arg is an empty sequence (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 96, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 21, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 825, in run
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 123, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 167, in baseline_spine
ValueError: max() arg is an empty sequence
bigtymer is offline   Reply With Quote
Old 01-13-2010, 11:58 AM   #2
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: 43,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Opena ticket and attach the html file.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-13-2010, 04:26 PM   #3
bigtymer
Member
bigtymer began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Jan 2010
Device: Kindle 2
Thanks for the help and the great software!!!
bigtymer is offline   Reply With Quote
Old 01-13-2010, 10:06 PM   #4
bigtymer
Member
bigtymer began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Jan 2010
Device: Kindle 2
Hey, I opened a ticket and attached the HTML file but now I can't find the tickets under view tickets. I hope I did everything properly.

Thanks
bigtymer is offline   Reply With Quote
Old 01-13-2010, 10:20 PM   #5
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: 43,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your html file was empty (it was a frameset file, not the actual content). Open it in notepad to see for yourself.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-14-2010, 02:22 PM   #6
bigtymer
Member
bigtymer began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Jan 2010
Device: Kindle 2
Hey, thanks!
I just assumed that since that is what the .chm decoder gave me that is what I should put in calibre. I put a different html file that I checked this time from the book into calibre and it worked just fine, the text is a bit light is there something I can tweak to make the text darker?

I have another book that was giving me the same problem, I checked and it too was the frameset html but there is no other html file that has links to all the other chapters of the book. Is there some way easy way to make a table of contents html so I can import and have easy navigation?
bigtymer is offline   Reply With Quote
Old 01-14-2010, 02:55 PM   #7
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: 43,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's an entry in the calibre FAQ about creating a table of contents with html files.
kovidgoyal is offline   Reply With Quote
Old 01-14-2010, 08:15 PM   #8
bigtymer
Member
bigtymer began at the beginning.
 
Posts: 13
Karma: 12
Join Date: Jan 2010
Device: Kindle 2
Thanks so much for the help! I got my books on and formatted properly!!!
I am really enjoying the software, it gives amazing functionality to my reader.
I have also being hunting in the htmls trying to change the font so that it has more contrast.
Thanks for the advice.
bigtymer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion TO html in_the_fade Calibre 4 04-29-2010 10:51 AM
Conversion problem: HTML + pictures -> Mobipocket Manichean Calibre 9 12-08-2009 08:55 AM
calibre: HTML to LRF conversion, problem with justified text Juggle4Evr Sony Reader 6 07-12-2009 07:19 PM
Difficulty with conversion of HTML ficbot Calibre 8 03-23-2009 09:34 AM
amazon html conversion pan2 Amazon Kindle 3 03-21-2009 06:44 PM


All times are GMT -4. The time now is 10:47 PM.


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