Commit Graph

5975 Commits (1b9147089939195be2cbb873fb0c7a9418c9b222)
 

Author SHA1 Message Date
Frans de Jonge f7e56b408f Bump base (for #3639) (#3640) 6 years ago
poire-z 5cfe9992ad Wiki Save as EPUB: better handling of math formulas (#3639)
Also fix some bad filename and extension in epub's OEBPS/content.opf,
Store image files (jpg, png, gif) uncompressed in the .epub as they
don't need compression.
6 years ago
poire-z e7377cd20e Dict & wiki history: use filename when no book title (#3635) 6 years ago
poire-z b840a01144 Bump base: fix gray background instead of white on Kindle (#3634) 6 years ago
poire-z b16c93bbe5 HtmlBoxWidget: fix selection when starting from end (#3632) 6 years ago
poire-z 1e9457c9b4 Wikipedia full & epub: swap symbols for H3 and H4 (#3627) 6 years ago
poire-z ba389c9a00
epub metadata: support multiple authors (#3624)
crengine may now give us multiple authors (if multiple <dc:creator>
in epub metadata) separated by \n.
Deal with that where needed.
Limit the number of authors displayed in coverbrowser views.

Bumped base/crengine: multiple <dc:creator> + fix mobi images order
Bumped base: util.runInSubProcess(): give child its own process group
6 years ago
poire-z 35df1749b2
Screensaver: a few tweaks and fixes (#3619)
When no manually added specific 'poweroff' or 'reboot' screensaver
settings, use the suspend/sleep settings set via menu with an added
overlay message in top right corner.
Generalized some settings: "White background behind message and images"
and "Stretch covers and images to fit screen", and move "Exclude this
book's cover from screensaver" up a level (and remove this menu item
added by ReaderMenu when closing document).
Don't use memory cache with rendered screensaver images.

ImageWidget: fix wrong behaviour (stretch) when 'file', 'width',
'height' and 'scale_factor' provided: now, keep aspect ratio.
ImageWidget: increase file image mem cache (mostly used for icons)
from 2 to 5MB to be ready for devices with very high DPI.
6 years ago
poire-z 94327ad43f luasettings: backup previous file and auto-recover (#3625)
Similar to what was done for docsettings in #3093
6 years ago
Robert dd00417bc8 Sort documents - open sidecar file only in percent sort (#3622) 6 years ago
Robert 46e0f30b0a Proper page changes using the up and down keys (#3621) 6 years ago
Frans de Jonge e928276d73
[Android] Update luajit-launcher 7z to 18.00 (#3617)
See https://github.com/koreader/android-luajit-launcher/pull/79
6 years ago
poire-z 775b7a364f Wikipedia: show images and allow interrupting queries
Reword some english messages
6 years ago
poire-z 43ad2cef99 TextBoxWidget: optionally display a list of images
(each one at top right of each page)
Such images can be loaded dynamically when the display of a page requires it.
Allow alternating between the image and its title with Tap on it.
Allow for viewing this image zoomed in ImageViewer with Hold on it.

DictQuickLookup: add generic support for result.images, that
could optionally be provided in Wikipedia lookup results.
6 years ago
poire-z 0ef948f60d Trapper: adds dismissableRunInSubprocess() + new TrapWidget
New TrapWidget: invisible full screen widget for catching UI events. Can
optionally display a text message at bottom left of screen (ie: "Loading..."),
used by default by Trapper:dismissable functions when no widget provided.
Added Trapper:dismissableRunInSubprocess() to run a lua function in
a sub-process, allowing it to be dismissed, and returns its return
value(s).
6 years ago
poire-z b1863d3a71 ImageViewer: with title bar, allow for a secondary toggable caption 6 years ago
Frans de Jonge acacd7a7f8
[UX] Move "Go back to previous location" up one menu level (#3615) 6 years ago
Robert 6e87735b79 Filemanager - sort by percent of book (#3614) 6 years ago
mwoz123 1d0a5b4aa3 [feat] Add NetworkManager:beforeWifiAction() to enable optional auto-connect (#3482) 6 years ago
Frans de Jonge 21274f5e92
[feat] Add NetworkManager:isConnected() (#3593)
This enables connecting to calibre and FTP without Internet connectivity.
6 years ago
Hzj_jie 65f26cecbb Do not execute background runner if device is suspended (#3608) 6 years ago
Robert a66d657195 Update History and Last open document when move (cut and paste) file (#3607) 6 years ago
TnS-hun b40bc53fc7 HTML dictionary link support (#3603) 6 years ago
Robert d201c04df7 OPDS - add confirm when file exist in local destination (#3605) 6 years ago
Frans de Jonge 51f2fa1845
[fix, Android] android-luajit-launcher: update 7z URL/commit hash (#3604)
Fixes Android nightly builds, see https://github.com/koreader/koreader/issues/3100#issuecomment-357499189
6 years ago
Robert d5d12998f6 Fix folder path truncation in filemanager with utf8 chars (#3599) 6 years ago
Robert d163f8281d Menu: configure number of items per page, wrap entries (#3589)
Configure number of items per page (from 6 to 24) - default is 14
Allow filenames to wrap so that we can see the full name
Used by File browser, History, Search Result, Bookmarks, Table of contents (only single line), File chooser, OPDS catalog
6 years ago
Mahmoud Nagy 6e303e7372 Swipe down or tap on top left/right to access left/right reader menu tab directly (#3595) 6 years ago
Robert cffe95b54a DoubleKeyValuePage: make PgUp and PgDown key go to prev/next page (#3601) 6 years ago
poire-z e389510257 Fix speedup of dictionaries init (#3592)
Revert 338d14edb7 (#3489)
Simply just don't walk into "res/" subdirectories, which is where
resource files should be per startdict specs.
6 years ago
poire-z d51c184060 KeyValuePage: make PgUp and PgDown key go to prev/next page (#3590) 6 years ago
poire-z 7feea4037e
HTML dict: fix continuous scroll with tap (#3587) 6 years ago
poire-z 8c897a086f HTML dict: enable color rendering and per-dict user fix html func (#3585)
Also fix possibility of crash in HtmlBoxWidget:free()
6 years ago
poire-z 30200b516f Fix scroll with swipe in scrollhtmlwidget (#3586) 6 years ago
poire-z 91092c442d Fix negative nb of enabled dictionaries (#3584)
Happened when some dictionaries files have been removed, while
these were still referenced in the 'dicts_disabled' setting.
6 years ago
poire-z 262e55d0ae Dict: make html and text results look similar (#3582) 6 years ago
poire-z bfb07c79ef Fix: scale html dict result font size (#3581) 6 years ago
TnS-hun 06a8a33d39 HTML dictionary support (#3573)
* Adds a generic HTML widget modeled after the text widget, and HTML dictionary support. HTML dictionaries can have their own CSS (for X.ifo it must be X.css). The base CSS just resets the margin and sets the font.

Note that the widget doesn't handle links, that wasn't needed for the dictionary.

Closes <https://github.com/koreader/koreader/issues/1776>.

* Show tag stripped HTML if the dictionary entry isn't valid HTML

* Simulate the normal <br/> behavior

* Bump base
6 years ago
Mahmoud Nagy 5245f018a6 [fix] small skim problem (#3580)
in relative page turning in skim, errors appear when page number is less than 10, and you press -10 in skim it gives warning and the page doesn't change, this happens in pdf.
"update" method solves this if it comes first.
6 years ago
poire-z 98abcafa1b Screensaver: change default & show messages on reboot and poweroff (#3572)
Use "message" as the default for screensaver (instead of "disable") (https://github.com/koreader/koreader/pull/3535#issuecomment-353337143)

On Kobo 
Fix: display message on poweroff or reboot (https://github.com/koreader/koreader/pull/3535#issuecomment-352355865)
Allows for overwritting these default messages with the classic screensaver settings, by just prepending "poweroff_" or "reboot_" to them. (https://github.com/koreader/koreader/pull/3535#issuecomment-352498497)

So one can manually add to its settings.reader.lua:
```
"poweroff_screensaver_type" = "random_image" or "message", "cover", "bookstatus", "readingprogress", "disable",
"poweroff_screensaver_dir" = "path to same as screensaver_dir or alternate dir for poweroff image(s)",
"poweroff_screensaver_message" = "message to use instead of Powered off",
```
```
"reboot_screensaver_type" = "random_image" or "message", "cover", "bookstatus", "readingprogress", "disable",
"reboot_screensaver_dir" = "path to same as screensaver_dir or alternate dir for reboot image(s)",
"reboot_screensaver_message" = "message to use instead of Rebooting...",
```
6 years ago
Fabian Müller-Knapp 88c03c08d1 Partial fix for 3477 (#3568)
Partial, as it will safe the state when suspending the reader by pressing the power-button.

However, it will still not safe the state when Pocketbooks autoPowerOff-Feature kicks in, as this does not create an event (e.g. no EVT_BACKGROUND) of any kind.

* Clean up device.lua

* Save state on suspend
6 years ago
Robert 22a8cfde7c Fix missing createFolder() function and fix KOReader File Browser is no longer tappable (#3576) 6 years ago
poire-z 6df0824474 kodev: two small fixes (#3575)
- kodev-run: fix use of $args
- kodev-build: build the emulator in debug mode, for consistency
with kodev-run
- kodev build: add --debug / --no-debug options
6 years ago
poire-z 7797c2369e
credocument: deal with loadDocument() failures (#3570)
cre:loadDocument() may fail in recognizing the document format, and
koreader would previously keep calling other methods on it, which would
make crengine segfaults. We now check loadDocument success at the
various places it is called, and try to deal the best way we can when it fails.
6 years ago
Robert 6f41cecab2 Add info when copy or cut file (#3571) 6 years ago
Robert 227584de22 New option - create new directory (#3555) 6 years ago
Ben Kelly f9ac8b138b Basic fixes to calibre-sync (#3558)
* Properly create intermediate directories when receiving books from Calibre.

This fixes an issue where you can't receive books except into directories that
already exist on the Kobo, which, in particular, causes problems when your
configuration in Calibre is something like "put books in $Author/$Title.epub"
and you haven't previously synced any books by that author.

* Wake up periodically to process ZMQs if any are registered.

This fixes an issue where if there are any timed events (such as the suspend
timer) in the queue, ZMQ events may not get processed until the timed event
fires, which is a problem when (for example) the suspend timer goes off in
an hour and you have something trying to send a book to the kobo over wifi
*right now*.

With this change, the event loop will wake up every 50ms to check for ZMQ
events and process them if necessary. If there are no ZMQs registered (which
is typical), it uses the original behaviour -- so this won't affect battery
life under normal usage.
6 years ago
Robert 79517eb166 Truncate path in filemanager (#3565) 6 years ago
poire-z b2ec0eba8d
Bump base for MuPDF build without ICC/lcms2 (#3569) 6 years ago
Robert 1d1b005b1a
copying file with .sdr (#3563) 6 years ago