Commit Graph

11247 Commits

Author SHA1 Message Date
Benoit Pierre 456ce2fa36 gettext: switch to binary catalogs
Binary catalogs are more space efficient (total translations disk usage:
14MB instead of 35MB), and easier and faster (roughly 10 times) to load:
no parsing, and less processing (no need to unescape strings).

Not much difference on the Android APK size (a ~600KB reduction), but
other TAR.GZ / ZIP distributions see a reduction of ~3.5MB.
2025-06-21 17:47:15 +02:00
David b2f9530788 [DictQuickLookup] create addQueryWordToFirstResult method (#13911)
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
So it can be disabled with a userpatch.
2025-06-21 11:37:13 +02:00
David d993146480 [ReaderHighlight] NT: add better support for extending highlights (#13917) 2025-06-21 11:37:01 +02:00
David 6bc5b16282 [ReaderHighlight] NT: add key event to simulate a very long press (#13914) 2025-06-21 11:36:10 +02:00
David 306fd6c514 [Hotkeys] remove alphabetic hotkeys from K4 (#13950) 2025-06-21 08:12:03 +02:00
Benoit Pierre f266aa2bdc bump base (#13971)
- https://github.com/koreader/koreader-base/pull/2096
- https://github.com/koreader/koreader-base/pull/2097
- https://github.com/koreader/koreader-base/pull/2098
- https://github.com/koreader/koreader-base/pull/2099
- https://github.com/koreader/koreader-base/pull/2100 (close #13821)
- https://github.com/koreader/koreader-base/pull/2101
- https://github.com/koreader/koreader-base/pull/2102
- https://github.com/koreader/koreader-base/pull/2103
- https://github.com/koreader/koreader-base/pull/2104
- https://github.com/koreader/koreader-base/pull/2105
- https://github.com/koreader/koreader-base/pull/2106
- https://github.com/koreader/koreader-base/pull/2107
- https://github.com/koreader/koreader-base/pull/2108
- https://github.com/koreader/koreader-base/pull/2109
- https://github.com/koreader/koreader-base/pull/2110
- https://github.com/koreader/koreader-base/pull/2111
2025-06-21 07:56:23 +02:00
David 30499e33b0 Add new presets.lua module and dictionary presets (#13774)
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
2025-06-20 23:33:45 +02:00
Benoit Pierre 0594f619c3 gettext: fix handling of fuzzy translations
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
The code would incorrectly load part of them, examples:

- the fuzzy translation is not ignored (because of the context, which is itself ignored):
```
msgctxt "Status of group of books"
msgid "All"
msgstr "Kaikki"
```

- not ignored, with an invalid original string (`"Please configure it in the settings."`):
```po
msgid ""
"The download folder is not valid.\n"
"Please configure it in the settings."
msgstr ""
"Le répertoire de téléchargement est invalide.\n"
"Veuillez le configurer dans les paramètres."
```

- and in this case the second fuzzy entry end up overwriting the valid translation (with `"لم يتم حفظ الملف في:\n%1"`):
```po
msgid ""
"%1\n"
"%2"
msgstr ""
"%1\n"
"%2"

msgid ""
"Could not save file to:\n"
"%1\n"
"%2"
msgstr ""
"لم يتم حفظ الملف في:\n"
"%1"
```
2025-06-20 09:35:17 +02:00
Benoit Pierre bfe329dfad gettext: filter out more empty translations 2025-06-20 09:35:17 +02:00
hugleo f2c678c205 bump luajit-launcher (#13924)
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
Removed ONYX Book GO COLOR 7 From Onyx/Qualcomm EDP (https://github.com/koreader/android-luajit-launcher/commit/b0fd95f2897ca6afae127d4f8b0bc5c15acc7913)
Remove Boox Go7 from EDP driver and add support for Hisense Touch Lite (https://github.com/koreader/android-luajit-launcher/commit/3468bdbf0dd514c869c1c5066f2914c2e59336c4)
JNI: always use the C interface (https://github.com/koreader/android-luajit-launcher/commit/473ccd5a93167f1c0527d7f810ae4adff2d3fc98)
Add Onyx Boox Go7 and Palma to ADB for improved lighting (https://github.com/koreader/android-luajit-launcher/pull/560)
2025-06-19 15:06:49 +02:00
Linus045 3f19a2a05e feat: Adds progress bar to cloud storage downloads (#13650) 2025-06-19 10:15:40 +02:00
hius07 e9e2de27c5 readcollection: minor speedup (#13958) 2025-06-19 08:15:48 +03:00
Emre 72573fb393 [Calibre] React to SEND_BOOK_METADATA opcode (#13920)
Fixes #12922.
2025-06-17 12:27:11 +02:00
Benoit Pierre 4dc4339bc7 doc: update testing instructions 2025-06-14 21:18:19 +02:00
Benoit Pierre ce8d338d94 kodev: update activate command
There's no need for messing with the LUA environment using luarocks
anymore, since all testing requirements are already provided by the
build system, and luacheck can be run with a different LUA version
than the one being checked.
2025-06-14 21:18:19 +02:00
Benoit Pierre b373941a6f doc: update building instructions
- remove unnecessary LUA requirements already provided by the build system
- clarify necessary vs optional requirements
- simplify macOS instructions around the minimum targeted deployment version
2025-06-14 21:18:19 +02:00
Benoit Pierre b8369d743a tests: fix newsdownloader tests isolation (#13954)
Cf. https://github.com/koreader/koreader/pull/13953#issuecomment-2972614736.
2025-06-14 21:14:25 +02:00
hius07 e41d00fca1 bookstatuswidget: minor fixes (#13943) 2025-06-14 10:49:43 +03:00
Frans de Jonge da245628e0 [plugin] NewsDownloader: fix getEmptyFeed() call (#13945)
Accidentally changed in #13806.

Closes #13933.
2025-06-13 11:51:57 +02:00
hius07 b59734dfab Minor fixes (#13930) 2025-06-13 07:42:08 +03:00
weijiuqiao 7df7ab0da1 VocabBuilder plugin: show copy button on duplication when adding (#13876) 2025-06-10 20:25:27 +02:00
hius07 3d3e79f198 ToC: search (#13906) 2025-06-10 08:58:24 +03:00
David c3352ee171 [ReaderDictionary] Match words when they are Capitalised in non-fuzzy search (#13884) 2025-06-05 08:04:22 +02:00
hius07 6133a43512 TouchMenu: optimize item removal (#13901) 2025-06-04 08:15:02 +03:00
Björn Schießle 946638e984 [plugin] Add setting to change the category of the Nextcloud notes (#13883)
Allow to define a category in Nextcloud Notes for exported highlights, default stays "KOReader" if the user doesn't remove it or set another category.
2025-06-03 06:12:19 +02:00
David 06661b05ab [DictQuickLookup] Enable temporary large window for open dictionary window (#13862) 2025-06-02 14:58:24 +02:00
Benedikt McMullin cfc67797e2 css_tweaks: add generic setting for smaller inpage footnotes (#13613)
Replaces the 3 '... (smaller)' tweaks.
2025-06-01 20:03:24 +02:00
hius07 521401c113 ButtonDialog: add widgets (#13893) 2025-06-01 08:21:17 +03:00
hius07 b6e5cd120f djvudocument: add getTextBoxes() (#13897)
Crash reported in #13895.
Also crashed when changing highlight boundaries.
2025-05-31 10:22:54 +02:00
hius07 89a14f4158 filemanagercollection: fix manual sorting (#13898)
Closes #13843.
2025-05-31 10:21:46 +02:00
David 765e1e37ba [Hotkeys] bug fix: don't override readerfont when reading pdf/djvu files (#13896)
Reported https://github.com/koreader/koreader/issues/13895#issuecomment-2923450941
2025-05-31 10:19:53 +02:00
Jadehawk a38a578d74 Added Onyx Boox Go 7 to devices that follow gravity. (#13872)
(https://github.com/koreader/koreader/issues/9223, https://github.com/koreader/koreader/issues/12423)

* Sorted in Alphabetical Order 

Ref: https://github.com/koreader/koreader/pull/13872

Followed Windows Sort Order.
2025-05-31 09:38:23 +02:00
Frans de Jonge 0257caad05 Add tests for NewsDownloader (#13806)
To help prevent situations like #13799.

As also referenced in <https://github.com/koreader/koreader/pull/13407#issuecomment-2722714846>.

Also fixes single item RSS and single entry Atom feeds in passing.

References #3073.
2025-05-30 19:20:17 +02:00
Kevin de Moura ba2857cfc1 NewsDownloader: update formatting of byline to be language-neutral and with a space following 2025-05-30 18:54:12 +02:00
Kevin de Moura e421ad972c NewsDownloader: include <dc:creator> name when building article summary html 2025-05-30 18:54:12 +02:00
Kevin de Moura 4b7b25d0a5 NewsDownloader: include <author> name when building article summary 2025-05-30 18:54:12 +02:00
hius07 a0f0a96b4f Profiles auto-exec "On showing folder": add "path is (not) equal" conditions (#13873) 2025-05-30 14:57:58 +03:00
Benoit Pierre 2f8f95a2d6 tools/mkrelease: fix ZSTD compressed TAR format extension (#13887) 2025-05-30 12:23:26 +02:00
Benoit Pierre 6d6e9495d7 ota: prevent deadlock delaying an update (#13889)
When selecting "Later" after being prompted for installing an update
now, the next info box would be undismissable, deadlocking the UI.
2025-05-30 09:51:58 +02:00
Benoit Pierre 09aab4b397 appimage: update appimagetool (#13885)
The more recent versions use ZSTD for compression, and net us a nice 2 MB reduction of the final AppImage' size.
2025-05-29 21:27:51 +02:00
Benoit Pierre 64529e755a android: libarchive based luajit-launcher
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/2088
- https://github.com/koreader/android-luajit-launcher/pull/552
- https://github.com/koreader/android-luajit-launcher/pull/558
- https://github.com/koreader/android-luajit-launcher/pull/559
2025-05-28 11:00:21 +02:00
Benoit Pierre 97e566ec70 minor cleanup 2025-05-28 11:00:21 +02:00
Benoit Pierre a53c1aae59 calibre: increase no-activity timeout (#13846)
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
Calibre does not send the expected regular "NOOP" pings during
its "Analyzing books on the device…" phase, and that operation
can take a long time (75s for 4500 books on a recent machine).
2025-05-27 22:32:20 +02:00
Benoit Pierre 1c5ec0493f bump base (#13866)
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/2094
- https://github.com/koreader/koreader-base/pull/2095
2025-05-27 18:20:47 +02:00
Benoit Pierre 58860f65dd bump luajit-launcher (#13867)
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/android-luajit-launcher/pull/549
- https://github.com/koreader/android-luajit-launcher/pull/550
- https://github.com/koreader/android-luajit-launcher/pull/551
- https://github.com/koreader/android-luajit-launcher/pull/553
- https://github.com/koreader/android-luajit-launcher/pull/556
- https://github.com/koreader/android-luajit-launcher/pull/557
2025-05-27 07:54:25 +02:00
jonnyl2 f592c3865e FileChooser: un-blacklist 'dict' and 'custom-dict' dirs in file browser (#13829)
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
2025-05-26 19:28:26 +02:00
mergen3107 c582b35ee0 battery stats - nit on wording (#13476) 2025-05-26 19:26:43 +02:00
Benoit Pierre 52528d63a4 macos: no need to bundle tar anymore (#13861)
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
2025-05-26 17:03:28 +02:00
Benoit Pierre f63c76d6d4 Use new Archiver module where applicable (#13782)
- ArchiveViewer: instead of using unzip and to support more formats
  (only CBR & RAR for now)
- NewsDownloader & Wikipedia plugins: instead of using `ZipWriter`
- device: re-implement `Device:unpackArchive` and get rid of device
  specific `untar` implementations
- readerui: instead of using unzip for document provider detection
2025-05-26 16:52:38 +02:00
Gropinou ad91f074ed Add periods to plugin descriptions for consistency (#13857) 2025-05-26 13:52:29 +02:00