2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

10332 Commits

Author SHA1 Message Date
Benoit Pierre
a4400b3ccb tools/mk7z: support debian unstable / ubuntu 22.04
The version of `7z` provided by `p7zip-full` is now the same as `7zip`:

- symlinks are dereferenced by default (no support for `-l`)
- `7z -ba h` appends a trailing `/` to directories
  (not present in the output of `7z -slt l`)
2024-05-12 09:47:44 +02:00
Benoit Pierre
2d4b12c99c tools/mk7z: tweak manifest handling code
To support mawk (default awk on debian unstable).
2024-05-12 09:47:44 +02:00
Benoit Pierre
e921ed1bc7 tools/mk7z: fix subtle bug in manifest handling
A string like `1E2` is interpreted as `100` (`1×10²`):

```bash
▹ echo 0E036904 | awk '{ if ($1) print $1 }'
▹ echo 0E036904 | awk '{ if ($1!="") print $1 }'
0E036904
```
2024-05-12 09:47:44 +02:00
SomeGuy
baab326332
[ReaderHighlight] Remove duplicated setting on NT devices (#11750)
Closes #11747.
2024-05-11 21:25:50 +02:00
Joshua Bullock
1398154546
Gesture: Add toggle for orientation lock (#11795) 2024-05-11 11:47:33 +02:00
Predrag Đokić
eb6e5e3c20
Kindle: Fix missing Amazon UI screensaver after exiting KOreader (#11794) 2024-05-10 22:18:41 +02:00
hius07
12c3c190b0
Annotations: fixes 2 (#11788)
* readerbookmark: fix index for reverse sorting

* readerhighlight: fix pdf tap on highlight detection
2024-05-09 20:53:53 +03:00
Benoit Pierre
075edf9980 tests/readerhighlight: speedup
Reduce time to run those tests by 74% on my machine (~8.8s → ~2.3s).
2024-05-09 14:04:57 +02:00
Benoit Pierre
554e8daf99 tests/readerhighlight: avoid changing versioned files
Work on a copy of `test/sample.pdf`.
2024-05-09 14:04:57 +02:00
Benoit Pierre
089c19cb39 tests/readerbookmark: avoid changing versioned files
Work on a copy of `test/sample.pdf`.
2024-05-09 14:04:57 +02:00
Benoit Pierre
3e809b6c7b tests/readerlink: speedup
Reduce time to run those tests by 95% on my machine (~17s → 0.8s).
2024-05-09 14:04:57 +02:00
Benoit Pierre
fdf19e98c3 tests/readerlink: factorize setup/teardown code 2024-05-09 14:04:57 +02:00
Benoit Pierre
d0ca04c48d tests/readerlink: reorganize
Group tests by file type (EPUB or PDF).
2024-05-09 14:04:57 +02:00
Benoit Pierre
b67c6147d5 tests: ensure successive testsuite runs work
Don't carry over some old settings. Additionally, avoid clobbering the standard reader settings.
2024-05-09 14:04:57 +02:00
peicuiping
a7e34673e6
chore: remove repetitive words (#11785) 2024-05-09 12:10:53 +02:00
Valentin Dubois
526a1fb727
Initial support for new Kobo (Clara B/W + Colour, Libra Colour) (#11737)
* Support the Clara B&W, Clara Colour & Libra Colour
* Enable HW dithering on *all* the Kobo MTK devices
* Enforce 32bpp instead of 8bpp for Kobo devices with a color panel (the driver doesn't actually support 8bpp anyway)
* Enable standby support on MTK (whenever possible, i.e., not when plugged in, as that is horribly, horribly broken).
* Enforce the dedicated "color" waveform mode for image content in ScreenSaver, ImageViewer & Reader.
* Fix charging LED support on MTK
* Tweak the frontlight ramp on MTK + LM3630 so that it actually ramps smoothly
2024-05-09 03:27:37 +02:00
Benoit Pierre
821120828b
tests: fix EPUB test (#11776)
The `droid sans fallback` test incorrectly assumes `Droid Sans Mono`
will be the first font in the list of fallback fonts, but the list
is alphabetically sorted.

Cf. https://github.com/koreader/koreader/pull/10566
2024-05-08 20:03:40 +02:00
sdasda7777
8530282d38
Add Czech keyboard layout (#11769)
Fixes #11339.
2024-05-08 11:04:23 +02:00
hius07
725df17c45
Annotations: fixes (#11761) 2024-05-07 19:54:57 +03:00
hius07
c47d3b3177
Menu widget: cleanup (#11759) 2024-05-07 09:34:30 +03:00
zwim
bf58723af1
[CoverImage] Honor rotation after opening of a book (#11752)
If rotation changes, create a new cache entry and use that if necessary.

Fixes #11713.
2024-05-06 22:53:13 +02:00
SomeGuy
e51b71f463
[Gestures.plugin] Clarify some rotation gesture strings (#11753) 2024-05-06 17:59:00 +02:00
poire-z
001e90db1e ReaderSearch: delay adding to location stack until we change page
Search may highlight matches on the current page, and if there
are no others in the book, we would stay there and resume reading;
but we would get a spurious previous location (ie. in Book map)
that we would not expect keeping, and we may accidently go back
to previous location, losing our reading position.
Avoid this by only adding current page to location stack when
actually leaving the current page.
Because of complications with other reading modes, this is
currently only enabled for CRE document when in page mode.
2024-05-05 21:02:21 +02:00
poire-z
03d16270d9 Statistics: handle correctly page change when reading paused
As currently we only handle ReadingPaused/Resumed on suspend
and resume, no page change should happen while paused, so
there is no current issue to fix. But let's get ready for
other use cases (which may be brought in by user patches,
ie. pausing while the SkimWidget is displayed, and obviously
triggers page changes).
2024-05-05 21:02:21 +02:00
poire-z
7d94562602 ReaderToc: fix issues when on a page before first Toc Item
When on a page before the first ToC item (the first chapter),
that first chapter title may be shown in the footer instead
of a more correct blank title.
This bug might still have had other small effect elsewhere.
2024-05-05 21:02:21 +02:00
poire-z
ca90b982b4 ReaderStyleTweak: reword CSS suggestions info text 2024-05-05 21:02:21 +02:00
poire-z
1c9a6509a2 HttpInspector: allow browsing global variables 2024-05-05 21:02:21 +02:00
Benoit Pierre
89b1280166
bump base (#11748)
- https://github.com/koreader/koreader-base/pull/1773
- https://github.com/koreader/koreader-base/pull/1775
- https://github.com/koreader/koreader-base/pull/1776
- https://github.com/koreader/koreader-base/pull/1777
- https://github.com/koreader/koreader-base/pull/1778
2024-05-04 20:43:35 +02:00
hius07
d82815952e
Annotations, part 1 (#11563)
New format to handle annotations (page bookmarks, highlights, notes) and store them in the book metadata files.
2024-05-03 09:08:57 +03:00
hius07
6b0d97bf22
Multiple collections (#11693) 2024-05-01 09:01:59 +03:00
Benoit Pierre
087ddd1510 ci: small macOS cleanups
Reduce differences with the configuration used on koreader-base.
2024-04-30 22:59:50 +02:00
Benoit Pierre
7392dd2ad4 ci: tweak macOS CI checkout phase
Use the same parameters as for the koreader-base job (faster).
2024-04-30 22:59:50 +02:00
Benoit Pierre
54ded2c578 ci: fix macOS build
Work around the fact that the lua@5.1 brew formula has been disabled.

Additionally, drop ragel (no necessary anymore).
2024-04-30 22:59:50 +02:00
Benoit Pierre
ad6e3b34c4 bump luajit-launcher 2024-04-30 22:22:44 +02:00
Benoit Pierre
64213bf3d9 bump base 2024-04-30 22:22:44 +02:00
Benoit Pierre
6d5ad05e9f ci: bump docker images 2024-04-30 22:22:44 +02:00
hius07
8ff846ba6e
SortWidget: sort alphabetically (#11705) 2024-04-30 13:30:02 +03:00
Benoit Pierre
e8544316a8
pocketbook: simplify device model detection (#11721)
To avoid avoid having to manually handle the multiple
ways a model name reported by inkview can be formatted.
2024-04-29 20:57:16 +02:00
vyaus
f793c6a36c
Gesture: add jump to random page (#11727) 2024-04-28 17:03:58 +02:00
Frans de Jonge
34abb4e22b
Update translations for v2024.04 (#11726) 2024-04-27 23:19:13 +02:00
Galunid
ca14420372
Add relevant nil guards to prevent reflow crashes (#11715)
closes #10854 #9272 #4481
2024-04-27 23:16:13 +02:00
hius07
f5be04a738
Keyboard: detect tap if swipes are disabled (#11699)
Discussed in #11668.
2024-04-24 18:23:58 +02:00
mergen3107
caea0e8fb2
Kindle Scribe: improve gyro detection, replace accel with acc keyword (#11696)
Fixes #11691.
2024-04-20 22:30:04 +02:00
ElimGarak1
bfc84795c8
Add PocketBook Era Color (PB700K3) (#11695)
Fixes #11684.
2024-04-19 10:15:29 +02:00
Max Ignatenko
87c85bf94d
NewsDownloader: use <content:encoded> from RSS item, if available (#11694)
This makes it work much nicer for feeds that provide the full content in the feed itself.
2024-04-18 13:24:08 +02:00
SomeGuy
c70c9f0905
Hide hidden flows and custom toc from non-touch devices (#11690) 2024-04-18 13:16:27 +02:00
mergen3107
d3011571a3
Kindle Scribe: find accelerometer based on hardware (#11642)
Closes #11392 (temporarily).
2024-04-18 09:33:11 +02:00
Max Ignatenko
b872191dc9
Stop touching night mode when control_nightmode == false (#11685)
This is a regression introduced in #10762
2024-04-17 19:23:12 +02:00
Benoit Pierre
715f5aa747 ci: cleanup CircleCI fetch phases 2024-04-16 18:58:45 +02:00
Benoit Pierre
8b8258b44a make: speedup fetchthirdparty
- shallow clone submodules configured as such
- on CI, shallow clone all submodules
- use 3 jobs
2024-04-16 18:58:45 +02:00