Commit Graph

10959 Commits

Author SHA1 Message Date
Frans de Jonge
bfa751d063 Trapper:info() add skip_dismiss_check argument 2025-01-18 00:15:27 +01:00
David
5dcc3068a4 [screensaver] Ignore sleep screen cover conditionally (#13068) 2025-01-17 21:22:26 +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
beedaddy
84eb04ef17 kosync: Make sure there are no leading or trailing whitespaces (#13077)
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-17 07:49:02 +01:00
Frans de Jonge
8314838add [plugin] NewsDownloader: make <title> match less greedy (#13070)
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
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)
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
Other than the slightly different InfoMessage.
2025-01-14 22:23:37 +01:00
Tom van Dijk
0c05abb21f feat(readerdictionary): add ability to use kiwix standalone (#13060)
Problem: when you install Kiwix from FDroid or as a standalone apk (ergo not via
the Play Store) it installs as `org.kiwix.kiwixmobile.standalone`, which before
this commit isn't supported.

This commit simply just adds it as a seperate option :)
2025-01-14 18:24:14 +01:00
Frans de Jonge
4eea3f0cda [i18n, plugins] Wallabag: use ngettext for plural (#13062)
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-13 18:26:14 +01:00
Frans de Jonge
12b075a4ac [minor] normalize a few requires (#13055)
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-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)
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
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
hrm
6a0aa958c9 wallabag: Add option to archive locally, instead of deleting + rewording of menu options (#12949)
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 #12712, fix #11687, fix #9151.
2025-01-12 15:28:34 +01:00
TnS-hun
bf35875ba3 Dictionary, footnotes: highlight the selected text (#12948)
When selecting text in the dictionary (including Wikipedia) or the pop-up footnotes highlight the selected text using an inverting rectangle. After closing the opened dictionary remove the highlight after a short delay just like in the reader.

Depends on koreader/koreader-base#2013
2025-01-12 14:46:45 +01:00
David
f8dec18007 Reduce sleep screen message font size to fit one line (#13026) 2025-01-12 12:31:05 +01:00
Marek Veselý
f3f518afd5 [device] add Kindle Scribe 2 support (#13051) 2025-01-12 09:03:03 +01:00
hius07
5cd9494ae9 Annotations: fix matchFunc (#13037)
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
Compare only datetime and start/end positions, it's enough.
Closes #13030.
2025-01-10 08:48:25 +01:00
Frans de Jonge
9b444cba89 processImg: skip data URI (#13034)
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
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)
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
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
hius07
5bd3f3b42c Collections: filter by metadata (#12981)
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-01-07 07:44:36 +02:00
Nikola Kotur
ca660f3b55 [exporter] support multiple authors in Nextcloud (#13005)
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
Fixes #12821.
2025-01-06 19:40:35 +01:00
hius07
f0a3e1c63a File list: new display options (#12954)
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-05 18:59:28 +02: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
David
82eaa00984 [MultiInputDialog] vertically centre multi input dialogue (#12951)
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-01-03 17:34:54 +01:00
NiLuJe
53f8c2af90 InputDialog: set class default for keyboard_visible to false (#12994) 2025-01-03 17:33:53 +01:00
Marek Veselý
038df71ca5 [device] Add the new Kindle line-up (#12990)
* add Kindle ColorSoft
* add Kindle PW6 and KT6
2025-01-03 17:29:47 +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)
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
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)
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
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
Benoit Pierre
0ff8913a4e fix base commit (#12982)
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-02 07:33:50 +01:00
Frans de Jonge
2b5915177d socketutil: remove URL from user agent, add device info (#12977)
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
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
weijiuqiao
b045df3ff3 Vocabbuiler.koplugin: fix PDF context extraction with hyphenation (#12975)
As pointed out at https://github.com/koreader/koreader/issues/12916#issuecomment-2564755827.
2025-01-01 11:28:11 +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)
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
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
hius07
04c0ee5f04 readerannotation: datetime_updated (#12963)
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
2024-12-31 08:54:29 +02:00
hius07
b1940eb4d6 End of document menu: minor fix (#12962) 2024-12-31 08:54:05 +02:00
Frans de Jonge
b93ce8ba4b [plugin] NewsDownloader: switch default to download_full_article=false (#12965)
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
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
poire-z
be5cab65d2 Wikipedia EPUBs: fix missing symbols at start of headings (#12961)
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
Wikipedia has changed their HTML output from:
  <h2> <span class="mw-headline" id="stuff">Stuff</span></h2>
to:
  <h2 id="stuff">Stuff</h2>
2024-12-29 23:04:57 +01:00
Frans de Jonge
b8af072d9f [plugin] NewsDownloader: support single-entry feeds (#12958)
Fixes #12953.
2024-12-29 17:50:39 +01:00
Benoit Pierre
0b278c5633 bump base (#12956)
- https://github.com/koreader/koreader-base/pull/2010
  (close #9422, close #11055)
2024-12-29 11:57:43 +01:00
hius07
6e84503b3d Add support for KindlePaperwhite5 Signature Edition light sensor (#12946) 2024-12-28 19:42:44 +01:00
hius07
7151f3cd07 pathchooser: title bar fm_style (#12942) 2024-12-27 08:28:06 +02:00
hius07
e6b45e7ff7 ReaderSearch results: search string always in bold (#12940) 2024-12-27 08:27:13 +02:00
hius07
0114954fc1 CoverBrowser BookInfoManager: lite getDocProps() (#12936) 2024-12-27 08:16:47 +02:00
Benoit Pierre
33af380962 tests: speedup testsuite
Bump test resources submodule: updated sample.pdf test file for faster processing by the testsuite.
2024-12-25 17:29:40 +01:00
Benoit Pierre
bb41c40d6f tests: cleanup & speedup readerfooter tests 2024-12-25 17:29:40 +01:00