Commit Graph
6309 Commits
Author SHA1 Message Date
hius07 8deeedb09c Collections: option to skip scanning folder (#14203) 2025-08-23 09:28:53 +03:00
hius07 7e6e8b3615 File browser: make the Plus menu user-patchable (#14197) 2025-08-23 09:28:29 +03:00
hius07 6c7efa1bdf expandString(): replace patterns with data (#14181) 2025-08-23 09:27:10 +03:00
adva-cg 6c0a5c30ba Add support for character-by-character highlighting for partial word translation (#14153)
Long-pressing on the "edit" buttons switches between "word" and "char" modes of the following single taps.
Long-pressing always moves the boundary by char.
2025-08-20 08:33:14 +03:00
hius07 aa69907976 CloudStorage: add action in Dispatcher (#14189) 2025-08-19 17:17:57 +03:00
hius07 7d400453b9 ReaderFooter: document position is not used (#14076) 2025-08-17 07:42:19 +03:00
spfenwick c00df15aee OPDS Plugin: Ensure the default download filename is consistent across different platforms (#13709)
* Ensure the default download filename is consistent across different platforms.
The OPDS plugin correctly uses util.getSafeFilename() to remove any special characters from the filename for downloads. However this function works differently on different platforms, with some common characters like : and ? being allowed on some platforms but not others. In particular this may break Process Sync if it is configured to rely on file names. This change gives a better default behaviour by ensuring the default filename is the same across different platforms, while still letting the user change the filename to include special characters if the platform supports them.

* Make util.replaceAllInvalidChars() global and call it rather than copying code.
2025-08-16 21:33:01 +02:00
Noa Himesaka 9a357cc87b fix/remarkable: proper OTA model for remarkable-aarch64, do not set 8bpp depth for rMPP (#14163) 2025-08-13 15:12:43 +02:00
Noa Himesaka dd4a7fdb71 fix/remarkable: update for new AppLoad/qtfb-shim (#14162) 2025-08-12 21:52:06 +02:00
NiLuJe e1c7445c71 Input: Handle BTN_TOOL_DOUBLETAP Kindle quirks (#13714)
* Input: Log BTN_TOOL_DOUBLETAP

* Input: Try to handle cyttsp's BTN_TOOL_DOUBLETAP madness...

Fix https://github.com/koreader/koreader/issues/13706
Fix https://github.com/koreader/koreader/issues/13040

* Input: Properly deal with the BTN_TOOL_DOUBLETAP protocol violation

Instancing a *new* ABS_MT_SLOT *requires* x & y coordinates in the
*same* frame.
2025-08-11 14:02:30 +02:00
David 1eb9b55ab2 [ReaderDictionary] bug fix: use individual gsubs for "·", "|" and "↑" (#14118) 2025-08-11 14:00:37 +02:00
Gropinou 3ca37983db [Android] Add Go Color 7 II to devices that follow gravity (#14156) 2025-08-09 09:07:01 +02:00
hius07 92a6c7c6dc readerhighlight: fix datetime_updated for new highlights (#14155) 2025-08-09 09:43:39 +03:00
Michael Cummings c4f9c60742 [Kobo] Enable wake on page turn buttons (#13669)
Adds menu items (toggles) and functionality to turn a kobo back on with the page turn buttons.

Fix #13668
2025-08-03 21:43:17 +02:00
Yvan 1377108116 [reMarkable] Fix wifi management and add xovi env variables (#14096) 2025-08-01 19:34:48 +02:00
Frans de Jonge 11d008e93b Add .footnote1 class to classic classname footnotes style tweak (#14119)
These would be likely to show up after a calibre conversion. See <https://www.mobileread.com/forums/showthread.php?p=4527981#post4527981>.

I'm not entirely sure to what extent it's wise to add, but we already have some equivalents after all.
2025-07-31 20:26:58 +02:00
zwim 400c774bcc [touchmenu] simplify code and finish early (#14113) 2025-07-30 16:29:36 +02:00
zwim 6fd1335196 Fix some typos (harmless) (#14079) 2025-07-21 21:18:13 +02:00
David 105abfa159 [ReaderDictionary] Clean interpuncts, pipes and up arrows from text selection (#14031) 2025-07-14 22:48:01 +02:00
Peter Snajczuk 9ad9d52cef Support Kindle Oasis (KOA) charging cover "soda" (#13133)
Much of this code was taken from the Kobo implementation of an auxiliary battery. The biggest difference between the Kobo and Kindle implementation is that the status file for the charging cover is not present when the cover is detached, so the check for status there will result in the file failing to read.
2025-07-14 08:44:45 +02:00
Michał Mnich 8db0dee5e0 [fix] Improve handling of illegal vFAT filenames. (#14043)
This change fixes an issue where a file/directory is not created when its name contains trailing spaces or dots.
The issue has been observed on a Kobo device, but probably also applies to other systems using vFAT.

We also might want to consider handling other illegal vFAT filenames like `NUL` or `AUX`.

Please see the [official Microsoft documentation](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions)
for more details on the naming conventions of vFAT (this change addresses the last bullet point).
2025-07-13 22:34:17 +02:00
hius07 c4c95a0e90 ReaderHighlight: fix long-pressing on image (#14048) 2025-07-12 20:29:41 +03:00
hius07 e0c8530651 touchmenu: no empty menus (#14040) 2025-07-09 13:46:48 +03:00
hius07 6a567406e2 touchmenu: optimize (#14027) 2025-07-08 09:50:59 +03:00
hius07 18621018fd File browser Plus: fix add/remove folder shortcut (#14032) 2025-07-07 08:17:41 +02:00
TnS-hun 5d3c71724f Dictionary: fix invalid highlight when switching dictionary (#14028)
When the contents of the HtmlBoxWidget changed the page boxes were not invalidated, this resulted the highlight to show up at a wrong coordinate.

Fixes #14013
2025-07-06 23:39:51 +02:00
hius07 ad3dddbdd2 readerhighlight: fix accidental tap while long-pressing (#14004) 2025-07-01 21:44:39 +03:00
hius07 29bbc84de2 Touchmenu: fix menu refreshing on check (#13996) 2025-07-01 21:43:51 +03:00
Wim de With 97fac90779 Pass ui parameter to all collate item_funcs (#13981) 2025-06-29 09:56:16 +02:00
Benoit Pierre 633e5c8bd4 ota: increase re-use during updates
- use the latest stable release tag date for all files modification time
- tweak tar command tar to ignore read-errors (so missing files don't
  result in a failure to create the installation archive)
2025-06-24 20:22:23 +02:00
Benoit Pierre c7c5337e99 otamanager: align tar command line flags with tools/mkrelease 2025-06-24 20:22:23 +02:00
Benoit Pierre 7fae7009f6 otamanager: minor factorization 2025-06-24 20:22:23 +02:00
hius07 a4bb9d688b util: enable comma in filenames (#13985) 2025-06-23 20:53:33 +02:00
hius07 b2895731f1 Gesture overview (#13909) 2025-06-23 12:18:54 +03:00
David 899c257904 [fix] Close keyboard after calling search with preset (#13976) 2025-06-23 09:22:03 +02:00
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)
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 30499e33b0 Add new presets.lua module and dictionary presets (#13774) 2025-06-20 23:33:45 +02:00
Benoit Pierre 0594f619c3 gettext: fix handling of fuzzy translations
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
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
hius07 e41d00fca1 bookstatuswidget: minor fixes (#13943) 2025-06-14 10:49:43 +03:00
hius07 b59734dfab Minor fixes (#13930) 2025-06-13 07:42:08 +03: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
David 06661b05ab [DictQuickLookup] Enable temporary large window for open dictionary window (#13862) 2025-06-02 14:58:24 +02:00