1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Merge with Master

This commit is contained in:
Fred Chasen 2018-05-01 10:54:12 -07:00
commit 6e7d2d3b3c

View file

@ -14,9 +14,9 @@ Epub.js provides an interface for common ebook functions (such as rendering, per
The [EPUB standard](http://www.idpf.org/epub/30/spec/epub30-overview.html) is a widely used and easily convertible format. Many books are currently in this format, and it is convertible to many other formats (such as PDF, Mobi and iBooks).
An unzipped ePUB3 is a collection of HTML5 files, CSS, images and other media just like any other website. However, it enforces a schema of book components, which allows us to render a book and its parts based on a controlled vocabulary.
An unzipped EPUB3 is a collection of HTML5 files, CSS, images and other media just like any other website. However, it enforces a schema of book components, which allows us to render a book and its parts based on a controlled vocabulary.
More specifically, the ePUB schema standardizes the table of contents, provides a manifest that enables the caching of the entire book, and separates the storage of the content from how its displayed.
More specifically, the EPUB schema standardizes the table of contents, provides a manifest that enables the caching of the entire book, and separates the storage of the content from how its displayed.
## Getting Started
@ -98,12 +98,13 @@ A Markdown version is included in the repo at [documentation/API.md](htts://gith
install [node.js](http://nodejs.org/)
install the project dependences with npm
Then install the project dependences with npm
```javascript
npm install
```
then you can run the reader locally with the command
You can run the reader locally with the command
```javascript
npm start
@ -147,7 +148,7 @@ npm run watch
Similar to a plugins, Epub.js implements events that can be "hooked" into. Thus you can interact with and manipulate the contents of the book.
Examples of this functionality is loading videos from YouTube links before displaying a chapters contents or implementing annotation.
Examples of this functionality is loading videos from YouTube links before displaying a chapter's contents or implementing annotation.
Hooks require an event to register to and a can return a promise to block until they are finished.