Commit Graph

11018 Commits

Author SHA1 Message Date
Frans de Jonge b8a31ef182 [plugin] NewsDownloader: don't try to strip <script> tags (#13260)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
`<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
hius07 5a6fd741cd Style tweaks: add 'Set on/off' action to Dispatcher (#13242)
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-14 18:53:24 +02:00
David 901b1b5430 [Hotkeys] override self.ui.fonts key_events (#13257)
* Removed [now] unnecessary conditions when removing actions for hotkeys in the `HotKeys:genMenu` function. No longer needed as of #13227

* Added code to reset key events for the overlooked `font` UI component in the `HotKeys:overrideConflictingKeyEvents` function.
2025-02-14 17:23:34 +01:00
hius07 435c2868a9 ReaderUI: fix BookList cache (#13245)
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-13 17:53:17 +02:00
Martín Fernández a1ac782a2f calibre.koplugin: show message when attempting to connect via dispatcher (#13237)
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
closes #13193

Using an InfoMessage instead of a notification because another infomessage will follow with success/error.
2025-02-12 19:18:37 +01: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
Frans de Jonge c65e7971ec Fix typo in PocketBook init (#13238)
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
See https://www.mobileread.com/forums/showthread.php?p=4488302#post4488302
2025-02-11 20:59:36 +01:00
Martín Fernández eea6c5465d Exporter: migrate to rapidjson (#13204) 2025-02-11 14:28:55 +01:00
hius07 41dd3d5d8a OPDS: raw server filenames for download (#13230)
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-11 14:10:57 +02:00
farfromrefuge 48471eaa24 android: Add OSS-Dict (#13224)
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
https://github.com/farfromrefug/OSS-Dict
2025-02-10 16:48:32 +01:00
hius07 2d4ffa9e3e Dispatcher: fix remove actions (#13227)
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Has been cancelled
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Has been cancelled
Closes #13226.
2025-02-09 11:41:23 +01:00
hius07 aa1e96f7d7 Collections: search in book content (#13139) 2025-02-09 11:34:56 +01:00
hius07 68cfd96203 Dispatcher: action list fixes (#13167)
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Has been cancelled
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Has been cancelled
2025-02-07 19:27:54 +02:00
David 3902ada36b Remove screenshot setting from unsupported devices (#13221)
See #12293
2025-02-07 13:38:21 +01:00
David 8e886f5631 [Hotkeys] refactor hotkey list and update callbacks (#13219)
Cf.  #13078
2025-02-07 13:19:22 +01:00
hius07 4c431e7566 Highlights: fix page boxes cache (#13200)
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-02-07 08:30:21 +02:00
yparitcher a15c294bc2 Kindle: demote Warn to Info
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Has been cancelled
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Has been cancelled
2025-02-02 15:47:29 -05:00
Frans de Jonge 56c08020d7 NewsDownloader: process HTML with cre.getBalancedHTML() to ensure self-closing tags like <hr> are closed like <hr/> (#13188)
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
Works around the issue in <https://github.com/koreader/koreader/issues/13173#issuecomment-2628027654>.
2025-02-02 13:34:38 +01:00
David f516d21913 [SortWidget] add cancelOrClose method (#13189) 2025-02-02 13:31:27 +01:00
David d66527cd0e [ReaderFooter] keep menu open after arranging items in status bar (#13168)
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-02-01 21:12:41 +01:00
hius07 8606b132e4 Couple of minor fixes (#13185) 2025-02-01 21:25:51 +02: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 2604f7da8d NewsDownloader: add support for cache-control and retry-after header
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-31 23:06:06 +01:00
Frans de Jonge 7bc8f9bd3d NewsDownloader: update cached content and headers with response 2025-01-31 23:06:06 +01:00
Frans de Jonge d33247967e NewsDownloader: add If-None-Match to headers
Missing in #13171.
2025-01-31 23:06:06 +01: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 3dba40d884 [chore] NewsDownloader: reduce log verbosity in EpubDownloadBackend 2025-01-31 18:29:10 +01:00
Frans de Jonge 26d19c3c73 [chore] NewsDownloader: remove custom redirect handling
It's been implemented in LuaSocket http.request() in the meantime.
2025-01-31 18:29:10 +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
David 03500bc17e [screenshoter] remove 'set as wallpaper' from devices with special offers (#13110)
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-31 10:55:55 +01:00
hius07 7dc75d313c Update readerview.lua (#13169)
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
Fix resetHighlightBoxesCache()
2025-01-30 20:04:52 +02:00
hugleo bc2c205cf8 Bump luajit-launcher (#13170)
Fix DeviceInfo for InkBook Focus and InkBook Focus Plus
2025-01-30 17:46:59 +01:00
hugleo 9911ef71d1 Bump luajit-launcher (#13166)
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
Fix DeviceInfo for InkBook Focus and InkBook Focus Plus
2025-01-30 00:49:45 +01:00
David bc7ef61157 [SortWidget] NT: improve moving items around with more key events (#13154)
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-30 00:03:24 +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
hius07 08b9fd9aa7 "Invert page turn taps and swipes" fix (#13155)
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-28 18:54:31 +02:00
hius07 b17353d206 booklist: fix status (#13157) 2025-01-28 18:53:57 +02:00
David 1698f22a9d [NT] ReaderHighlight: improve selection of hyphenated words (#13129) 2025-01-28 16:52:27 +01:00
Benoit Pierre 89a24dabd8 always compile with debug information (#13151)
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Has been cancelled
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Has been cancelled
Cf. https://github.com/koreader/koreader-base/pull/2022.
2025-01-27 12:43:48 +01:00
Frans de Jonge 2b23b2f8ee ReaderHighlight: add overlooked "crosshairs" (#13152)
See #13145.
2025-01-27 12:11:23 +01:00
David 983622a372 ImageWidget: fix stretch limit not being obeyed (#13105) 2025-01-27 12:09:06 +01:00
Benoit Pierre f6b54ec6c7 bump base (#13150)
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/2015
- https://github.com/koreader/koreader-base/pull/2017
- https://github.com/koreader/koreader-base/pull/2018
- https://github.com/koreader/koreader-base/pull/2019
- https://github.com/koreader/koreader-base/pull/2020
- https://github.com/koreader/koreader-base/pull/2021
- https://github.com/koreader/crengine/pull/611 (close #13019)
2025-01-26 22:25:00 +01:00
David 011552279a [ReaderHighlight] rewrite some UI strings (#13145) 2025-01-26 19:33:31 +01:00
hius07 e40512387a ReaderStatus: fix End of Document action (#13144)
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-26 13:51:34 +02:00
hius07 9bcd09633c Gesture manager and Profiles: improve Dispatcher actions menu (#13078) 2025-01-26 11:10:49 +02:00
Benoit Pierre 9eeb23104f ci/macos: tweak ccache handling (#13141)
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
Ensure the cache does not get removed after being stale when not bumping base for more than 7 days.
2025-01-25 23:05:14 +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
hius07 cda2dcaacc BookShortcuts: open file with associated provider (#13106)
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-25 12:26:18 +02:00