2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

1645 Commits

Author SHA1 Message Date
hius07
3919deef05
readerannotation: fix doesMatch func (#12231) 2024-07-29 17:39:44 +03:00
NiLuJe
d59c837714
Kobo: Refactor various aspects of the Kaleido/MTK support (#12221)
* UIManager: Let the fb backend deal with Kaleido wfm promotion. This fixes a number of quirks that poisoned the refresh queue with spurious full-screen refreshes. See https://github.com/koreader/koreader-base/pull/1865 for more details.
* This also means we now disable Kaleido waveform modes when color rendering is disabled (remember to trash your thumbnail cache if you don't want to mix color w/ grayscale thumbnails, though).
* UIManager: Merge refreshes that share an edge, because that was driving me nuts (and would have most likely been merged by the kernel anyway). A perfect test-case is the FM, which trips two separate refreshes because of its title bar.
* ReaderFlipping: Use sensible dimensions, so that we only refresh the icon's region.
* ReaderBookmark: Only refresh the dogear instead of the whole page when toggling bookmarks.
* NetworkSetting: Make it a real boy, so it consistently refreshes properly on dismiss instead of relying on UIManager saving the day.
* Kobo: Aggressively prevent *both* suspend & standby while MTK devices are plugged-in, as both will horribly implode the kernel (we previously only prevent standby while charging).
* Kobo: Switch to 8bpp on B&W MTK devices (or when color rendering is disabled on Kaleido panels).
2024-07-28 01:19:40 +02:00
hius07
8cb221c6c6
Annotations: pageno honors reference pages and hidden flows (#12214) 2024-07-24 18:35:48 +03:00
hius07
b17bd967da
Page turns: invert vertical tap zones (#12195) 2024-07-24 18:34:23 +03:00
Trash Panda
5affb68233
AltStatusBar: add option to show Author (#12197) 2024-07-21 20:11:46 +02:00
zwim
df48d51eca
AltStatusBar/Footer: add the read timer value (#12002)
Closes #11950
2024-07-19 22:55:31 +02:00
Benoit Pierre
97735ce496 ReaderThumbnail: clear cache on rendering mode change 2024-07-19 21:32:20 +02:00
Benoit Pierre
99d45d7584 djvu: honor render mode when reflowing 2024-07-19 21:32:20 +02:00
hius07
7e3b9deb25
Annotations: more fixes (#12181) 2024-07-19 16:52:16 +03:00
David
78f69fd580
Add 'Use left and right keys for page turning' option (#12174) 2024-07-18 08:33:23 +02:00
hius07
a7d493d966
ReaderView: speedup highlights drawing (#12134) 2024-07-06 15:24:01 +03:00
hius07
6d73442ecd
Reader: always exit to book folder (#12129) 2024-06-30 14:29:22 +03:00
hius07
add783156d
ReaderBookmark: fix sort by date 2 (#12112) 2024-06-28 13:27:15 +03:00
hius07
a1ae53c8e5
SkimTo dialog: compact mode (#12046) 2024-06-22 17:57:12 +03:00
hius07
fa4654cdfa
readerbookmark: fix date sort (#12053) 2024-06-19 22:15:43 +03:00
zwim
8b88f5eb73
[ConfirmBox, MultiConfirmBox ...] remove margin around (#12039) 2024-06-18 07:02:30 +02:00
hius07
fb88e8db28
Annotation list: sort by date (#12020) 2024-06-16 14:24:38 +03:00
mergen3107
a03195d524
Footer: add book authors item (#11999)
Closes #7642
2024-06-16 13:18:38 +02:00
David
9bff98034f
ReaderHighlight: minor bug fixes (#12033)
Fixes bug reported in https://github.com/koreader/koreader/pull/11916#issuecomment-2170605117 and an issue where back button would not close widget in file manager.
2024-06-16 10:38:02 +02:00
jonnyl2
6400c3a546
Styletweaks menu: Ignore ._ files (#12022)
Ignore files starting with "._" (metafiles by MacOS), that will otherwise show up in the Styletweaks menu. (These files are alrady ignored in the File manager, even when 'show hidden files' is enabled.)
2024-06-14 12:48:51 +02:00
ziz57
e4232078ab
Readerlink: allow registering empty scheme (#12019)
This allows plugins to handle relative and otherwise schemeless URLs.

Also: clear registered schemes on each init(), to parallel the situation
with external link buttons, and add documentation.
2024-06-13 10:29:43 +02: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
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
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
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
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
hius07
b06272592d
Annotation list: flexible item heights (#11918) 2024-06-01 10:32:15 +03: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
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
Frans de Jonge
ffc43030ec
ReaderLink: change (hasScreenKB or hasSymKey) add to notification stack shortcut to Press instead of Down (#11905)
See 316c6a0624 (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
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
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
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
SomeGuy
e859109885
Status bar: major UI makeover (#11678) 2024-05-21 21:13:53 +02:00
SomeGuy
577c5d454f
Non-touch DPad improvements (#11749)
Closes #11295.
2024-05-20 21:20:50 +02:00
yparitcher
59fb906921
NetworkListener: fix FM integration & properly gate behind hasWifiToggle (#11858) 2024-05-20 08:37:40 +02:00
Nico Hirsch
3b97e2988a
Shorten home folder path for info messages (#11853)
The info messages for opening files always show the full path. By using `filemanagerutil.abbreviate`, the info messages now show the shortened home folder path (only if the setting "shorten home folder" is enabled).
2024-05-19 13:19:38 +02:00
hius07
6b192c346a
Annotations: Bookmark list improvement (#11825) 2024-05-16 21:57:04 +03:00
hius07
46449eb06e
Page overlap: add dashed line marker (#11804)
Requested by our contributor in #11734 (comment).
2024-05-16 20:44:53 +02:00
nairyo
126c01e1b5
Replace tweak_buttons_func with an event instead (#11777)
Also see https://github.com/Ajatt-Tools/anki.koplugin/issues/22
2024-05-16 20:44:01 +02:00
hius07
db63db11b2
FileManager: safe initial path (#11774)
We do not like trailing slash in the path (except root).
Closes #11772.
2024-05-16 20:42:08 +02:00