Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
forked fromsatorumurmur/bibi

BiB/i | EPUB Reader on your website.

License

NotificationsYou must be signed in to change notification settings

link-u/bibi

 
 

Repository files navigation

EPUB Reader on your website.

Summary

You can publish EPUB books on the web, with full-featured viewer running on web browser.And you can embed it in other webpages (like YouTube videos).

Spec.

  • EPUB 3+ and 2 compliant. Supports both reflowable and fixed-layout books of various language.
  • Made with JavaScript. Works compatibly with all major web browsers on various OS/devices.
  • Free. Open source software released under the MIT License.

Table of Contents

  1. How to Setup & Read/Publish EPUB Books (for Users/Publishers)
  2. How to Arrange Development Environment (for Developers)
  3. License
  4. Special Thanks
  5. Supported by

How to Setup & Read/Publish EPUB Books

Bibi supports 3 ways to read/publish EPUB books:

  • Read in browsers on your offline machine.
  • Publish on the web to have your books read by someone.
  • Use as an online EPUB viewer for your or visitors' local EPUBs.

In all cases,

  1. Download Bibi fromGitHub release page orBibi website.
  2. And unzip it at first.

Are you an user of BiB/i older than v1.0.0?

The folder structure and default public URL has changed in Bibi v1.0.0.But don't worry. You still can use not only the new style URL but also the same old style URL as before.

If you already published books on the web with BiB/i which version is older than v1.0.0, and want to update Bibi to v1.0.0 or newer, but do not want to change the public URLs of the books,

  • Please downloadBibi-vX.Y.Z_with_BackCompatKit.zip, and follow the document in it.

Read in browsers on your local machine

  1. Openbibi/index.html in your browser, and
  2. Drag an EPUB book and drop it into the window.
  3. That's all!

Publish on the web

Demo.

You can publish both unzipped folder and zipped EPUB archive.

Using unzipped folder is recommended for the book which is heavy or contains many files.Using zipped EPUB file is recommended for the book which is light and contains less files.

In both ways, at first, uploadbibi and 'bibi-bookshelf' folders to the same directory on your web server.bibi contains all programs of Bibi, and 'bibi-bookshelf' is for the storage of the books you upload.You can use different directory for the bookshelf instead of 'bibi-bookshelf' by editing "bookshelf" option in 'bibi/presets/default.js'.

Publish unzipped folders

  1. Uploadbibi and 'bibi-bookshelf' folders to the same directory on your web server.
  2. Unzip an EPUB book,
    1. Change the file extension from.epub to.zip (BOOKNAME.epub ->BOOKNAME.zip), and
    2. Unzip the file with some tool.
  3. Upload the unzipped folderBOOKNAME intobibi-bookshelf directory, and
  4. Access tohttps://your.web.site/somewhere/bibi/?book=BOOKNAME by your browser. (note that it has no extension)
  5. Or embed code below into your blog entry or other webpages, and visit the entry.
<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>

Publish zipped EPUB files

  1. Uploadbibi and 'bibi-bookshelf' folders to the same directory on your web server.
  2. Upload your EPUB book (ex.BOOKNAME.epub) tobibi-bookshelf directory, and
  3. Access tohttps://your.web.site/somewhere/bibi/?book=BOOKNAME.epub by your browser.
  4. Or embed code below into your blog entry or other webpages, and visit the entry.
<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME.epub" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>

Use as an online EPUB viewer

  1. Uploadbibi folder on your web server.
  2. Navigate visitors tohttps://your.web.site/somewhere/bibi/.
  3. Visitors can read one's local EPUBs by draging and dropping EPUBs into the window.

If you want to terminate this feature, set "no" to "accept-files" inbibi/presets/default.js.

How to Arrange Development Environment

Requirements

Arrangements

  1. Clonethis repository.
  2. $cd <the local repository>
  3. $npm install

How to Develop

  1. $npm start
    1. webpack generates development version of Bibi to__dist folder, and start to watch changes of the files in__src folder.
    2. BrowserSync webserver launches and navigate your browser tohttp://localhost:61671/bibi/?book=.
  2. Edit source files.
    1. If you modify source files in__src folder, development version of the file(s) are updated in__dist folder automaticaly.
    2. BrowserSync reloads your browser(s) or inject changes of CSS.

Files in__dist folder generated withnpm start are development version.Please don't forget to runnpm run build and build production version before you upload.

DistributionSource
__dist/bibi/*.html__src/bibi/*.html
__dist/bibi/and/jo.js__src/bibi/and/jo.js +__src/bibi/and/jo.scss
__dist/bibi/extensions/**__src/bibi/extensions/**
__dist/bibi/presets/*.js__src/bibi/presets/*.js
__dist/bibi/resources/scripts/bibi.js__src/bibi/resources/scripts/*.js +__src/bibi/resources/scripts/bibi.book.scss
__dist/bibi/resources/styles/bibi.css__src/bibi/resources/styles/*.scss
__dist/bibi/wardrobe/**/*.cssRead documents in__src/bibi/wardrobe/README-DRESS_ja (Sorry..., currently README is Japanese only)

Files in theDistribution column of the table are overwritten with the files updated bynpm start ornpm run build.If you want to modify them, please edit files in theSource column instead of editing these files in__dist directly.

How to Build

  • $npm run build
    • webpack generates production version of Bibi to__dist folder.
    • You can upload them to your online webserver.

How to Make a Ditribution Package

  • $npm run make:package
    1. webpack generates temporary files of production version of Bibi.
    2. gulp generates zipped archive to__archives folder. After that, the temporary files are removed.

License

Bibi (ja /en)

Bibi is including and powered by these open source softwares:

Special Thanks

Thanks to the contributors and the users around the world!

Supported by

  • Bibi v1.2.0 was developed with the huge support and many feedbacks from Media Do Co.,Ltd.
  • Bibi v1.0.0 was developed with greateful support and sponsoring from Lunascape.
  • Lunascape also developedBibi Zip Loader especially for Bibi, which realized fast progressive loading of zipped EPUBs.

About

BiB/i | EPUB Reader on your website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript68.8%
  • SCSS29.6%
  • HTML1.6%

[8]ページ先頭

©2009-2025 Movatter.jp