b3e125a7ce
Doing the `isOnline` check (`socket.dns.toip("dns.msftncsi.com")`) without having internet connectivity (`!isConnected`) results in the `isOnline` check never succeeding again even if connectivity is later acquired. This is most likely caused by /etc/resolv.conf only being parsed once - https://sourceware.org/bugzilla/show_bug.cgi?id=984, an issue that was fixed in glibc 2.26 (PocketBook firmware U740.6.8.2461 has glibc 2.23). This fix works around the problem by checking if we have a default route first before even attempting to check `isOnline`. If we don't, then `isOnline` is (almost) guaranteed to fail anyway. We could alternatively check `isConnected` instead, but that only checks wireless connectivity on many platforms, and we could have internet access via USBNet instead. Checking for the default route via any interface should work reliably for both wireless and USBNet connectivity. Another alternative fix is to add a fallback nameserver to /etc/resolv.conf like we do for the Kobo platform [1]. Unfortunately, this fix would not work in the following (rather common) scenario: 1. PocketBook boots, connects to WiFi 2. KOReader starts, /etc/resolv.conf looks all right, no fallback needed 3. PocketBook goes to sleep, disconnects from WiFi, clears resolv.conf 4. PocketBook wakes up, stays disconnected 5. KOReader user does a Wikipedia lookup, networking freezes [1]: https://github.com/koreader/koreader/pull/6424/files#diff-be863601c59a2d6607af6b04b3be2392ec4494df6d25dae48250fae57b737f61R216-R224 Fixes: https://github.com/koreader/koreader/issues/10183 Related: https://github.com/koreader/koreader/issues/6421 |
2 months ago | |
---|---|---|
.ci | 2 years ago | |
.circleci | 2 years ago | |
.github | 5 months ago | |
base@65d72ede12 | 2 months ago | |
doc | 8 months ago | |
frontend | 2 months ago | |
l10n@7e75ac4b28 | 3 months ago | |
metadata | 2 years ago | |
platform | 2 months ago | |
plugins | 2 months ago | |
resources | 1 year ago | |
spec/unit | 2 months ago | |
test@86eeb0b43d | 8 years ago | |
tools | 4 months ago | |
.busted | 9 years ago | |
.codecov.yml | 5 years ago | |
.editorconfig | 8 years ago | |
.gitignore | 4 years ago | |
.gitmodules | 3 years ago | |
.luacheckrc | 2 years ago | |
.luacov | 7 years ago | |
.luarc.json | 11 months ago | |
.shellcheckrc | 4 years ago | |
.travis.yml | 7 years ago | |
COPYING | 10 years ago | |
Makefile | 11 months ago | |
README.md | 3 months ago | |
datastorage.lua | 4 months ago | |
defaults.lua | 6 months ago | |
kodev | 10 months ago | |
reader.lua | 3 months ago | |
setupkoenv.lua | 10 months ago |
README.md
KOReader is a document viewer primarily aimed at e-ink readers.
Download • User guide • Wiki • Developer docs
Main features
-
portable: runs on embedded devices (Cervantes, Kindle, Kobo, PocketBook, reMarkable), Android and Linux computers. Developers can run a KOReader emulator in Linux and MacOS.
-
multi-format documents: supports fixed page formats (PDF, DjVu, CBT, CBZ) and reflowable e-book formats (EPUB, FB2, Mobi, DOC, RTF, HTML, CHM, TXT). Scanned PDF/DjVu documents can also be reflowed with the built-in K2pdfopt library. ZIP files are also supported for some formats.
-
full-featured reading: multi-lingual user interface with a highly customizable reader view and many typesetting options. You can set arbitrary page margins, override line spacing and choose external fonts and styles. It has multi-lingual hyphenation dictionaries bundled into the application.
-
integrated with calibre (search metadata, receive ebooks wirelessly, browse library via OPDS), Wallabag, Wikipedia, Google Translate and other content providers.
-
optimized for e-ink devices: custom UI without animation, with paginated menus, adjustable text contrast, and easy zoom to fit content or page in paged media.
-
extensible: via plugins
-
fast: on some older devices, it has been measured to have less than half the page-turn delay as the built in reading software.
-
and much more: look up words with StarDict dictionaries / Wikipedia, add your own online OPDS catalogs and RSS feeds, over-the-air software updates, an FTP client, an SSH server, …
Please check the user guide and the wiki to discover more features and to help us document them.
Screenshots
Installation
Please follow the model specific steps for your device:
Android • Cervantes • Kindle • Kobo • Linux • Pocketbook • reMarkable
Development
Setting up a build environment • Collaborating with Git • Building targets • Porting • Developer docs
Support
KOReader is developed and supported by volunteers all around the world. There are many ways you can help:
- fix bugs and implement new features
- translate the program into your language or improve an existing translation
- document lesser-known features on the wiki
- help others with your knowledge on the forum
Right now we only support liberapay donations.