2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Go to file
{Qingping,Dave} Hou 75b1096a65 Merge pull request #65 from chrox/pan_scroll
add panning of page in scroll mode
2013-04-14 07:40:24 -07:00
extensions/koreader updated project URLs 2013-03-24 20:08:24 +01:00
frontend Merge pull request #65 from chrox/pan_scroll 2013-04-14 07:40:24 -07:00
koreader-base@89b5d13da8 update koreader-base 2013-04-12 02:39:15 +08:00
l10n update translation 2013-04-13 21:01:47 -04:00
launchpad adapted wrapper script and launcher configurations 2013-03-24 17:28:32 +01:00
resources add home icon 2013-03-16 14:32:43 -04:00
test test file for djvu format 2012-06-05 15:23:58 +08:00
.gitignore update gitignore 2013-03-24 15:52:52 -04:00
.gitmodules changed submodule koreader-base to its new URI 2013-03-24 19:31:10 +01:00
COPYING initial project, basic reader working 2011-11-14 18:30:16 +01:00
koreader.sh adapted wrapper script and launcher configurations 2013-03-24 17:28:32 +01:00
Makefile replace i18n with MO_DIR 2013-04-09 20:13:23 -04:00
reader.lua add gettext to inputevent.lua 2013-04-08 14:45:04 +08:00
README.md capitalize KOR to make it less like korea ;p 2013-03-30 23:35:41 -04:00
wtest.lua add callback to touchmenu bar icon 2013-03-16 14:47:58 -04:00

KOReader

This is a document viewer application, created for usage on the Kindle e-ink reader. It currently supports Kindle 5 (Touch) and Kindle Paperwhite. The devices need to be jailbroken in order to install the application. Also, a kind of external launcher is needed.

KOReader started as the KindlePDFViewer application, but it supports much more formats than PDF now. Among them are DJVU, FB2, EPUB, TXT, CBZ, HTML.

KOReader is a frontend written in Lua and uses the API presented by the KOReader-base framework. KOReader implements a GUI and is currently targeted at Touch-based devices - for the classic user interface for button-driven e-ink devices (like the Kindle 2, Kindle DX, Kindle 3, Kindle 4) see the KindlePDFviewer legacy project or - especially for the Kindle 4 - have a look at its fork Librerator.

The application is licensed under the GPLv3 (see COPYING file).

Building

Follow these steps:

  • fetch thirdparty sources

    • manually fetch all the thirdparty sources:

      • init and update submodule koreader-base
      • within koreader-base:
        • install muPDF sources into subfolder "mupdf"
        • install muPDF third-party sources (see muPDF homepage) into a new subfolder "mupdf/thirdparty"
        • install libDjvuLibre sources into subfolder "djvulibre"
        • install CREngine sources into subfolder "kpvcrlib/crengine"
        • install LuaJit sources into subfolder "luajit-2.0"
        • install popen_noshell sources into subfolder "popen-noshell"
        • install libk2pdfopt sources into subfolder "libk2pdfopt"
    • automatically fetch thirdparty sources with Makefile:

      • make sure you have patch, wget, unzip, git and svn installed
      • run make fetchthirdparty.
  • adapt Makefile to your needs - have a look at Makefile.defs in koreader-base

  • run make thirdparty. This will build MuPDF (plus the libraries it depends on), libDjvuLibre, CREngine, libk2pdfopt and Lua.

  • run make. This will build the KOReader application (see below if you want to build in emulation mode so you can test it on PC)

Running

In real eink devices

The user interface is scripted in Lua. See "reader.lua". It uses the Linux feature to run scripts by using a corresponding line at its start.

So you might just call that script. Note that the script and the koreader-base binary currently must be in the same directory.

You would then just call reader.lua, giving the document file path, or any directory path, as its first argument. Run reader.lua without arguments to see usage notes. The reader.lua script can also show a file chooser: it will do this when you call it with a directory (instead of a file) as first argument.

In emulator

You need to first compile KOReader-base in emulation mode.

  • If you have built KOReader in real mode before, you need to clean it up:
make clean && make cleanthirdparty
  • Then compile with emulation mode flag:
EMULATE_READER=1 make
  • You may want to see README.md in koreader-base for more information.

Next run make bootstrapemu to setup basic runtime environment needed by emulation mode. A new emu directory will be created.

Last, run the emulator with following command:

cd emu && reader.lua -d ./

You can also specify size of emulator's screen via environment variables. For more information, please refer to koreader-base's README.