05-19-2009, 02:07 PM | #1 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
html2epub and OPF files
Ok, so Windows XP sucks at the whole unicode via command-line thing, but I've noticed that all the command-line conversion utilities support OPF input. My question is, how strict are the command-line utilities with OPF files (particularly html2epub)?
Say, I have: Code:
<?xml version="1.0"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf">
<metadata xmlns:opf="http://www.idpf.org/2007/opf">
<title>Title Goes Here</title>
<creator>I.M. D’Author</creator>
</metadata>
<manifest>
<item id="story" href="story.xhtml" media-type="application/xhtml+xml" />
</manifest>
</package>
Last edited by ilovejedd; 05-19-2009 at 02:10 PM. |
05-19-2009, 02:21 PM | #2 |
creator of calibre
Posts: 44,349
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, it will, though you should use any2epub and you may have to specify the spine in addition
|
Advert | |
|
05-19-2009, 02:37 PM | #3 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Code:
<?xml version="1.0"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf">
<metadata xmlns:opf="http://www.idpf.org/2007/opf">
<title>Title Goes Here</title>
<creator>I.M. D’Author</creator>
</metadata>
<manifest>
<item id="story" href="story.xhtml" media-type="application/xhtml+xml" />
</manifest>
<spine toc="ncx">
<itemref idref="story" />
</spine>
</package>
Code:
any2epub --level1-toc "//*[@class='chaptertitle']|//*[@class='toctitle']" --chapter "//*[@class='chapter']" --chapter-mark "pagebreak" --use-auto-toc "Title Goes Here.opf"
|
|
05-19-2009, 03:17 PM | #4 |
creator of calibre
Posts: 44,349
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes .
|
05-19-2009, 03:52 PM | #5 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Ok. Thanks a bunch! Don't have my laptop with me, otherwise I'd just test.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are opf and mimetype files? | BookCat | Other formats | 6 | 12-15-2009 08:44 PM |
OPF files to EPUB? | debbielovesbooks | Calibre | 2 | 11-14-2009 09:44 PM |
convertlit opf files to epub | sassanik | Calibre | 4 | 07-17-2009 05:52 PM |
Can html2epub create the OPF & NCX files? | Acey | Calibre | 4 | 11-17-2008 12:33 AM |
Question about html to lrf with opf files | Blackguard | Sony Reader | 3 | 06-16-2008 03:53 PM |