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

10293 Commits

Author SHA1 Message Date
Frans de Jonge
13a521c398
AppImage: remove hasMultiTouch = no (#11212)
SDL supports multitouch since https://github.com/koreader/koreader-base/pull/1599
2023-12-08 10:12:22 +01:00
NiLuJe
9ebe7714ec Bump base
https://github.com/koreader/koreader-base/pull/1708
https://github.com/koreader/koreader-base/pull/1706
https://github.com/koreader/koreader-base/pull/1707
https://github.com/koreader/koreader-base/pull/1711
https://github.com/koreader/koreader-base/pull/1710
https://github.com/koreader/koreader-base/pull/1709
https://github.com/koreader/koreader-base/pull/1712
2023-12-08 05:35:34 +01:00
NiLuJe
18fff200ac GestureDetector: Be even *more* defensive with initial_tev records
Apparently, #11198 wasn't defensive enough...

Make those visible warnings, so we can see how much they actually happen
in the wild...

Closes #11209
2023-12-08 05:35:34 +01:00
Wim de With
e7780c09f3 fixup! Process directory list items for mixed collation 2023-12-07 09:39:04 +01:00
Wim de With
128accafe3 fixup! Process directory list items for mixed collation 2023-12-07 09:39:04 +01:00
Wim de With
01642659d2 Process directory list items for mixed collation 2023-12-07 09:39:04 +01:00
Wim de With
98d92d37ab Refactor FileManager collation for easier patching 2023-12-07 09:39:04 +01:00
NiLuJe
3c63a5d8a8
GestureDetector: Switch buddy contacts to voidState in a safer manner (#11198)
Some platforms with horribly broken MT handling (hai, PB) will manage to
screw something up so bad that we end up with slots never running
through initialState on a contact down, so they never get an initial_tev
recorded.

Ensure we do that if necessary when switching a buddy to voidState to
avoid crashes throughout the code, which assumes everything is sane and
doesn't guard accesses to initial_tev

Re: #11196, #10950 & #11111
Closes: #11111
2023-12-04 22:01:52 +01:00
hugleo
f990937f9f
Autocrop fix (#11194)
After some tests with the said document from https://github.com/koreader/koreader/issues/970 it seems like that the visual defect occurs for only semi-auto and manual crop modes.

I've removed auto-crop from the rule so fixes https://github.com/koreader/koreader/issues/4106 when using auto-crop.
2023-12-04 12:10:43 +01:00
hius07
498193c26d
InputText: Delete all and fix Select (#11182) 2023-12-04 07:55:29 +02:00
poire-z
b361cec4ff ReaderStyleTweak: minor CSS suggestions popup fixes 2023-12-02 22:51:51 +01:00
poire-z
c32ace4611 bump crengine: various optimizations and fixes
Includes:
- Avoid unnecessary string modifications
- Optimize LVHTMLParser::CheckFormat()
- lvfntman: fix stupid mistake
- css: speedup class matching
- fb2.css: empty paragraphs should have some line height
- CJK: fix bad ruby drawing on last paragraph line
2023-12-02 22:51:51 +01:00
hius07
b4424b4685
filemanagerhistory: fix non standard status (#11188) 2023-12-02 09:06:31 +02:00
hius07
dce12de09d
Profiles: fix update actions in gestures (#11175) 2023-11-29 08:09:52 +02:00
NiLuJe
4a64e02c68
ScreenSaverLock: Hide the popup on suspend (#11174)
Fix #11164 and involves a drive-by fix:

Kindle: Send Suspend/Resume event regardless of the screen saver state

If we get the events, it means stuff happened, we can't just only honor
it in the most common workflows ;).

This effectively reverts a tiny bit of #10426 (I was sort of expecting
this to be problematic at the time, and I most likely hadn't tested it).
2023-11-29 00:15:50 +01:00
mergen3107
33c7f05158
Kindle scribe gyro and pen support (#11159)
* Kindle Scribe: add G-sensor and pen support, fix startup orientation

* Fixes #11144 and #11156
2023-11-28 07:07:18 -05:00
hius07
d3787eee64
filemanagershortcuts: fix menu (#11167) 2023-11-27 08:00:00 +02:00
Monirzadeh
6527d7f1ab
Fix English-Persian dictionary link (#11165)
Spaces should be encoded.
2023-11-26 18:17:08 +01:00
NiLuJe
5ef4db6176 Bump android/luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/449
2023-11-26 08:37:41 +01:00
NiLuJe
f42893d3d1 Bump base
https://github.com/koreader/koreader-base/pull/1704
2023-11-26 08:37:41 +01:00
hius07
f6fb35fd98
QuickMenu: keep open on apply (#11135) 2023-11-26 07:52:43 +02:00
NiLuJe
82e7ebd6df
ReaderView: Flash when paging *away* from images, too (#11152)
Reword the `Always flash around pages with images` Menu/Dispatcher entry
accordingly.

Fix #11143
2023-11-26 05:51:47 +01:00
NiLuJe
9af3e95d9d Kindle: Fix a smattering of frontlight bugs
* afterResume had *two* different implementations, so the historical one
  that handled frontlight fixups no longer ran
  (regression since #10426)
* isFrontlightOn was completely broken, for a couple of reasons:
  * There was no is isFrontlightOnHW implementation, so when it ran, it
    mostly always thought the frontlight was on, because
    self.fl_intensity doesn't change on toggle off.
  * _decideFrontlightState was never called on Kindle,
    so isFrontlightOnHW was never really called, making isFrontlightOn
    completely useless. Call it in setIntensityHW's coda, as it ought to
    be. And properly document that.

Generic *was* calling _decideFrontlightState is setIntensity, but
*before* actually setting the frontlight, which makes no goddamn sense,
so get rid of that, too.

* Also fix frontlight toggle notifications (regression since #10305)

TL;DR: The PowerD API being a mess strikes again.
2023-11-25 20:53:36 +01:00
NiLuJe
2554aee7a3 Gestures: Make the edge swipe zones configurable
As "global defaults" (i.e., "advanced settings" in the UI).

These were the only zones not available there, for some reason (probably
they were new and we try to avoid adding new defaults).

Fix #11142
2023-11-25 20:53:36 +01:00
Monirzadeh
fbd012b928
Add English to Persian dictionary (#11160) 2023-11-25 13:49:49 +01:00
NiLuJe
bf03f40ef2
Dispatcher: Allow toggling USBMS (#11123)
It's right next to actual exit/restart actions, so it'll never ask for confirmation.
2023-11-22 18:59:07 +01:00
NiLuJe
bba48fc1bf
Widgets: Unschedule timeouts on early close (#11126)
Affects Notification, InfoMessage & QRMessage

Includes a drive-by fix for Trapper interactions that have been broken for... a long while ;).
2023-11-22 18:58:31 +01:00
NiLuJe
bc7ea8602e
UIManager: Don't block gestures for new widgets when input is disabled (#11122)
They'll be disabled again when the widget in question is dismissed.

This exposes a couple of semi-obvious but edge-casey footguns to the user, but a hardened implementation is way uglier. See PR for details.
2023-11-22 18:56:47 +01:00
Ben Bell
f92c0eae3b
Exporter: fix XMNote export, add author field (#11134)
Optimize #11087 :

1. In `isReadyToExport`, check if the ip is set. If not, then the user cannot enable xmnote export.
2. Add author field in highlights.
2023-11-20 10:53:19 +01:00
WangKe
dea94026f1
Exporter: add XMNote export (#11087) 2023-11-19 10:32:27 +01:00
Frans de Jonge
7870e83410
Bump luajit-luancher: support Onyx Nova, warmth support Tolino Vision 4, LuaJIT 20231109 (#11128)
* Use Tolino NTX on Tolino Vision 4 to add warmth support <https://github.com/koreader/android-luajit-launcher/pull/446> @ailin-nemui
* Support for Onyx Nova <https://github.com/koreader/android-luajit-launcher/pull/443> @hugleo
* Bump LuaJIT to 20231109 <https://github.com/koreader/android-luajit-launcher/pull/447> @NiLuJe (same as in <https://github.com/koreader/koreader/pull/11127>)
2023-11-19 10:31:49 +01:00
Frans de Jonge
51b4d5e646
Bump base: some dependencies, minor Makefile fixes (#11127)
* Bump HB to 8.3.0 (koreader/koreader-base#1694)
* Bump LuaJIT to 20231109 (koreader/koreader-base#1694)
* crengine: drop unnecessary MuPDF dependency (koreader/koreader-base#1700)
* cmake: fix ko_write_gitclone_script function (koreader/koreader-base#1702)
* fix crengine, koreader-cre, and mupdf rules (koreader/koreader-base#1701)
* sqlite: don't set HAVE_LOG2=0 on Android (koreader/koreader-base#1703)
2023-11-19 10:31:32 +01:00
hius07
d99c70b5e1
ReaderHighlight: adjustable highlight dialog position (#11116) 2023-11-19 09:52:51 +02:00
hius07
88d6613fed
Folder shortcuts: new markers, buttons (#11108)
Buttons to add/remove folder shortcut from Plus menu and from folder popup dialog.
A marker ("empty star") for folders with shortcuts.
2023-11-16 07:48:10 +02:00
hius07
ed46dca886
MoveToArchive: fix DocSettings:updateLocation() call (#11103)
Closes #11101.
2023-11-13 18:51:04 +01:00
hius07
da8e23c011
InputDialog: tap outside to close dialog if keyboard is hidden (#11094) 2023-11-12 07:44:56 +02:00
hius07
082ef9b545
FileChooser: fix reverse sorting of folders (#11093)
Do not apply "reverse sorting" to folders in sorting modes "type", "size", "percentage".
In that modes folders are sorted by name.
2023-11-11 07:42:43 +02:00
poire-z
894cb3190d
Page browser: show nightmode thumbnails when in nightmode (#11091)
Just prevent page thumbnails ImageWidgets to be nightmode
inverted, unlike all other ones which are expected to be
double inverted to get their original colors shown.
The same thumbnail can be used and cached in both day and
night modes, unless "nightmode_images" is enabled and have
crengine itself invert images, making thumbnails different.
2023-11-10 20:36:57 +01:00
hius07
4044c81a5a
History: update on deleting a folder (#11090) 2023-11-10 07:50:39 +02:00
Wim de With
17a4aa962f
Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089)
* Bump base

includes:

koreader/koreader-base#1691
koreader/koreader-base#1692
koreader/koreader-base#1689
koreader/koreader-base#1690
koreader/koreader-base#1693

* Integrate decoding of SSIDs within wpa_supplicant

The UTF-8 decoding of SSIDs is specific to wpa_supplicant. In this
patch, we move all of this decoding logic to the wpa_supplicant module.
We expose the raw bytes of the SSID to the NetworkMgr code, and make
sure to always fix bad UTF-8 before we display the SSID to the user.

Within the wpa_supplicant module, we replace the call to the
wpa_passphrase binary to get the PSK with a direct function call to
OpenSSL. This allows us to calculate the PSK over any arbitrary bytes,
including UTF-8. In the same vein, we use the hex-encoded SSID to
communicate with wpa_supplicant when setting up the network to support
arbitrary bytes in the SSID.

Unfortunately, we also remove the tests, as there is no way to unit test
local functions.
2023-11-09 21:08:26 +01:00
hius07
d0d3cf78f9
History: search (#11084) 2023-11-09 07:34:56 +02:00
hius07
51f3115b90
Profiles: fix updating gestures (#11072) 2023-11-08 07:39:59 +02:00
ElimGarak1
2e2ca76a03
Add new PocketBook InkPad Color 3 (743K3) (#11079)
To add the new PocketBook InkPad Color 3 (743K3) with E Ink Kaleido™ 3 screen.
2023-11-05 13:23:11 +01:00
hius07
68aa209a6c
Open with... improvement (#11056)
Allows associating filetypes with non-document providers (like ImageViewer or TextViewer) to "open" (view) these files by a tap in file browser.
2023-11-05 07:24:18 +02:00
NiLuJe
94a82087de
Device: Don't leave hasSeamlessWifiToggle enabled when hasWifiToggle is disabled (#11060)
Fix #11059
2023-11-02 23:41:21 +01:00
NiLuJe
fee2b79829
Kindle: The KT5 requires the same input delving shenanigans as the PW5 (#11064) 2023-11-02 23:40:43 +01:00
hius07
4391267dfa menu_keyboard_layout: add setting to disable swipes 2023-11-02 21:44:18 +01:00
hius07
414e74f626 virtualkeyboard: add setting to disable swipes 2023-11-02 21:44:18 +01:00
Frans de Jonge
48dfe6ce05
Bump base for improvements by @benoit-pierre (#11069)
Includes:

* Input: Ensure clearTimer won't compute a lower nfds value than one of our opened fds <https://github.com/koreader/koreader-base/pull/1685>

Also includes various dependency bumps.

<16a856a637...master>
2023-11-02 21:43:12 +01:00
zwim
58cb1ff42b
[AutoWarmth] Fix sanity checks with disabled schedule entries (#11062) 2023-11-01 22:10:52 +01:00