Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2008, 01:46 PM   #1
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Question Can html2epub create the OPF & NCX files?

I ran feeds2disk to pull down some feeds. I want to remove some of the feeds and re-order and add in some other feeds to create an EPUB file. The original material is no longer available online so I'm working purely from the html files feeds2disk created. Is there a way to have html2epub recreate the OPF & NCX files so the table of contents is accurate if the proper relative links are there in the html files?
Acey is offline   Reply With Quote
Old 11-06-2008, 02:20 PM   #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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
feeds2disk creates opf and ncx files. And if you just pass the main html file to html2epub with the appropriate TOC creation options (you'll have to experiment) it should do the job.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-10-2008, 12:10 PM   #3
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Thought I'd share the command-line options I used to generate a proper table of contents from a mix of feeds downloaded using feeds2disk. I first made sure the root index.html had proper links to each of the feeds' sub-directories' index.html files. Then I ran the following command on the root index.html file:

Code:
html2epub index.html --level1-toc=//*[@class="feed"] --level2-toc=//*[@class="article"]
Thanks for pointing me in the right direction, Kovid! Maybe this will help someone else, too.
Acey is offline   Reply With Quote
Old 11-17-2008, 12:14 AM   #4
Gagan
Junior Member
Gagan began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2008
Device: epub
from where can I download html2epub
Gagan is offline   Reply With Quote
Old 11-17-2008, 12:33 AM   #5
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
Quote:
Originally Posted by Gagan View Post
from where can I download html2epub
It's built in to the program, Calibre. If you have installed Calibre, you have the script html2epub. I'm pretty sure it's a python script, but not positive.
FizzyWater is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion foxxywith2xs Calibre 7 12-16-2012 07:49 PM
Compiling HTML,NCX and OPF file pakiyabhai Calibre 8 12-25-2009 11:12 AM
HTML, NCX & OPF --> MESS pakiyabhai Workshop 2 12-22-2009 10:43 AM
html2epub and OPF files ilovejedd Calibre 4 05-19-2009 03:52 PM
Unable to create MAN page for opf-meta AprilHare Calibre 5 11-28-2008 04:05 AM


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


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