Commit Graph
557 Commits
Author SHA1 Message Date
Frans de Jonge caf5e93f5a OPDS: cache parent, don't call updateCatalog when going back up (#16103)
Closes #16098.
2026-09-28 12:32:50 +02:00
Benoit Pierre 7c676e4020 tests: fix persist tests
No codec can serialize functions:
- for sane codecs, check trying to serialize data with functions result in an error
- for others codecs, check that attempting to deserialize back result in an error
2026-09-27 17:22:17 +02:00
Benoit Pierre 1911580b87 tests: tweak persist tests
To make it easier to identify the codec in case of failure.
2026-09-27 17:22:17 +02:00
Frans de Jonge d9cd2788e4 Button: pass through alpha (#16080)
References <https://github.com/koreader/koreader/pull/15229#issuecomment-4485027741>.
2026-09-23 22:18:25 +02:00
Frans de Jonge d9788bdf90 [plugin] OPDS: add cookie jar (#16075)
Closes #16073.
2026-09-18 17:02:21 +02:00
Wilber Carrascal 1e595a48a3 OPDS: support per-catalog sync folders (#15615)
Closes #14201.
2026-09-17 10:43:03 +02:00
okaykoaandFrans de Jonge 0f4836ecad Add layout framework for external keyboard text input (#16024)
Fixes #13278.

* Add correct external keyboard punctuation key names
* Compose physical-keyboard text via a layout and TextInput
* Expand to multiple possible layers
* Add XKB conversion script
* Give ourselves some dead key support
* Add license identifier
* Improve AltGr
* Group the layouts together
* And add the common layouts
* Expand with regular US international (with regular non-AltGr dead keys)
* Add some other scripts (that should do it)
* [fix] Avoid rotating up/down in external keyboards along with the device orientation
* Log keyboard layout in case of issues
* Also listen to PrintScr 'cause that's what the thing is for, isn't it

---------

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2026-09-16 20:33:07 +02:00
robtekky 7e6c9a4fb3 Calibre: add collection synchronization (#16039) 2026-09-13 10:38:23 +02:00
Frans de Jonge ff49a8f251 ReaderFooter: fix undefined getPosFromXPointer crash on some paged documents in scroll mode (#16048)
Fixes #15910.
2026-09-10 11:33:03 +02:00
Commodore64user 062a844ea9 button_spec.lua add unit test 2026-09-09 16:57:13 +01:00
Jinyang Liu fc88887662 VirtualKeyboard: preserve concurrent taps (#15840) 2026-08-22 19:52:51 +02:00
3milioD 0b6beff322 Fix sharing highlights as JSON (#15865) 2026-08-13 09:26:56 +02:00
Brendan LeFebvre 8faf6b8ef1 OPDS: fix duplicate PDF download button (#15850)
The arxiv .pdf-suffix workaround ran unconditionally after the rel
handling, so an acquisition link with type="application/pdf" and no
.pdf suffix was added twice. Only apply it when the link produced no
acquisition above.

Fixes #15849
2026-08-10 16:26:21 +02:00
poire-z a72790090c bump base+crengine: CSS font-face and text layout enhancements
Includes:
base:
- Android: let the system handle power key events
- pocketbook: fix inkview version check
- thirdparty/giflib: add download mirrors
- blifbuffer: refix rounded corners
crengine:
- cmake: add setting for custom memory manager use
- fix `USE_ANSI_FILES` setting
- lvtextfm: word expansion: avoid involving space condensing
- lvfntman: subpixel/fractional HarfBuzz glyph positioning
- CSS/lvfntman: consolidate `@font-face` parsing and handling
- bump CACHE_FILE_FORMAT_VERSION
- cre.cpp:
  - fix getLinkFromPosition()
  - add getLangTagForTextFromPosition()
  - tweak getLinkFromPosition()
frontend:
- set font.fractional.positioning to strength 2
  (but keep unit tests using 0)
2026-08-07 21:50:15 +02:00
Igor Velkov b92abbb336 FocusManager: put the focus keys back when a keyboard goes away (#15819) 2026-08-07 18:15:44 +02:00
Igor VelkovandClaude Fable 5 68297ac202 ReaderToc: expand/collapse the focused node with arrow keys on non-touch devices (#15780)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 17:30:52 +02:00
Igor Velkov 607c47cf3c luxl: keep attribute values that are not ASCII (#15758)
char_type classifies ASCII only, and the states that read an attribute value
have no catch-all transition, so the first byte >= 0x80 drops the value.
2026-07-29 17:35:30 +02:00
Tong 533c1612d1 Support SDL stylus input (#15344) 2026-07-11 08:55:29 +02:00
hugo2233 c49ab9f8f1 Refactor DepGraph node handling (#15659)
Behavior is unchanged.
2026-07-09 07:14:12 +02:00
collaed 009367df7a KOSync: queue failed progress updates for retry on reconnect (#15324)
When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.

Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout

Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
  with goOnlineToRun (avoids WiFi prompts on document close)

Fixes #9267, fixes #10678, fixes #11105
2026-07-08 19:27:10 +02:00
anaxonda 72d4c924a1 DjVu: preserve text-layer reading order in selection (#15298)
Fixes #15286.
2026-07-08 19:15:16 +02:00
Christo dfbe99e457 OPDSParser: handle self-closing content tags (#15515)
A self-closing content tag (`<content type="text"/>`) has no `">` of its own,
so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next
entry's content tag and collapses everything in between -- links included --
into a single `<content>`. luxl then parses a mangled tree: entries are dropped
and covers get paired with the wrong titles.

Normalize self-closing content tags to an empty `<content />` element before
that rewrite. Adds a regression test with a self-closing content tag between
two entries.

Fixes #15511
2026-07-08 19:06:33 +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 c35c508be7 [TextBoxWidget] Find in definition (wiki edition) (#15356) 2026-05-31 13:52:30 +01:00
Noa Himesaka 06c9eea0d4 feat: saturation control (#15381) 2026-05-24 08:14:27 +02:00
kerivin cb46108e4c Isolate PDF SMask (#15401)
Closes #7992.
2026-05-18 19:15:02 +02:00
hius07 b2aa813980 Plugin disable dialog (#15341) 2026-05-09 09:42:51 +03:00
Иван Vandot 41c9e02b5b NewsDownloader: per-feed max_age option (#15322) 2026-05-02 10:49:38 +02:00
Nick Perez 5941d022a4 KOSync: optionally send document metadata with progress sync (#15306)
Send a metadata object (filename, title, authors) with progress sync
requests when the user opts in via a new 'Send document metadata' toggle
(default off). The metadata is silently ignored by the official sync
server but can be used by custom sync servers.

Closes #13810
Ref: #8764
2026-04-29 12:59:52 +02:00
Saterz_ 0c1093cba6 Feature: Add a two different submenus for built-in and user plugins (#15245)
Closes #15242.
2026-04-27 17:49:10 +02:00
Saterz_ 6121412202 Feature: implement the ability to delete plugins (#15240) 2026-04-06 18:34:50 +02:00
Frans de Jonge 928e1671cd [spec] commonrequire: fix plugin name in load_plugin 2026-04-05 21:52:53 +02:00
Frans de Jonge eb6fb1d7d3 PluginLoader: use directory name for enabled/disabled, deprecate metadata name
Presumably fairly similar to <https://github.com/OGKevin/koreader/commit/20ff60da3e7a776ce953e41e6912fe3eee3aa3ce> given the similar goal.
2026-04-05 21:52:53 +02:00
Frans de Jonge 32bccdb566 [chore] Clean up unused util in dispatcher_spec.lua (#15093) 2026-03-08 12:43:36 +01:00
Frans de Jonge 9b03ee8c6d Add basic Dispatcher spec (#15062) 2026-03-08 12:30:28 +01:00
Min S. Kim 4cc49962c3 OPDS: guard against entries with no URL in sync
Add a nil check on entry URL in getSyncDownloadList to prevent a
crash when a feed entry has no navigation link. Add a test for
single-quoted attribute feeds.
2026-03-03 23:06:10 +01:00
Christoph Michel 82115dac74 NewsDownloader: fix path separator encoding bug (#14975) 2026-02-14 12:23:15 +01:00
Emdioh 4d38174e30 util.urlEncode: encode parentheses and quote (#14718)
Closes #14715.
2026-01-31 01:13:18 +01:00
Frans de Jonge 105694e117 [plugin] NewsDownloader: add HTTP basic authentication (#14303)
Closes <https://github.com/koreader/koreader/issues/13300>.
2025-09-14 15:50:49 +02:00
Frans de Jonge eb00488fa6 [plugin] OPDS: ignore query string in file extension workaround (#14304)
Closes <https://github.com/koreader/koreader/issues/14300>.
2025-09-11 21:46:40 +02:00
hius07 826455961d Export highlights: customizable export filename (#14212) 2025-08-26 09:41:09 +03:00
Zeedif f7b160bdda feat(opds): add support for facets via a context menu
This commit introduces support for OPDS 1.2 facets, enabling advanced filtering and sorting in compatible catalogs.

To maintain a clean and uncluttered book list, facet options are presented in a dedicated context menu. When a catalog provides facets or a search link, the top-left button now triggers a menu with all available actions.

- Facet links are parsed and grouped by the `opds:facetGroup` attribute.
- The context menu includes facet groups, search, and bookmarking.
- Adds support for `opds:activeFacet` and `thr:count`.
- The parsing logic now cleanly separates feed-level links from entries, correctly handling catalogs with facets but no initial items.
- Unrelated style changes were reverted and the test suite was improved for reliability.
2025-07-28 10:18:38 +02:00
Benoit Pierre 456ce2fa36 gettext: switch to binary catalogs
Binary catalogs are more space efficient (total translations disk usage:
14MB instead of 35MB), and easier and faster (roughly 10 times) to load:
no parsing, and less processing (no need to unescape strings).

Not much difference on the Android APK size (a ~600KB reduction), but
other TAR.GZ / ZIP distributions see a reduction of ~3.5MB.
2025-06-21 17:47:15 +02:00
Benoit Pierre b8369d743a tests: fix newsdownloader tests isolation (#13954)
Cf. https://github.com/koreader/koreader/pull/13953#issuecomment-2972614736.
2025-06-14 21:14:25 +02:00
Frans de Jonge 0257caad05 Add tests for NewsDownloader (#13806)
To help prevent situations like #13799.

As also referenced in <https://github.com/koreader/koreader/pull/13407#issuecomment-2722714846>.

Also fixes single item RSS and single entry Atom feeds in passing.

References #3073.
2025-05-30 19:20:17 +02:00
hius07 70fcc90a3c Highlights: quicker Style and Note marker dialogs (#13223)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Waiting to run
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Waiting to run
2025-02-12 09:14:03 +02:00
NiLuJe aa421bf277 GestureDetector: Translate start & end gesture positions when rotated (#13101)
* GestureDetector:adjustGesCoordinate: Remove one layer of indirectiçon in
direction translation

That function call wrapper felt pretty unnecessary to me ;).

* GestureDetector: Translate complex gesture positions, too

i.e., if there's a start and end position, translate those, too.

Fix #13090
2025-01-31 18:30:23 +01:00
Frans de Jonge 63bf9d5bdf Add CacheSQLite (#13131)
Persist is intended for larger objects, which works best for things like cached tiles with some metadata.

For many small to medium entries that you nevertheless don't necessarily want to keep around in memory, that seems a bit inefficient.

SQLite then, is effectively a way of minimizing the amount of writes in this scenario.

Relates to #13061. Depends on #13122.
2025-01-29 21:33:44 +01:00
Benoit Pierre d270f08ceb bump base (#13140)
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
- https://github.com/koreader/koreader-base/pull/2016
2025-01-25 21:58:40 +01:00
Frans de Jonge d98639f341 Persist: add support for zstd serialization/deserialization in memory (#13122)
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
2025-01-24 22:43:16 +01:00