Giter VIP home page Giter VIP logo

epub-example's Introduction

A "Hello, World!" version of an ePub ebook.

Some gotchas:

  • The directory strucure is not obvious at all and it appears to have some variation from descriptions around the internet.

  • The .epub file is just a zip file that has:

    1. A certain directory strucure (see below)

    2. A requirement that the first file, mimetype, to be stored uncompressed, have exactly the contents application/epub+zip with no trailing CR, LF, NL etc., and have no special attributes or extra fields.

    3. The tree hierarchy looks approximately like this:

       .
       ├── mimetype
       ├── META-INF
       │   └── container.xml
       └── OEBPS
           ├── book.ncx
           ├── book.opf
           └── chapter01.xhtml
      
  • The file container.xml serves as a "bootstrap" for the book.

  • The .opf file contains at a minimum, metadata of the book, the list of all files (except for mimetype, container.xml, and the .opf) that compose the book, with their full path, IDs and media-types, and, lastly, the "linear" list of topics in which the book should be read.

  • The content of the dc:identifier element of the .opf file has to match the property of the meta element with name dtb:uid. Otherwise, http://www.threepress.org/document/epub-validate/ does not validate the document.

epub-example's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

epub-example's Issues

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.