Skip to content
Epub viewer on Electron that support text translation.
JavaScript CSS HTML
Branch: master
Clone or download
Latest commit 2185a7a Sep 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows ci(github): specify dist Sep 14, 2019
.netlify add netlify Sep 16, 2019
bin Electron interation Sep 13, 2019
docs/img Update README Sep 14, 2019
libs Update fontSize, add jszip 3.1.5 May 17, 2018
reader Update Sep 16, 2019
src Support Google Translate Sep 13, 2019
tools Update server May 4, 2018
.gitignore fix: remove unused code Sep 15, 2019
Gruntfile.js refactor(reader): remove screenful, rsvp Sep 14, 2019
LICENSE Initial commit Aug 2, 2017
README.md Update README Sep 16, 2019
index.js refactor(electron): use preload Sep 16, 2019
netlify.toml add netlify Sep 16, 2019
package.json 0.6.6 Sep 16, 2019
yarn.lock chore(deps): update dep Sep 15, 2019

README.md

mu-epub-reader

Epub viewer on Electron.

This application is forked of futurepress/epubjs-reader: Epub.js Reader.

Features

  • Standalone Electron app
  • Integrate with Google Translation
  • Shortcuts:
    • : Prev Page
    • : Next Page
    • j or Space: Scroll down
    • k or Shift+Space: Scroll up
    • Cmd+o: Open file
    • Cmd+^: Increase font size
    • Cmd+-: Decrease font size
    • Cmd+0: Reset font size
  • One column mode: continuous scroll like PDF
  • Open file with arguments

en ja

Quote from https://book.systemsapproach.org/

Usage

  1. Click File > Open File
  2. Select epub file
  3. View epub

menu

or

  1. Open epub file with mu-epub-reader
  2. View epub

Installation

Electron Version:

Download app and Install it.

⚠️ This app is not signed. So, it will appear warning about un-signed app.

Web Version:

Development

Build electron app

yarn install
yarn run dist
# output .app to dist/

Load reader/override.js or <AppData>/mu-epub-viewer/override.js if exists.

  1. Put custom logic script to reader/override.js
  2. Restart app
  3. mu-epub-reader preload reader/override.js in renderer process.

override.js example: modify request url

const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (...args) {
    const originalURL = args[1];
    const url = new URL(originalURL);
    /// hack something...
    args[1] = url.toString();
    origOpen.apply(this, args);
};

Related

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

You can’t perform that action at this time.