Commit Graph

10885 Commits

Author SHA1 Message Date
Martín Fernández
e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00
weijiuqiao
9df814593d VocabBuilder.koplugin: support PDF context extraction for multi-word phrase (#12917)
Closes #12916. Closes #12475.
2024-12-18 14:13:37 +01:00
weijiuqiao
85390490da VocabBuilder.koplugin: support option to overwrite word with new context (#12885)
Closes #12506.
2024-12-16 20:10:16 +01:00
hius07
f025cce059 Collections: add books from a folder (#12892) 2024-12-15 18:22:05 +02:00
hius07
72086b7a26 CoverBrowser: minor fix and remove unused (#12895)
Remove unused UIManager:clearRenderStack().
Previously it was used by CoverBrowser plugin when extending the FileManager popup file dialog with aditional buttons.
Now the buttons are inserted through the api added in https://github.com/koreader/koreader/pull/12845.
2024-12-15 09:14:01 +02:00
David
378519ccf3 [NT] Remove gesture mentions from Dispatcher (#12889) 2024-12-12 22:28:27 +01:00
David
8f1461316c [HotKeys] Add a 'type to search' setting to hasKeyboard devices (#12860) 2024-12-12 22:23:49 +01:00
David
6565a7eaf6 [plugin] QR: fix failure to load in file browser (#12833)
Cf. https://github.com/koreader/koreader/pull/12746#issuecomment-2510910142
2024-12-12 22:21:32 +01:00
NiLuJe
85b8689d39 [doc] Update macOS PATH shenanigans (#12873)
Drop the sentence about brew being in PATH altogether: you wouldn't even be
able to invoke brew at all if this weren't already the case.

Fix #12868
2024-12-12 22:20:22 +01:00
TnS-hun
f232b0e8e6 Dictionary: fix missing images (#12877)
Pass the dictionary's res directory to Mupdf.openDocumentFromText to allow MuPDF to display images referenced by HTML dictionaries.

Depends on: https://github.com/koreader/koreader-base/pull/2002
Fixes: https://github.com/koreader/koreader/issues/12628
2024-12-12 21:58:35 +01:00
hius07
7efd033489 Profiles main: auto-exec on opening new books (#12884) 2024-12-12 08:53:56 +02: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
Benoit Pierre
58e37ce68b doc: update macOS build instructions (#12886)
Add bash to the list of required Homebrew packages (macOS ship version 3, we need at least 4).

Closes #12868.
2024-12-10 22:47:43 +01:00
David
63fea74597 [Profiles] Search and update profile actions assigned to hotkeys (#12642) 2024-12-10 21:18:09 +01:00
hius07
7444ec53e9 Remove onSetFullScreen() (#12871) 2024-12-09 12:33:16 +02:00
hius07
0386e2619e Patch management: plugin -> core (#12862) 2024-12-08 09:33:46 +02:00
Benoit Pierre
604e5f3019 kodev: tweak test command (#12864)
Support `./kodev test TESTNAME`, as syntactic sugar for `./kodev test all TESTNAME`.
2024-12-07 13:27:02 +01:00
hius07
157c03c42d FileManager: Plus dialog button from CoverBrowser (#12857) 2024-12-07 09:18:18 +02:00
Martín Fernández
a43c9ab535 [exporter] drop unsupported targets: flomo, memos (#12808) 2024-12-06 21:30:18 +01:00
Martín Fernández
162685df50 remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight
* remove background-runner

thirparty plugins that rely on the backgroundrunner no longer work.
2024-12-06 21:28:56 +01:00
hius07
89fd0061fb filemanagerbookinfo: fix logic in getCoverImage() (#12852) 2024-12-06 14:36:30 +02:00
hius07
cd8ef3ceb5 FileManager, History, Collections: expose file dialog buttons (#12845) 2024-12-05 18:54:32 +02:00
hius07
ea46d71634 Highlights: anchored dialogs (#12810) 2024-12-05 18:53:59 +02:00
poire-z
cdc0cc58e7 CreDocument: tweak when the default font is set (#12846)
Reseting the default font each time we refresh metadata
(ie. when refreshing a cover in History) could cause
the rendering hash of the currently opened document
to be messed up, with strange effects.
Hoping setting one in engineInit() is enough to avoid
the crashes the removed comment talks about.
2024-12-05 01:34:09 +01:00
Benedikt McMullin
1438caf529 Style tweaks: add Override font-based normal line height (#12483) 2024-12-05 01:33:51 +01:00
Frans de Jonge
9de3b33421 [plugin] Patch management: fix disabling plugin (#12849)
Fixes #12841.
2024-12-04 23:47:20 +01:00
hugleo
67af55bb7e Bump luajit-launcher (#12850)
fix Tolino Epos 2 warmth (#531)
2024-12-04 23:23:19 +01:00
hius07
58adb685d1 Collections: search (#12776) 2024-12-04 14:09:26 +02:00
David
f5921eec2a [KOPlugin] Hotkeys, add custom keyboard shortcuts (#12484)
Fix #7308, fix #12336, fix #12744.
2024-12-03 21:04:47 +01:00
zwim
6036761a40 [AutoSuspend] Make day selector less restrictive (#12835)
This allows to set days to zero. As a security fall back setting days and hours both to zero will yield 5m autosuspend time. (to avoid shutdown loops).
fixes #12831
2024-12-03 13:00:52 +01:00
Eric P Hutchins
76a7633531 Translator: add romanizations setting in Translation settings (#12829)
This adds a new setting in "Translation settings" called "Show romanizations" which tells the translation popup to include in the query the parameter dt=rm and then extracts romanizations from the results to display.
2024-12-02 23:05:52 +01:00
Sébastien Maillard
46b0ec6aa8 AutoStandby: schedule next standby on init (#12815) 2024-12-02 22:32:16 +01:00
Benoit Pierre
8297d17e54 bump base (#12822)
- https://github.com/koreader/koreader-base/pull/1990
- https://github.com/koreader/koreader-base/pull/1992
- https://github.com/koreader/koreader-base/pull/1993
- https://github.com/koreader/koreader-base/pull/1996
- https://github.com/koreader/koreader-base/pull/1997
- https://github.com/koreader/koreader-base/pull/1994 (close #12805)
- https://github.com/koreader/koreader-base/pull/1969 (close #12683)
2024-11-30 16:06:46 +01:00
Benoit Pierre
5d68ece781 ci/circle: fix ccache cache (#12802)
New ccache versions respect the XDG spec: `~/.ccache` → `~/.cache/ccache`.
2024-11-26 16:39:47 +01:00
Ashwin Kulasegaram
dc9ca4e9a6 NewsDownloader: implement new logic to handle multiple selectors (#12804)
Closes #11430.
2024-11-26 16:39:03 +01:00
Benoit Pierre
d4cc87c502 tests: rename PDF benchmark file
So it's picked up by the bench testsuite.
2024-11-25 22:55:57 +01:00
Benoit Pierre
de676292f6 tests: drop nocov tags 2024-11-25 22:55:57 +01:00
Benoit Pierre
7188ce3bb1 make: tweak coverage rule for CI
Don't exclude `nocov` tests, since on master, only one run with coverage is used.
2024-11-25 22:55:57 +01:00
Benoit Pierre
e10017042e tests: tweak tags
Drop `nocov` tag for tests already tagged with `notest`
(already ignored when doing a coverage run).
2024-11-25 22:55:57 +01:00
Benoit Pierre
74c9347bba ci/circle: speed up tests / coverage
Instead of running the testsuite twice when coverage is need,
only run it once (without filtering out `nocov` tests): with
`cluacov` installed, it's only 50% slower than a normal run.
2024-11-25 22:55:57 +01:00
Benoit Pierre
ea5d424868 tests: use new runner 2024-11-25 22:55:57 +01:00
Benoit Pierre
8c839d9ead tests: improve frontend testsuite isolation 2024-11-25 22:55:57 +01:00
Benoit Pierre
8005275388 tests: improve PDF benchmarks
Factorize and use a proper separate test for each benchmark.

Note: only open the 9 fist pages (reduce memory so benchmarks
can be run on more limited memory devices, like the Kindle).
2024-11-25 22:55:57 +01:00
Benoit Pierre
76837c66a7 datastorage: add support for isolating data
Use the `KO_HOME` environment variable if set to determine the data directory location.
2024-11-25 22:55:57 +01:00
Lostish
f5c6b56899 Screensaver: add dynamic battery symbol to sleep screen message (#12548)
- %B was added to frontend/ui/screensaver.lua to reference the battery symbol
  generated by powerd
- The default English screensaver help message was updated informing users
  of the addition
2024-11-25 20:58:56 +01:00
Benoit Pierre
921dde0b31 bump base (#12796)
- https://github.com/koreader/koreader-base/pull/1985
- https://github.com/koreader/koreader-base/pull/1986
- https://github.com/koreader/koreader-base/pull/1987 (close #12778)
- https://github.com/koreader/koreader-base/pull/1988
2024-11-24 23:01:38 +01:00
Brendan LeFebvre
798a64998f webdav: show folders with same name as current folder (#12788)
Closes #12783
2024-11-24 08:59:12 +01:00
Benoit Pierre
980b50b370 ci/macos: reduce workflow file differences with base version 2024-11-23 20:56:22 +01:00
Benoit Pierre
eaea029f50 ci/macos: bump ccache version to 4.10.2 2024-11-23 20:56:22 +01:00