-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
37 lines (30 loc) · 2.17 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
A simple PERL script to convert an epub 2 document to an HTML5 document.
After fetching the file, make sure it's executable:
chmod ug+x ./epubtohtml.pl
then run it to find out how to use it:
./epubtohtml --help
Here is a sample session that I run from my Mac. Hope it helps you:
scml-jrichardson:pdf2html5 jric$ ~/dev/epubtohtml/epubtohtml.pl /Users/jric/dev/calibre/resources/quick_start.epub -o ~/tmp/quick_start
Archive: /Users/jric/dev/calibre/resources/quick_start.epub
extracting: /Users/jric/tmp/quick_start/mimetype
inflating: /Users/jric/tmp/quick_start/OEBPS/content.opf
inflating: /Users/jric/tmp/quick_start/OEBPS/toc.ncx
inflating: /Users/jric/tmp/quick_start/OEBPS/Styles/stylesheet.css
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_004.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_005.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_001.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_003.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/titlepage.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_000.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_007.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_002.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_011.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_010.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_009.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_008.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_006.xhtml
inflating: /Users/jric/tmp/quick_start/OEBPS/Images/cover.jpg
inflating: /Users/jric/tmp/quick_start/META-INF/container.xml
epubtohtml.pl: WARN: No opf file to get meta-data; will not create index.
open 'file://localhost/Users/jric/tmp/quick_start/OEBPS/Text/calibre_quick_start_split_001.xhtml'
Now I see a table of contents in my browser.