* Kobo: Don't send `PowerPress` twice when fudging page turn button events for `pageturn_power`
Should help with *some* #12787 reports, but not all, since that
issue predates the PR that implemented the above feature (#13669)
* Only fudge release events, dwallow press and repeat.
Always follow your first instinct ;).
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.
* 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.
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.
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).
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
- 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)