Commit Graph

10457 Commits

Author SHA1 Message Date
mergen3107 0a021d5e5e Statistics Plugin: Skip adding never opened marked as finished books (#11991)
Closes #11201
Thank you very much @hius07 !
2024-06-10 14:22:54 +02:00
hius07 786a7e1a4e Collections: refresh list of files in FileManager (#11994) 2024-06-09 22:34:22 +03:00
zwim 09822ba552 [AltStatusBar] Fix when showing (almost) empty (#12003)
With enabled battery percentage shown and some other (e.g. reading percentage) the alt status bar shows the expected line. But when disabling everything except battery percentage, then the reading percentage keeps being shown.

So when using this `self:page_info_override` caching trick, we have to restore the cre default again.
2024-06-09 21:13:14 +02:00
mergen3107 9984f3cb7b Fix WebDAV cloud error (#12000)
Fixes #11985
2024-06-09 20:52:56 +02:00
NiLuJe 206de629d8 Bump base
https://github.com/koreader/koreader-base/pull/1815
https://github.com/koreader/koreader-base/pull/1817
https://github.com/koreader/koreader-base/pull/1816
2024-06-09 19:28:21 +02:00
NiLuJe 0a5dcf885d Calibre Metadata: Flag array & objects as such in the "safe" parser 2024-06-09 19:28:21 +02:00
NiLuJe 8d80acf720 Calibre Metadata: Make sure self.books is always flagged as a JSON array
Ditto for self.driveinfo
2024-06-09 19:28:21 +02:00
NiLuJe 1ca443195b Calibre Metadata: Don't lose rapidjson object/array tagging in slim 2024-06-09 19:28:21 +02:00
zwim c8f4008e9b AltStatusBar: fix battery percentage not shown (#11976) 2024-06-08 09:36:50 +02:00
David 81d2db150f ReaderThumbnail: change base class to support key events (#11987)
fixing bug reported here https://github.com/koreader/koreader/pull/11916#issuecomment-2151903891
2024-06-06 22:26:30 +02:00
hius07 585afda4be File searcher: group operations (#11980) 2024-06-06 11:44:03 +03:00
Martín Fernández 79c13bee0c Calibre: Metadata parser improvements (#11922)
* Added a safe pure-Lua SAX JSON parser (via LunaJSON).
* Updated RapidJSON.
* Also implemented a calibre-specific SAX parser in Lua-RapidJSON, and use it by default instead of the full RapidJSON one.
* Raised the file-size threshold to switch between the fast & safe parsers to 50MB.
* Added an UI option to switch between the three parsers.
2024-06-06 01:06:46 +02:00
David 04eec52eee BookMap on devices with useDPadAsActionKeys (#11916)
as first discussed here #11908. This PR brings the book map to non-touch devices that useDPadAsActionKeys().

Book map can be accessed from the menu or by using the following shortcut: ScreenKB + Down or Shift + Down depending on whether you use a K4 device or a kindle with keyboard respectively.

Inside the book map, a user can toggle the hamburger menu by pressing the Menu key and make any adjustment from there. ScreenKB (or Shift) + Up/Down allows it to scroll and Page turn buttons to move by whole full page turns. Back key allows user to exit the map.
2024-06-05 22:50:22 +02:00
David 21213f35af Minor wording corrections (#11981)
see #11978
2024-06-05 22:23:00 +02:00
Frans de Jonge e2682e2d98 [plugin] AutoDim: reset counter on page turn (#11984)
Even if not from input.

Closes #11979.
2024-06-05 21:17:49 +02:00
David f330593233 Fixing button invert on start (#11982)
fixing issue described here https://github.com/koreader/koreader/pull/11963#issuecomment-2147876605
2024-06-05 16:05:36 +02:00
David 7a84cfef4a Individually invert left or right side page turn buttons on Kindle (#11963)
K4 is ergonomically designed to be held with one hand (one's hand wrapped around the back and both thumb and middle finger on either PgFwd buttons).

This PR allows users to individually invert left and right page turners such that it can be operated just with one hand. It also closes #9350

Not sure if there are any other devices with two sets of page turn buttons, so currently limited to kindle, excluding kindle Voyage, but could be added too, albeit with some gymnastics.
2024-06-05 08:51:45 +02:00
David 2d07a82ea2 Add menu key event to Menu widget (#11966)
As seen here https://github.com/koreader/koreader/pull/11918#issuecomment-2137290809
2024-06-05 08:07:03 +02:00
Benoit Pierre 86fa488508 bump base, unbreak MuPDF edition (#11974)
- https://github.com/koreader/koreader-base/pull/1806
- https://github.com/koreader/koreader-base/pull/1808
- https://github.com/koreader/koreader-base/pull/1809
- https://github.com/koreader/koreader-base/pull/1810
- https://github.com/koreader/koreader-base/pull/1811
- https://github.com/koreader/koreader-base/pull/1812
2024-06-05 08:05:45 +02:00
hius07 ed550948a9 mosaicmenu: fix collection mark (#11969) 2024-06-05 07:48:29 +03:00
hius07 bd42f6984e Gesture manager: make long-pressing on top left corner non adjustable in FM (#11971)
It is overridden by the folder tree, so the Gesture manager setting doesn't work.
2024-06-04 21:12:51 +02:00
poire-z 14b7971529 AltStatusBar: fix page info when not all 3 items enabled (#11965)
Fix issue noticed at https://github.com/koreader/koreader/pull/11873#issuecomment-2144485909.
2024-06-04 20:55:11 +02:00
NiLuJe 08f02bf915 OPDS: Don't append Search twice for feeds with an OpenSearchDescription 2024-06-04 20:28:34 +02:00
NiLuJe 8a37917e5c OPDS: Fixup the last commit
We don't want to actually change the page when we request a fill on the
initial fetch.
2024-06-04 20:28:34 +02:00
NiLuJe 04ccd80b86 OPDS: Fix progressive fill on pagination
I have... no idea how this could have ever worked, the Menu handler has
*always* been called OnNextPage o_O.
2024-06-04 20:28:34 +02:00
NiLuJe f3a67a4f4d OPDS: Handle searching in Calibre's OPDS server
Re: #11968
2024-06-04 20:28:34 +02:00
Frans de Jonge f2691b833e MuPDF: add mobi filetype 2024-06-02 08:14:34 +02:00
Frans de Jonge b46f03f092 [minor] Fix typo in XLSX
Dumb typo in #11955.
2024-06-02 08:14:34 +02:00
Frans de Jonge 8977e5e12f [minor] Remove whitespace from last line in zh_stroke_data (#11956)
The busted install failure in #11620 came before those checks.
2024-06-01 22:38:26 +02:00
weijiuqiao 8f1b476444 Chinese keyboard: accept kanji stroke order too (#11620)
This will make the stroke-based Chinese character keyboard compatible with Japanese kanji stroke order, with an increase of the data file by about 80kb.

This could be a temporary solution for Japanese users to type kanji before better methods are implemented.

The stroke order data are extracted from this repo: https://github.com/KanjiVG/kanjivg.
2024-06-01 22:29:08 +02:00
Frans de Jonge 8960f3d478 MuPDF: add txt, cfb, docx, xslx, pptx filetypes (#11955)
New in 1.24.0. See <https://mupdf.com/releases/history>.

Possible due to <https://github.com/koreader/koreader/pull/11940>.
2024-06-01 22:22:29 +02:00
NiLuJe 6a4d433aa9 Kobo: check for RGBA vs BGRA the proper way (#11953)
i.e., poke at the fb vinfo data to check the component offsets.

Fix #11952
2024-06-01 20:39:17 +02:00
SomeGuy c5600ffe19 SortWidget, DictQuickLookup: rename some functions (#11949)
addressing concerns found #11933
2024-06-01 14:25:28 +02:00
Benoit Pierre 99447414dc mupdf: update to 1.24.2 (#11940)
Depends on https://github.com/koreader/koreader-base/pull/1805.

Closes:
- #5422 
- #9927
- #10879
2024-06-01 13:22:02 +02:00
ziz57 93407c8947 Readerlink: fix scheme detection for external links (#11942)
Following RFC 3986.
2024-06-01 13:08:26 +02:00
Benoit Pierre 4c6919ac2a bump base: update tesseract, leptonica and libk2pdfopt
- update leptonica to 1.84.1
- update tesseract to 5.3.4
- update libk2pdfopt to 2.55
2024-06-01 09:56:36 +02:00
Benoit Pierre 10e6f489d0 kopt: honor TESSDATA_PREFIX environment variable
Don't override it by default, but honor it if present.
2024-06-01 09:56:36 +02:00
hius07 14519bc076 Dispatcher: add File browser actions 'Set display mode', 'Sort By' (#11921) 2024-06-01 10:33:14 +03:00
hius07 b06272592d Annotation list: flexible item heights (#11918) 2024-06-01 10:32:15 +03:00
zwim d2ff789543 [plugin] AutoWarmth: add more gestures for autowarmth activation (#11946)
Fixes #11274.
2024-06-01 08:42:09 +02:00
SomeGuy 1b37aa1bd6 Keyboard menu: remove swipe setting from NT (#11944) 2024-06-01 08:27:17 +02:00
hius07 84d28dc5d9 FontList: skip Kindle blacklisted fonts (#11932)
Closes #11927.
2024-06-01 00:25:46 +02:00
Benoit Pierre ea51435237 bump base (#11941)
Preliminary bump (https://github.com/koreader/koreader-base/pull/1800 will be included in #11930):

- https://github.com/koreader/koreader-base/pull/1790
- https://github.com/koreader/koreader-base/pull/1795
- https://github.com/koreader/koreader-base/pull/1796
- https://github.com/koreader/koreader-base/pull/1797
- https://github.com/koreader/koreader-base/pull/1798
- https://github.com/koreader/koreader-base/pull/1799
- https://github.com/koreader/koreader-base/pull/1801
- https://github.com/koreader/koreader-base/pull/1802
- https://github.com/koreader/koreader-base/pull/1803
- https://github.com/koreader/koreader-base/pull/1804
2024-06-01 00:21:05 +02:00
SomeGuy 512065fa14 ReaderLink: make AddCurrentLocationToStack always show notification when activated via keypress (#11925)
As seen here https://github.com/koreader/koreader/pull/11900#discussion_r1615474301.
2024-05-31 22:36:03 +02:00
SomeGuy c429ac8c3f Menu button support for dictquicklookup, sortwidget, keyboard settings for NT (#11933)
Menu key support for some widgets. would have closed #11783 and #6463 (cumulative with @comphilip's fixes)

It fixes a problem where some virtual keys were not available for non-touch users. closes #11862

Also, adds keyboard settings to non-touch devices. closes #11934
2024-05-31 22:33:04 +02:00
Benoit Pierre 2f0e456a42 ci/macos: dump binaries runtime path & dependencies
Useful information for investigating issues with the bundle.
2024-05-30 07:54:22 +02:00
Benoit Pierre b7c1957e4b macos: fix bundle
The new build system should normally be free from "brew infections",
and already have the proper runtime path and library names.
2024-05-30 07:54:22 +02:00
Benoit Pierre 4750b4a4cd ci/macos: drop unnecessary build dependencies 2024-05-29 22:02:06 +02:00
Benoit Pierre 404c7c0dfe ci: update build directory trimming before caching 2024-05-29 22:02:06 +02:00
Benoit Pierre 5a465f413b tweaks for new build system
- forward unknown make targets to base
- add `cmake` and `staging` directories to ignored output artifacts
- drop `package.path` and `package.cpath` luarocks specific entries
2024-05-29 22:02:06 +02:00