Commit Graph

10862 Commits

Author SHA1 Message Date
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
Benoit Pierre 83d14ad77f ci/macos: enable tests 2024-11-23 20:56:22 +01:00
Benoit Pierre c04023f1d1 make: factorize code for generating release updates (#12655)
Instead of splitting remove / exclusion of unwanted files in 2-3 places
(`all` rule, `update` rule, and update script in some cases), install
the same files in debug & release builds, and exclude unwanted stuff
when generating the update.

This should finally fix the CI issue with OCR tests (since we don't
remove the `data/dict` & `data/tessdata` directories on release build
anymore).
2024-11-23 20:48:37 +01:00
David de7c5920b8 [screensaver menu] remove gesture based option from NT devices (#12747) 2024-11-23 20:41:56 +01:00
mergen3107 e95541ffd3 [Kindle NT] fix terminal and timesync (#12765)
Closes #12760
Credits go to @benoit-pierre (Thank you!)
2024-11-23 19:30:48 +01:00
Wim de With d1d5e949a0 Decode wpa_supplicant SSID when already connected (#12782)
Overlooked in #11089.
2024-11-23 19:29:51 +01:00
Benoit Pierre 64dabfa605 tests: speedup persist huge tables test (#12786)
For example on my machine:

| test duration (ms) |  master  |             PR |
| :-                 | -:       | -:             |
| regular run        |   859.82 |  104.38 (÷8.2) |
| coverage run       | 40735.60 | 4151.34 (÷9.8) |
2024-11-23 19:28:57 +01:00
Benoit Pierre fbde771306 tests: speedup readhistory reduce test (#12785)
For example on my machine:

| test duration (ms) |  master  |             PR |
| :-                 | -:       | -:             |
| regular run        |  2645.94 | 106.83 (÷24.8) |
| coverage run       | 26133.27 | 641.59 (÷40.7) |
2024-11-23 17:54:46 +01:00
hius07 47feaaa1df Highlights: page boxes cache (#12768) 2024-11-23 14:05:05 +02:00
Benoit Pierre c124425ac3 bump base (#12780)
- https://github.com/koreader/koreader-base/pull/1983
- https://github.com/koreader/koreader-base/pull/1984
2024-11-22 19:26:02 +01:00
Benoit Pierre 06a3b13636 android: bump luajit-launcher to fix incorrect eink driver for a number of tolino devices (#12779)
- https://github.com/koreader/android-luajit-launcher/pull/530 (close #12769)
2024-11-22 17:50:02 +01:00
Benoit Pierre 346512d80c bump base (#12773)
- https://github.com/koreader/koreader-base/pull/1956
- https://github.com/koreader/koreader-base/pull/1981
- https://github.com/koreader/koreader-base/pull/1982
2024-11-21 20:35:19 +01:00
mergen3107 61ffe2abed Disable irrelevant plugins on devices with no frontlight (#12766)
Closes #12764
2024-11-21 19:31:43 +01:00
Benoit Pierre 0e2dadf6e0 bump base (#12761)
- https://github.com/koreader/koreader-base/pull/1975
- https://github.com/koreader/koreader-base/pull/1977
- https://github.com/koreader/koreader-base/pull/1979
- https://github.com/koreader/koreader-base/pull/1980
2024-11-21 11:37:34 +01:00
Benoit Pierre 765f1e92cb doc: minor tweak to building requirements (#12762)
Ninja is not optional.
2024-11-21 10:43:10 +01:00
Benoit Pierre 0debdf0216 ci/macos: fix possible issue during brew install (#12767)
```
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink bin/pkg-config
Target /opt/homebrew/bin/pkg-config
is a symlink belonging to pkg-config@0.29.2. You can unlink it:
  brew unlink pkg-config@0.29.2

To force the link and overwrite all conflicting files:
  brew link --overwrite pkgconf

To list all files that would be deleted:
  brew link --overwrite pkgconf --dry-run

Possible conflicting files are:
/opt/homebrew/bin/pkg-config -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/bin/pkg-config
/opt/homebrew/share/aclocal/pkg.m4 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/aclocal/pkg.m4
/opt/homebrew/share/man/man1/pkg-config.1 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/man/man1/pkg-config.1
```

This only happen with AMD64 runners, and when using the latest runner images
(e.g. when the luck of the draw yields 14.7.1 23H222 and not 14.7 23H124).
2024-11-21 08:47:31 +01:00
hius07 93f2fa6702 Highlight: line height (#12721) 2024-11-21 07:54:23 +02:00
hius07 24d8baf3ec Notebook file (#12699) 2024-11-21 07:53:22 +02:00
David 9aa327a9de Add faster option to export text selections via QR codes (#12746)
Closes https://github.com/koreader/koreader/issues/11909.
2024-11-20 22:40:08 +01:00
Benoit Pierre 0fd8c5af81 kopt: implement reflow
Factorized from lower layers' implementations (djvu & mupdf).
2024-11-20 22:23:02 +01:00
Benoit Pierre 94ee6813f6 kopt: minor factorization 2024-11-20 22:23:02 +01:00
hius07 2b763c70f9 Screenshoter: fix screenshot folder (#12750)
Check for existance and create if absent.
Closes #12742.
2024-11-20 22:19:52 +01:00
Benoit Pierre 24f983b580 pocketbook: support "extended" key events (#12707)
Only for devices running with SDK >= 6.

Close #12703.
2024-11-20 21:45:53 +01:00
Benoit Pierre 2013e8a46f bump base (#12759)
- https://github.com/koreader/koreader-base/pull/1965
- https://github.com/koreader/koreader-base/pull/1972
- https://github.com/koreader/koreader-base/pull/1976
- https://github.com/koreader/koreader-base/pull/1978
2024-11-20 21:19:11 +01:00