2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
Commit Graph

9748 Commits

Author SHA1 Message Date
poire-z
fc81c7db24 DictQuickLookup: add button to show list of results
Add a left button to the title bar to show the list
of results as a popup.
Dictionary: tap or long-press on that button give
different view of the results.
Wikipedia: request 30 results instead of 20, so we
can show 15, 10 or 6 of them per page of that popup.
2023-05-12 20:12:10 +02:00
poire-z
8c8a032269 ButtonDialog: allow for step/page scrolling
With tall ButtonDialog with many rows, allows for a more
natural and readable scrolling without any truncated row
(like in Excel, we previously behave as web browsers).

ButtonTable:
- make the span and separator layout more explicite
- add some small horizontal padding when button text
  is centered
2023-05-12 20:12:10 +02:00
poire-z
7a95d11f07 ScrollableContainer: add support for step/grid scrolling
When the containee is row-based, this can ensure that when
scrolling with swipes, we get the a full row at top, and
that any truncated row at top or bottom is fully visible
after a swipe.
2023-05-12 20:12:10 +02:00
poire-z
0ee10e5049 Button: fix unstable height
The final height of a button could be different whether
a smaller font size or multiline end up being used.
Also fix 2-lines logical error making it less favored.
Also forward any lang property to the underlying text widgets.
2023-05-12 20:12:10 +02:00
poire-z
4fa7e718a2 TextBoxWidget:getFontSizeToFitHeight(): allow for more accuracy
By providing the font that will be used.
As it's more expensive, use only when really needed.
2023-05-12 20:12:10 +02:00
hrdl
552787db89
SDL: use render buffer size instead of window size (#10428)
Related to koreader/koreader-base#1610. Not sure if this is actually
needed, but for consistency the render buffer size should be used.
2023-05-12 18:12:11 +02:00
yparitcher
a52a4158a9
Android: improve kodev run (#10418)
launch & uninstall the correct version

do not rely on setup_env

When paired with wireless debugging, this makes android debugging not such a pain.
2023-05-10 23:56:57 +02:00
poire-z
d8b3878e8a
bump base/LunaSVG: minor upstream fixes (#10412) 2023-05-10 20:50:08 +02:00
hius07
8665929a5e
Exporter: correct access to doc settings (#10407) 2023-05-10 13:41:23 +03:00
zwim
d718682502
Autowarmth: suntime.lua minimal documentation update (#10405) 2023-05-08 19:50:49 +02:00
hius07
b4f453eb58
Page overlap: add "Horizontal line" marker (#10401) 2023-05-07 20:28:18 +03:00
Frans de Jonge
46f0bba74b
ReaderLink: fix capitalization typo in "Go Forward" (#10399) 2023-05-07 18:36:28 +02:00
Frans de Jonge
3da24046c0
[plugin] Exporter: avoid passing newlines to translators (#10400) 2023-05-07 18:36:09 +02:00
poire-z
bf6a7e8873
bump crengine: BiDi, floats, and FB2 cover related fixes (#10398)
Includes:
- DrawBuf::DrawRescaled(): account for _drawnImagesCount/Surface
- renderBlockElementEnhanced: ignore margins set on table cells
- writeNodeEx: also return @import'ed css file names
- Text: fix interactions of standalone floats and <br/>
- BiDi: fix HTML driven BiDi possibly wrong after <br/>
- Text: fix spaces not collapsing when interleaved with ignorables
- BiDi: ensure proper ordering when white-space: pre
- BiDi: ensure proper ordering when white-space: pre (2)
2023-05-07 18:34:59 +02:00
hius07
2ba694d394
FileChooser: fix percent sorting (#10393) 2023-05-05 22:48:36 +03:00
yparitcher
b18ab634ab Dispatcher: consistent ordering 2023-05-05 08:06:23 +02:00
yparitcher
de5c872dcb Dispatcher: add addCurrentLocationToStack
This is useful when i want to reference something a few pages away while keeping track of my current page
2023-05-05 08:06:23 +02:00
poire-z
2aeb4a87df
Statistics: fix ReaderProgress bad layout in RTL UI (#10389) 2023-05-04 23:48:48 +02:00
Frans de Jonge
84e094de36
DataStorage: fix typo and actually create $HOME/.config if it doesn't exist yet (#10390)
Fixes #10380.
2023-05-04 20:31:14 +02:00
Frans de Jonge
2f7923c513
DataStorage: create parent config home if it doesn't exist yet (#10382)
This situation might potentially occur in something like a Docker/Podman container or WSL.

Fixes #10380.
2023-05-03 18:43:49 +02:00
yparitcher
1102c030fa
Kindle: toggle cover events
Allow disabling the hall efect sensor via the sysfs knob, so the kindle system wont sleep & wake the device

for those of use that stay in koreader, are caseless and have get spurious wakeups
2023-05-03 10:26:35 -04:00
hius07
4f23a6fafa
Custom book covers (#10329) 2023-05-03 15:43:05 +03:00
John Hackett
3f9820052d
Add esperanto-english dictionary (#10297) 2023-05-03 10:18:53 +02:00
kpopconnoisseur
0533ec46d8
kindle voyage: no framework: whispertouch button activation
kindle: "no framework" voyage page turn buttons
kindle: update device tests
2023-05-02 21:59:33 -04:00
hius07
9db74f1f01
ConfirmBox: add widgets (#10364) 2023-05-02 08:25:34 +03:00
yparitcher
64b0f5e7cf ReaderFooter: separate ToggleFooterMode from TapFooter
the footer can be toggled by gestures and menu, and should only be locked or skim in flipping mode when the footer is tapped

also allow toggling when only displaying the progress bar

rename to TapFooter to show it is not an event

Fixes: #10355
2023-05-01 15:28:26 -04:00
hius07
a5320acf4f
koptoptions: fix default margin (#10376)
Regression from #10208.
Closes #10373.
2023-05-01 10:09:06 +02:00
zwim
00b3594d44
Kobo: Refactor frontlight toggle ramp behavior (#10305)
* Rewrite the loop mechanism to use scheduled tasks instead of a single blocking-ish subprocess.
* Change the actual logic to be more pleasing to the eye, especially on newer devices, as those *may* natively ramp on set; and fix a bad interaction with that behavior that could lead to no ramp at all on ramp down.
* Simplify Generic's Suspend handling to deal with the refresh ordering in a saner manner. The screensaver might be visible a tad longer than before this change before the frontlight actually ramps off.
2023-04-30 23:28:30 +02:00
zwim
662bd65a5f
Fix some screen refresh effects (#10306) 2023-04-30 22:15:34 +02:00
poire-z
04fba2205d PageBrowser: show page number alongside thumbnails
Add a top left menu item -/+ to show none, only on the
first thumbnail of a row, or on all thumbnails.
Also make the page slot separator longer in the bottom
ribbon before pages that start a thumbnails row.
Also show a little spike in the bottom ribbon below page
slots that get their page number displayed, to ease
figuring out the connection.
2023-04-30 20:46:09 +02:00
poire-z
7bae2ed920 Dispatcher: add "Save book metadata" 2023-04-30 20:46:09 +02:00
Frans de Jonge
744f2d185f
[fix] Reintroduce "Start with" default to prevent nil string on startup (#10369)
Regression from #10198.

Fixes #10368.
2023-04-30 13:01:55 +02:00
Mochitto
0db042fd0c
Fix crash exporting to Markdown with missing authors (#10278) 2023-04-29 01:22:47 +02:00
Mochitto
53079441f9
Fix: exporting all notes and single doc now both use metadata for author and title (#10280) 2023-04-29 01:21:00 +02:00
Mochitto
c0615c3bda
Feature: Export to kindle's myClippings (#10263)
* Feature: Added the possibility to export using kindle's myClippings formatting
* Fix: files that have the same extension don't collide anymore
2023-04-29 01:19:13 +02:00
weijiuqiao
cb9cbff10e
KeyValuePage: fix corner-case alignment bug (#10326)
Change algorithm to comparing all kv pairs.
Also ignore any pairs where the value is "" when computing
the alignment, since they usually are intended more as
a title and should not interfere.
2023-04-28 23:53:37 +02:00
yparitcher
b5fda00a8b
kodev check: enforce default submodule.recurse=false for shellcheck & shfmt on submodules (#10362)
Otherwise results might be unexpected for people who set submodule.recurse to true

Regression of sorts since #10344
2023-04-27 15:45:28 +02:00
Frans de Jonge
6c2f230639
Bump luajit-launcher (#10360)
* Add Boyue S62 root light controller (koreader/android-luajit-launcher#408) @RamKromberg
* Onyx Leaf: fix lights (koreader/android-luajit-launcher#414) @pazos
2023-04-26 22:11:45 +02:00
hius07
fd8cb14c00
CoverBrowser: fix getting cached info (#10346) 2023-04-26 10:19:01 +03:00
Frans de Jonge
b04639a9e6
Update translations for v2023.04 (#10359) 2023-04-25 18:20:41 +02:00
Frans de Jonge
e6f1804694
Bump luajit-launcher (#10358)
Adds Tagus Gea

* https://github.com/koreader/android-luajit-launcher/pull/412 @Alfedi
2023-04-25 18:17:57 +02:00
NiLuJe
53e6cf563a
Deal with table.pack corner-cases properly (#10350)
c.f., https://github.com/koreader/koreader-base/pull/1603 for more
details.

Re: #9624
2023-04-24 00:21:05 +02:00
zwim
60849aed12
kodev: don't check shfm, same as in #8636 (#10344) 2023-04-19 21:08:06 +02:00
Frans de Jonge
a8ab5e84e5
Bump base for HiDPI support (#10341)
Fixes <https://github.com/koreader/koreader/issues/8630>. Might require the `SDL_VIDEODRIVER=wayland` environment variable.

Includes:

* SDL: add idiotic workaround to be less blurry on HiDPI (koreader/koreader-base#1602)
* SDL: avoid silly ABS_MT_TRACKING_ID for mouse button presses (koreader/koreader-base#1600)
2023-04-18 23:22:32 +02:00
hius07
99265ba1b7
BookInfo: fix crash on show cover (#10315) 2023-04-16 21:46:09 +02:00
Frans de Jonge
5dd88535ba
Bump base for SDL: add multitouch support (#10334)
Includes:

* Fix build on Mac OS X 13.3+ (missing ifr_netmask) (koreader/koreader-base#1596)
* Add C declarations needed for zmq http server (koreader/koreader-base#1595)
* SDL: add multitouch support (koreader/koreader-base#1599)
2023-04-16 12:00:57 +02:00
hius07
af45ec75c3
ReaderThumbnails: update cached page thumbnail on bookmark note change (#10303) 2023-04-14 07:53:05 +03:00
hius07
be7d6008d1
Reader: do not apply line spacing out of range (#10307)
* readercoptlistener: fix line spacing out of range

* readerkoptlistener: fix line spacing out of range

* creoptions: fix line spacing limit
2023-04-13 20:43:04 +02:00
weijiuqiao
34c2dab54b
statistic.koplugin: fix today's timeline showing next day when within custom offset (#10299)
Continuing https://github.com/koreader/koreader/pull/10254#issuecomment-1494697269
2023-04-07 09:02:23 +02:00
zwim
4dbaca180a
PM: Optimize task queue handling around standby (#10203)
Instead of firing on(Enter|Leave)Standby Events, and having every other piece of code that might care about that handle re-scheduling their stuff themselves; simply make the standby implementation (i.e., AutoSuspend's) shift the whole task queue by the amount of time spent in standby to re-sync everything automatically.

(This is necessary in the first place because Linux, as the task queue ticks in CLOCK_MONOTONIC, which does *not* tick during suspend/standby; while we expect most of the tasks scheduled to actually reflect real world clock delays).
2023-04-05 20:54:47 +02:00