2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
Commit Graph

9898 Commits

Author SHA1 Message Date
Benoit Pierre
ded5558b88 android: speed up development cycle
Don't recreate `assets.7z` from scratch every time, and also
ensure it's reproducible to avoid busting gradle's cache.
2023-07-10 22:46:53 +02:00
Benoit Pierre
7e98241b7e kodev: add dlopen traces to android logcat 2023-07-10 22:46:53 +02:00
NiLuJe
4194244951
GestureDetector: Make two_finger pans & swipes report the same sort of data than their standard brethren (#10649)
Namely, that swipes report the gesture's *starting* coordinates as `pos` (for hit-detection purposes), while pans (and basically everything else) use the *lift* coordinates (as well as provide a relative vector).

In each case, we now also provide a separate `start_pos`/`end_pos`, in case handlers need finer-grained data (e.g., anchoring UI elements to a swipe's lift coordinates).
2023-07-09 18:20:53 +02:00
Frans de Jonge
b4000d84a5
Update translations for v2023.06.1 (#10665) 2023-07-09 08:13:13 +02:00
hius07
86f4b3c18d
QuickMenu: anchor to gesture position 3 (#10646) 2023-07-08 08:17:42 +03:00
ElimGarak1
4b475bee04
Recognize PocketBook InkPad 4 with new firmware (PB743G)/(PB743g) (#10655)
Extended addition of PocketBook InkPad 4 with firmware later U743g.6.8.885 (PB743G) because its device ID was corrected from PB743g to PB743G by firmware U743g.6.8.1719.
2023-07-07 19:28:06 +02:00
Frans de Jonge
2b18a7e90f
[i18n]KOSync: use already translated "Not available" instead of "Unavailable" (#10648)
Cf. https://github.com/koreader/koreader/pull/10605#discussion_r1252639047
2023-07-05 16:53:19 +02:00
Martín Fernández
5336e2f11d
[ota]: deprecation check & notice (#10639) 2023-07-04 22:58:40 +02:00
Benoit Pierre
346d8eb83e
Decrease fonts memory use (#10618)
Instead of opening the same font multiple times for each different
size (multiple face instances), share one face instance and create
multiple size instances.
2023-07-04 09:13:16 +02:00
Alistair Francis
fc89b1affa
Remarkable: support the mainline touchscreen (#10585) 2023-07-04 09:08:31 +02:00
poire-z
a4720b44cd Text search: various Kopt search fixes
- Properly parse input text for words (the previous
  code wasn't working with Greek letters)
- With multiple words search, don't allow "substring
  matching" for words in the middle
- Remove support for Lua pattens, so to get proper
  substring matching (as we have with cre text search)
2023-07-04 09:03:34 +02:00
poire-z
dffc2404ca Text search: normalize input text
So that Unicode NFC normalization can combine diacritics
entered via our keyboard with their base into their
canonical form (we can expect books text to be normalized).
2023-07-04 09:03:34 +02:00
hius07
6decb71521
ReaderPaging: do not store zeroes in page_positions (#10602)
Page_position value depends on the view mode parameters, but we can assume that zero is a frequent case.
2023-07-04 08:43:30 +02:00
Benoit Pierre
f661726fef tests: fix listing tests with busted --list 2023-07-04 08:12:07 +02:00
Benoit Pierre
fdd645af73 tests: minor cleanup 2023-07-04 08:12:07 +02:00
yparitcher
27f7f1d5a9 QuickMenu: anchor to gesture position
Fixes: #10631
2023-07-03 20:18:12 -04:00
Benoit Pierre
4b9de16c51
bump base: libk2pdfopt, fix ffi cdecls, improved ccache (#10638)
- https://github.com/koreader/koreader-base/pull/1619
- https://github.com/koreader/koreader-base/pull/1623
- https://github.com/koreader/koreader-base/pull/1628
2023-07-04 01:59:00 +02:00
hius07
dee1c902ec
ReaderUI: minor optimization (#10634) 2023-07-03 17:43:13 +03:00
hius07
eb299c300d
FileChooser: Sort by date (#10627) 2023-07-03 08:24:28 +03:00
hius07
adfbbd9903
Disabled touch input: always active gestures (#10624) 2023-07-03 07:58:51 +03:00
NiLuJe
08dd97384c
KOSync: Clarify settings, plus refactor & fixes to make "auto-sync" more reliable (#10605)
Fix: #10539, and for context #6489, #6733, #6534

Reorganize and reword most of the settings to make it clear what actually ties into auto sync, and what doesn't. (Specifically, what happens when a pull attempts to sync forward or backward has nothing to do with auto sync, it applies in all cases; while the periodic sync *does* require auto sync).

The main point of contention, though, is that auto sync will now *always* attempt to setup network connectivity (i.e., on resume/suspend/close). Periodic sync will *not* though (the intent being that, if you use periodic sync, you're relying on the activity check to actually keep wifi on at all times)).

Since this may lead to a large amount of nagging about wifi toggles on devices w/ NetworkManager support, it is now *disabled* by default on those devices. (And given that it wouldn't have worked because of the lack of connectivity, that doesn't really make any practical difference ;p).

Additionally, given the fact that there's no way to make this behavior viable if the "before wifi" action is left at its default of "prompt", this feature now *requires* that to be set to "turn_on" (on devices where it can, of course); attempting to toggle it on will warn about that if necessary.
This change is retroactive (OTM).

Includes an assortment of fixes and cleanups, including migrating to the new LuaSettings API, which is why there's no longer a smattering of superfluous flushes.
2023-07-03 01:23:14 +02:00
NiLuJe
7fddb1dedf Bump android/luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/417
https://github.com/koreader/android-luajit-launcher/pull/420
2023-07-03 01:22:41 +02:00
NiLuJe
05bbbafefd Bump base
https://github.com/koreader/koreader-base/pull/1622
2023-07-03 01:22:41 +02:00
NiLuJe
752f23c85e
Input: Be more through in resetState (#10612)
Drop the actual slot data storage, in addition to the active references
2023-07-02 22:54:14 +02:00
Frans de Jonge
b24059b2cb
Update translations for v2023.06 (#10626) 2023-07-01 07:32:34 +02:00
kosmoski
72c1905110
Add 'Content-Length' header to WebDAV upload request (#10567)
Co-authored-by: wojtek <wojtek@pop-os.localdomain>
2023-07-01 07:29:38 +02:00
hius07
5db765e4e5
correct parsing unzip output (#10625) 2023-06-30 17:48:44 +03:00
Frans de Jonge
b8af326836
[i18n,plugin]Statistics: differentiate different types of 'reset' (#10621)
References <https://github.com/koreader/koreader/discussions/10479>.
2023-06-29 14:36:25 +02:00
NiLuJe
2f1435f1a7 Bump base
https://github.com/koreader/koreader-base/pull/1616
https://github.com/koreader/koreader-base/pull/1618
https://github.com/koreader/koreader-base/pull/1621
https://github.com/koreader/koreader-base/pull/1627
2023-06-29 14:33:23 +02:00
NiLuJe
5c8143d9ac SDL: Fix initial position & size
Also keep sdl_window in sync with enforced dimensions on the emu.
2023-06-29 14:33:23 +02:00
NiLuJe
4ae25794a8
Add a config file for the Lua LSP (#10611) 2023-06-25 16:14:01 +02:00
NiLuJe
55869b82cb
PowerD: Unbreak frontlight toggle notifications outside of Kobo (#10597)
Fix #10588
Regression since #10305

While we're there, rejig the FL toggle callback shenanigans so that implementation details don't leak through to *other* implementations.
(i.e., leave the Kobo mess in Kobo land, with only a minimal impact on the public API and its implementation).
2023-06-25 11:25:33 +02:00
hius07
4a775b03f1
History: update short date/time correctly (#10601)
Further to #10594, fix updating the mandatory.
2023-06-22 21:42:41 +02:00
hius07
45428dda49
History: shorten date/time field (#10594) 2023-06-21 07:33:09 +03:00
hius07
54ab0a04f8
Archive viewer (#10584) 2023-06-21 07:32:24 +03:00
Frans de Jonge
64f778d97d
PocketBook: add alternative definition for PB840 (#10582)
Cf. #10579.
2023-06-15 13:54:15 +02:00
hius07
eef99dafd6
Overlap: fix detecting reflow mode (#10576) 2023-06-14 07:36:37 +03:00
hius07
1d4e256c82
credocument: epub alternative mimetype (#10575)
Used by Flibusta OPDS.
2023-06-13 12:16:36 +02:00
yparitcher
1f62091b73
HtmlboxWidget: pairs->ipairs (#10574)
thanks @poire-z
Closes: #10565
2023-06-13 11:52:46 +02:00
zwim
3e3cc690f3
Fix regression after 10557 (#10570) 2023-06-13 07:51:31 +02:00
Benoit Pierre
f7d5828f08
persist: fix possible leak on error (#10568) 2023-06-12 09:25:54 +02:00
hius07
46933035c5
Open with: images (#10561) 2023-06-12 09:08:56 +03:00
Benoit Pierre
c95b17410b
tests: fix EPUB test (#10566)
Otherwise the test fail in my environment because of some user fonts.
2023-06-11 22:20:46 +02:00
Benoit Pierre
bb7ae20697
kindle: show require error trace (#10569) 2023-06-11 21:46:46 +02:00
Frans de Jonge
f7d633cc3d
readerhighlight_spec: add #nocov to some highlight tests (#10559)
The problem stems from <https://github.com/koreader/koreader/pull/10492> but we need the translations to go through.
2023-06-09 22:14:41 +02:00
hius07
3eee5dd14c
OPDS: view book cover (#10555)
(1) New "Book cover" button in the download dialog.
(2) Detect book that can be borrowed only (Internet Archive).
There is no support for borrowing, just showing a disabled button.
(3) Fixed some libraries, all of them work except Gallica.
2023-06-09 20:58:50 +02:00
zwim
c9e1b76a14
[plugin] AutoWarmth: Fix nightmode issue on non natural light devices (#10556)
This should fix #10491.
2023-06-09 20:57:49 +02:00
zwim
1ce1fe1780
[plugin] AutoWarmth: Fix resume and frontlight issue (#10557)
Fixes a regression introduced in #10426, when suspending during night and resuming during daylight.
2023-06-09 20:56:46 +02:00
hius07
fc7181419f
CoverImage: custom cover support (#10553) 2023-06-09 10:36:34 +03:00
poire-z
976284e44d
bump crengine: minor NCX ToC and createXPointer(pt) fixes (#10554)
Includes https://github.com/koreader/crengine/pull/518 : 
- EPUB NCX ToC: don't ignore items with invalid targets
- ldomDocument::createXPointer(pt): handle some edge case
  Closes #10505.
2023-06-08 11:08:03 +02:00