100 Commits
Author SHA1 Message Date
Frans de Jonge 1e2fa5f123 Update translations for v2026.07 (#15743) 2026-07-26 13:44:50 +02:00
Frans de Jonge 388a057f0a device/kobo: add Kobo:otaModel() like on Kindle for uniformity (#15713)
Follow-up to #12401.
2026-07-21 18:26:05 +02:00
Frans de Jonge c6f6e75021 Revert "[Kindle Scribe] Add support for kindle scribe stylus events (#14908)" (#15675)
This reverts commit 9f7a0e420d.
2026-07-12 22:09:04 +02:00
Frans de Jonge 7b2cdc05f2 NetworkListener: fix typo (#15656) 2026-07-08 20:49:17 +02:00
Frans de Jonge be7fc98452 NetworkListener: guard against auto_disable_wifi enabled by user on unsupported devices (#15655)
Closes #15397.

Also see #15183.
2026-07-08 19:05:20 +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
Frans de Jonge b83b24307d ReaderHighlight: clear selection after showing OCR infomessage (#15213)
Fixes #15209.
2026-05-19 22:50:09 +02:00
Frans de Jonge 659a649732 Bump base (#15411)
* Support SDL3 pen events (koreader/koreader-base#2351)
* dropbear: update to 2026.91 (koreader/koreader-base#2359)
* Isolate PDF SMask (koreader/koreader-base#2361)
2026-05-18 17:58:07 +02:00
Frans de Jonge 4181d51a1d Improve EmmyLua config (#15362) 2026-05-10 13:01:07 +02:00
Frans de Jonge 1ad6674eec BookStatusWidget: improve note gesture handling (#15311)
Fixes #15134.
2026-04-27 18:24:04 +02:00
Frans de Jonge ee94423ae3 [Android] Bump luajit-launcher (#15251) 2026-04-09 07:58:32 +02:00
Frans de Jonge 6fd48d8739 [fix] NewsDownloader: reduce content-type to mimetype (#15189)
Fixes #15174.

Regression in #15065.
2026-03-26 17:30:20 +01:00
Frans de Jonge c52439c4a8 Bump base for mupdf: add annotation type and contents getters (#15092)
* cmake: cleanup some glibc version conditionals https://github.com/koreader/koreader-base/commit/17b401c9461cef1392a39414a1ab31335d308c07
* xz: avoid pulling __sched_cpucount@GLIBC_2.6 on older glibc versions https://github.com/koreader/koreader-base/commit/af4e2418095e146666628f7f79efcd0359d006a6
* mupdf: add annotation type and contents getters https://github.com/koreader/koreader-base/pull/2287
2026-03-08 13:01:11 +01: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
Frans de Jonge f873292f48 [i18n] Add Gaelic language (#15091) 2026-03-08 12:29:44 +01:00
Frans de Jonge 1ff1124a9b Update translations for v2026.03 (#15090) 2026-03-08 12:24:14 +01:00
Frans de Jonge a3f00b8bfc Tweak bug report template: nightly test not required, avoid automatic reference to nightly ticket (#15084)
See <https://github.com/koreader/koreader/pull/15072#issuecomment-4016113442>.
2026-03-07 17:27:31 +01:00
Frans de Jonge 9f10243be0 [doc] Add checklist about external plugins/patches, testing nightly and searching issues to bug report template (#15072)
Also add field asking for regression info.
2026-03-05 08:47:16 +01:00
Frans de Jonge d4f99025f5 [fix] BookStatusWidget: remove unused (#15060) 2026-03-02 17:54:21 +01:00
Frans de Jonge 6783e7bd1d BookStatusWidget: fix impossible to exit review editing due to focus loop (#15055)
Due to the way this was wired, #14937 trigged BookStatusWidget:onSwitchFocus() when closing, which caused the review input dialog to pop right back up again.

But it doesn't look like you're actually supposed to be able to type in there at all, so I replaced it with a TextBoxWidget.
2026-03-01 21:51:53 +01:00
Frans de Jonge 6d86891d92 Bump base for lua-Spore: Patch to accept more content-types as json (#14964)
https://github.com/koreader/koreader-base/pull/2262

See https://github.com/koreader/koreader/issues/14596#issuecomment-3884542800
2026-02-11 15:07:50 +01:00
Frans de Jonge e42fde7e36 [plugin] Wallabag: enforce starting URL with http or https (#13948)
Offer a choice between http and https if neither is found.

Fix #12499, fix #13947.
2026-01-10 15:52:33 +01:00
Frans de Jonge 17869473e1 [plugin] NewsDownloader: support content:encoded with attributes (#14660)
Fixes #14648.

Same fix as #13799.
2025-11-24 23:03:48 +01:00
Frans de Jonge 8726233277 Update translations for v2025.10 (#14544) 2025-11-01 11:36:44 +01:00
Frans de Jonge b28a6e5ca9 HTMLBoxWidget: add setRawContent() (#14480) 2025-10-19 19:16:53 +02:00
Frans de Jonge edc0203a7c Android: auto-grant MANAGE_EXTERNAL_STORAGE for faster dev testing (#14366) 2025-09-28 00:42:12 +02:00
Frans de Jonge cf745c77cf SSH: fix typo, 'show' not 'Show' (#14370) 2025-09-28 00:36:50 +02:00
Frans de Jonge 2707f5b128 InputText: remove addChar only on hasDPad restriction (#14360)
See <https://github.com/koreader/koreader/discussions/14358>.
2025-09-24 22:22:49 +02:00
Frans de Jonge 735b6e983a Add README for metadata files (#14344)
References #14342.
2025-09-20 18:16:23 +02:00
Frans de Jonge d2d39c503d KoptInterface: prevent crash when word is nil 2025-09-15 19:49:11 +02:00
Frans de Jonge e5dca93eba Autodetect OCR languages
Messing about with advanced settings is kind of annoying, isn't it?

In reply to <https://github.com/koreader/koreader/issues/11147#issuecomment-2571602782>.
2025-09-15 19:49:11 +02:00
Frans de Jonge a6e9c6b4b2 ConfigDialog: support single value select 2025-09-15 19:49:11 +02: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 d1e2f586ce Add a config file for EmmyLua Analyzer Rust LSP (#14319)
Also see <https://github.com/koreader/koreader/pull/10611>. There's some degree of compatibility with the LuaLS config `.luarc.json` but it didn't seem to work all that well.
2025-09-14 08:10:19 +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
Frans de Jonge 7dcdd6bb43 NewsDownloader: log deserialization error (#14282)
References <https://github.com/koreader/koreader/issues/14277>.
2025-09-11 19:15:29 +02:00
Frans de Jonge ef8349f0cf [minor, lang] Fix 'invert page turn taps and swipes' string (#14281)
See https://github.com/koreader/koreader/pull/13382#issuecomment-3237817634
2025-09-05 17:20:55 +02:00
Frans de Jonge 2670a3fc2f OPDS: URL encode search (#14248)
Fixes #13693.
2025-08-31 14:42:02 +02:00
Frans de Jonge d3c5ee3d6f Add .htmlz to supported filetypes (#14240)
Closes #13436.

Also see <https://wiki.mobileread.com/wiki/HTMLZ>.
2025-08-29 12:14:09 +02:00
Frans de Jonge 42b61d29e8 Wallabag: fix archive_finished initialization logic (#14221)
Closes #14214.
2025-08-27 18:13:11 +02:00
Frans de Jonge 19f3278d6b Update translations after v2025.08 (#14184)
To keep things in sync a bit.
2025-08-17 12:33:54 +02:00
Frans de Jonge 11d008e93b Add .footnote1 class to classic classname footnotes style tweak (#14119)
These would be likely to show up after a calibre conversion. See <https://www.mobileread.com/forums/showthread.php?p=4527981#post4527981>.

I'm not entirely sure to what extent it's wise to add, but we already have some equivalents after all.
2025-07-31 20:26:58 +02:00
Frans de Jonge 70039c9f04 [plugin] Terminal Emulator: implement delWord for terminal (#14059)
Fixes #14049.
2025-07-15 15:40:48 +02:00
Frans de Jonge 07845f29a3 Revert "doc: fix macOS build instructions (#14030)" (#14033)
This reverts commit 8a7e077cdd.
2025-07-07 19:40:27 +02:00
Frans de Jonge da245628e0 [plugin] NewsDownloader: fix getEmptyFeed() call (#13945)
Accidentally changed in #13806.

Closes #13933.
2025-06-13 11:51:57 +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
Frans de Jonge 76e88f9129 [plugin] NewsDownloader: fix RSS feeds (#13799)
Regression in #13407.

Reported in <https://github.com/koreader/koreader/discussions/13752#discussioncomment-13166619>.
2025-05-16 12:10:02 +02:00
Frans de Jonge 79f326b5d0 Add a new Kobo Clara BW device ID and codename (#13648)
References #13644. FBInk support currently absent.
2025-04-21 18:59:32 +02:00
Frans de Jonge 4638929e86 Issue template: ask for firmware version (#13637)
It wasn't in the old template, and I didn't think of it for #13633

See #13636
2025-04-20 21:46:29 +02:00
Frans de Jonge 0e2a462d52 Issue template: convert to form and add log instructions for deskop (#13633)
Follow-up to <https://github.com/koreader/koreader/pull/13632>, also see <https://github.com/koreader/koreader/pull/13619#issuecomment-2816833050>.
2025-04-20 11:12:32 +02:00
Frans de Jonge 8e03808047 NetworkManager: check if proxy URL can be parsed (#13562)
Closes #12839.
2025-04-14 17:12:46 +02:00
Frans de Jonge b58fc372ab Update translations for v2025.04 (#13537) 2025-04-09 15:38:54 +02:00
Frans de Jonge 45f77455a9 [plugin] calibre: fix a nil concatenation typo (#13484) 2025-04-07 21:15:38 +02:00
Frans de Jonge d94a9d016d [CI] git fetch first in after_success_docs_translation.sh (#13468) 2025-03-27 14:41:15 +01:00
Frans de Jonge 5b8e26f7b8 [CI] Fix git checkout order in after_success_docs_translation.sh (#13467) 2025-03-27 14:33:14 +01:00
Frans de Jonge 38695119ca [CI] exit 1 on failure in after_success_docs_translation.sh (#13466)
References #13277.
2025-03-27 14:17:44 +01:00
Frans de Jonge 5a92aa2b51 [plugin] HttpInspector: avoid crash when port can't be bound (#13421)
See <https://github.com/koreader/koreader/issues/13420#issuecomment-2726311224>.
2025-03-15 18:03:44 +01:00
Frans de Jonge cfbb676d77 Bump base (#13396)
* https://github.com/koreader/koreader-base/pull/2043
* https://github.com/koreader/koreader-base/pull/2044
* https://github.com/koreader/koreader-base/pull/2042
2025-03-10 19:09:55 +01:00
Frans de Jonge 23ed86a0f8 [plugin] HTTPInspector: return InputEvent on every call to reset standby/suspend timer (#13339)
Fixes #13303.
2025-03-04 11:26:37 +01:00
Frans de Jonge fdd1b423bd [minor] Fix "Screen timeout" capitalization (#13332) 2025-02-27 10:06:55 +01:00
Frans de Jonge cee259b885 [plugin] Terminal: improve LDoc module definition for terminputtext.lua (#13273)
Closes #13272.
2025-02-17 15:09:31 +01:00
Frans de Jonge b8a31ef182 [plugin] NewsDownloader: don't try to strip <script> tags (#13260)
`<script src="etc"></script>` is turned into `<script/>`, which can cause far too much to be stripped.

While that could be dealt with a bit better, for example by first stripping self-closing and then regular, it feels hacky to do so.

See <https://github.com/koreader/koreader/pull/13188#issuecomment-2660362639>.
2025-02-15 10:37:49 +01:00
Frans de Jonge c65e7971ec Fix typo in PocketBook init (#13238)
See https://www.mobileread.com/forums/showthread.php?p=4488302#post4488302
2025-02-11 20:59:36 +01:00
Frans de Jonge 56c08020d7 NewsDownloader: process HTML with cre.getBalancedHTML() to ensure self-closing tags like <hr> are closed like <hr/> (#13188)
Works around the issue in <https://github.com/koreader/koreader/issues/13173#issuecomment-2628027654>.
2025-02-02 13:34:38 +01:00
Frans de Jonge 763264a102 NewsDownloader: some random cleanup (#13182)
Dead code, redundant comments, indentation.
2025-02-01 18:11:23 +01:00
Frans de Jonge 8b31f68462 [chore] NewsDownloader: remove dead code (#13178) 2025-01-31 18:06:39 +01:00
Frans de Jonge d6941bc339 NewsDownloader: add a cache to reduce wasted bandwidth (#13171)
Closes #13061.
2025-01-31 17:59:08 +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
Frans de Jonge c1f6a02fa0 NewsDownloader: deal with 404 and other error statuses better (#13165)
May be relevant to #9363. In any case one of the most typical kind of failures wasn't treated properly, so a 404 would mess up everything instead of popping up a dialog.
2025-01-29 18:10:13 +01:00
Frans de Jonge 2b23b2f8ee ReaderHighlight: add overlooked "crosshairs" (#13152)
See #13145.
2025-01-27 12:11:23 +01:00
Frans de Jonge d98639f341 Persist: add support for zstd serialization/deserialization in memory (#13122) 2025-01-24 22:43:16 +01:00
Frans de Jonge 69d79cdc0e [doc] Update Trapper:info() documentation (#13095)
Overlooked in #13073.
2025-01-19 23:28:27 +01:00
Frans de Jonge f7337a88aa [minor] Remove accidental self from util.calcFreeMem() (#13096) 2025-01-19 22:20:53 +01:00
Frans de Jonge bb93c44346 [minor] Normalize more requires (#13074)
I thought I had them all in <https://github.com/koreader/koreader/pull/13055> but I seem to have missed a few.
2025-01-17 21:20:16 +01:00
Frans de Jonge 8314838add [plugin] NewsDownloader: make <title> match less greedy (#13070)
On most pages it works fine, but on pages with multiple `</title>` it can match very large amounts of text.

Valid examples include `<svg>` in the HTML, where [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title) is used similar to `title=""` in HTML, but of course there could also simply be invalid pages.
2025-01-15 10:07:27 +01:00
Frans de Jonge 87d1678b02 [minor, plugin] NewsDownloader: fix a string that's concatenated without space or newline (#13071) 2025-01-15 10:06:49 +01:00
Frans de Jonge eb6d4ff422 EPUB: unify include_images logic (#13063)
Other than the slightly different InfoMessage.
2025-01-14 22:23:37 +01:00
Frans de Jonge 4eea3f0cda [i18n, plugins] Wallabag: use ngettext for plural (#13062) 2025-01-13 18:26:14 +01:00
Frans de Jonge 12b075a4ac [minor] normalize a few requires (#13055) 2025-01-13 08:33:18 +01:00
Frans de Jonge 6792bb0a06 [plugin] Gestures, Hotkeys: attempt to work around corrupted gestures file (#13054)
See #13009 for details.

LuaSettings attempts to read a backup if the main doesn't work. If that doesn't work it returns an empty `data` table. But gestures expects there to be defaults inside.
2025-01-13 08:31:06 +01:00
Frans de Jonge ea23f0c9aa EPUB: mimetype file should not be compressed (#13057)
According to epubcheck.

```
Mimetype file should only contain the string "application/epub+zip" and should not be compressed.
```
2025-01-12 22:09:19 +01:00
Frans de Jonge 9b444cba89 processImg: skip data URI (#13034)
This is the underlying reason that The Verge + download full article fails, see <https://github.com/koreader/koreader/issues/12953#issuecomment-2580784621>.
2025-01-09 22:41:36 +01:00
Frans de Jonge 274dd6dab3 [plugin] NewsDownloader: use first feed description if it's a table in RSS (#13032)
Similar to the logic for Atom in #12959.

Reported in https://github.com/koreader/koreader/issues/12953#issuecomment-2580784621

Sample feed https://www.engadget.com/rss.xml
2025-01-09 19:10:15 +01:00
Frans de Jonge cbe211190f [plugin] ReadTimer: interpret the past as a time tomorrow (#12985)
Fixes #12984.
2025-01-05 17:04:10 +01:00
Frans de Jonge 3aa78cbfcb Bump base for KindleHF: Downgrade mtune to A9 (#12996)
Fixes #12988 (with koreader/koreader-base#2014)
2025-01-03 17:27:25 +01:00
Frans de Jonge 65e4124e5d socketutil: use Device.model directly (#12992)
Device:info() is multiline on Android, see https://github.com/koreader/koreader/pull/12977#issuecomment-2568355984
2025-01-02 23:06:55 +01:00
Frans de Jonge 016592e0a3 [plugin] NewsDownloader: add primitive support for relative URLs (#12980)
Fixes #8611.
2025-01-02 12:45:22 +01:00
Frans de Jonge 10f627e3f9 [plugin] NewsDownloader: reduce HTML idiosyncracies (#12976) 2025-01-02 12:42:10 +01:00
Frans de Jonge 2b5915177d socketutil: remove URL from user agent, add device info (#12977)
See #10186, <https://github.com/koreader/koreader/issues/12953#issuecomment-2565973079>

Results in:

```
KOReader/2024.11-112 (Emulator; Linux; x64) LuaSocket/3.1.0
```
2025-01-01 14:16:04 +01:00
Frans de Jonge c589db9f61 [plugin] NewsDownloader: fail gracefully when date can't be parsed (#12978)
Fixes #9358.
2025-01-01 12:25:31 +01:00
Frans de Jonge a707b7c163 [plugin, i18n] CoverBrowser: add missing plural (#12968) 2025-01-01 10:56:04 +01:00
Frans de Jonge 871b8cf381 [plugin] NewsDownloader: download images without extension (#12969)
Fixes #12967.
2024-12-31 15:49:25 +01:00
Frans de Jonge a94a2e07ce [lang] Exporter → Nextcloud: use proper arrow (#12970) 2024-12-31 11:44:26 +01:00
Frans de Jonge b93ce8ba4b [plugin] NewsDownloader: switch default to download_full_article=false (#12965)
It's a saner default. Much of the time it won't just work but it'll work *significantly better* than `download_full_article=true`.

Additionally it should reduce the chance of being seen as abuse, cf. <https://github.com/koreader/koreader/issues/12953#issuecomment-2565973079>.

Also see #3172.

Since both the UI and the default config include the value, impact may be surprisingly limited.
2024-12-31 00:18:11 +01:00
Frans de Jonge 8de936e4d8 [plugin] NewsDownloader: fix Atom download_full_article=false not working (#12959)
Fixes #3172.
2024-12-31 00:15:36 +01:00
Frans de Jonge b8af072d9f [plugin] NewsDownloader: support single-entry feeds (#12958)
Fixes #12953.
2024-12-29 17:50:39 +01:00
Frans de Jonge d99e42ff27 bump base (#12894)
Includes:

* sqlite: update to 3.47.2 (koreader/koreader-base#1999)
* mupdf: fix finalizers (koreader/koreader-base#2001)
* mupdf: allow memory streams to load resources (koreader/koreader-base#2002) for #12877
* thirdparty/lua-Spore 0.3.4 (koreader/koreader-base#2003)
2024-12-11 23:56:29 +01:00
Frans de Jonge 0e4bd1be89 Screenshoter: add filename and page number (#12887)
Closes #12695.
2024-12-11 20:56:01 +01:00
Frans de Jonge 9de3b33421 [plugin] Patch management: fix disabling plugin (#12849)
Fixes #12841.
2024-12-04 23:47:20 +01:00