Commit Graph

10433 Commits

Author SHA1 Message Date
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
Benoit Pierre 1c9c35dcb3 bump base 2024-05-29 22:02:06 +02:00
nairyo c7a59145a3 [fix] VocabBuilder: restore erroneously removed onShowVocabBuilder function (#11915)
Fixes #11913.
2024-05-27 20:17:00 +02:00
Piotrek Marciniak 9b1a21ef82 Export highlights: empty annotations as nil instead of empty string (#11912)
Fixes Readwise exports
2024-05-27 19:18:11 +02:00
SomeGuy 1aefd80ea6 ReaderBookmark: "bookmark current page" removed from NT kindles (#11907)
Discussed https://github.com/koreader/koreader/issues/11834#issuecomment-2132411929 onwards.
2024-05-27 12:04:24 +02:00
Frans de Jonge 94372c2adf Remove ShowFontMenu (#11904)
Some clean up, as suggested in <https://github.com/koreader/koreader/pull/11864#discussion_r1615312993>.
2024-05-27 11:03:50 +02:00
SomeGuy eb63cf655f CoverBrowser: update MosaicMenu FocusManager grid view to 2D (#11906)
This PR [and #11884] are for #11834.
2024-05-27 11:03:06 +02:00
Frans de Jonge ffc43030ec ReaderLink: change (hasScreenKB or hasSymKey) add to notification stack shortcut to Press instead of Down (#11905)
See https://github.com/koreader/koreader/pull/11900/files/316c6a0624a504e1ef8645dfbcfb068a73384d3b#r1615314584
2024-05-27 09:06:51 +02:00
hius07 9223cde2bd Status bar: fix book progress (#11885) 2024-05-27 07:42:49 +03:00
Frans de Jonge 8f2bd5420d Introduce Device:useDPadAsActionKeys() (#11900)
1. Non-Kindle-specific `hasFiveWay` behavior is changed to `hasDPad and useDPadAsActionKeys`. For now they remain Kindle-specific in practice, unless one sets `useDPadAsActionKeys = yes` in a user patch.
2. With that disambiguation out of the way, `hasFiveWay` itself is further disambiguated into `hasScreenKB` and `hasSymKey`, as per the actual property being used, rather than something that tends to correlate with it. (It needn't be Kindle-specific per se, but non-Kindle devices have equivalent shortcuts with for example `Shift`.)
  Running the emulator with `DISABLE_TOUCH=1` will set `hasSymKey = yes`, which can be tested with right shift.

Closes #11887.
2024-05-26 21:25:54 +02:00
Martín Fernández 3fb2f18041 update tool to generate metadata translations (#11869)
* updated:

    - strings to translate
    - english metadata

* added:

    - appstream: metadata generator
    - appstream: translation of screenshot captions, if they're present.
    - appstream: link to gh release notes
2024-05-26 20:10:12 +02:00
Frans de Jonge a21db40745 [i18n] ReaderBookmark: don't bother translators with a space (#11902) 2024-05-26 17:53:39 +02:00
SomeGuy 00d0affd70 Remove very long press settings from NT (#11898) 2024-05-26 15:34:29 +02:00
SomeGuy d217f5c161 Menu widget: limit right as hold to hasFewKeys (#11890)
Addresses concerns in #11884.
2024-05-26 15:33:06 +02:00
hius07 076f77282b FileManager copy/move: do not paste to itself (#11878) 2024-05-26 08:19:45 +03:00
hius07 c6e6d72cf3 Collections: add collection mark to books (#11868) 2024-05-26 08:18:44 +03:00
ziz57 7925455b68 Add ReaderLink::registerScheme for plugins handling non-http(s) links (#11889)
Currently, links with a scheme other than http or https are rejected. But plugins may want to handle them. This allows them to, by registering the scheme with self.ui.link:registerScheme("example") during the plugin's init.
2024-05-25 23:38:44 +02:00
Frans de Jonge b222900cb9 Enable Alt+Shift+G for screenshots on all devices with a keyboard (#11888) 2024-05-25 21:11:38 +02:00
hius07 556e5bd6b4 VirtualKeyboard: delete word on backspace swipe west (#11843)
Closes #11831.
2024-05-25 18:51:44 +02:00
SomeGuy 81575ae24f Global long press on K4, 'ScreenKB' + 'Press' (this time for real) (#11884)
discussed #11834

then merged #11872, then reverted #11881
2024-05-25 11:11:53 +02:00
NiLuJe f0f37e3153 Kobo: Boost saturation for CFA refreshes (and add a dev setting to disable it) (#11883)
Being able to disable it can be interesting, because it *is* a somewhat destructive process.

* Requires a base bump:
https://github.com/koreader/koreader-base/pull/1793
https://github.com/koreader/koreader-base/pull/1794
2024-05-25 01:29:15 +02:00
Frans de Jonge 07b507370f Revert "Global long press on K4, 'ScreenKB' + 'Press' (#11872)" (#11881)
This reverts commit 3f64ecfd28.
2024-05-24 16:34:08 +02:00
poire-z fd7e224c16 userpatch: add a few helpers that can be used in userpatches
Make the few tricks we discovered readily available,
which should make user patches simpler.
2024-05-24 09:36:19 +02:00
poire-z f00a88aef7 AltStatusBar: show page info similar as in footer
We now build the "page/total %" string ourselves,
with the same logic as used in the footer (including
when hidden flows or reference page numbers are used)
and give it to crengine to be displayed instead of
its own way of doing it.
2024-05-24 09:36:19 +02:00
poire-z 54a0cdd737 ReaderFooter: fix minor issues with pages left & chapter progress
When using Reference page numbers, "Pages left" was showing the
same info as "Current page", because Reference pages, being strings,
couldn't be used for arithmetics. But we can just count the number
of items left in the Reference pages array of strings.

Also fix edge case with "page progress" with hidden flow when
we are before the first chapter with a hidden flow before.
2024-05-24 09:36:19 +02:00