Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2008, 03:52 AM   #226
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2008
Location: London
Device: Kobo GloHD and Aura h2O
Thanks for the information.
Please expand on what I need to put into the level1-toc and --level2-toc settings.
mikeywilliams25 is offline   Reply With Quote
Old 10-17-2008, 10:35 AM   #227
Icarusbop
Groupie
Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.Icarusbop knows what's going on.
 
Posts: 156
Karma: 25846
Join Date: Apr 2007
Location: UK
Device: PRS505
Quote:
Originally Posted by kovidgoyal View Post
All that means is that your source file references a missing stylesheet. Most probably your book will look fine even without the stylesheet.
The book appears empty (blank pages) in Adobe DE (but the TOC shows up OK), If I try to view it with Calibre's eBook viewer I get the following error:-

'Traceback (most recent call last):
File "calibre\gui2\viewer\documentview.pyo", line 326, in load_finished
File "main.py", line 347, in load_finished
AttributeError: 'NoneType' object has no attribute 'spine''

I checked the original OPF file - there is indeed a spine area of the file, I have attached the OPF file for reference.
Attached Files
File Type: opf 1 - Tower of Sorcery.Opf (3.6 KB, 541 views)
Icarusbop is offline   Reply With Quote
Advert
Old 10-17-2008, 01:33 PM   #228
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@icarusbop: open a ticket and attach the file.
@mikeywilliams: try h2 for --level1-toc
kovidgoyal is offline   Reply With Quote
Old 10-17-2008, 04:27 PM   #229
scottsan
Connoisseur
scottsan began at the beginning.
 
scottsan's Avatar
 
Posts: 98
Karma: 10
Join Date: Apr 2008
Device: sony prs 505
0.4.97

Quote:
Originally Posted by kovidgoyal View Post
Oops, looks like I forgot to propagate the fix. Will be in 97
Very frustrating!
Downloaded 0.4.97, then downloaded the ny times only to receive this error:

cannot import name NewMagickWand
Detailed traceback:
Traceback (most recent call last):
File "/Ebooks/A-SOFTWARE/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/metadata/epub.py", line 123, in render_html
ImportError: cannot import name NewMagickWand

After quitting and restarting calibre the book was in the library.

Things haven't worked well since v.0.4.94.

What's up?
scottsan is offline   Reply With Quote
Old 10-17-2008, 04:54 PM   #230
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by mikeywilliams25 View Post
Thanks for the information.
Please expand on what I need to put into the level1-toc and --level2-toc settings.
Are you using html2epub and it's an HTML file created from BookCreator use

--level1-toc "//p[@class = '2CHAPTERTITLE']"

--level2-toc "//p[@class = '21CHAPTERSUBTITLE']"

=X=
=X= is offline   Reply With Quote
Advert
Old 10-17-2008, 05:55 PM   #231
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by scottsan View Post
Very frustrating!
Downloaded 0.4.97, then downloaded the ny times only to receive this error:

cannot import name NewMagickWand
Detailed traceback:
Traceback (most recent call last):
File "/Ebooks/A-SOFTWARE/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/metadata/epub.py", line 123, in render_html
ImportError: cannot import name NewMagickWand

After quitting and restarting calibre the book was in the library.

Things haven't worked well since v.0.4.94.

What's up?
Hmm, forgot that ImportError is not asubclass of Exception. Will be fixed in 98 (and this time I mean it
kovidgoyal is offline   Reply With Quote
Old 10-18-2008, 03:43 AM   #232
scottsan
Connoisseur
scottsan began at the beginning.
 
scottsan's Avatar
 
Posts: 98
Karma: 10
Join Date: Apr 2008
Device: sony prs 505
v.0.4.98 is working in a most excellent fashion.

Thanks!
scottsan is offline   Reply With Quote
Old 10-18-2008, 03:53 AM   #233
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2008
Location: London
Device: Kobo GloHD and Aura h2O
Quote:
Originally Posted by =X= View Post
Are you using html2epub and it's an HTML file created from BookCreator use

--level1-toc "//p[@class = '2CHAPTERTITLE']"

--level2-toc "//p[@class = '21CHAPTERSUBTITLE']"

=X=
No, I am simply loading the rtf file into calibre and then creating the epub from within calibre.
No luck yet with any entry in the toc slots.
mikeywilliams25 is offline   Reply With Quote
Old 10-20-2008, 12:18 AM   #234
sahlberg
Junior Member
sahlberg began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2008
Device: prs-505
Hi,

I opened a ticket for a book I have where html2epub 0.4.98 does not work :
http://calibre.kovidgoyal.net/ticket/1186

I have linked to a tgz file containing both the book (html + images) as well as the resulting epub file.
http://www.samba.org/~sahlberg/indarkestafrica.tgz


There are three issues,
1, during the conversion html2epub generates a lot of warnings
2, the output that is generated has become "stuck" in center alignment once the first chapter starts
3, the book can not be read at all in the sony reader and only gives a cryptic page error.


regards
ronnie sahlberg
sahlberg is offline   Reply With Quote
Old 10-22-2008, 02:26 PM   #235
astrodad
Guru
astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.
 
astrodad's Avatar
 
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
Lately I have been having problems converting .lit books with cover images (not the ones downloaded from LibraryThing). The cover images just disappear. I am using 0.4.98 right now. Any one else having this problem.
astrodad is offline   Reply With Quote
Old 10-22-2008, 02:34 PM   #236
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
there were some changes to cover handling, perhaps a regression has been introduced. Open a ticket and attach one of the problem files.
kovidgoyal is offline   Reply With Quote
Old 10-22-2008, 06:01 PM   #237
Thomas_
Member
Thomas_ began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2008
Device: Still wondering
Hi,

Is there a way to easily convert to epub with images? Like if you try to read a geopolitics review without the maps, it gets way less tasty. Can Calibre do that?

Thanks.

Thomas.
Thomas_ is offline   Reply With Quote
Old 10-22-2008, 06:08 PM   #238
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre's conversion preserves images
kovidgoyal is offline   Reply With Quote
Old 10-28-2008, 08:49 PM   #239
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
I have a html, which has a CSS style contains CJK font-face. I received the following errors with html2epub:
Traceback (most recent call last):
File "/usr/bin/html2epub", line 8, in <module>
load_entry_point('calibre==0.4.100', 'console_scripts', 'html2epub')()
File "/usr/lib/python2.5/site-packages/calibre/ebooks/epub/from_html.py", line 320, in main
convert(args[1], opts)
File "/usr/lib/python2.5/site-packages/calibre/ebooks/epub/from_html.py", line 261, in convert
parse_content(filelist, opts, tdir)
File "/usr/lib/python2.5/site-packages/calibre/ebooks/epub/from_html.py", line 121, in parse_content
hp.save()
File "/usr/lib/python2.5/site-packages/calibre/ebooks/epub/from_html.py", line 93, in save
Processor.save(self)
File "/usr/lib/python2.5/site-packages/calibre/ebooks/html.py", line 579, in save
open(path, 'wb').write(getattr(sheet, 'cssText', sheet).encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 34: ordinal not in range(128)

The result of self.log_info('attr=%s' % getattr(sheet, 'cssText', sheet) is:
attr=.calibre_class_2 {
font-face: 楷体_GB2312
}
.calibre_class_3 {
color: #ff0000
}
.calibre_class_0 {
color: #000000
}
thawk is offline   Reply With Quote
Old 10-28-2008, 09:14 PM   #240
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
will be fixed in next release
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
epub output metadata troymc Calibre 5 05-22-2010 12:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 02:23 AM


All times are GMT -4. The time now is 02:36 AM.


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