Giter Site home page Giter Site logo

epubtohtml's Introduction

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.

epubtohtml's People

Contributors

jric avatar zeeshanchegg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.