Commit Graph

11028 Commits

Author SHA1 Message Date
David
b758d7cd5e [DoubleSpinWidget, SpinWidget] change values with page-turn buttons (#13208) 2025-02-27 20:10:43 +01:00
hius07
f1726a9e5d FileSearcher: consistent results window (#13298) 2025-02-27 18:45:52 +02:00
Frans de Jonge
fdd1b423bd [minor] Fix "Screen timeout" capitalization (#13332)
Some checks are pending
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-27 10:06:55 +01:00
Benoit Pierre
926eb9d455 doc: fix / update build instructions for Alpine Linux (#13319)
Some checks are pending
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
- add `findutils`: we need the real deal (for `-printf`)
- add `nasm`: for building libjpeg-turbo' SIMD support
- drop `ninja-is-really-ninja` in favor of `ninja-build`:
  the former now conflicts with `samurai` (required by `meson`)
2025-02-26 12:00:55 +01:00
Benoit Pierre
3cf45b9dc8 bump base (#13301)
Some checks failed
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
- https://github.com/koreader/koreader-base/pull/2024
- https://github.com/koreader/koreader-base/pull/2025
- https://github.com/koreader/koreader-base/pull/2026
- https://github.com/koreader/koreader-base/pull/2027
- https://github.com/koreader/koreader-base/pull/2028
- https://github.com/koreader/koreader-base/pull/2029
- https://github.com/koreader/koreader-base/pull/2030
- https://github.com/koreader/koreader-base/pull/2031
- https://github.com/koreader/koreader-base/pull/2032
- https://github.com/koreader/koreader-base/pull/2033
- https://github.com/koreader/koreader-base/pull/2034
- https://github.com/koreader/koreader-base/pull/2035
- https://github.com/koreader/koreader-base/pull/2036
- https://github.com/koreader/koreader-base/pull/2037
- https://github.com/koreader/koreader-base/pull/2038
- https://github.com/koreader/koreader-base/pull/2040
2025-02-22 19:06:01 +01:00
hius07
7c45700ceb Collections: sort (#13264)
Some checks are pending
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-22 10:17:19 +02:00
hius07
a641207f79 bookinfomanager: handle zip (#13290)
Some checks are pending
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-21 08:51:23 +02:00
David
546cb14ccc [DictQuickLookup] NT: add text selection to the dictionary widget (#13232)
Some checks failed
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
Initially, when you open the dictionary widget from the reader, FocusManager will function as usual. On Kindle 4 or devices with a keyboard, I have assigned the shortcuts <kbd>screenkb</kbd> + <kbd>up</kbd>/<kbd>down</kbd>   or <kbd>shift</kbd> + <kbd>up</kbd>/<kbd>down</kbd> to initiate text selection (as a remainder, on kindle text selection in reader is initiated with <kbd>up</kbd>/<kbd>down</kbd> so it is fairly similar). At this point, FocusManager is disabled, allowing the cursor keys (and press) to control the now-visible crosshairs. Pressing <kbd>back</kbd> should stop text selection and restore FocusManager’s control of the widget.
2025-02-17 21:41:34 +01:00
Frans de Jonge
cee259b885 [plugin] Terminal: improve LDoc module definition for terminputtext.lua (#13273)
Some checks are pending
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 #13272.
2025-02-17 15:09:31 +01:00
TnS-hun
dbc76eb410 HtmlBoxWidget: fix incorrect selection (#13276)
In same cases MuPDF returns a visually single line of text as multiple lines. Merge such lines to ensure that getSelectedText works properly.

See: https://github.com/koreader/koreader/pull/13232#issuecomment-2658171531
2025-02-17 13:13:52 +01:00
Frans de Jonge
b8a31ef182 [plugin] NewsDownloader: don't try to strip <script> tags (#13260)
Some checks failed
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks failed
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)
Some checks failed
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)
Some checks are pending
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
Some checks failed
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)
Some checks are pending
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)
Some checks are pending
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
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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)
Some checks are pending
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