2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

6459 Commits

Author SHA1 Message Date
Martín Fdez
b69882fa34 add safemode tool support
https://github.com/pazos/cervantes-safemode

ref: https://www.mobileread.com/forums/showpost.php?p=3760905&postcount=2 - kodeps.tar.gz
2018-11-10 16:00:03 +01:00
Martín Fdez
6c6bec35ec wireless: make QBookApp happy across switches 2018-11-10 16:00:03 +01:00
Martín Fdez
6424176922 wireless: sleep unconditionally, do not launch wpa_supplicant if is already running and a bit of formatting 2018-11-10 16:00:03 +01:00
Martín Fdez
b06c9a5e57 suspend again on power wake, like in kobos 2018-11-10 16:00:03 +01:00
Martín Fdez
e98b0c8ec8 wireless: use sysfs, do not ping 2018-11-10 16:00:03 +01:00
Martín Fdez
4e1a4978cc wireless: read wireless carrier from sysfs 2018-11-10 16:00:03 +01:00
Martín Fdez
56a1b14418 remove spaces from model names 2018-11-10 16:00:03 +01:00
Martín Fdez
acfd21112f enable fbink feedback during OTA updates 2018-11-10 16:00:03 +01:00
frio
4ae43aee2c [fix, cervantes] Old Cervantes devices should return false for hasNaturalLights (#4320) 2018-11-10 11:31:24 +01:00
poire-z
5d6807620f Fix footnote size after screen rotation (#4316) 2018-11-09 21:44:00 +01:00
xelxebar
05e687f570 [Feature] Support DjVu metadata (#4314) 2018-11-09 19:06:47 +01:00
Frans de Jonge
f71627cf1d [spec] Version: slight refactor 2018-11-07 20:46:07 +01:00
Frans de Jonge
be32144829 [fix] Version pattern: add two extra numbers for point release
Also see #4303.
2018-11-07 20:46:07 +01:00
Frans de Jonge
472b9cf32a
README.md: add note about --appimage-extract (#4304)
Fixes #3886.
2018-11-05 22:54:36 +01:00
poire-z
26aeb6121c
bump crengine: fix vertical-align and others (#4307)
bump crengine, which includes:
- Avoid uneeded re-rendering on load when with full status bar
- Update french hyphenation pattern
- Fix border-collapse on table cells in some cases
- Fix line-height inheritance when no unit
- Fix: don't ignore space following an image
- Fix: ignore occasional space at start of line
- Fix possible segfault when viewing HTML
- Fix and extend support of vertical-align

Also add a style tweak to middle align images with text, which
may make some text with inline icons and such nicer (depending
on images sizes and selected Zoom/DPI).
2018-11-05 00:12:12 +01:00
Frans de Jonge
42548939bc
[spec] version_spec: forget about rev and commit (#4303)
Stable doesn't have them.
2018-11-02 21:12:00 +01:00
Frans de Jonge
349485e240
[fix] Minor kodev shellscript issues (#4302)
Use `-z` instead of `! -n`.

See https://github.com/koalaman/shellcheck/wiki/SC2236
2018-11-02 11:42:34 +01:00
Frans de Jonge
b5911076bc
[fix, lang] Bottom left/right adjective order (#4301)
Also put left first, which seems more logical.
2018-11-02 10:35:41 +01:00
Frans de Jonge
e636a0b231 [hotfix] tonumber makes an empty string nil 2018-11-01 11:54:29 +01:00
Frans de Jonge
bdb81c72f1
[hotfix] Version: empty pattern max is an empty string, not nil! (#4299)
Fixes #4298.
2018-11-01 11:41:31 +01:00
Martín Fernández
1e69fae7bc [feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017).

It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested.

Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
2018-10-31 23:48:36 +01:00
Frans de Jonge
d1298ff8e5
[feat] Smaller version on annotated tag (#4295) 2018-10-31 23:34:11 +01:00
Frans de Jonge
f3ce1c224d
Bump base (#4293)
Includes:

* [fix] HarfBuzz Android build with newer libtool https://github.com/koreader/koreader-base/pull/749
* [CI] Update Docker images https://github.com/koreader/koreader-base/pull/748
2018-10-30 07:13:27 +01:00
Frans de Jonge
c01d105bb3
[build, AppImage] Update to AppImageTool 11 (#4288)
It came out last week: https://github.com/AppImage/AppImageKit/releases/tag/11

I also fixed the `libcairo` issue from https://github.com/koreader/koreader-base/issues/730 in https://github.com/koreader/virdevenv/pull/21
2018-10-28 07:12:30 +01:00
Martín Fernández
29835b3072 [chore] Refactor sysfs_light (#4283) 2018-10-27 22:49:18 +02:00
Yann Muller
3fa2dad0b7 Fix for Internet Archive URL. 2018-10-24 14:48:50 +02:00
Yann Muller
030a02dfc4 Escape &, < and > when removing CDATA. 2018-10-24 14:48:50 +02:00
Yann Muller
f747b24a45 Removed accidental white line. 2018-10-24 14:48:50 +02:00
Yann Muller
9c251185eb Filter out CDATA. 2018-10-24 14:48:50 +02:00
poire-z
dc4f1888d7 bump base: cre text selection: grab word when not panning 2018-10-23 13:12:40 +02:00
poire-z
2a8ab2b311 View HTML: adds Prettify button to CSS viewer
Quick and non-full-proof prettification, but quite good
and enough to make unreadable/minified CSS files readable
for Style tweaks cooking.
2018-10-23 13:12:40 +02:00
poire-z
b3efd5a333 ReaderDictionary:dismissLookupInfo(): avoid forceRePaint()
Avoid forceRePaint() (and showing the full page without any
widget) between closing the "Looking up..." info message and
displaying the Dictionary result window, as it's not really
needed (I must have added it for symmetry with
ReaderDictionary:showLookupInfo() where it is needed.)
This avoids some occasional refresh competition glitches.

Also trim spaces at start or end of selection (can't hurt),
and replaced ugly string.gsub(text) with text:gsub().
2018-10-23 13:12:40 +02:00
poire-z
233f375af4 Cleanup onSetStatusLine()
Follow up to fa0117bb (#4268), to make things a bit clearer:
Only ReaderRolling get the 'SetStatusLine' event, and tells
crengine about the change, and then send the 'UpdatePos' event.
ReaderFooter now just gets a :setVisible() method.

Now, all the code that calls a self.ui.document:set* method, that
most probably triggers a full re-rendering by crengine, do signal
'UpdatePos' immediately after. This event signals that all page
number, pages count, positions... are no more valid and must be
queried or computed again.
This could also be used if we ever want to cache Page Links or
Screen Boxes: this event will have us dropped these caches.
2018-10-23 13:12:40 +02:00
Yann Muller
653741dfac [fix] Wallabag: fix for un-configured plugin error (#4277) 2018-10-18 20:13:49 +02:00
Yann Muller
64d00b2969 [UX] Display the author in OPDS catalogs. (#4278) 2018-10-18 20:12:30 +02:00
Frans de Jonge
588de66bcd
[lang] Plugins: Wallabag fix typo (#4273) 2018-10-18 06:35:37 +02:00
Yann Muller
de9d675de2 Fix for FTP folder being saved to an unused setting. (#4274) 2018-10-18 06:34:29 +02:00
Yann Muller
a3a17dbbeb WebDav CloudStorage (#4272)
Addition of WebDav to the CloudStorage. The functionality is the same as with Dropbox and FTP, it is possible to browse the files on the server and download a copy.

Tested with:
NextCloud
HubZilla
2018-10-17 14:13:59 +02:00
onde2rock
53e7a0b6c9 [Non-touch] Add a menu item to toggle a bookmark on the current page (#4262) 2018-10-16 21:05:58 +02:00
Yann Muller
846f8bfa18 Wallabag plugin (#4271)
A plugin to download articles from a Wallabag server, an
open source read-it-later service (https://wallabag.org).
2018-10-16 20:49:44 +02:00
poire-z
fa0117bb2a Fix default not being used for View mode and Progress bar
Default setting set by holding on the bottom config buttons
for "View mode" (scroll/page) and "Progress bar" (full/mini)
were not used.

Also, when switching Progress bar from 'full' to 'mini',
show the mini bar again.
2018-10-14 21:32:31 +02:00
poire-z
1b3d974bec Footnotes: fix current link being unhighlight in some cases
When a link is covered by the footnote widget, we highlight it
again when closing the footnote, and schedule an unhighlight
0.5s later.
When we tap on another footnote link, this was happening too
but the unhighlight unhighlighted all, including the new
footnote link.
This disable the former when the latter happens.
2018-10-14 21:32:31 +02:00
poire-z
9d8531a4b5 Fix footnotes and markers with full status bar
Take full/top status bar's height into account when
computing coordinates.
Also wrap getPageMargins() in CreDocument, so we
don't use cre.cpp _document directly anywhere else.
2018-10-14 21:32:31 +02:00
Qingping Hou
e869b40625 fix(kodev): match clean command debug flag with build command 2018-10-14 09:14:35 -07:00
Qingping Hou
a72f8b6338 decouple UI from core document code 2018-10-14 09:14:35 -07:00
poire-z
76a3d20f01
bump cre: allow non-word chars in text selection (#4267)
By starting or ending text selection on a punctuation char,
a quote or a paren..., these will now be included in the text
selection and the higlighted text.

bump crengine, which includes:
- Avoid wrap on a space before or after some specific chars
2018-10-11 19:35:16 +02:00
Martín Fernández
717184f1d6 move e-ink related settings to a submenu (#4246) 2018-10-10 21:34:47 +02:00
onde2rock
42a7dd4502 disable panning in page view_mode (#4265) 2018-10-10 20:39:34 +02:00
poire-z
f9086a2ba9
EPUB links: show footnotes in popup, larger tap area (#4261)
Adds new options to the Links> submenu, for now only
available and used with CRE documents.
- Allow larger tap area around links
- Ignore external links
- Show footnotes in popup
- Show more links as footnotes

(This last item is mostly for testing and loosening the
footnote detection algorithm, and see how it would behave
with glossary-like links and inter glossary terms links.)

Fix distance computation from gesture position to link by
using segments.
Code for detecting if a link is a footnote is in cre.cpp, and
tweakable a bit with flags in ReaderLink:showAsFoonotePopup().

Footnotes HTML content is displayed by a new FootnoteWidget,
which uses MuPDF for its rendering.
From it, swipe south or tap outside to close, swipe to the left
to follow the original link and jump to the footnote location
in the book.

Also fix tap on highlights after the recent change to use segments
for displaying: use segments also when checking taps.
2018-10-10 18:50:24 +02:00
onde2rock
4d424cdc58 [Key navigation] The back key can be used to go to the parent folder. (#4264)
The menu to select this behavior is under "gear">"Navigation"
It default to the current behavior named "default"
2018-10-10 18:28:51 +02:00