Commit Graph
6630 Commits
Author SHA1 Message Date
Benoit Pierre 8a9d16e23d dictionaries: fix / update some dictionaries (#15641)
- fix "Wiktionary Bokmål-Svenska" URL
- drop "GNU/FDL Anglicko/Český slovník" & "GNU/FDL Německo/Český slovník"
  dictionaries: URLs are not valid anymore, and the updated Debian package
  sources don't include the final StartDict dictionaries

Command used to check:
```
curl --head --no-show-headers -s -L --out-null \
-w '%{url} %{http_code} %header{content-length} %header{etag}\n' \
$(sed -n 's/^\s*url = "\(.*\)",\?/\1/p' 'frontend/ui/data/dictionaries.lua' | sort)
```
2026-07-06 07:51:20 +02:00
Benoit Pierre 751b497848 device/generic: drop unused Device:unpackArchive 2026-07-05 22:57:20 +02:00
Benoit Pierre 8a42c46001 readerdictionary: fix & improve downloading dictionaries
- correctly extract root-less dictionary archives (e.g. "reader.dict …"
  dictionaries, close #15139), and avoid left-overs from a previous
  extraction (to help in cases like #15448)
- fix extraction when a dictionary name contains characters that are
  invalid for the target filesystem (e.g. the ":" in "Dictionnaire de
  l'Académie Française: 8ème edition" on Kindle)
- improve download UI, including avoiding overlapping / out-of-order
  dialogs ("Downloaded […]" dialog showing below the "Downloading" one)
2026-07-05 22:57:20 +02:00
WarliumandClaude Sonnet 4.6 730285210c NetworkMgr: re-DHCP after Wi-Fi network switch on Kobo (#14790) (#15618)
On Kobo, isConnected is aliased to ifHasAnAddress, which returns true as
long as the interface holds any IP — including a stale lease from a
previous network. The early-return gate in turnOnWifiAndWaitForConnection
short-circuits before obtainIP() ever runs, so after switching networks
KOReader reports "Connected" while every request times out on the old
subnet's gateway.

Track the SSID a lease was obtained for (lease_ssid) and add
hasLeaseForCurrentNetwork(), which compares it against wpa_supplicant's
reported association. Guard the fast-path gates in
turnOnWifiAndWaitForConnection and doNothingAndWaitForConnection with it:
on a stale lease, release the old IP and fall through to the normal
reconnect path. lease_ssid is set in reconnectOrShowNetworkMenu (sync
connect) and connectivityCheck (async restore), and cleared when Wi-Fi
goes down or a connection is aborted.

When the backend cannot report an SSID (non-wpa_supplicant platforms),
hasLeaseForCurrentNetwork() returns true so connections are never churned
on uncertainty, preserving existing behaviour everywhere but Kobo.

Refs #14790, #14478, #14716

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjgwQjZY2xoZPSuSXBJqv8
2026-07-01 21:50:26 +02:00
David 74a1732a78 [ReaderLink, Back] clear page links with Back key (#15613) 2026-06-30 18:02:49 +01:00
hius07 7182dda32b Highlights: note format (#15599) 2026-06-30 08:17:48 +03:00
David 86357d12a6 [InputDialog] NT: remove separator from widget's layout (#15602) 2026-06-29 16:19:31 +01:00
kerivin 1b1c0d2b9b Background cleanup over dewatermark (#15555) 2026-06-27 20:53:33 +02:00
hius07 f5579dd5fa Disable external plugins and user-patches (#15593) 2026-06-26 18:32:34 +03:00
Grigorii Ioffe 5549f8ac6c Move kosync plugin settings into a separate file (#15591) 2026-06-26 17:07:59 +02:00
Benoit Pierre 27a8f635d6 device/generic: update Device:ping4() & Device:retrieveNetworkInfo()
- `Device:ping4()`: do not use `struct icmphdr` (Linux specific),
  idem with `struct iphdr`, which also need to be declared
  differently depending on endianness (due to bitfields)
- `Device:retrieveNetworkInfo()`: use new `ffi/netinfo` module
2026-06-26 14:57:14 +02:00
Benoit Pierre ce99f48128 device/generic: cosmetic 2026-06-26 14:57:14 +02:00
Benoit Pierre b6956cde0e kopt: fix pthread cdefs
Now provided by `ffi/posix_h`.
2026-06-26 14:57:14 +02:00
hius07 16d97965b2 TextViewer: view html, markdown (#15588) 2026-06-26 08:38:58 +03:00
Mickaël Schoentgen 610df09e7a feat: add dutch reader.dict monolingual dictionary (#15589) 2026-06-23 09:31:21 +02:00
Commodore64user 4d9c47bf55 correct tense 2026-06-22 23:00:59 +01:00
Ahmed El Yaacoub 40f34e1d09 screensaver: add option to reduce cover sleep screen ghosting (#15568)
Adds 'Extra flash' setting that refreshes the cover image twice after
  it is shown, reducing ghosting on affected devices (e.g. Kobo Libra 2).
  Fixes #12950
2026-06-22 21:02:46 +02:00
hius07 80f0d16e56 filemanagercollection: fix removing book via file dialog (#15577) 2026-06-22 17:26:12 +03:00
David bb3514bdf1 flash word when starting indicator (#15571) 2026-06-21 17:29:57 +01:00
hius07 dc5cdf95bf dispatcher: rename QuickMenu actions (#15564) 2026-06-20 15:17:58 +03:00
Benoit Pierre cdd94c6f8d kindle: fix possible crash when not connected to a network but wifi is on (#15519) 2026-06-18 13:26:55 +02:00
David 33b7143223 [ReaderKeySelection] NT: add indicator overlay (#15547) 2026-06-17 19:24:46 +01:00
Nidhi 0557ada637 Add Malayalam keyboard (FUTO layout) (#15560) 2026-06-17 14:04:58 +02:00
kerivin 73182fd087 Enable 'Saturation' option if 'Color rendering' is on (#15542) 2026-06-16 19:44:44 +02:00
hius07 6c7954b5a0 page overlap: no indicator; actions (#15541) 2026-06-16 20:36:20 +03:00
Khiem Nguyen 399925003b fix(language): remove duplicate Vietnamese language entry (#15552) 2026-06-16 13:20:21 +02:00
poire-z a92dccfb39 ReaderSearch: enhanced search on CreDocuments 2026-06-16 07:38:40 +02:00
poire-z fd8bd1d8ff bump crengine: enhanced findText(); Malayalam hypnehation
Includes:
- TextLang, hyphenation: add Malayalam (ml)
- findText(): return list of ldomXRange instead of ldomWord
- findText(): implement tweakable enhanced search
- cre.cpp findText() and findAllText():
  Updated to handle returned ldomXRange instead of ldomWord,
  and added optional searchFlags params.
ReaderTypography: add Malayalam to the list of supported languages.
2026-06-16 07:38:40 +02:00
skitty 221547722b fix(cloudstorage): webdav not listing folders (#15532)
my webdav server (using [dav-server](https://crates.io/crates/dav-server/)) returns
```xml
<D:collection></D:collection>
```
instead of
```xml
<D:collection/>
```
2026-06-13 08:12:25 +02:00
Zhiqi Yao ce727e7736 Screen rotation: always show rotation mode options in file browser (#15505)
Previously rotation mode options were gated behind FileManager.instance,
which becomes nil when the Reader is opened (ReaderUI:doShowReader
explicitly closes the FileManager). This made manual rotation
inaccessible from the Reader view on all platforms, especially
noticeable on Android where hasGSensor is false and the menu otherwise
offers no way to change orientation.

Original reasoning from <https://github.com/koreader/koreader/pull/6309>:
> Before this PR we were always setting a screenmode and the checking what rotation to use, now we set rotations, and let koreader figure out what is the screenmode. (besides for the FM, which does not support landscape) now the only thing setting a screenmode is the FM.
> 
> This separates the rotation (physical) from the screenmode (portrait/landscape or H>W/W>H). I did not get into why the FM has to be portrait but if someone fixes that then the rotation and screenmode will be totally independent.
2026-06-06 21:18:10 +02:00
Frans de Jonge fa6b3cde8f [SDL,plugin/hotkeys] Process gamepad events (#15449)
Gives Hotkeys the ability to configure gamepads, at least to a degree. Advanced users might wish to use a shoulder button or a trigger as a modifier like in Tony Hawk or Devil May Cry. But in that case I suggest they might be advanced enough to make a follow-up PR as well. It's out of scope for this one anyway.

Things like deadzones might prefer to be independently configurable in the future, but then again it's a reader app.

Depends on <https://github.com/koreader/koreader-base/pull/2376>.
2026-06-06 20:56:55 +02:00
Commodore64user fb1dfebd9c add page turn event to textviewer 2026-06-06 14:34:06 +01:00
hius07 86f2f902a0 menu: search next entry (#15502) 2026-06-05 16:49:50 +03:00
hius07 e48161c166 Highlights: temporary highlight color (#15486) 2026-06-05 16:48:41 +03:00
Commodore64user 32a8c30c1f switch to single BD.mirroredUILayout call during registerKeyEvents 2026-06-04 17:41:26 +01:00
Commodore64user 25de07cab6 clear 'find in definition' search with TitleBar's close button (X) 2026-06-04 17:41:26 +01:00
Commodore64user 3980752af0 swap top/second rows in lookupInputWord 2026-06-04 17:41:26 +01:00
Commodore64user cf7023f05d replace readerrolling broadcast events with single-dispatch calls 2026-06-04 17:41:26 +01:00
hius07 70b8c529ee Open file: more honor associated provider (#15489) 2026-06-02 19:08:47 +03:00
Christo 50a7fc66a6 SDL: shell-escape openLink and external dict lookup args (#15491)
A PDF-controlled URL flowed into `os.execute` via single-quote
concatenation in `Device:openLink`. An embedded `'` in the URL closed
the intended quoting and the remainder was interpreted by the shell,
giving arbitrary command execution as the KOReader user once the user
chose "Open in browser" on an external link.

The same pattern existed in `doExternalDictLookup`'s command path:
the dictionary text was concatenated directly into the shell command
and `cleanSelection` does not remove shell metacharacters.

Use `util.shell_escape` at both sinks. The helper has been in the
codebase for years (used e.g. in `util.lua:928` for `df -kP`) and
quotes args with single quotes plus `'\''` escaping.

Fixes #15490
2026-06-01 18:38:31 +02:00
hius07 203f6aa164 Highlights: pre-highlighting prompt (#15473) 2026-06-01 08:19:10 +03:00
David c35c508be7 [TextBoxWidget] Find in definition (wiki edition) (#15356) 2026-05-31 13:52:30 +01:00
hius07 d246323ba2 Screensaver: don't load the module on unsupported devices (#15465) 2026-05-29 09:08:51 +03:00
hius07 67fcd424d6 ReaderDictionary: prettify dict download list (#15452) 2026-05-27 17:13:52 +03:00
Commodore64user 5789a09ded KeySelection: open links at current indicator position, footnote handling 2026-05-27 14:21:26 +02:00
Commodore64user 0f01690a19 KeySelection: start select mode when page is turned during text selection, see https://github.com/koreader/koreader/issues/13132 2026-05-27 14:21:26 +02:00
Commodore64user 2c0f541516 KeySelection: add per-doc support for RTL traversal 2026-05-27 14:21:26 +02:00
Commodore64user 82a5f20b25 KeySelection: snap crosshairs to words within crengine documents
for pdf/djvu files the crosshairs continues to work freely as before. This commit introduces primaraly the methods _getAdjacentLineWordRolling and _getAdjacentWordRolling which handle finding the next word vertically and horizontally respectviely. We now handle hyphenated words much more predictably in _isSplitHyphenatedWord as we no longer require using heuristics.
2026-05-27 14:21:26 +02:00
Commodore64user 952ebafe2d KeySelection: add new event handlers and call startIndicator from keyselection instead of readerui 2026-05-27 14:21:26 +02:00
Commodore64user 3d1b954f52 KeySelection: add getNearestWordAndBoxFromPosition, see https://github.com/koreader/koreader-base/pull/2345 2026-05-27 14:21:26 +02:00